package com.dsh.course.feignclient.account;
|
|
|
import com.dsh.course.feignclient.account.model.Coach;
|
import com.dsh.course.feignclient.account.model.Student;
|
import org.springframework.cloud.openfeign.FeignClient;
|
import org.springframework.web.bind.annotation.PostMapping;
|
import org.springframework.web.bind.annotation.RequestBody;
|
|
import java.util.List;
|
|
@FeignClient(value = "mb-cloud-account")
|
public interface CoachClient {
|
|
@PostMapping("/coach/queryCoachById")
|
Coach queryCoachById(@RequestBody Integer id);
|
|
/**
|
* 根据名称模糊搜索数据
|
*
|
* @param name
|
* @return
|
*/
|
@PostMapping("/coach/queryCoachListByName")
|
List<Coach> queryCoachListByName(@RequestBody String name);
|
|
|
}
|