Documentation ¶
Index ¶
- func AddNewMenuToRole(req *uservo.AddNewMenuToRoleReqInput) *uservo.BoolResp
- func AddScriptTask(orgId, userId int64, req uservo.AddScriptTaskReq) *uservo.AddScriptTaskResp
- func AddUserToSysManageGroup(orgId, userId int64, req uservo.AddUserToSysManageGroupReq) *uservo.AddUserToSysManageGroupResp
- func CheckAndSetSuperAdmin(orgId int64) *uservo.CheckAndSetSuperAdminResp
- func ClearAdminGroupForOneUser(orgId, operateUid, targetUid int64) *uservo.CheckAndSetSuperAdminResp
- func GetAllDeptByIds(orgId int64, deptIds []int64) *uservo.GetAllDeptByIdsResp
- func GetAllUserByIds(orgId int64, userIds []int64) *uservo.GetAllUserByIdsResp
- func GetDeptList(orgId int64) *uservo.GetDeptListResp
- func GetFullDeptNameArrByIds(orgId int64, userIds []int64) *uservo.GetFullDeptNameArrByIdsResp
- func GetNormalAdminManageApps(orgId int64) *uservo.GetCommAdminMangeAppsResp
- func GetUserAuthority(orgId, userId int64) *uservo.GetUserAuthorityResp
- func GetUserIdsByDeptIds(req *uservo.GetUserIdsByDeptIdsReq) *uservo.GetUserIdsByDeptIdsResp
- func GetUsersCouldManage(orgId int64, appId int64) *uservo.GetUsersCouldManageResp
- func InitDefaultManageGroup(orgId, userId int64) *uservo.InitDefaultManageGroupResp
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddNewMenuToRole ¶
func AddNewMenuToRole(req *uservo.AddNewMenuToRoleReqInput) *uservo.BoolResp
AddNewMenuToRole 向组织角色中追加新的菜单权限项
func AddScriptTask ¶
func AddScriptTask(orgId, userId int64, req uservo.AddScriptTaskReq) *uservo.AddScriptTaskResp
AddScriptTask 向 schedule 服务发送新增脚本任务的请求
func AddUserToSysManageGroup ¶
func AddUserToSysManageGroup(orgId, userId int64, req uservo.AddUserToSysManageGroupReq) *uservo.AddUserToSysManageGroupResp
给系统管理组里面添加人员(没有的时候会新建)
func CheckAndSetSuperAdmin ¶
func CheckAndSetSuperAdmin(orgId int64) *uservo.CheckAndSetSuperAdminResp
CheckAndSetSuperAdmin 检查组织拥有者是否是超管,如果不是,则设置为超管。该方法一般被系统调用,如事件回调。
func ClearAdminGroupForOneUser ¶
func ClearAdminGroupForOneUser(orgId, operateUid, targetUid int64) *uservo.CheckAndSetSuperAdminResp
ClearAdminGroupForOneUser 将一个用户从该组织的所有管理组中移除
func GetAllDeptByIds ¶
func GetAllDeptByIds(orgId int64, deptIds []int64) *uservo.GetAllDeptByIdsResp
GetAllDeptByIds 根据id,批量获取部门信息
func GetAllUserByIds ¶
func GetAllUserByIds(orgId int64, userIds []int64) *uservo.GetAllUserByIdsResp
GetAllUserByIds 根据id,批量获取用户信息
func GetFullDeptNameArrByIds ¶
func GetFullDeptNameArrByIds(orgId int64, userIds []int64) *uservo.GetFullDeptNameArrByIdsResp
GetFullDeptNameArrByIds 根据id,获取全路径部门名称信息,如:["职能部", "技术部", "运维组"]
func GetNormalAdminManageApps ¶
func GetNormalAdminManageApps(orgId int64) *uservo.GetCommAdminMangeAppsResp
func GetUserAuthority ¶
func GetUserAuthority(orgId, userId int64) *uservo.GetUserAuthorityResp
GetUserAuthority 获取成员权限信息,调用的是 usercenter 的 inner `getUserAuthoritySimple` 接口。 Notice: 该方法调用 usercenter 的实现,由于要优化耗时,去除不必要的信息查询,在 usercenter 中做了裁剪,无需用到的字段则无需查询。 调整后,返回的 `*uservo.GetUserAuthorityResp` 中可用信息有:`NewData.OptAuth`, `NewData.IsSysAdmin`, `NewData.IsSubAdmin`。 如果需要用到该接口返回的其他字段,需检查 usercenter 实现中,是否进行查询和处理。
func GetUserIdsByDeptIds ¶
func GetUserIdsByDeptIds(req *uservo.GetUserIdsByDeptIdsReq) *uservo.GetUserIdsByDeptIdsResp
func GetUsersCouldManage ¶
func GetUsersCouldManage(orgId int64, appId int64) *uservo.GetUsersCouldManageResp
获取该组织具有管理员权限(超管、普通管理员)的人员
func InitDefaultManageGroup ¶
func InitDefaultManageGroup(orgId, userId int64) *uservo.InitDefaultManageGroupResp
InitDefaultManageGroup 初始化权限组
Types ¶
This section is empty.