package com.dsh.course.feignClient.account;
|
|
import com.dsh.course.feignClient.account.model.GetUserInfoByNameOrPhone;
|
import com.dsh.guns.modular.system.model.TUser;
|
import org.springframework.cloud.openfeign.FeignClient;
|
import org.springframework.web.bind.annotation.PostMapping;
|
import org.springframework.web.bind.annotation.RequestParam;
|
|
import java.util.List;
|
import java.util.Map;
|
|
@FeignClient(value = "mb-cloud-account", path = "/tUser")
|
public interface UserClient {
|
|
@PostMapping("/getUserIdByName")
|
List<Map<String,Object>> getUserIdByName(@RequestParam("name") String name);
|
|
@PostMapping("/getUserInfoByNameOrPhone")
|
List<Map<String,Object>> getUserInfoByNameOrPhone(GetUserInfoByNameOrPhone phone);
|
|
@PostMapping("/getUserListByState")
|
List<TUser> getUserList();
|
|
|
|
}
|