package com.dsh.other.feignclient.account;
|
|
import com.dsh.other.feignclient.account.model.CityManager;
|
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;
|
|
/**
|
* @author zhibing.pu
|
* @Date 2023/8/1 17:07
|
*/
|
@FeignClient("mb-cloud-account")
|
public interface CityManagerClient {
|
|
|
/**
|
* 根据id获取数据
|
* @param id
|
* @return
|
*/
|
@PostMapping("/cityManager/queryCityManagerById")
|
CityManager queryCityManagerById(Integer id);
|
|
/**
|
* 获取已有城市管理的省、市
|
*/
|
@RequestMapping("/cityManager/listAll")
|
List<CityManager> listAll();
|
|
/**
|
* 选择省 展示市
|
*/
|
@RequestMapping("/cityManager/getCity")
|
List<CityManager> getCity(@RequestBody String province);
|
|
/**
|
* 选择市区 展示全部账号
|
*/
|
@RequestMapping("/cityManager/getAccount")
|
List<CityManager> getAccount(@RequestBody String city);
|
|
}
|