@RestController @RequestMapping(value="/user") @Feature(cls=USER) @SystemPermission public class UserListController extends BaseServerController
NODE_ID, nodeService
Constructor and Description |
---|
UserListController(UserService userService,
UserBindWorkspaceService userBindWorkspaceService) |
Modifier and Type | Method and Description |
---|---|
cn.jiangzeyin.common.JsonMessage<com.alibaba.fastjson.JSONObject> |
addUser(String type)
编辑用户
|
String |
closeMfa(String id)
关闭用户 mfa
|
String |
deleteUser(String id)
删除用户
|
cn.jiangzeyin.common.JsonMessage<PageResultDto<UserModel>> |
getUserList()
查询所有用户
|
String |
getUserListAll()
获取所有管理员信息
get all admin user list
|
String |
restUserPwd(String id)
重置用户密码
|
String |
unlock(String id)
解锁用户锁定状态
|
checkCron, getNode, getUser, getUserByThreadLocal, getUserModel, removeAll, removeEmpty, resetInfo, resetInfo, tryGetNode
checkPathSafe, pathSafe
clearResources, createMultipart, getCookieValue, getHeader, getHeaders, getIp, getMultiRequest, getObject, getParameter, getParameter, getParameterInt, getParameterInt, getParameterLong, getParameterLong, getParameters, getParametersMap, getRefererParameter, getUnescapeParameter, getUnescapeParameter, getUnescapeParameters, getXssParameter, getXssParameter, getXssParameters, hasFile
getApplication, getAttribute, getClientIP, getHeaderMapValues, getRequest, getRequestAttributes, getResponse, getSession, getSessionAttribute, getSessionAttributeObj, removeSessionAttribute, setAttribute, setSessionAttribute, tryGetRequestAttributes
public UserListController(UserService userService, UserBindWorkspaceService userBindWorkspaceService)
@RequestMapping(value="get_user_list", method=POST, produces="application/json") @Feature(method=LIST) public cn.jiangzeyin.common.JsonMessage<PageResultDto<UserModel>> getUserList()
@RequestMapping(value="get_user_list_all", method=POST, produces="application/json") @Feature(method=LIST) public String getUserListAll()
@PostMapping(value="edit", produces="application/json") @Feature(method=EDIT) public cn.jiangzeyin.common.JsonMessage<com.alibaba.fastjson.JSONObject> addUser(String type)
type
- 操作类型@RequestMapping(value="deleteUser", method=POST, produces="application/json") @Feature(method=DEL) public String deleteUser(String id)
id
- 用户id@GetMapping(value="unlock", produces="application/json") @Feature(method=EDIT) public String unlock(@ValidatorItem String id)
id
- id@GetMapping(value="close_user_mfa", produces="application/json") @Feature(method=EDIT) @SystemPermission(superUser=true) public String closeMfa(@ValidatorItem String id)
id
- idCopyright © 2017–2022. All rights reserved.