|  |  | 
 |  |  |     ASSIGN_UUID(4), //全局唯一的 uuid | 
 |  |  |     */ | 
 |  |  |     @JSONField(serializeUsing= ObjectWriterImplToString.class) | 
 |  |  |     @TableId(type = IdType.INPUT) | 
 |  |  |     @TableId(value = "id", type = IdType.INPUT) | 
 |  |  |     @Schema(description = "实体id", requiredMode = Schema.RequiredMode.NOT_REQUIRED) | 
 |  |  |     //public Long userId; | 
 |  |  |     public Long id; | 
 |  |  |  | 
 |  |  |  | 
 |  |  | 
 |  |  |     @Schema(description = "姓名", requiredMode = Schema.RequiredMode.REQUIRED) | 
 |  |  |     @NotEmpty(message = "姓名不能为空") //不能为空也不能为null | 
 |  |  |     @Length(message = "姓名不大于{max}字,不小于{min}字", min = 2, max = 25) | 
 |  |  |     public String name; | 
 |  |  |     public String userName; | 
 |  |  |  | 
 |  |  |     /** | 
 |  |  |      * 手机号,手机号用于登录系统 | 
 |  |  | 
 |  |  |      * 密码,密码的MD5加密 | 
 |  |  |      */ | 
 |  |  |     @Schema(description = "密码", requiredMode = Schema.RequiredMode.REQUIRED) | 
 |  |  |     @Length(message = "密码必须{max}位数据", min = 6, max = 6) | 
 |  |  |     @Length(message = "密码必须{max}位数据", min = 5, max = 20) | 
 |  |  |     public String password; | 
 |  |  |  | 
 |  |  |     /** | 
 |  |  | 
 |  |  |     @JSONField(serialize = false) | 
 |  |  |     public List<Integer> privileges; | 
 |  |  |  | 
 |  |  |  | 
 |  |  |     /** | 
 |  |  |      * 所属片区名称 | 
 |  |  |      */ |