| | |
| | | package com.dsh.competition.controller; |
| | | |
| | | |
| | | import com.dsh.competition.feignclient.model.ClassDataDetails; |
| | | import com.dsh.competition.feignclient.model.PurchaseRecordVo; |
| | | import com.dsh.competition.service.UserCompetitionService; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * <p> |
| | |
| | | * @since 2023-06-26 |
| | | */ |
| | | @RestController |
| | | @RequestMapping("/user-competition") |
| | | @RequestMapping("/user_competition") |
| | | public class UserCompetitionController { |
| | | |
| | | |
| | | @Autowired |
| | | private UserCompetitionService ucService; |
| | | |
| | | /** |
| | | * 获取报名赛事的课时扣减记录 |
| | | */ |
| | | @PostMapping("/deRecord") |
| | | public List<ClassDataDetails> getDeductionRecordOfRegistrationEvent(@RequestBody Integer appUserId,@RequestBody String startTime,@RequestBody String endTime){ |
| | | List<ClassDataDetails> details = new ArrayList<>(); |
| | | List<PurchaseRecordVo> recordVos = ucService.queryDeRecordDetails(appUserId,startTime,endTime); |
| | | |
| | | |
| | | return details; |
| | | |
| | | |
| | | } |
| | | |
| | | |
| | | } |