package com.hwrj.cloud.admin.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;
import org.hibernate.validator.constraints.Length;

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

/**
 * 用户登录参数
 * Created by macro on 2018/4/26.
 */
@Data
public class UmsAdminParam {

    private Long id;

    @ApiModelProperty(value = "用户名", required = true)
    @NotBlank(message = "账号不为空")
    @Length(min=2,max=10,message="用户名过短!")
    private String username;
    @ApiModelProperty(value = "密码", required = true)
    @NotBlank(message = "密码不能为空")
    private String password;
    @ApiModelProperty(value = "用户头像")
    private String icon;
    @ApiModelProperty(value = "邮箱")
    private String email;
    @ApiModelProperty(value = "用户昵称")
    @NotBlank(message = "姓名不能为空")
    private String nickName;
    @ApiModelProperty(value = "备注")
    private String note;

    @ApiModelProperty(value = "供应商id")
    private Long compId;

    @ApiModelProperty(value = "供应商名称")
    private String compName;
}
