package com.sqx.modules.activity.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.util.List;

/**
 * 活动商品dto
 *
 * @author : codingliang
 * @date : 2024-06-20 16:37
 */
@Data
public class ActivityGoodsDTO {

    @ApiModelProperty(value = "活动商家id", required = true)
    @NotNull(message = "活动商家id不能为空")
    private Long activityShopId;

    @ApiModelProperty(value = "商品id集合", required = true)
    @NotNull(message = "商品id集合不能为空")
    @Size(min = 1, message = "商品id集合不能为空")
    private List<Long> goodsIds;
}
