nickchange
2023-11-09 c036557db88c6297b9a626a892dce35c14ab8ee5
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
package com.dsh.competition.feignclient.course;
 
import com.dsh.competition.feignclient.course.model.PaymentDeductionClassHour;
import com.dsh.competition.model.PayCourseRes;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
 
import java.util.List;
 
/**
 * @author zhibing.pu
 * @date 2023/7/10 9:54
 */
@FeignClient("mb-cloud-course")
public interface CoursePackagePaymentClient {
 
 
    /**
     * 获取学员剩余课时
     * @param id
     * @return
     */
    @PostMapping("/coursePackagePayment/queryResidueClassHour")
    Integer queryResidueClassHour(Integer id);
 
 
    @PostMapping("/coursePackagePayment/queryResidueClassHourById")
    Integer queryResidueClassHourById(Long id);
 
 
    /**
     * 支付扣减学员课时
     */
    @PostMapping("/coursePackagePayment/paymentDeductionClassHour")
    void paymentDeductionClassHour(PaymentDeductionClassHour paymentDeductionClassHour);
 
 
    /**
     * 取消报名赛事后回退学员课时
     * @param paymentDeductionClassHour
     */
    @PostMapping("/coursePackagePayment/rollbackPaymentDeductionClassHour")
    void rollbackPaymentDeductionClassHour(PaymentDeductionClassHour paymentDeductionClassHour);
 
    @PostMapping("/coursePackagePayment/paymentCompetitionCourseList")
    List<PayCourseRes> paymentCompetitionCourseList(String s);
 
    @PostMapping("/coursePackagePayment/isHave")
    Integer isHave(String ids);
}