diff --git a/cs-protocol/src/main/java/com/cf/cs/protocol/pojo/dto/RegisterUserReq.java b/cs-protocol/src/main/java/com/cf/cs/protocol/pojo/dto/RegisterUserReq.java index c93bbb9..83b25ef 100644 --- a/cs-protocol/src/main/java/com/cf/cs/protocol/pojo/dto/RegisterUserReq.java +++ b/cs-protocol/src/main/java/com/cf/cs/protocol/pojo/dto/RegisterUserReq.java @@ -1,7 +1,6 @@ package com.cf.cs.protocol.pojo.dto; import com.cf.cs.base.common.ConstValue; -import com.cf.cs.base.misc.HelperUtils; import com.cf.cs.protocol.validation.group.ValidGroups; import com.fasterxml.jackson.annotation.JsonInclude; import io.swagger.v3.oas.annotations.media.Schema; diff --git a/cs-restful/src/main/java/com/cf/cs/restful/controller/UserManagerApi.java b/cs-restful/src/main/java/com/cf/cs/restful/controller/UserManagerApi.java index 45132de..9b0fff2 100644 --- a/cs-restful/src/main/java/com/cf/cs/restful/controller/UserManagerApi.java +++ b/cs-restful/src/main/java/com/cf/cs/restful/controller/UserManagerApi.java @@ -32,6 +32,11 @@ import org.springframework.web.bind.annotation.RestController; import java.util.List; +/** + * The type User manager api. + * + * @author xajhuang @163.com + */ @RestController @Slf4j @Tag(name = "用户管理接口") @@ -43,6 +48,12 @@ public class UserManagerApi { @Resource private UserService userService; + /** + * Gets user info by id. + * + * @param mr the mr + * @return the user info by id + */ @PostMapping("/userInfo") @EncryptionProtocol @DecryptionProtocol @@ -61,6 +72,12 @@ public class UserManagerApi { } } + /** + * Gets all user info paged. + * + * @param mr the mr + * @return the all user info paged + */ @PostMapping("/userList") @EncryptionProtocol @DecryptionProtocol @@ -81,6 +98,11 @@ public class UserManagerApi { } } + /** + * Gets current user info. + * + * @return the current user info + */ @GetMapping("/userInfo") @EncryptionProtocol @OperationLogAnnotation(OperationModule = "用户管理模块", OperationType = "读取", OperationDesc = "获取当前用户信息") @@ -90,6 +112,12 @@ public class UserManagerApi { .build()); } + /** + * Create new user protocol resp. + * + * @param mr the mr + * @return the protocol resp + */ @PutMapping("/register") @EncryptionProtocol @DecryptionProtocol @@ -110,6 +138,12 @@ public class UserManagerApi { } } + /** + * Remove user protocol resp. + * + * @param mr the mr + * @return the protocol resp + */ @DeleteMapping("/remove") @EncryptionProtocol @DecryptionProtocol diff --git a/cs-restful/src/main/java/com/cf/cs/restful/service/impl/UserPermissionServiceImpl.java b/cs-restful/src/main/java/com/cf/cs/restful/service/impl/UserPermissionServiceImpl.java index 562b311..39d99d9 100644 --- a/cs-restful/src/main/java/com/cf/cs/restful/service/impl/UserPermissionServiceImpl.java +++ b/cs-restful/src/main/java/com/cf/cs/restful/service/impl/UserPermissionServiceImpl.java @@ -26,6 +26,11 @@ import java.util.Map; import static com.cf.cs.database.pojo.entity.table.ResourceDataTableDef.RESOURCE_DATA; import static com.cf.cs.database.pojo.entity.table.RoleResourceTableDef.ROLE_RESOURCE; +/** + * The type User permission service. + * + * @author xajhuang @163.com + */ @Service public class UserPermissionServiceImpl implements UserPermissionService { private final Map resourceType = new HashMap<>(); @@ -124,6 +129,9 @@ public class UserPermissionServiceImpl implements UserPermissionService { } + /** + * Init. + */ @PostConstruct public void init() { // 在组件初始化后执行的逻辑