From eb6b6dbb35a9f029e0b7d269773685c19fd40976 Mon Sep 17 00:00:00 2001 From: 无关风月 <443237572@qq.com> Date: 星期四, 11 七月 2024 10:47:51 +0800 Subject: [PATCH] 玩湃微信商户认证代码 --- cloud-server-competition/src/main/java/com/dsh/competition/service/IParticipantService.java | 64 ++++++++++++++++++++++++++++++++ 1 files changed, 64 insertions(+), 0 deletions(-) diff --git a/cloud-server-competition/src/main/java/com/dsh/competition/service/IParticipantService.java b/cloud-server-competition/src/main/java/com/dsh/competition/service/IParticipantService.java index f7d48f3..1ec4802 100644 --- a/cloud-server-competition/src/main/java/com/dsh/competition/service/IParticipantService.java +++ b/cloud-server-competition/src/main/java/com/dsh/competition/service/IParticipantService.java @@ -1,11 +1,75 @@ 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); } -- Gitblit v1.7.1