package com.kxs.product.api.dto.kxsapp.shop;

import com.kxs.product.api.model.KxsShopOrder;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 订单提交
 *
 * @author Lxq
 * @date 2023-12-20
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class PayOrderDTO extends KxsShopOrder {

    /**
     * 订单ID
     */
    @Schema(description = "订单ID")
    @NotNull(message = "订单ID不能为空")
    private Integer id;

    /**
     * 提货方式 0自提 1邮寄
     */
    @NotNull(message = "提货方式不能为空")
    @Schema(description = "提货方式 0自提 1邮寄")
    private Integer getMode;

    /**
     * 支付渠道 0余额 1支付宝 2微信 3盟主储蓄金
     */
    @NotNull(message = "支付渠道不能为空")
    @Schema(description = "支付渠道 0余额 1支付宝 2微信 3盟主储蓄金")
    private Integer payType;

    /**
     * 支付密码
     */
    @Schema(description = "支付密码")
    @NotBlank(message = "请输入支付密码")
    private String payPwd;

    /**
     * 备注
     */
    @Schema(description = "备注")
    private String remark;
    /**
     * 收货地址
     */
    @Schema(description = "收货地址")
    private String address;
    /**
     * 收货人
     */
    @Schema(description = "收货人")
    private String consignee;
    /**
     * 收货人联系方式
     */
    @Schema(description = "收货人")
    private String phone;
}
