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 getCoursePackageOrderStudent(Integer studentId); /** * 扣减学员课时 * @param deductionClassHourList */ @PostMapping("/coursePackageOrderStudent/deductionClassHour") boolean deductionClassHour(DeductionClassHourList deductionClassHourList); }