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

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import lombok.Data;

/**
 * 顾客优惠券查询对象
 *
 * @author admin
 * @since 2024/7/6 下午4:16
 **/
@Data
public class WxCouponQueryVo {

    private String commodityId;

    /**
     * 下单类型（-1:其他类型;0:指定单;1:随机单;2:打赏单）
     */
    @NotNull(message = "下单类型不能为空")
    @Pattern(regexp = "[0|1]", message = "订单类型必须为0或者1")
    private String placeType;

    private int commodityQuantity;
}
