package com.ylx.giftCard.domain.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import javax.validation.constraints.*;

@ApiModel("购物卡购买DTO")
@Data
public class GiftCardPurchaseDTO {

    @NotNull(message = "购物卡ID不能为空")
    @Positive(message = "购物卡ID必须为正整数")
    @ApiModelProperty("购物卡ID")
    private Long id;

    @NotNull(message = "购买数量不能为空")
    @Min(value = 1, message = "购买数量必须大于0")
    @ApiModelProperty("购买数量")
    private Integer quantity;

    @ApiModelProperty("商户id")
    private String merchantId;

}
