framework:移除 yudao-spring-boot-starter-extension

pull/4/head
YunaiV 2022-06-09 09:55:34 +08:00
parent 6d5d72999b
commit 0745ad9254
2 changed files with 27 additions and 7 deletions

View File

@ -24,7 +24,7 @@
<module>yudao-spring-boot-starter-excel</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-dict</module>

View File

@ -1,33 +1,48 @@
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.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.List;
import java.util.Map;
import java.util.Set;
/**
* Admin API
*
* @author
*/
@FeignClient(name = ApiConstants.NAME) // TODO 芋艿fallbackFactory =
@Api(tags = "RPC 服务 - 管理员用户")
public interface AdminUserApi {
String PREFIX = ApiConstants.PREFIX + "/user";
/**
* ID
*
* @param id ID
* @return
*/
@GetMapping("/get")
AdminUserRespDTO getUser(Long id);
/**
* ID
*
* @param ids ID
* @return
*/
@GetMapping("/list")
List<AdminUserRespDTO> getUsers(Collection<Long> ids);
/**
*
*
* @param deptIds
* @return
*/
@GetMapping("/list-by-dept-id")
List<AdminUserRespDTO> getUsersByDeptIds(Collection<Long> deptIds);
/**
@ -36,6 +51,7 @@ public interface AdminUserApi {
* @param postIds
* @return
*/
@GetMapping("/list-by-post-id")
List<AdminUserRespDTO> getUsersByPostIds(Collection<Long> postIds);
/**
@ -44,7 +60,10 @@ public interface AdminUserApi {
* @param ids
* @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 {
*
* @param ids
*/
@GetMapping("/valid")
void validUsers(Set<Long> ids);
}