package com.hzs.retail.login.param;

import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Size;
import java.io.Serializable;

/**
 * @Description: 新零售登录入参
 * @Author: jiang chao
 * @Time: 2024/12/11 14:15
 * @Classname: RetailMemberLogin
 * @PackageName: com.hzs.retail.login.param
 */
@Data
public class RetailLoginParam implements Serializable {

    /**
     * 会员编号
     */
    @NotEmpty(message = "会员编号或联系方式不能为空")
    @Size(message = "会员编号或联系方式不能超过{max}位", max = 40)
    private String username;

    /**
     * 登录密码
     */
    @NotEmpty(message = "登录密码不能为空")
    @Size(message = "登录密码不能超过{max}位", max = 40)
    private String password;

}
