package org.dromara.chat.domain.bo;

import io.github.linpeilie.annotations.AutoMapper;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import org.dromara.chat.domain.ChatUsageToken;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;

import java.io.Serial;
import java.io.Serializable;

/**
 * 聊天使用令牌业务对象 chat_usage_token
 *
 * @author pengles
 */
@Data
@AutoMapper(target = ChatUsageToken.class, reverseConvertGenerate = false)
public class ChatUsageTokenBo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
    @NotNull(message = "主键ID不能为空", groups = {EditGroup.class})
    private Long id;

    /**
     * 用户ID
     */
    @NotNull(message = "用户ID不能为空", groups = {AddGroup.class, EditGroup.class})
    private Long userId;

    /**
     * 令牌数量
     */
    @NotNull(message = "令牌数量不能为空", groups = {AddGroup.class, EditGroup.class})
    private Long token;

    /**
     * 模型名称
     */
    private String modelName;

    /**
     * 总令牌数
     */
    private Long totalToken;

}