package org.dromara.system.domain.bo;

import org.dromara.system.domain.GameScore;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 成绩业务对象 game_score
 *
 * @author zlt
 * @date 2025-07-30
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = GameScore.class, reverseConvertGenerate = false)
public class GameScoreBo extends BaseEntity {

    /**
     * 成绩ID
     */
    private Long scoreId;

    /**
     * 赛事ID
     */
    @NotNull(message = "赛事ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long eventId;

    /**
     * 项目ID
     */
    @NotNull(message = "项目ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long projectId;

    /**
     * 运动员ID
     */
    @NotNull(message = "运动员ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long athleteId;

    /**
     * 队伍ID
     */
    @NotNull(message = "队伍ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long teamId;

    /**
     * 成绩值
     */
//    @NotBlank(message = "成绩值不能为空", groups = { AddGroup.class, EditGroup.class })
    private BigDecimal scoreValue;

    /**
     * 成绩类型
     */
//    @NotBlank(message = "成绩类型不能为空", groups = { AddGroup.class, EditGroup.class })
    private String scoreType;

    /**
     * 名次
     */
    private Long scoreRank;

    /**
     * 积分
     */
    private Long scorePoint;

    /**
     * 奖项
     */
    private String award;

    /**
     * 附加成绩1
     */
    private String extraScore1;

    /**
     * 附加成绩2
     */
    private String extraScore2;

    /**
     * 更新时间
     */
    private Date updateTime;

    /**
     * 成绩状态（0有效1无效）
     */
//    @NotBlank(message = "成绩状态（0有效1无效）不能为空", groups = { AddGroup.class, EditGroup.class })
    private String statusFlag;

    /**
     * 状态（0正常 1停用）
     */
//    @NotBlank(message = "状态（0正常 1停用）不能为空", groups = { AddGroup.class, EditGroup.class })
    private String status;

    /**
     * 备注
     */
    private String remark;


}
