package com.ruoyi.oa.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;
import java.math.BigDecimal;

/**
 * AI对话历史业务对象 sys_oa_ai_conversation
 *
 * @author ruoyi
 * @date 2024-12-19
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class SysOaAiConversationBo extends BaseEntity {

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

    /**
     * 对话标题
     */
    @NotBlank(message = "对话标题不能为空", groups = { AddGroup.class, EditGroup.class })
    private String conversationTitle;

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

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

    /**
     * 对话状态(0:已结束 1:进行中)
     */
    private Integer status;

    /**
     * 总消耗token数
     */
    private Integer totalTokens;

    /**
     * 总费用
     */
    private BigDecimal totalCost;

} 