@Controller @RequestMapping(value="/core/security") public class CoreSecurityController extends BaseController
DOWNLOAD_ID_COOKIE_EXPIRY, DOWNLOAD_ID_NAME
构造器和说明 |
---|
CoreSecurityController() |
限定符和类型 | 方法和说明 |
---|---|
RetVo |
checkcode(java.lang.String vcodekey,
java.lang.String vcode)
校验验证码的是否通过
|
ZlUserToken.ValidateType |
getValidateType() |
RetVo |
kill(java.util.ArrayList<CoreUser> coreUsers) |
RetVo |
login(CoreUser coreUser,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Web用户校验统一接口
isSms 参数 判断是否手机验证码登录
|
RetVo |
loginByOpenId(java.lang.String openid,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
平台授权的openId登录
|
RetVo |
loginByWeixOpenid(java.lang.String openid,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
微信的公众号登录
|
java.lang.String |
onlineUserMain(javax.servlet.http.HttpServletRequest request)
返回主页
|
RetVo |
querymenuauth(javax.servlet.http.HttpServletRequest request)
获取当前用户的菜单权限PC端
|
RetVo |
querymenuurl(java.lang.String menuCode,
javax.servlet.http.HttpServletRequest request)
通过菜单编号获取当前用户的菜单的url
|
RetVo |
querymenuurlbyId(java.lang.String menuId,
javax.servlet.http.HttpServletRequest request)
通过菜单id获取当前用户的菜单的url信息
|
RetVo |
queryOnlineUser(java.util.Map<java.lang.String,java.lang.Object> map) |
RetVo |
queryphoneauth()
获取手机所有的权限
|
RetVo |
queryphonemenuauth(javax.servlet.http.HttpServletRequest request)
获取当前用户的菜单权限手机端
|
RetVo |
regedit(java.util.Map<java.lang.String,java.lang.Object> params,
javax.servlet.http.HttpServletRequest request)
用户注册同一接口
|
commonsDownloadEx, commonsUploadEx, getUploadNewFileName, setResponseContentType, setResponseContentTypeAndStatus, setResponseHttpStatus, writeJsonToResponse
public ZlUserToken.ValidateType getValidateType()
@ResponseBody @RequestMapping(value="login", method=POST) public RetVo login(CoreUser coreUser, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws java.lang.Exception
coreUser
- 用户实体实例request
- 请求对象response
- 相应对象java.sql.SQLException
- 出错抛出数据库异常java.lang.Exception
@ResponseBody @RequestMapping(value="checkcode", method=GET) public RetVo checkcode(@RequestParam(value="vcodekey") java.lang.String vcodekey, @RequestParam(value="vcode") java.lang.String vcode) throws java.lang.Exception
vcodekey
- 验证码唯一idvcode
- 验证码java.lang.Exception
- 出错会抛出异常@ResponseBody @RequestMapping(value="regedit", method=PUT) public RetVo regedit(@RequestBody java.util.Map<java.lang.String,java.lang.Object> params, javax.servlet.http.HttpServletRequest request) throws java.lang.Exception
params
- 参数Mparequest
- 请求对象java.lang.Exception
- 出错会抛出异常@ResponseBody @RequestMapping(value="/querymenuauth", method=POST) public RetVo querymenuauth(javax.servlet.http.HttpServletRequest request) throws java.sql.SQLException
request
- 请求对象java.sql.SQLException
- 出错抛出数据库异常@ResponseBody @RequestMapping(value="/querymenuurl") public RetVo querymenuurl(java.lang.String menuCode, javax.servlet.http.HttpServletRequest request) throws java.sql.SQLException
menuCode
- 菜单编号request
- 请求对象java.sql.SQLException
- 出错抛出数据库异常@ResponseBody @RequestMapping(value="/querymenuurlById") public RetVo querymenuurlbyId(java.lang.String menuId, javax.servlet.http.HttpServletRequest request) throws java.sql.SQLException, java.net.MalformedURLException
menuId
- 菜单idrequest
- 请求对象java.sql.SQLException
- 出错抛出数据库异常java.net.MalformedURLException
@ResponseBody @RequestMapping(value="/queryphoneauth", method=POST) public RetVo queryphoneauth() throws java.sql.SQLException
java.sql.SQLException
- 出错抛出数据库异常@ResponseBody @RequestMapping(value="/queryphonemenuauth", method=POST) public RetVo queryphonemenuauth(javax.servlet.http.HttpServletRequest request) throws java.sql.SQLException
request
- 请求对象java.sql.SQLException
- 出错抛出数据库异常@ResponseBody @RequestMapping(value="kill", method=DELETE) public RetVo kill(@RequestBody java.util.ArrayList<CoreUser> coreUsers) throws java.lang.Exception
java.lang.Exception
@ResponseBody @RequestMapping(value="/queryOnlineUser", method=POST) public RetVo queryOnlineUser(@RequestParam java.util.Map<java.lang.String,java.lang.Object> map) throws java.sql.SQLException
java.sql.SQLException
@RequestMapping(value="coreonlineuser/", method=GET) public java.lang.String onlineUserMain(javax.servlet.http.HttpServletRequest request)
request
- 请求对象@ResponseBody @RequestMapping(value="loginbyweixopenid", method=POST) public RetVo loginByWeixOpenid(java.lang.String openid, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws java.lang.Exception
openid
- 微信服务器返回的openid 格式: weixid:openidrequest
- 请求对象response
- 相应对象java.lang.Exception
- 出错会抛出异常@ResponseBody @RequestMapping(value="loginByOpenId", method=POST) public RetVo loginByOpenId(java.lang.String openid, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws java.lang.Exception
openid
- 授权openIdrequest
- 请求对象response
- 相应对象java.lang.Exception
- 出错会抛出异常