zhuguifei
2025-04-28 442928123f63ee497d766f9a7a14f0a6ee067e25
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
package org.jeecg.modules.weekly.feign;
 
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.jeecg.common.api.vo.Result;
import org.jeecg.modules.weekly.feign.model.SysDepartTreeModel;
import org.jeecg.modules.weekly.feign.model.SysUser;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
 
import java.util.Collection;
import java.util.List;
 
 
@FeignClient(value = "jeecg-system")
@Component
public interface SystemClient {
    /**
     * 查询部门tree
     *
     * @param ids
     * @return
     */
    @RequestMapping(value = "/sys/sysDepart/queryTreeList", method = RequestMethod.GET)
    public Result<List<SysDepartTreeModel>> queryTreeList(@RequestParam(name = "ids", required = false) String ids);
 
    /**
     * 查询部门下用户
     *
     * @return
     */
    @RequestMapping(value = "/sys/user/queryUserByDepId", method = RequestMethod.GET)
    public Result<List<SysUser>> queryUserByDepId(@RequestParam(name = "id", required = true) String id, @RequestParam(name = "realname", required = false) String realname);
 
    /**
     * 通过username查询用户信息
     *
     * @param userNames
     * @return
     */
    @RequestMapping(value = "/sys/user/queryByNames", method = RequestMethod.GET)
    public Result<List<SysUser>> queryByNames(@RequestParam String userNames);
 
    /**
     * 通过orgCode查询部门人员
     *
     * @param sysOrgCode
     * @return
     */
    @RequestMapping(value = "/sys/user/queryUserByDepCode", method = RequestMethod.GET)
    public Result<List<SysUser>> queryUserByDepCode(@RequestParam(name = "sysOrgCode", required = true) String sysOrgCode);
}