| | |
| | | import com.dsh.course.feignClient.account.model.CityListQuery; |
| | | import com.dsh.course.feignClient.account.model.TCityManager; |
| | | import org.springframework.cloud.openfeign.FeignClient; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | |
| | | @FeignClient("mb-cloud-account") |
| | | public interface CityClient { |
| | | |
| | | @PostMapping("/base/city/list") |
| | | Page<TCityManager> list(CityListQuery listQuery); |
| | | |
| | | @PostMapping("/base/city/add") |
| | | Integer add(TCityManager manager); |
| | | |
| | | @PostMapping("/base/city/getById") |
| | | TCityManager getById(Integer id); |
| | | |
| | | @PostMapping("/base/city/update") |
| | | void update(TCityManager manager); |
| | | |
| | | @PostMapping("/base/city/freeze") |
| | | void freeze(Integer id); |
| | | @PostMapping("/base/city/unfreeze") |
| | | void unfreeze(Integer id); |
| | | |
| | | |
| | | } |