类的使用
cool.scx.ext.organization.user.User
使用User的程序包
程序包
说明
-
cool.scx.ext.organization.auth中User的使用
修饰符和类型方法说明static UserScxAuth.getLoginUser()获取登录用户static UserScxAuth.getLoginUser(io.vertx.ext.web.RoutingContext ctx) 根据唯一标识 获取 用户static UserScxAuth.getLoginUserByToken(String token) 根据 token 获取用户signup.static UserScxAuth.signupByThirdParty(String uniqueID, String accessToken, String accountType) 根据第三方注册一个新用户tryLogin.参数类型为User的cool.scx.ext.organization.auth中的方法修饰符和类型方法说明final M根据用户查询 信息final MUserInfoModelService.getByUserWithoutUserField(User user) getByUserWithoutUserField.static PermsWrapper根据用户获取 权限串cool.scx.core.vo.DataJsonsignup.signup.类型变量类型为User的cool.scx.ext.organization.auth中的方法参数参数类型为User的cool.scx.ext.organization.auth中的构造器 -
cool.scx.ext.organization.dept中User的使用
参数类型为User的cool.scx.ext.organization.dept中的方法 -
cool.scx.ext.organization.role中User的使用
参数类型为User的cool.scx.ext.organization.role中的方法 -
cool.scx.ext.organization.user中User的使用
修饰符和类型方法说明final UserUserService.changePasswordByAdminUser(String newPassword, Long id) 通过管理员修改用户密码 (不需要原密码)final UserUserService.changePasswordBySelf(String newPassword, String password) 修改当前登录用户的 密码final UserUserService.changeUsernameBySelf(String newUsername, String password) 修改当前登录用户的 用户名final UserUserService.checkNeedChangeUserByID(Long id) 根据 id 获取 用户 和 get 的区别是返回值永远不为空且只包含 [id, password, username] 三个字段 如果对应 id 的用户未找到则抛出移除final UserUserService.checkNowLoginUser()检查当前登录用户final UserUserService.checkNowLoginUserIsAdmin()检查当前用户是不是管理员UserService.saveWithDeptAndRole(User user) 保存用户 同时根据用户中的 deptIDs 字段更新 dept表注册用户尝试使用 用户名和密码进行登录UserService.tryLoginByEmailAddress(String emailAddress, String verificationCode) tryLoginByEmailAddress.UserService.tryLoginByPhoneNumber(String phoneNumber, String verificationCode) tryLoginByPhoneNumber.UserService.updateWithDeptAndRole(User user) 更新 同时根据用户中的 deptIDs 字段更新 dept表返回变量类型为User的类型的cool.scx.ext.organization.user中的方法修饰符和类型方法说明UserService.fillDeptIDsAndRoleIDsField(List<User> oldList, cool.scx.core.base.Query query) UserService.list(cool.scx.core.base.Query query, cool.scx.core.base.SelectFilter selectFilter) 参数类型为User的cool.scx.ext.organization.user中的方法修饰符和类型方法说明final voidUserService.checkPassword(User user, String password) 校验密码UserService.saveWithDeptAndRole(User user) 保存用户 同时根据用户中的 deptIDs 字段更新 dept表注册用户voidUserService.updateLastLoginDateAndIP(User user, String accountType) 更新用户的最后一次登录的 时间和ipUserService.updateWithDeptAndRole(User user) 更新 同时根据用户中的 deptIDs 字段更新 dept表类型变量类型为User的cool.scx.ext.organization.user中的方法参数修饰符和类型方法说明UserService.fillDeptIDsAndRoleIDsField(List<User> oldList, cool.scx.core.base.Query query)