New file |
| | |
| | | package com.dsh.communityWorldCup.feignclient.course; |
| | | |
| | | import com.dsh.communityWorldCup.feignclient.course.model.CoursePackageOrderStudent; |
| | | import com.dsh.communityWorldCup.model.DeductionClassHour; |
| | | import com.dsh.communityWorldCup.model.DeductionClassHourList; |
| | | import org.springframework.cloud.openfeign.FeignClient; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * @author zhibing.pu |
| | | * @Date 2024/2/22 15:26 |
| | | */ |
| | | @FeignClient("mb-cloud-course") |
| | | public interface CoursePackageOrderStudentClient { |
| | | |
| | | |
| | | /** |
| | | * 根据学院id获取剩余有效课时数据 |
| | | * @param studentId |
| | | * @return |
| | | */ |
| | | @PostMapping("/coursePackageOrderStudent/getCoursePackageOrderStudent") |
| | | List<CoursePackageOrderStudent> getCoursePackageOrderStudent(Integer studentId); |
| | | |
| | | |
| | | /** |
| | | * 扣减学员课时 |
| | | * @param deductionClassHourList |
| | | */ |
| | | @PostMapping("/coursePackageOrderStudent/deductionClassHour") |
| | | DeductionClassHourList deductionClassHour(DeductionClassHourList deductionClassHourList); |
| | | |
| | | |
| | | /** |
| | | * 回退课时后添加排课记录 |
| | | * @param deductionClassHourList |
| | | */ |
| | | @PostMapping("/coursePackageOrderStudent/backspaceClassHour") |
| | | void backspaceClassHour(DeductionClassHourList deductionClassHourList); |
| | | |
| | | } |