package com.jeesharp.business.modules.member.dto;

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

/**
 * 创建 IAP VIP 订单（下单未支付）
 *
 * @author jeesharp
 */
@Data
@Schema(description = "创建IAP VIP订单")
public class VipIapCreateOrderDTO {

    @NotNull(message = "套餐不能为空")
    @Min(value = 0, message = "套餐范围0-2")
    @Max(value = 2, message = "套餐范围0-2")
    @Schema(description = "套餐：0-月卡 1-季卡 2-年卡", requiredMode = Schema.RequiredMode.REQUIRED)
    private Integer planId;
}
