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

import com.starry.admin.modules.shop.module.constant.GiftConstant;
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 PlayOrderInfoGiftAdd {

    /**
     * 店员用户ID
     */
    @NotBlank(message = "打赏对象不能为空")
    private String clerkId;

    @NotBlank(message = "礼物ID不能为空")
    private String giftId;

    @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 giftQuantity;

    private String weiChatCode;

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