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_message
 *
 * @author ruoyi
 * @date 2024-12-19
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class SysOaAiMessageBo extends BaseEntity {

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

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

    /**
     * 角色(user/assistant)
     */
    @NotBlank(message = "角色不能为空", groups = { AddGroup.class, EditGroup.class })
    private String role;

    /**
     * 消息内容
     */
    @NotBlank(message = "消息内容不能为空", groups = { AddGroup.class, EditGroup.class })
    private String content;

    /**
     * 展示类型
     */
    private String renderType;

    /**
     * 消耗token数
     */
    private Integer tokens;

    /**
     * 费用
     */
    private BigDecimal cost;

    /**
     * 消息顺序
     */
    private Integer messageOrder;

} 