package org.dromara.talk.domain.bo;

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

/**
 * 客服配置业务对象 talk_agent
 *
 * @author Lion Li
 * @date 2026-01-27
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = TalkAgent.class, reverseConvertGenerate = false)
public class TalkAgentBo extends BaseEntity {

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

    /**
     * 客服名称
     */
    @NotBlank(message = "客服名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String name;

    /**
     * 性别（0=男 1=女）
     */
    @NotBlank(message = "性别（0=男 1=女）不能为空", groups = { AddGroup.class, EditGroup.class })
    private String gender;

    /**
     * 头像URL
     */
    private String avatarUrl;

    /**
     * 欢迎语
     */
    private String greetingMessage;

    /**
     * 状态（0=正常 1=停用）
     */
    private String status;

    /**
     * TTS发音人（字典）
     */
    private String ttsVcn;

    /**
     * TTS语速 0-100
     */
    private Long ttsSpeed;

    /**
     * TTS音调 0-100
     */
    private Long ttsPitch;

    /**
     * TTS音量 0-100
     */
    private Long ttsVolume;

    /**
     * TTS背景音开关 0=无背景音 1=有背景音
     */
    private Long ttsBgs;

    /**
     * 使用者ID
     */
    private Long userId;

}
