puzhibing
2024-03-06 1baad5a501915c41ebabd0b619cca6470af66bf9
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
package com.dsh.communityWorldCup.service;
 
import com.baomidou.mybatisplus.extension.service.IService;
import com.dsh.communityWorldCup.entity.WorldCupCompetitor;
import com.dsh.communityWorldCup.model.*;
import org.springframework.web.bind.annotation.RequestBody;
 
import java.util.List;
import java.util.Map;
 
/**
 * @author zhibing.pu
 * @Date 2024/2/19 15:47
 */
public interface IWorldCupCompetitorService extends IService<WorldCupCompetitor> {
 
 
    /**
     * 获取参赛人员名次
     * @param entrantRank
     * @return
     */
    EntrantRankVo getEntrantRank(EntrantRank entrantRank);
 
 
    /**
     * 获取比赛记录
     * @param matchRecord
     * @return
     */
    MatchRecordVo getMatchRecord(MatchRecord matchRecord);
 
 
    /**
     * 获取参赛排名
     * @param worldCupRank
     * @return
     */
    List<WorldCupRankVo> getWorldCupRank(WorldCupRank worldCupRank);
 
 
    /**
     * 比赛结束后通知处理逻辑
     * @param custom
     * @param red_score
     * @param blue
     */
    void endWorldCupCallback(String custom, Integer red_score, Integer blue);
 
 
    /**
     * 获取比赛排行榜列表数据
     * @param worldCupRecords
     * @return
     */
    Map<String, Object> worldCupRecordsList(WorldCupRecords worldCupRecords);
}