package com.xiaoniu.system.pointsgoods.dto;

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:36
 */
@Data
@Schema(description = "修改积分商品参数DTO")
public class EditPointsGoodsDTO {

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

    @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;
}
