package com.dsh.activity.feignclient.course;
|
|
import com.dsh.activity.feignclient.course.model.Course;
|
import org.springframework.cloud.openfeign.FeignClient;
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
import java.util.List;
|
|
/**
|
* @author zhibing.pu
|
* @date 2023/7/12 9:57
|
*/
|
@FeignClient("mb-cloud-course")
|
public interface CourseClient {
|
|
/**
|
* 根据id获取课程详情
|
*
|
* @param id
|
* @return
|
*/
|
@PostMapping("/course/queryCourseById")
|
Course queryCourseById(Integer id);
|
|
|
/**
|
* 根据名称获取课程数据
|
*
|
* @param name
|
* @return
|
*/
|
@PostMapping("/course/queryCourseByName")
|
List<Course> queryCourseByName(String name);
|
}
|