| | |
| | | package com.dsh.course.feignClient.course; |
| | | |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.dsh.course.feignClient.course.model.QueryCourseList; |
| | | 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); |
| | | } |