package com.seer.teach.pay.admin.sys.controller.req;

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

import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotNull;

@Schema(description = "学豆配置")
@Data
public class AdminCoinConfigReq {

    private int id;

    @Schema(description = "名称")
    private String coinName;

    @Schema(description = "兑换比例")
    @NotNull(message = "兑换比例 不能为空")
    @Min(value = 0, message = "兑换比例 不能小于0")
    private Integer exchangeRatio;

    @Schema(description = "是否启动")
    private Integer isUsed;
}
