package com.czg.market.dto;

import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;

@Data
@Accessors(chain = true)
public class MkRewardCouponDTO implements Serializable {
    @NotNull(message = "用户ID不能为空")
    private Long userId;
    @NotNull(message = "优惠券ID不能为空")
    private Long couponId;
    @NotNull(message = "数量不能为空")
    @Min(value = 1, message = "数量不能小于1")
    private Integer num;

    private Long shopId;
}
