类 WebFrameworkUtils
java.lang.Object
cn.jrack.springboot.web.core.util.WebFrameworkUtils
专属于 web 包的工具类
- 作者:
- ZhaoYang
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static Result<?>getCommonResult(javax.servlet.ServletRequest request) static Object获得当前用户的编号,从缓存中取出 注意:该方法仅限于 framework 框架使用!!!static StUserInfostatic BooleanisLogin()判断当前登录信息 注意:该方法仅限于 framework 框架使用!!!static voidlogin(Object loginId, StUserInfo userInfo) static voidlogin(Object loginId, StUserInfo userInfo, Boolean isCreate) static voidsetCommonResult(javax.servlet.ServletRequest request, Result<?> result) static voidsetLoginUserType(javax.servlet.ServletRequest request, Integer userType) 设置用户类型
-
构造器详细资料
-
WebFrameworkUtils
public WebFrameworkUtils(org.springframework.boot.autoconfigure.web.WebProperties webProperties)
-
-
方法详细资料
-
setLoginUserType
设置用户类型- 参数:
request- 请求userType- 用户类型
-
getLoginUserId
获得当前用户的编号,从缓存中取出 注意:该方法仅限于 framework 框架使用!!!- 返回:
- 用户登录Id
-
isLogin
判断当前登录信息 注意:该方法仅限于 framework 框架使用!!!- 返回:
- 用户登录Id
-
login
-
login
-
getLoginUserInfo
-
setCommonResult
-
getCommonResult
-