接口 IUserClient

  • 所有已知实现类:
    IUserClientFallback

    @FeignClient(name="meteor-system-service",
                 contextId="userClient",
                 path="/user",
                 fallback=IUserClientFallback.class)
    public interface IUserClient
    User Feign接口类
    从以下版本开始:
    1.0.0
    作者:
    ths
    • 方法详细资料

      • userInfoByToken

        @GetMapping(value="userInfoByToken",
                    produces="application/json")
        cn.meteor.common.model.R<cn.meteor.common.model.UserInfo> userInfoByToken​(@RequestParam("token")
                                                                                  String token)
        根据token获取用户信息
        参数:
        token - token
        返回:
        用户信息
      • emailLogin

        @GetMapping(value="emailLogin",
                    produces="application/json")
        cn.meteor.common.model.R<String> emailLogin​(@RequestParam("email")
                                                    String email,
                                                    @RequestParam("password")
                                                    String password)
        根据email/账户登录
        参数:
        email - email
        password - password
        返回:
        token
      • getUserIdsByDeptIds

        @GetMapping(value="getUserIdsByDeptIds",
                    produces="application/json")
        cn.meteor.common.model.R<List<Long>> getUserIdsByDeptIds​(@RequestParam("deptIds")
                                                                 List<Long> deptIds)
        根据 部门ID集合 获取 用户ID集合
        参数:
        deptIds - 部门ID集合
        返回:
        用户ID集合
      • getUsersByDeptIds

        @GetMapping(value="getUsersByDeptIds",
                    produces="application/json")
        cn.meteor.common.model.R<List<cn.meteor.common.model.UserInfo>> getUsersByDeptIds​(@RequestParam("deptIds")
                                                                                          List<Long> deptIds)
        根据 部门ID递归 获取 用户集合
        参数:
        deptIds - 部门ID集合
        返回:
        用户ID集合