无关风月
2024-07-11 eb6b6dbb35a9f029e0b7d269773685c19fd40976
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
package com.dsh.course.feignClient.account;
 
import com.dsh.course.feignClient.account.model.CoachType;
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 java.util.List;
 
/**
 * @author zhibing.pu
 * @Date 2023/8/1 17:58
 */
@FeignClient("mb-cloud-account")
public interface CoachTypeClient {
 
 
    @PostMapping("/coachType/list")
    List<CoachType> list();
 
    /**
     * 新增教练类型
     * @param
     * @return
     */
    @RequestMapping("/coachType/add")
    Object add(@RequestBody String name);
 
    /**
     * 修改教练类型
     * @param
     * @return
     */
    @RequestMapping("/coachType/update")
    Object update(@RequestBody CoachType vo);
}