| | |
| | | package com.dsh.competition.service; |
| | | |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.dsh.competition.entity.Participant; |
| | | import com.dsh.competition.entity.UserCompetition; |
| | | import com.dsh.competition.feignclient.model.CompetitionUser; |
| | | import com.dsh.competition.model.AddParticipant; |
| | | import com.dsh.competition.model.EditParticipant; |
| | | import com.dsh.competition.model.ParticipantVo; |
| | | import com.dsh.competition.model.SaveParticipant; |
| | | import com.dsh.competition.util.ResultUtil; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * @author zhibing.pu |
| | | * @date 2023/7/6 16:50 |
| | | */ |
| | | public interface IParticipantService extends IService<Participant> { |
| | | |
| | | |
| | | /** |
| | | * 添加参赛人员信息 |
| | | * |
| | | * @param uid |
| | | * @param addParticipant |
| | | * @return |
| | | */ |
| | | ResultUtil addParticipant(Integer uid, AddParticipant addParticipant) throws Exception; |
| | | |
| | | |
| | | /** |
| | | * 获取参赛人员列表 |
| | | * |
| | | * @param uid |
| | | * @return |
| | | * @throws Exception |
| | | */ |
| | | List<ParticipantVo> queryParticipantList(Integer uid) throws Exception; |
| | | |
| | | |
| | | /** |
| | | * 修改参赛人员信息 |
| | | * |
| | | * @param editParticipant |
| | | * @return |
| | | * @throws Exception |
| | | */ |
| | | ResultUtil editParticipant(Integer uid, EditParticipant editParticipant) throws Exception; |
| | | |
| | | |
| | | /** |
| | | * 删除参赛人员信息 |
| | | * |
| | | * @param id |
| | | * @return |
| | | * @throws Exception |
| | | */ |
| | | ResultUtil delParticipant(Integer id) throws Exception; |
| | | |
| | | |
| | | /** |
| | | * 保存学员后同步参赛人员信息 |
| | | * |
| | | * @param saveParticipant |
| | | * @throws Exception |
| | | */ |
| | | void saveParticipant(SaveParticipant saveParticipant) throws Exception; |
| | | |
| | | Page<CompetitionUser> getPeopleFromId(Page<UserCompetition> participantPage, Integer id, Integer state); |
| | | Page<CompetitionUser> getPeopleFromId1(long offset, long limit, Integer id, Integer state); |
| | | |
| | | List<CompetitionUser> getPeoples(Integer id, Integer state); |
| | | } |