package org.dromara.talk.domain.bo;

import org.dromara.talk.domain.TalkSession;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;
import java.util.Date;

/**
 * 对话会话业务对象 talk_session
 *
 * @author Lion Li
 * @date 2026-01-27
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = TalkSession.class, reverseConvertGenerate = false)
public class TalkSessionBo extends BaseEntity {

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

    /**
     * 会话唯一标识
     */
    @NotBlank(message = "会话唯一标识不能为空", groups = { AddGroup.class, EditGroup.class })
    private String sessionId;

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

    /**
     * 用户ID（创建人）
     */
    private Long userId;

    /**
     * 客户电话
     */
    private String customerPhone;

    /**
     * 对话详细数据
     */
    private String conversationJson;

    /**
     * 会话开始时间
     */
    private Date startTime;

    /**
     * 会话结束时间
     */
    private Date endTime;


}
