package com.gxwebsoft.shop.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import java.util.List;

/**
 * 商品分润设定更新
 *
 * @author xm
 * @since 2026-05-20 14:33:00
 */
@Data
public class ShopGoodsProfitUpdateDto {

    @Schema(description = "商品ID")
    @NotEmpty(message = "商品ID不能为空！")
    private Integer goodsId;

    @Schema(description = "分润类型 1-股东分红 2-其他")
    @NotEmpty(message = "分润类型不能为空！")
    private Integer type;

    @Schema(description = "变更明细")
    private List<ShopGoodsProfitUpdateItemDto> itemList;

}
