package org.dromara.talk.domain.vo;

import org.dromara.talk.domain.TalkAgent;
import cn.idev.excel.annotation.ExcelIgnoreUnannotated;
import cn.idev.excel.annotation.ExcelProperty;
import org.dromara.common.excel.annotation.ExcelDictFormat;
import org.dromara.common.excel.convert.ExcelDictConvert;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;


/**
 * 客服配置视图对象 talk_agent
 *
 * @author Lion Li
 * @date 2026-01-27
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = TalkAgent.class)
public class TalkAgentVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 客服ID
     */
    @ExcelProperty(value = "客服ID")
    private Long id;

    /**
     * 客服名称
     */
    @ExcelProperty(value = "客服名称")
    private String name;

    /**
     * 性别（0=男 1=女）
     */
    @ExcelProperty(value = "性别", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "0==男,1==女")
    private String gender;

    /**
     * 头像URL
     */
    @ExcelProperty(value = "头像URL")
    private String avatarUrl;

    /**
     * 欢迎语
     */
    @ExcelProperty(value = "欢迎语")
    private String greetingMessage;

    /**
     * 状态（0=正常 1=停用）
     */
    @ExcelProperty(value = "状态", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "0==正常,1==停用")
    private String status;

    /**
     * TTS发音人（字典）
     */
    @ExcelProperty(value = "TTS发音人", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "字典")
    private String ttsVcn;

    /**
     * TTS语速 0-100
     */
    @ExcelProperty(value = "TTS语速 0-100")
    private Long ttsSpeed;

    /**
     * TTS音调 0-100
     */
    @ExcelProperty(value = "TTS音调 0-100")
    private Long ttsPitch;

    /**
     * TTS音量 0-100
     */
    @ExcelProperty(value = "TTS音量 0-100")
    private Long ttsVolume;

    /**
     * TTS背景音开关 0=无背景音 1=有背景音
     */
    @ExcelProperty(value = "TTS背景音开关 0=无背景音 1=有背景音")
    private Long ttsBgs;

    /**
     * 使用者ID
     */
    @ExcelProperty(value = "使用者ID")
    private Long userId;

}
