Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
Y
yudao-cloud
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
hblj
yudao-cloud
Commits
0745ad92
提交
0745ad92
authored
2 年前
作者:
YunaiV
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
framework:移除 yudao-spring-boot-starter-extension
上级
6d5d7299
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
27 行增加
和
7 行删除
+27
-7
pom.xml
yudao-framework/pom.xml
+1
-1
AdminUserApi.java
...cn/iocoder/yudao/module/system/api/user/AdminUserApi.java
+26
-6
没有找到文件。
yudao-framework/pom.xml
浏览文件 @
0745ad92
...
@@ -24,7 +24,7 @@
...
@@ -24,7 +24,7 @@
<module>
yudao-spring-boot-starter-excel
</module>
<module>
yudao-spring-boot-starter-excel
</module>
<module>
yudao-spring-boot-starter-test
</module>
<module>
yudao-spring-boot-starter-test
</module>
<module>
yudao-spring-boot-starter-extension
</module
>
<!-- <module>yudao-spring-boot-starter-extension</module>--
>
<module>
yudao-spring-boot-starter-biz-operatelog
</module>
<module>
yudao-spring-boot-starter-biz-operatelog
</module>
<module>
yudao-spring-boot-starter-biz-dict
</module>
<module>
yudao-spring-boot-starter-biz-dict
</module>
...
...
This diff is collapsed.
Click to expand it.
yudao-module-system/yudao-module-system-api/src/main/java/cn/iocoder/yudao/module/system/api/user/AdminUserApi.java
浏览文件 @
0745ad92
package
cn
.
iocoder
.
yudao
.
module
.
system
.
api
.
user
;
package
cn
.
iocoder
.
yudao
.
module
.
system
.
api
.
user
;
import
cn.iocoder.yudao.framework.common.util.collection.CollectionUtils
;
import
cn.iocoder.yudao.module.system.api.user.dto.AdminUserRespDTO
;
import
cn.iocoder.yudao.module.system.api.user.dto.AdminUserRespDTO
;
import
cn.iocoder.yudao.module.system.enums.ApiConstants
;
import
io.swagger.annotations.Api
;
import
org.springframework.cloud.openfeign.FeignClient
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
java.util.Collection
;
import
java.util.Collection
;
import
java.util.List
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.Map
;
import
java.util.Set
;
import
java.util.Set
;
/**
@FeignClient
(
name
=
ApiConstants
.
NAME
)
// TODO 芋艿:fallbackFactory =
* Admin 用户 API 接口
@Api
(
tags
=
"RPC 服务 - 管理员用户"
)
*
* @author 芋道源码
*/
public
interface
AdminUserApi
{
public
interface
AdminUserApi
{
String
PREFIX
=
ApiConstants
.
PREFIX
+
"/user"
;
/**
/**
* 通过用户 ID 查询用户
* 通过用户 ID 查询用户
*
*
* @param id 用户ID
* @param id 用户ID
* @return 用户对象信息
* @return 用户对象信息
*/
*/
@GetMapping
(
"/get"
)
AdminUserRespDTO
getUser
(
Long
id
);
AdminUserRespDTO
getUser
(
Long
id
);
/**
* 通过用户 ID 查询用户们
*
* @param ids 用户 ID 们
* @return 用户对象信息
*/
@GetMapping
(
"/list"
)
List
<
AdminUserRespDTO
>
getUsers
(
Collection
<
Long
>
ids
);
/**
/**
* 获得指定部门的用户数组
* 获得指定部门的用户数组
*
*
* @param deptIds 部门数组
* @param deptIds 部门数组
* @return 用户数组
* @return 用户数组
*/
*/
@GetMapping
(
"/list-by-dept-id"
)
List
<
AdminUserRespDTO
>
getUsersByDeptIds
(
Collection
<
Long
>
deptIds
);
List
<
AdminUserRespDTO
>
getUsersByDeptIds
(
Collection
<
Long
>
deptIds
);
/**
/**
...
@@ -36,6 +51,7 @@ public interface AdminUserApi {
...
@@ -36,6 +51,7 @@ public interface AdminUserApi {
* @param postIds 岗位数组
* @param postIds 岗位数组
* @return 用户数组
* @return 用户数组
*/
*/
@GetMapping
(
"/list-by-post-id"
)
List
<
AdminUserRespDTO
>
getUsersByPostIds
(
Collection
<
Long
>
postIds
);
List
<
AdminUserRespDTO
>
getUsersByPostIds
(
Collection
<
Long
>
postIds
);
/**
/**
...
@@ -44,7 +60,10 @@ public interface AdminUserApi {
...
@@ -44,7 +60,10 @@ public interface AdminUserApi {
* @param ids 用户编号数组
* @param ids 用户编号数组
* @return 用户 Map
* @return 用户 Map
*/
*/
Map
<
Long
,
AdminUserRespDTO
>
getUserMap
(
Collection
<
Long
>
ids
);
default
Map
<
Long
,
AdminUserRespDTO
>
getUserMap
(
Collection
<
Long
>
ids
)
{
List
<
AdminUserRespDTO
>
users
=
getUsers
(
ids
);
return
CollectionUtils
.
convertMap
(
users
,
AdminUserRespDTO:
:
getId
);
}
/**
/**
* 校验用户们是否有效。如下情况,视为无效:
* 校验用户们是否有效。如下情况,视为无效:
...
@@ -53,6 +72,7 @@ public interface AdminUserApi {
...
@@ -53,6 +72,7 @@ public interface AdminUserApi {
*
*
* @param ids 用户编号数组
* @param ids 用户编号数组
*/
*/
@GetMapping
(
"/valid"
)
void
validUsers
(
Set
<
Long
>
ids
);
void
validUsers
(
Set
<
Long
>
ids
);
}
}
This diff is collapsed.
Click to expand it.
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论