package com.xiaoniu.system.pointsgoods.vo;

import com.xiaoniu.system.pointsgoods.dto.AddPointsGoodsSpecificationDTO;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.util.List;

/**
 * @Author haoxuyang
 * @Date 2024/10/29 18:30
 */
@Data
@Schema(description = "添加积分商品参数DTO")
public class AddPointsGoodsDTO {

    @Schema(description = "商品id")
    @NotNull(message = "商品id不能为空")
    private Long goodsId;

    @Schema(description = "销售开始日期")
    @NotEmpty(message = "开始日期不能为空")
    private String salesBeginTime;

    @Schema(description = "销售结束日期")
    @NotEmpty(message = "结束日期不能为空")
    private String salesEndTime;

    @Schema(description = "商品状态（1-上架 2-下架）")
    @NotNull(message = "商品状态不能为空")
    private Integer status;

    @Schema(description = "积分商品规格集合")
    private List<AddPointsGoodsSpecificationDTO> specificationsList;
}
