package com.huimv.employment.service.conversation.dto;

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

import javax.validation.constraints.Size;

/**
 * 新建 AI 对话会话请求。
 */
@Schema(description = "新建 AI 对话会话请求")
public class ConversationCreateRequest {

    @Schema(description = "会话标题（可选，首条消息后可再更新）", example = "新对话")
    @Size(max = 200, message = "标题不能超过 200 字")
    private String title;

    @Schema(description = "对话类型，默认 employment", example = "employment",
            allowableValues = {"employment", "knowledge", "order", "cost", "attendance", "emergency"})
    private String chatType;

    @Schema(description = "自定义会话编号（可选，须全局唯一；不传则服务端生成，用作 AI session_id）",
            example = "a1b2c3d4e5f6789012345678901234")
    @Size(max = 32, message = "会话编号不能超过 32 字符")
    private String conversationNo;

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getChatType() {
        return chatType;
    }

    public void setChatType(String chatType) {
        this.chatType = chatType;
    }

    public String getConversationNo() {
        return conversationNo;
    }

    public void setConversationNo(String conversationNo) {
        this.conversationNo = conversationNo;
    }
}
