|
|
@@ -0,0 +1,97 @@
|
|
|
+package com.zhongzheng.common.core.bo;
|
|
|
+
|
|
|
+import com.baomidou.mybatisplus.annotation.*;
|
|
|
+import com.fasterxml.jackson.annotation.JsonFormat;
|
|
|
+import com.fasterxml.jackson.annotation.JsonIgnore;
|
|
|
+import com.fasterxml.jackson.annotation.JsonProperty;
|
|
|
+import com.zhongzheng.common.annotation.Excel;
|
|
|
+import com.zhongzheng.common.annotation.Excel.ColumnType;
|
|
|
+import com.zhongzheng.common.annotation.Excel.Type;
|
|
|
+import com.zhongzheng.common.annotation.Excels;
|
|
|
+import com.zhongzheng.common.core.domain.entity.SysDept;
|
|
|
+import com.zhongzheng.common.core.domain.entity.SysRole;
|
|
|
+import io.swagger.annotations.ApiModel;
|
|
|
+import io.swagger.annotations.ApiModelProperty;
|
|
|
+import lombok.Data;
|
|
|
+import lombok.NoArgsConstructor;
|
|
|
+import lombok.experimental.Accessors;
|
|
|
+
|
|
|
+import javax.validation.constraints.Email;
|
|
|
+import javax.validation.constraints.NotBlank;
|
|
|
+import javax.validation.constraints.Size;
|
|
|
+import java.io.Serializable;
|
|
|
+import java.util.Date;
|
|
|
+import java.util.HashMap;
|
|
|
+import java.util.List;
|
|
|
+import java.util.Map;
|
|
|
+
|
|
|
+/**
|
|
|
+ * 用户对象 SysUserEditBo
|
|
|
+ *
|
|
|
+ * @author zhongzheng
|
|
|
+ */
|
|
|
+
|
|
|
+@Data
|
|
|
+@ApiModel("考试安排,包含考试指引编辑对象")
|
|
|
+public class SysUserEditBo
|
|
|
+{
|
|
|
+
|
|
|
+ /** 用户ID */
|
|
|
+ @Excel(name = "用户序号", cellType = ColumnType.NUMERIC, prompt = "用户编号")
|
|
|
+ @TableId(value = "user_id",type = IdType.AUTO)
|
|
|
+ @ApiModelProperty("用户编号")
|
|
|
+ private Long userId;
|
|
|
+
|
|
|
+ /** 部门ID */
|
|
|
+ @Excel(name = "部门编号", type = Type.IMPORT)
|
|
|
+ private Long deptId;
|
|
|
+
|
|
|
+ /** 用户账号 */
|
|
|
+ @NotBlank(message = "用户账号不能为空")
|
|
|
+ @Size(min = 0, max = 30, message = "用户账号长度不能超过30个字符")
|
|
|
+ @Excel(name = "登录名称")
|
|
|
+ @ApiModelProperty("用户账号")
|
|
|
+ private String userName;
|
|
|
+
|
|
|
+ /** 用户昵称 */
|
|
|
+ @Size(min = 0, max = 30, message = "用户昵称长度不能超过30个字符")
|
|
|
+ @Excel(name = "用户名称")
|
|
|
+ @ApiModelProperty("用户昵称")
|
|
|
+ private String nickName;
|
|
|
+
|
|
|
+ /** 用户邮箱 */
|
|
|
+ @Email(message = "邮箱格式不正确")
|
|
|
+ @Size(min = 0, max = 50, message = "邮箱长度不能超过50个字符")
|
|
|
+ @Excel(name = "用户邮箱")
|
|
|
+ @ApiModelProperty("用户邮箱")
|
|
|
+ private String email;
|
|
|
+
|
|
|
+ /** 手机号码 */
|
|
|
+ @Size(min = 0, max = 11, message = "手机号码长度不能超过11个字符")
|
|
|
+ @Excel(name = "手机号码")
|
|
|
+ @ApiModelProperty("手机号码")
|
|
|
+ private String phonenumber;
|
|
|
+
|
|
|
+ /** 用户性别 */
|
|
|
+ @Excel(name = "用户性别", readConverterExp = "0=男,1=女,2=未知")
|
|
|
+ @ApiModelProperty("用户性别")
|
|
|
+ private String sex;
|
|
|
+
|
|
|
+ /** 用户头像 */
|
|
|
+ @ApiModelProperty("用户头像")
|
|
|
+ private String avatar;
|
|
|
+
|
|
|
+ /** 密码 */
|
|
|
+ @ApiModelProperty("密码")
|
|
|
+ private String password;
|
|
|
+
|
|
|
+
|
|
|
+ /** 帐号状态(1正常 0停用) */
|
|
|
+ @Excel(name = "帐号状态", readConverterExp = "1=正常,0=停用")
|
|
|
+ @ApiModelProperty("帐号状态(1正常 0停用)")
|
|
|
+ private String status;
|
|
|
+ @ApiModelProperty("角色组")
|
|
|
+ private Long[] roleIds;
|
|
|
+ @ApiModelProperty("岗位组")
|
|
|
+ private Long[] postIds;
|
|
|
+}
|