forked from gzzfw/backEnd/gz-dyh

liyj
2024-08-28 1ffe4356a2195d1404b740040a7e9e63aac40255
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
package cn.huge.module.client.api;
 
import cn.huge.base.common.bo.ReturnBO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
 
/**
 * @title: 客户用户中心微服务调用接口
 * @description: 客户用户中心微服务调用接口
 * @company: hugeinfo
 * @author: liyj
 * @time: 2021-11-05 16:51:48
 * @version: 1.0.0
 */
@FeignClient(name = "dyh-cust")
public interface CustClient {
 
    /**
     * 内部用户-获取登录用户
     * @url {ctx}/api/v1/ctUser/clientGetUser?userId=
     * @param userId 登录用户编号
     * @return ReturnBO
     */
    @GetMapping("/api/v1/ctUser/clientGetUser")
    ReturnBO clientGetUser(@RequestParam("userId") String userId);
 
    /**
     * 内部用户-获取登录用户
     * @url {ctx}/api/v1/ctUser/clientGetUserAll?userId=
     * @param userId 登录用户编号
     * @return
     */
    @GetMapping("/api/v1/ctUser/clientGetUserAll")
    ReturnBO clientGetUserAll(@RequestParam("userId") String userId);
 
    /**
     * 当事人-获取登录用户
     * @url {ctx}/api/v1/paUser/clientGetUserAll?userId=
     * @param userId 登录用户编号
     * @return ReturnBO
     */
    @GetMapping("/api/v1/paUser/clientGetUserAll")
    ReturnBO paclientGetUser(@RequestParam("userId") String userId);
 
    /**
     * 根据组织和角色查询
     * @url {ctx}/api/v1/ctUser/listUserByUnitRole
     * @return unitId 组织编号
     * @return roleCode 角色代码
     * @return ReturnBO
     */
    @GetMapping("/api/v1/ctUser/listUserByUnitRole")
    ReturnBO listUserByUnitRole(@RequestParam(value = "unitId") String unitId, @RequestParam(value = "roleCode") String roleCode);
 
    /**
     * 根据部门和角色查询
     * @url {ctx}/api/v1/ctUser/listUserByDeptRole
     * @return deptId 部门编号
     * @return roleCode 角色代码
     * @return ReturnBO
     */
    @GetMapping("/api/v1/ctUser/listUserByDeptRole")
    ReturnBO listUserByDeptRole(@RequestParam(value = "deptId") String deptId, @RequestParam(value = "roleCode") String roleCode);
 
    /**
     * 查询客户下的法院
     * @url {ctx}/api/v1/ctUnit/listCourt1
     * @param userId 用户编号
     * @return ReturnBO
     */
    @GetMapping("/api/v1/ctUnit/listCourt1")
    ReturnBO listCourt1(@RequestParam(value = "userId") String userId);
}