package org.dromara.system.domain.vo;

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



/**
 * 成绩视图对象 game_score
 *
 * @author zlt
 * @date 2025-07-30
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = GameScore.class)
public class GameScoreVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;
    /**
     * 成绩ID
     */
    @ExcelProperty(value = "成绩ID")
    private Long scoreId;

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

    /**
     * 项目ID
     */
    @ExcelProperty(value = "项目ID")
    private Long projectId;

    /**
     * 运动员ID
     */
    @ExcelProperty(value = "运动员ID")
    private Long athleteId;

    /**
     * 队伍ID
     */
    @ExcelProperty(value = "队伍ID")
    private Long teamId;

    /**
     * 成绩值
     */
    @ExcelProperty(value = "成绩值")
    private BigDecimal scoreValue;

    /**
     * 成绩类型
     */
    @ExcelProperty(value = "成绩类型")
    private String scoreType;

    /**
     * 名次
     */
    @ExcelProperty(value = "名次")
    private Long scoreRank;

    /**
     * 积分
     */
    @ExcelProperty(value = "积分")
    private Long scorePoint;

    /**
     * 奖项
     */
    @ExcelProperty(value = "奖项")
    private String award;

    /**
     * 附加成绩1
     */
    @ExcelProperty(value = "附加成绩1")
    private String extraScore1;

    /**
     * 附加成绩2
     */
    @ExcelProperty(value = "附加成绩2")
    private String extraScore2;

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

    /**
     * 成绩状态（0有效1无效）
     */
    @ExcelProperty(value = "成绩状态", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "0=有效,1=无效")
    private String statusFlag;

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

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


}
