package org.dromara.system.domain.vo;

import org.dromara.common.translation.annotation.Translation;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.dromara.common.translation.constant.TransConstant;
import org.dromara.system.domain.GameEvent;
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
 *
 * @author zlt
 * @date 2025-07-30
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = GameEvent.class)
public class GameEventVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @ExcelProperty(value = "赛事ID")
    private Long eventId;

    /**
     * 赛事编号
     */
    @ExcelProperty(value = "赛事编号")
    private String eventCode;

    /**
     * 赛事名称
     */
    @ExcelProperty(value = "赛事名称")
    private String eventName;

    /**
     * 赛事类型
     */
    @ExcelProperty(value = "赛事类型", converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictType = "game_event_type")
    private String eventType;

    /**
     * 举办地点
     */
    @ExcelProperty(value = "举办地点")
    private String location;

    /**
     * 用途
     */
    @ExcelProperty(value = "用途")
    private String purpose;

    /**
     * 开始时间
     */
    @ExcelProperty(value = "开始时间")
    private Date startTime;

    /**
     * 结束时间
     */
    @ExcelProperty(value = "结束时间")
    private Date endTime;

    /**
     * 赛事链接
     */
    @ExcelProperty(value = "赛事链接")
    private String eventUrl;

    /**
     * 赛事链接Url
     */
    @Translation(type = TransConstant.OSS_ID_TO_URL, mapper = "eventUrl")
    private String eventUrlUrl;
    /**
     * 裁判码
     */
    @ExcelProperty(value = "裁判码")
    private String refereeUrl;

    /**
     * 裁判码Url
     */
    @Translation(type = TransConstant.OSS_ID_TO_URL, mapper = "refereeUrl")
    private String refereeUrlUrl;
    /**
     * 签到码
     */
    @ExcelProperty(value = "签到码")
    private String registerUrl;

    /**
     * 签到码Url
     */
    @Translation(type = TransConstant.OSS_ID_TO_URL, mapper = "registerUrl")
    private String registerUrlUrl;
    /**
     * 举办单位
     */
    @ExcelProperty(value = "举办单位")
    private String unit;

    /**
     * 是否默认赛事
     */
    @ExcelProperty(value = "是否默认赛事", converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictType = "sys_yes_no")
    private String isDefault;

    /**
     * 创建时间
     */
    @ExcelProperty(value = "创建时间")
    private Date createTime;

    /**
     * 更新时间
     */
    @ExcelProperty(value = "更新时间")
    private Date updateTime;

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

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


}
