package com.zbkj.common.request;

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

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="UserExchangeRequest", description="兑换")
public class UserExchangeRequest implements Serializable {

    private static final long serialVersionUID = 3481659942630712958L;

    @ApiModelProperty(value = "编号", required = true)
    @NotBlank(message = "编号不能为空")
    private String treeProductId;

    @ApiModelProperty(value = "自提点id", required = true)
    @NotBlank(message = "请选择自提点")
    private String storeId;

    @ApiModelProperty(value = "兑换数量", required = true)
    @NotBlank(message = "兑换数量不能为空")
    private String number;

    @ApiModelProperty(value = "姓名", required = true)
    @NotBlank(message = "联系人姓名不能为空")
    private String realName;

    @ApiModelProperty(value = "手机号", required = true)
    @NotBlank(message = "联系人手机号不能为空")
    private String phone;
}
