1 package com.supwisdom.institute.backend.admin.bff.apis.remote.biz;
3 import org.springframework.cloud.openfeign.FeignClient;
4 import org.springframework.web.bind.annotation.PathVariable;
5 import org.springframework.web.bind.annotation.RequestBody;
6 import org.springframework.web.bind.annotation.RequestMapping;
7 import org.springframework.web.bind.annotation.RequestMethod;
8 import org.springframework.web.bind.annotation.RequestParam;
10 import com.alibaba.fastjson.JSONObject;
11 import com.supwisdom.institute.backend.admin.bff.apis.model.biz.Biz;
14 name = "biz-biz-remote-feign-client",
15 url = "${sw-backend-biz-api.uri}/v1/admin/biz",
16 fallbackFactory = BizRemoteFallbackFactory.class
18 public interface BizRemoteFeignClient {
20 @RequestMapping(method = RequestMethod.GET)
22 @RequestParam(name = "loadAll") boolean loadAll,
23 @RequestParam(name = "pageIndex") int pageIndex,
24 @RequestParam(name = "pageSize") int pageSize
28 @RequestMapping(method = RequestMethod.GET, path = "/{id}")
30 @PathVariable(name = "id") String id
33 @RequestMapping(method = RequestMethod.POST)
38 @RequestMapping(method = RequestMethod.PUT, path = "/{id}")
40 @PathVariable(name = "id") String id,
44 @RequestMapping(method = RequestMethod.DELETE, path = "/{id}")
46 @PathVariable(name = "id") String id