package com.lesingle.modules.biz.review.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.lesingle.modules.biz.review.dto.ContestJudgesForContestVo;
import com.lesingle.modules.biz.review.entity.BizContestJudge;

import java.math.BigDecimal;
import java.util.Map;

public interface IContestJudgeService extends IService<BizContestJudge> {

    BizContestJudge createJudge(Long contestId, Long judgeId, String specialty, BigDecimal weight, String description);

    /**
     * 查询某活动评委：{@link ContestJudgesForContestVo#getAssigned()} 为显式关联；
     * {@link ContestJudgesForContestVo#getImplicitPool()} 为平台默认可用未落库项。
     */
    ContestJudgesForContestVo findByContest(Long contestId);

    Map<String, Object> findDetail(Long id);

    BizContestJudge updateJudge(Long id, String specialty, BigDecimal weight, String description);

    void removeJudge(Long id);
}
