package com.zd.system.api.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;

@Data
@Accessors(chain = true)
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = false)
public class SysUserDto {

    /** 主键 */
    @ApiModelProperty(value = "数据主键",notes = "数据主键，数据产生修改时由前端带入，新增可忽略")
    private Long id;

    /**
     * 用户账号
     */
    @NotBlank(message = "请输入用户名")
    @ApiModelProperty(value = "登录账号",required = true)
    private String userName;

    /**
     * 密码
     */
    @NotBlank(message = "请输入密码")
    @ApiModelProperty(value = "登录密码",required = true)
    private String password;

    @ApiModelProperty(value = "登录确认密码")
    private String rePassword;

}
