package com.dsh.course.feignClient.other;
|
|
import com.dsh.course.dto.CreateHistoryDto;
|
import com.dsh.course.dto.GetHistoryDto;
|
import com.dsh.guns.modular.system.model.Store;
|
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;
|
|
/**
|
* 常见问题
|
*/
|
@FeignClient(value = "mb-cloud-other")
|
public interface HistoryClient {
|
|
|
@RequestMapping("base/site/getStoreByStoreStaffId")
|
List<Store> getStoreByStoreStaffId(@RequestBody Integer id);
|
|
@PostMapping("/class/hisotory")
|
void createHistory(CreateHistoryDto historyDto);
|
|
|
@PostMapping("/class/gethisotory")
|
List<GetHistoryDto> getHisory(@RequestBody Integer studentId);
|
}
|