package org.dromara.talk.domain.bo;

import org.dromara.talk.domain.WhatsAppHistory;
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;

/**
 * WhatsApp历史记录业务对象 whatsapp_history
 *
 * @author Lion Li
 * @date 2026-02-06
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = WhatsAppHistory.class, reverseConvertGenerate = false)
public class WhatsAppHistoryBo extends BaseEntity {

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

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

    /**
     * 用户账号
     */
    @NotBlank(message = "用户账号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String userAccount;

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

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

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

}
