package com.softwarebr.nunu.json.api.user;

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

/**
 * 用户
 * @Author lilin
 * @Date 2020-02-17 14:07:07
 */
@Data
@ApiModel
public class EditMemberInfoParam {

    @ApiModelProperty(value = "头像",  example = "http://cdn.duitang.com/uploads/item/201409/08/20140908155026_RdUwH.thumb.700_0.jpeg")
    private String headImgUri;

    @ApiModelProperty(value = "昵称", example = "德玛西亚之力")
    @Length(max = 8, message = "昵称不能超过8个字符哦")
    String nickname;

    @ApiModelProperty(value = "姓名", example = "彭于晏")
    private String username;

    @ApiModelProperty(value = "企业名称", example = "贝如科技")
    private String companyName;

    @ApiModelProperty(value = "密码", example = "123456")
    @Length(min = 6, max = 12, message = "请设置密码为6-12个英文字符/数字/英文标点符号")
    private String password;

}
