package com.kxs.store.api.dto.kxsapp.storeOrder;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.util.List;


/**
 * 订单管理-申请机具-dto
 *
 * @author 系统
 * @date 2024-01-08 11:15:03
 */
@Data
public class ApplyMachineDTO {

    /**
     * 品牌ID
     */
    @Schema(description = "品牌ID")
    @NotNull(message = "品牌ID不能为空")
    private Integer brandId;


    /**
     * 仓库ID
     */
    @Schema(description = "仓库ID")
//    @NotNull(message = "仓库ID不能为空")
    private Integer warehouseId;


    /**
     * 提货方式 0自提 1邮寄
     */
    @Schema(description = "提货方式 0自提 1邮寄")
    private Integer getMode;


    /**
     * 申请数量
     */
    @Schema(description = "申请数量")
    @NotNull(message = "申请数量不能为空")
    private Integer applyNum;


    /**
     * 收货人
     */
    @Schema(description = "收货人")
    private String contacts;


    /**
     * 联系电话
     */
    @Schema(description = "联系电话")
    private String phone;


    /**
     * 收货地址
     */
    @Schema(description = "收货地址")
    private String address;

    /**
     * 备注
     */
    @Schema(description = "备注")
    private String remark;


    /**
     * 申请类型 0循环申请 1兑换券
     */
    @Schema(description = "申请类型 0循环申请 1兑换券")
    @NotNull(message = "申请类型不能为空")
    private Integer applyType;


    /**
     * 券码、机具号集合
     */
    @Schema(description = "券码、机具号集合")
    @NotEmpty(message = "券码、机具号集合不能为空")
    private List<String> snList;

    /**
     * 预发机列表
     */
    @Schema(description = "预发机列表")
    private List<String> advanceList;

    /**
     * 是否预发机订单 0否 1是
     */
    @Schema(description = "是否预发机订单 0否 1是")
    @NotNull(message = "是否预发机不能为空")
    private Integer isAdvance;


}
