package com.changfa.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

@Data
@ApiModel(value = "User对象", description = "")
public class SaveUserDto {


    @ApiModelProperty(value = "用户id")
    private Integer userId;

    @ApiModelProperty(value = "用户姓名")
    @NotEmpty(message = "用户姓名不能为空")
    private String userName;

    @ApiModelProperty(value = "登录账号")
    @NotEmpty(message = "账号不能为空")
    private String account;

    @ApiModelProperty(value = "密码",hidden = true)
    // @NotEmpty(message = "密码不能为空")
    private String password;

    @ApiModelProperty(value = "联系电话")
    private String mobilePhone;

    @ApiModelProperty(value = "【1：启动，2：禁用】")
    private Integer status;

    @ApiModelProperty(value = "所属角色")
    @NotNull(message = "所属角色不能为空")
    private Integer roleId;


}
