package com.cpop.mall.business.bo;

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

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

/**
 * @author DB
 * @createTime 2023/10/25 9:21
 * @description
 */
@Data
@Accessors(chain = true)
@ApiModel(value = "商城订单下单请求对象")
public class PlaceOrderBo implements Serializable {

    /**
     * 主键
     */
    @NotBlank(message = "主键不能为空")
    @ApiModelProperty(value = "主键",required = true)
    private String id;

    /**
     * 收货人名
     */
    @NotBlank(message = "收货人名不能为空")
    @ApiModelProperty(value = "收货人名",required = true)
    private String receiveName;

    /**
     * 收货人电话
     */
    @NotBlank(message = "收货人电话不能为空")
    @ApiModelProperty(value = "收货人电话",required = true)
    private String receivePhone;

    /**
     * 收货地址
     */
    @NotBlank(message = "收货地址不能为空")
    @ApiModelProperty(value = "收货地址",required = true)
    private String receiveAddress;

    /**
     * 备注
     */
    @ApiModelProperty(value = "备注")
    private String remarks;

    /**
     * 支付类型
     */
    @NotNull(message = "支付类型不能为空")
    @ApiModelProperty(value = "支付方式(0:微信支付;1:积分支付)",required = true)
    private Integer payType;

}
