package top.continew.admin.business.model.resp;

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

import java.io.Serial;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 免费额度配置响应信息
 *
 * @author jiay
 * @since 2025/11/17
 */
@Data
@Schema(description = "免费额度配置响应信息")
public class FreeQuotaConfigResp implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * ID
     */
    @Schema(description = "ID", example = "1")
    private Long id;

    /**
     * 类别编码
     */
    @Schema(description = "类别编码", example = "TOKEN")
    private String categoryCode;

    /**
     * 类别名称
     */
    @Schema(description = "类别名称", example = "大模型")
    private String categoryName;

    /**
     * 单位
     */
    @Schema(description = "单位", example = "token")
    private String unit;

    /**
     * 额度
     */
    @Schema(description = "额度", example = "500000")
    private BigDecimal quota;

    /**
     * 计费类型
     */
    @Schema(description = "计费类型", example = "0")
    private Integer chargeType;

    /**
     * 账户类型 1:次数 2:点数
     */
    @Schema(description = "账户类型", example = "1")
    private Integer type;

    /**
     * 描述
     */
    @Schema(description = "描述", example = "大模型对话额度")
    private String description;

    /**
     * 排序
     */
    @Schema(description = "排序", example = "1")
    private Integer sort;

    /**
     * 是否启用
     */
    @Schema(description = "是否启用", example = "true")
    private Boolean isEnabled;

    /**
     * 创建时间
     */
    @Schema(description = "创建时间", example = "2025-11-17 10:00:00")
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    @Schema(description = "更新时间", example = "2025-11-17 10:00:00")
    private LocalDateTime updateTime;
}
