SaveUserDto.java 1.04 KB
Newer Older
凌鑫's avatar
凌鑫 committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41
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;


}