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