package com.backendsys.entity.Ai;

import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;
import lombok.Data;

@Data
public class AiChatHistoryDTO {
    public static interface Create{}
    public static interface Update{}
    public static interface Delete{}

    /**
     * ai_chat_history
     */
    private Long id;
    private Long chat_history_id;

    @Size(max = 36, message = "对话历史记录ID长度不超过 {max} 字符", groups = { AiChatHistoryDTO.Create.class, AiChatHistoryDTO.Update.class })
    @NotNull(message = "对话历史记录ID不能为空", groups = { AiChatHistoryDTO.Update.class, AiChatHistoryDTO.Delete.class })
    private String history_code;

    @NotNull(message="用户ID不能为空", groups = { AiChatHistoryDTO.Create.class, AiChatHistoryDTO.Update.class })
    private Long user_id;

    @Size(max = 255, message = "机器人编码长度不超过 {max} 字符", groups = { AiChatHistoryDTO.Create.class, AiChatHistoryDTO.Update.class })
    private String robot_code;

    @Size(max = 255, message = "最后一次对话内容长度不超过 {max} 字符", groups = { AiChatHistoryDTO.Create.class, AiChatHistoryDTO.Update.class })
    private String last_content;

    private String create_time;
    private String update_time;
}
