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);
|
}
|