| | |
| | | package com.dsh.course.feignClient.course; |
| | | |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.dsh.course.feignClient.course.model.*; |
| | | import com.dsh.guns.modular.system.model.EditCourseState; |
| | | import com.dsh.guns.modular.system.model.TCourse; |
| | | import org.springframework.cloud.openfeign.FeignClient; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * @author zhibing.pu |
| | |
| | | @FeignClient("mb-cloud-course") |
| | | public interface CourseClient { |
| | | |
| | | /** |
| | | * 获取课程管理列表 |
| | | * @param queryCourseList |
| | | * @return |
| | | */ |
| | | @PostMapping("/course/queryCourseLists") |
| | | Page<Map<String, Object>> queryCourseLists(QueryCourseList queryCourseList); |
| | | |
| | | |
| | | /** |
| | | * 添加课程 |
| | | * @param course |
| | | */ |
| | | @PostMapping("/course/queryCourseList") |
| | | void addCourse(TCourse course); |
| | | |
| | | |
| | | /** |
| | | * 根据id获取数据 |
| | | * @param id |
| | | * @return |
| | | */ |
| | | @PostMapping("/course/queryCourseById") |
| | | TCourse queryCourseById(Integer id); |
| | | |
| | | |
| | | /** |
| | | * 修改数据 |
| | | * @param course |
| | | */ |
| | | @PostMapping("/course/editCourse") |
| | | void editCourse(TCourse course); |
| | | |
| | | |
| | | /** |
| | | * 删除数据 |
| | | * @param id |
| | | */ |
| | | @PostMapping("/course/delCourseById") |
| | | void delCourseById(Integer id); |
| | | |
| | | |
| | | /** |
| | | * 修改数据状态 |
| | | * @param editCourseState |
| | | */ |
| | | @PostMapping("/course/editCourseState") |
| | | void editCourseState(EditCourseState editCourseState); |
| | | |
| | | |
| | | /** |
| | | * 根据类型获取数据 |
| | | * @param type |
| | | * @return |
| | | */ |
| | | @PostMapping("/course/queryCourseByType") |
| | | List<TCourse> queryCourseByType(Integer type); |
| | | |
| | | |
| | | @PostMapping("/course/queryDiscountList") |
| | | List<DiscountList> queryDiscountList(QueryDiscountList queryDiscountList); |
| | | |
| | | @PostMapping("/course/updateState") |
| | | Boolean updateState(DiscountUpdateState discountUpdateState); |
| | | |
| | | @PostMapping("/course/queryDiscountListAudit") |
| | | List<DiscountList> queryDiscountListAudit(QueryDiscountList queryDiscountList); |
| | | |
| | | @PostMapping("/course/auditDiscount") |
| | | Boolean auditDiscount(AuditDiscount auditDiscount); |
| | | |
| | | @PostMapping("/course/queryByDiscountId") |
| | | TCoursePackage queryByDiscountId(Integer id); |
| | | @PostMapping("/course/queryDiscountById") |
| | | Integer queryDiscountById(Integer id); |
| | | |
| | | @PostMapping("/course/getPageageType") |
| | | List<Map<String, Object>> getPageageType(); |
| | | |
| | | @PostMapping("/course/queryByTypeId") |
| | | List<TCoursePackage> queryByTypeId(Integer oneId); |
| | | |
| | | @PostMapping("/course/queryByConfigId") |
| | | List<Map<String, Object>> queryByConfigId(Integer oneId); |
| | | |
| | | @PostMapping("/course/queryPackageById") |
| | | List<String> queryPackageById(Integer coursePackageId); |
| | | |
| | | @PostMapping("/course/getHours") |
| | | String getHours(Integer coursePackageId1); |
| | | |
| | | } |