nickchange
2023-11-09 c036557db88c6297b9a626a892dce35c14ab8ee5
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
package com.dsh.course.feignClient.course;
 
import com.dsh.course.feignClient.course.model.CoursePackageTypeVO;
import com.dsh.course.feignClient.course.model.TCoursePackageType;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
 
import java.util.List;
 
/**
 * @author zhibing.pu
 * @Date 2023/8/1 12:02
 */
@FeignClient("mb-cloud-course")
public interface CoursePackageTypeClient {
 
    /**
     * 根据ids获取类型
     */
    @RequestMapping("/coursePackageType/getByCourseIds")
    List<TCoursePackageType> getByCourseIds(@RequestBody List<Integer> ids);
    /**
     * 删除课包类型
     * @param
     * @return
     */
    @RequestMapping("/coursePackageType/delete")
     Object delete(@RequestBody CoursePackageTypeVO coachType);
 
    /**
     * 修改课包类型
     * @param
     * @return
     */
    @RequestMapping("/coursePackageType/update")
     Object update(@RequestBody CoursePackageTypeVO coachType);
    /**
     * 新增课包类型
     */
    @RequestMapping("/coursePackageType/add")
     Object add(@RequestBody String name);
    /**
     * 获取课包所有类型
     * @return
     */
    @PostMapping("/coursePackageType/queryAllCoursePackageType")
    List<TCoursePackageType> queryAllCoursePackageType();
}