| | |
| | | package com.dsh.course.feignClient.communityWorldCup; |
| | | |
| | | import com.dsh.course.feignClient.communityWorldCup.Model.*; |
| | | import com.dsh.guns.modular.system.model.WorldCupQuery; |
| | | import org.springframework.cloud.openfeign.FeignClient; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.ResponseBody; |
| | | |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | |
| | | */ |
| | | @FeignClient("mb-cloud-communityWorldCup") |
| | | public interface WorldCupClient { |
| | | @PostMapping("/worldCup/getWorldCupIncome") |
| | | List<WorldCupIncomeVO> getWorldCupIncome( WorldCupQuery query); |
| | | |
| | | /** |
| | | * 门店角色:查询属于门店的学员 |
| | | * @param storeIds |
| | | * @return |
| | | */ |
| | | @PostMapping("/worldCup/getStudentIds") |
| | | List<Integer> getStudentIds(StoreIds storeIds); |
| | | /** |
| | | * 门店角色:查询属于门店的会员 |
| | | * @param storeIds |
| | | * @return |
| | | */ |
| | | @PostMapping("/worldCup/getUserIds") |
| | | List<Integer> getUserIds(StoreIds storeIds); |
| | | /** |
| | | * 获取比赛管理列表页数据 |
| | | * @param worldCupListAll |
| | |
| | | * @return 数据id |
| | | */ |
| | | @PostMapping("/worldCup/editWorldCup") |
| | | void editWorldCup(WorldCup worldCup); |
| | | void editWorldCup(@RequestBody String worldCup); |
| | | |
| | | |
| | | /** |
| | |
| | | void changeScore(ChangeScore changeScore); |
| | | |
| | | |
| | | @PostMapping("/worldCup/getUserGameRecordList") |
| | | Map<String, Object> getUserGameRecordList(WorldCupGameStatisticsInfoList worldCupGameStatisticsInfoList); |
| | | |
| | | |
| | | /** |
| | | * 获取用户比赛记录 |
| | | * @param userGameRecordList |
| | |
| | | */ |
| | | @PostMapping("/worldCup/userGameRecordList") |
| | | Map<String, Object> userGameRecordList(UserGameRecordList userGameRecordList); |
| | | |
| | | /** |
| | | * 获取已报名人数 |
| | | * @param id |
| | | * @return |
| | | */ |
| | | @PostMapping("/worldCup/getRegisteredNumber") |
| | | int getRegisteredNumber(Integer worldCupId); |
| | | } |