package com.starry.admin.modules.weichat.entity;

import com.starry.admin.modules.shop.module.constant.GiftConstant;
import java.util.List;
import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import lombok.Data;

/**
 * 新增随机订单实体
 *
 * @author admin
 */
@Data
public class PlayOrderInfoRandomAdd {

    /**
     * 陪聊性别（0:未知;1:男;2:女）
     *
     * @since 2024/5/8 15:31
     **/
    private String sex;
    /**
     * 陪聊等级
     **/
    @NotBlank(message = "商品ID不能为空")
    private String levelId;

    /**
     * 标签列表
     *
     * @since 2024/5/8 15:26
     **/
    private List<String> labels;

    @NotBlank(message = "商品ID不能为空")
    private String commodityId;

    @NotNull(message = "数量不能为空")
    @Min(value = GiftConstant.MINIMUM_SINGLE_GIFT_QUANTITY, message = "数量不能小于"
            + GiftConstant.MINIMUM_SINGLE_GIFT_QUANTITY)
    @Max(value = GiftConstant.MAXIMUM_SINGLE_GIFT_QUANTITY, message = "数量不能大于"
            + GiftConstant.MAXIMUM_SINGLE_GIFT_QUANTITY)
    private int commodityQuantity;

    @NotBlank(message = "微信号不能为空")
    private String weiChatCode;

    /**
     * 是否排除下单过的成员（0:不排除;1:排除）
     *
     * @since 2024/5/8 15:28
     **/
    private String excludeHistory;

    /**
     * 优惠券ID列表
     */
    private List<String> couponIds;

    /**
     * 备注
     */
    private String remark;
}
