package org.dromara.chat.domain.bo;

import io.github.linpeilie.annotations.AutoMapper;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.dromara.chat.domain.ChatConfig;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import org.dromara.common.mybatis.core.domain.BaseEntity;

/**
 * 聊天配置业务对象 chat_config
 *
 * @author pengles
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = ChatConfig.class, reverseConvertGenerate = false)
public class ChatConfigBo extends BaseEntity {

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

    /**
     * 配置分类
     */
    @NotBlank(message = "配置分类不能为空", groups = {AddGroup.class, EditGroup.class})
    private String category;

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

    /**
     * 配置值
     */
    @NotBlank(message = "配置值不能为空", groups = {AddGroup.class, EditGroup.class})
    private String configValue;

    /**
     * 配置字典
     */
    private String configDict;

    /**
     * 版本号
     */
    private String version;

    /**
     * 更新IP
     */
    private String updateIp;

}