44323
2024-03-06 b0254c5a17b3915eb00fdcb33f0eea222cff78ee
cloud-server-communityWorldCup/src/main/java/com/dsh/communityWorldCup/feignclient/course/CoursePackageOrderStudentClient.java
New file
@@ -0,0 +1,43 @@
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);
}