无关风月
2025-05-08 9486766c806fe1d9e082b2fd02ea1cc558f1b443
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
package com.dsh.course.feignClient.account;
 
import com.dsh.course.feignClient.account.model.Coach;
import com.dsh.course.feignClient.account.model.CoachSerchVO;
import com.dsh.guns.modular.system.model.CoachChangeStateVO;
import com.dsh.guns.modular.system.model.CoachQuery;
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 17:58
 */
@FeignClient("mb-cloud-account")
public interface CoachClient {
 
    /**根据运营商id查询教练
     */
    @PostMapping("/coach/queryCoachByOperatorId")
    List<Coach> queryCoachByOperatorId(@RequestBody Integer operatorId);
    /**
     * 上/下架、删除常见问题 type=1为上架 2为下架 3为删除
     */
    @RequestMapping("/coach/changeState")
    Object changeState(@RequestBody CoachChangeStateVO vo);
    /**
     * 获取教练列表数据
     */
    @PostMapping("/coach/listAll")
    List<CoachSerchVO> listAll(@RequestBody CoachQuery query);
 
 
    /**
     * 添加教练
     * @return
     */
    @RequestMapping("/base/site/addCoach")
    Object addCoach(@RequestBody Coach coach);
    /**
     * 获取所有省
     */
    @PostMapping("/coach/getProvince")
    List<Coach> getProvince();
 
    /**
     * 根据选择的省获取对应的市
     */
    @PostMapping("/coach/getCity")
    List<Coach> getCity(@RequestBody String city);
 
    /**
     * 获取城市下的所有教练
     * @param cityCode
     * @return
     */
    @PostMapping("/coach/queryCoachByCity")
    List<Coach> queryCoachByCity(String cityCode);
 
 
    /**
     * 根据id获取教练
     * @param id
     * @return
     */
    @PostMapping("/coach/queryCoachById")
    Coach queryCoachById(Integer id);
}