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);
|
}
|