package org.dromara.system.domain.vo;

import org.dromara.system.domain.GameEventConfig;
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;
import java.util.Date;



/**
 * 赛事配置视图对象 game_event_config
 *
 * @author zlt
 * @date 2025-07-30
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = GameEventConfig.class)
public class GameEventConfigVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @ExcelProperty(value = "主键")
    private Long configId;

    /**
     * 赛事ID（关联game_event表）
     */
    @ExcelProperty(value = "赛事ID", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "关=联game_event表")
    private Long eventId;

    /**
     * 配置类型
     */
    @ExcelProperty(value = "配置类型")
    private String configType;

    /**
     * 配置键
     */
    @ExcelProperty(value = "配置键")
    private String configKey;

    /**
     * 配置值
     */
    @ExcelProperty(value = "配置值")
    private String configValue;

    /**
     * 配置描述
     */
    @ExcelProperty(value = "配置描述")
    private String configDesc;

    /**
     * 是否启用（0是 1否）
     */
    @ExcelProperty(value = "是否启用", converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictType = "sys_yes_no")
    private String isEnabled;

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

    /**
     * 备注
     */
    @ExcelProperty(value = "备注")
    private String remark;


}
