| | |
| | | import org.springframework.cloud.openfeign.FeignClient; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.PathVariable; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | |
| | | |
| | | /** |
| | |
| | | @FeignClient(contextId = "SysConfigClient", value = ServiceNameConstants.SYSTEM_SERVICE, fallbackFactory = SysConfigFallbackFactory.class) |
| | | public interface SysConfigClient { |
| | | @GetMapping(value = "config/{configId}") |
| | | R<SysConfig> getInfo(@PathVariable("configId") String configId); |
| | | R<SysConfig> getInfo(@PathVariable("configId") Long configId); |
| | | |
| | | @PostMapping(value = "config/update") |
| | | void update(@RequestBody SysConfig data1); |
| | | } |