package com.xiaoniu.system.groupgoods.groupbuying.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.math.BigDecimal;

/**
 * @Author haoxuyang
 * @Date 2024/10/18 9:37
 */
@Data
@Schema(description = "团购商品规格信息参数DTO")
public class GroupSpecificationsInfoDTO {

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

    @Schema(description = "商品规格名称")
    @NotEmpty(message = "商品规格名称不能为空")
    private String specificationsName;

    @Schema(description = "原价")
    @NotNull(message = "商品原价不能为空")
    private BigDecimal originalPrice;

    @Schema(description = "团购价格")
    @NotNull(message = "团购价格不能为空")
    private BigDecimal groupBuyingPrice;

    @Schema(description = "分佣比例")
    @NotNull(message = "分佣比例不能为空")
    private Double commissionRatio;

    @Schema(description = "分佣金额")
    @NotNull(message = "分佣金额不能为空")
    private BigDecimal commissionAmount;

    @Schema(description = "获得积分")
    @NotNull(message = "获得积分不能为空")
    private Integer getPoints;

    @Schema(description = "状态（1-展示 2-隐藏）")
    @NotNull(message = "状态不能为空")
    private Integer status;
}
