puzhibing
2023-07-10 e899587f6d4abdc299b82bed0c043f88276a64c3
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
package com.dsh.competition.feignclient.course;
 
import com.dsh.competition.feignclient.course.model.PaymentDeductionClassHour;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
 
/**
 * @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/paymentDeductionClassHour")
    void paymentDeductionClassHour(PaymentDeductionClassHour paymentDeductionClassHour);
 
 
    /**
     * 取消报名赛事后回退学员课时
     * @param paymentDeductionClassHour
     */
    @PostMapping("/coursePackagePayment/rollbackPaymentDeductionClassHour")
    void rollbackPaymentDeductionClassHour(PaymentDeductionClassHour paymentDeductionClassHour);
}