@RestController @RequestMapping(value="/user") public class UserBasicInfoController extends BaseServerController
NODE_ID, nodeService| Constructor and Description |
|---|
UserBasicInfoController(SystemParametersServer systemParametersServer,
UserBindWorkspaceService userBindWorkspaceService,
UserService userService) |
| Modifier and Type | Method and Description |
|---|---|
String |
bindMfa(String mfa,
String twoCode)
绑定 mfa
|
String |
closeMfa(String code)
关闭自己到 mfa 相关信息
|
String |
generateMfa() |
String |
getUserBasicInfo()
get user basic info
获取管理员基本信息接口
|
String |
myWorkspace()
查询用户自己的工作空间
|
String |
saveBasicInfo(String email,
String dingDing,
String workWx,
String code,
String name) |
String |
sendCode(String email)
发送邮箱验证
|
checkCron, getNode, getUser, getUserByThreadLocal, getUserModel, removeAll, removeEmpty, resetInfo, resetInfo, tryGetNodecheckPathSafe, pathSafeclearResources, createMultipart, getCookieValue, getHeader, getHeaders, getIp, getMultiRequest, getObject, getParameter, getParameter, getParameterInt, getParameterInt, getParameterLong, getParameterLong, getParameters, getParametersMap, getRefererParameter, getUnescapeParameter, getUnescapeParameter, getUnescapeParameters, getXssParameter, getXssParameter, getXssParameters, hasFilegetApplication, getAttribute, getClientIP, getHeaderMapValues, getRequest, getRequestAttributes, getResponse, getSession, getSessionAttribute, getSessionAttributeObj, removeSessionAttribute, setAttribute, setSessionAttribute, tryGetRequestAttributespublic UserBasicInfoController(SystemParametersServer systemParametersServer, UserBindWorkspaceService userBindWorkspaceService, UserService userService)
@RequestMapping(value="user-basic-info",
method=POST,
produces="application/json")
public String getUserBasicInfo()
@RequestMapping(value="save_basicInfo.json",
method=POST,
produces="application/json")
public String saveBasicInfo(String email,
String dingDing,
String workWx,
String code,
@ValidatorItem(value=NOT_BLANK,range="2:10",msg="\u6635\u79f0\u957f\u5ea6\u53ea\u80fd\u662f2-10")
String name)
@RequestMapping(value="sendCode.json",
method=POST,
produces="application/json")
public String sendCode(@ValidatorItem(value=EMAIL,msg="\u90ae\u7bb1\u683c\u5f0f\u4e0d\u6b63\u786e")
String email)
email - 邮箱@GetMapping(value="my_workspace",
produces="application/json")
public String myWorkspace()
@GetMapping(value="close_mfa",
produces="application/json")
public String closeMfa(@ValidatorItem
String code)
@GetMapping(value="generate_mfa",
produces="application/json")
public String generateMfa()
Copyright © 2017–2022. All rights reserved.