package com.hzs.retail.sale.param;

import lombok.Data;
import lombok.EqualsAndHashCode;

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

/**
 * 新零售注册订单入参
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class RetailOrderRegisterParam extends RetailOrderParam implements Serializable {

    /**
     * 会员姓名
     */
    @NotEmpty(message = "会员姓名不能为空")
    @Size(max = 20, message = "会员姓名不能超过20位")
    private String memberName;
    /**
     * 联系方式
     */
    @NotEmpty(message = "联系方式不能为空")
    @Size(max = 40, message = "联系方式不能超过40位")
    private String phone;
    /**
     * 推荐编号
     */
    @NotEmpty(message = "推荐编号不能为空")
    @Size(max = 20, message = "推荐编号不能超过20位")
    private String parentCode;

}
