|
|
@@ -1,8 +1,6 @@
|
|
|
package com.nb.app.doctor.api.entity;
|
|
|
|
|
|
-import com.baomidou.mybatisplus.annotation.FieldStrategy;
|
|
|
-import com.baomidou.mybatisplus.annotation.TableField;
|
|
|
-import com.baomidou.mybatisplus.annotation.TableName;
|
|
|
+import com.baomidou.mybatisplus.annotation.*;
|
|
|
import com.nb.common.config.mybatisplus.TenantNameHandler;
|
|
|
import com.nb.core.entity.TenantGenericEntity;
|
|
|
import com.nb.core.enums.SexEnum;
|
|
|
@@ -22,48 +20,57 @@ import org.hibernate.validator.constraints.Length;
|
|
|
@EqualsAndHashCode(callSuper = true)
|
|
|
@Data
|
|
|
@TableName(value = "app_doctor_user",autoResultMap = true)
|
|
|
-@ApiModel(value="常量人员", description="包括:病区、手术、ASA、镇痛、麻醉、药品分类、医嘱")
|
|
|
+@ApiModel(value="app医生用户")
|
|
|
@ToString
|
|
|
@NoArgsConstructor
|
|
|
public class AppDoctorUserEntity extends TenantGenericEntity<String,String> {
|
|
|
- @ApiModelProperty(value = "用户名")
|
|
|
+ @ApiModelProperty(value = "用户名,用户名不得超过32个字节")
|
|
|
@Length(max = 32,message = "用户名不得超过32个字节",groups = {Insert.class,Update.class})
|
|
|
@TableField(updateStrategy = FieldStrategy.NEVER)
|
|
|
private String username;
|
|
|
|
|
|
- @ApiModelProperty(value = "密码")
|
|
|
+ @ApiModelProperty(value = "密码,密码不得超过32位")
|
|
|
@Length(max = 32,message = "密码不得超过32位",groups = {Insert.class,Update.class})
|
|
|
@TableField(updateStrategy = FieldStrategy.NEVER)
|
|
|
private String password;
|
|
|
|
|
|
- @ApiModelProperty(value = "性别")
|
|
|
+ @ApiModelProperty(value = "性别 1、男 2、女 3、未知",allowableValues = "1,2,3")
|
|
|
private SexEnum sex;
|
|
|
|
|
|
- @ApiModelProperty(value = "医生名称")
|
|
|
+ @ApiModelProperty(value = "医生名称,医生名称不得超过32个字节")
|
|
|
@Length(max = 32,message = "医生名称不得超过32个字节",groups = {Insert.class,Update.class})
|
|
|
private String realName;
|
|
|
|
|
|
- @ApiModelProperty(value = "职位")
|
|
|
+ @ApiModelProperty(value = "职位,职位不得超过32个字节")
|
|
|
@Length(max = 32,message = "职位不得超过32个字节",groups = {Insert.class,Update.class})
|
|
|
private String post;
|
|
|
|
|
|
@ApiModelProperty(value = "头像")
|
|
|
private String avatar;
|
|
|
|
|
|
- @ApiModelProperty(value = "个人简历")
|
|
|
+ @ApiModelProperty(value = "个人简历,个人简历不得超过255个字节")
|
|
|
@Length(max = 32,message = "个人简历不得超过255个字节",groups = {Insert.class,Update.class})
|
|
|
private String resume;
|
|
|
|
|
|
- @ApiModelProperty(value = "状态")
|
|
|
+ @ApiModelProperty(value = "状态 0、正常 1、停用",allowableValues = "0,1")
|
|
|
private StatusEnum status;
|
|
|
|
|
|
- @ApiModelProperty(value = "专业擅长")
|
|
|
+ @ApiModelProperty(value = "专业擅长,专业擅长不得超过255个字节")
|
|
|
@Length(max = 32,message = "专业擅长不得超过255个字节",groups = {Insert.class,Update.class})
|
|
|
private String skilled;
|
|
|
|
|
|
+ @ApiModelProperty(value = "科室,科室不得超过64个字节")
|
|
|
+ @Length(max = 32,message = "科室不得超过64个字节",groups = {Insert.class,Update.class})
|
|
|
+ private String dept;
|
|
|
+
|
|
|
+
|
|
|
@Getter
|
|
|
@TableField(value = "tenant_id",insertStrategy = FieldStrategy.NEVER,updateStrategy = FieldStrategy.NEVER,typeHandler = TenantNameHandler.class)
|
|
|
private String tenantName;
|
|
|
|
|
|
|
|
|
+ @TableField(fill = FieldFill.INSERT)
|
|
|
+ @ApiModelProperty(hidden = true)
|
|
|
+ @TableLogic(value = "0",delval = "1")
|
|
|
+ private Boolean isDel;
|
|
|
}
|