puzhibing
2023-06-13 7860e5cb6db60aeb82c640651998f8294635df5b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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();
 
 
 
}