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-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>

View File

@ -1,33 +1,48 @@
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 {
* @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 {
* @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 {
* *
* @param ids * @param ids
*/ */
@GetMapping("/valid")
void validUsers(Set<Long> ids); void validUsers(Set<Long> ids);
} }