package com.lesingle.edu.dto.request;

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

import java.util.List;

/**
 * 创建套餐请求 DTO
 */
@Data
@Schema(description = "套餐创建请求")
public class PackageCreateRequest {

    @NotBlank(message = "套餐名称不能为空")
    @Schema(description = "套餐名称")
    private String name;

    @Schema(description = "套餐描述")
    private String description;

    @NotNull(message = "价格不能为空")
    @Schema(description = "价格（分）")
    private Long price;

    @Schema(description = "折后价格（分）")
    private Long discountPrice;

    @Schema(description = "折扣类型")
    private String discountType;

    @NotNull(message = "适用年级不能为空")
    @Schema(description = "适用年级")
    private List<String> gradeLevels;
}
