Documentation ¶
Overview ¶
* 2 * @Author: Nico 3 * @Date: 2020/1/31 11:20 4
Index ¶
- func Auth(input vo.AuthReq) (*vo.AuthResp, errs.SystemErrorInfo)
- func AuthOrgRole(orgId, userId int64, path string, operation string) errs.SystemErrorInfo
- func BatchGetUserDetailInfo(userIds []int64) ([]vo.PersonalInfo, errs.SystemErrorInfo)
- func BindLoginName(req orgvo.BindLoginNameReqVo) errs.SystemErrorInfo
- func CheckLoginName(req orgvo.CheckLoginNameReqVo) errs.SystemErrorInfo
- func CreateOrg(req orgvo.CreateOrgReqVo, sourceChannel, sourcePlatform string) (int64, errs.SystemErrorInfo)
- func CreateOrgRelationResource(orgId int64, creatorId int64, sourceChannel, sourcePlatform string, ...) errs.SystemErrorInfo
- func DepartmentMembers(params vo.DepartmentMemberListReq, orgId int64) ([]*vo.DepartmentMemberInfo, errs.SystemErrorInfo)
- func Departments(page uint, size uint, params *vo.DepartmentListReq, orgId int64) (*vo.DepartmentList, errs.SystemErrorInfo)
- func FeiShuAuth(input vo.FeiShuAuthReq) (*vo.FeiShuAuthResp, errs.SystemErrorInfo)
- func GeneralInitOrg(initOrgBo bo.InitOrgBo, tx sqlbuilder.Tx) (int64, errs.SystemErrorInfo)
- func GetBaseOrgInfo(sourceChannel string, orgId int64) (*bo.BaseOrgInfoBo, errs.SystemErrorInfo)
- func GetBaseOrgInfoByOutOrgId(sourceChannel string, outOrgId string) (*bo.BaseOrgInfoBo, errs.SystemErrorInfo)
- func GetBaseUserInfo(sourceChannel string, orgId int64, userId int64) (*bo.BaseUserInfoBo, errs.SystemErrorInfo)
- func GetBaseUserInfoBatch(sourceChannel string, orgId int64, userIds []int64) ([]bo.BaseUserInfoBo, errs.SystemErrorInfo)
- func GetBaseUserInfoByEmpId(sourceChannel string, orgId int64, empId string) (*bo.BaseUserInfoBo, errs.SystemErrorInfo)
- func GetCtxParameters(ctx context.Context, key string) (string, error)
- func GetCurrentUser(ctx context.Context) (*bo.CacheUserInfoBo, errs.SystemErrorInfo)
- func GetCurrentUserWithCond(ctx context.Context, orgVerify bool) (*bo.CacheUserInfoBo, errs.SystemErrorInfo)
- func GetCurrentUserWithoutOrgVerify(ctx context.Context) (*bo.CacheUserInfoBo, errs.SystemErrorInfo)
- func GetDingTalkBaseUserInfo(orgId int64, userId int64) (*bo.BaseUserInfoBo, errs.SystemErrorInfo)
- func GetDingTalkBaseUserInfoByEmpId(orgId int64, empId string) (*bo.BaseUserInfoBo, errs.SystemErrorInfo)
- func GetFsAccessToken(orgId, userId int64) (string, errs.SystemErrorInfo)
- func GetInviteCode(currentUserId int64, orgId int64, sourcePlatform string) (*orgvo.GetInviteCodeRespVoData, errs.SystemErrorInfo)
- func GetInviteInfo(inviteCode string) (*vo.GetInviteInfoResp, errs.SystemErrorInfo)
- func GetJsAPISign(input vo.JsAPISignReq) (*vo.JsAPISignResp, errs.SystemErrorInfo)
- func GetOrgBoList() ([]bo.OrganizationBo, errs.SystemErrorInfo)
- func GetOrgIdListBySourceChannel(sourceChannel string, page int, size int) ([]int64, errs.SystemErrorInfo)
- func GetOrgUserInfoListBySourceChannel(reqVo orgvo.GetOrgUserInfoListBySourceChannelReq) (*orgvo.GetOrgUserInfoListBySourceChannelRespData, errs.SystemErrorInfo)
- func GetOutUserInfoListBySourceChannel(sourceChannel string, page int, size int) ([]bo.UserOutInfoBo, errs.SystemErrorInfo)
- func GetUserConfigInfo(orgId int64, userId int64) (*bo.UserConfigBo, errs.SystemErrorInfo)
- func GetUserId(orgId int64, corpId, sourceChannel, empId string) (*vo.UserIDInfo, errs.SystemErrorInfo)
- func GetUserIds(orgId int64, corpId, sourceChannel string, empIds []string) ([]*vo.UserIDInfo, errs.SystemErrorInfo)
- func GetUserInfo(orgId int64, userId int64, sourceChannel string) (*bo.UserInfoBo, errs.SystemErrorInfo)
- func GetUserInfoByUserIds(input orgvo.GetUserInfoByUserIdsReqVo) (*[]orgvo.GetUserInfoByUserIdsRespVo, errs.SystemErrorInfo)
- func GetUserInfoListByOrg(orgId int64) ([]bo.SimpleUserInfoBo, errs.SystemErrorInfo)
- func GinContextFromContext(ctx context.Context) (*gin.Context, error)
- func InitDepartment(orgId int64, corpId string, sourceChannel string, tx sqlbuilder.Tx) errs.SystemErrorInfo
- func InitOrg(initOrgBo bo.InitOrgBo, tx sqlbuilder.Tx) (int64, errs.SystemErrorInfo)
- func IsInWhiteList(phoneNumber string) bool
- func JudgeUserIsAdmin(outOrgId string, outUserId string, sourceChannel string) bool
- func LarkInit(orgId, userId int64, sourceChannel string, sourcePlatform string) errs.SystemErrorInfo
- func NeedUpdate(updateFields []string, field string) bool
- func OrgInit(corpId string, permanentCode string, tx sqlbuilder.Tx) (int64, errs.SystemErrorInfo)
- func OrgOwnerInit(orgId int64, owner int64, tx sqlbuilder.Tx) errs.SystemErrorInfo
- func OrgSysConfigInit(tx sqlbuilder.Tx, orgId int64) errs.SystemErrorInfo
- func OrgUserList(orgId, userId int64, page, size int, input *vo.OrgUserListReq) (*vo.UserOrganizationList, errs.SystemErrorInfo)
- func OrganizationInfo(req orgvo.OrganizationInfoReqVo) (*vo.OrganizationInfoResp, errs.SystemErrorInfo)
- func PersonalInfo(orgId, userId int64, sourceChannel string) (*vo.PersonalInfo, errs.SystemErrorInfo)
- func RemoveOrgMember(reqVo orgvo.RemoveOrgMemberReq) (*vo.Void, errs.SystemErrorInfo)
- func ResetPassword(req orgvo.ResetPasswordReqVo) errs.SystemErrorInfo
- func RetrievePassword(req orgvo.RetrievePasswordReqVo) errs.SystemErrorInfo
- func ScheduleOrganizationPageList(reqVo orgvo.ScheduleOrganizationPageListReqVo) (*orgvo.ScheduleOrganizationPageListResp, errs.SystemErrorInfo)
- func SendAuthCode(req orgvo.SendAuthCodeReqVo) errs.SystemErrorInfo
- func SendSMSLoginCode(phoneNumber string) errs.SystemErrorInfo
- func SetPassword(req orgvo.SetPasswordReqVo) errs.SystemErrorInfo
- func SwitchUserOrganization(orgId, userId int64, token string) errs.SystemErrorInfo
- func TeamInit(orgId int64, tx sqlbuilder.Tx) (int64, errs.SystemErrorInfo)
- func TeamOwnerInit(teamId int64, owner int64, tx sqlbuilder.Tx) errs.SystemErrorInfo
- func TeamUserInit(orgId int64, teamId int64, userId int64, isRoot bool, tx sqlbuilder.Tx) errs.SystemErrorInfo
- func UnbindLoginName(req orgvo.UnbindLoginNameReqVo) errs.SystemErrorInfo
- func UpdateCacheUserInfoOrgId(token string, orgId int64) errs.SystemErrorInfo
- func UpdateOrgMemberCheckStatus(reqVo orgvo.UpdateOrgMemberCheckStatusReq) (*vo.Void, errs.SystemErrorInfo)
- func UpdateOrgMemberStatus(reqVo orgvo.UpdateOrgMemberStatusReq) (*vo.Void, errs.SystemErrorInfo)
- func UpdateOrganizationSetting(req orgvo.UpdateOrganizationSettingReqVo) (int64, errs.SystemErrorInfo)
- func UpdateUserConfig(orgId, userId int64, input vo.UpdateUserConfigReq) (*vo.UpdateUserConfigResp, errs.SystemErrorInfo)
- func UpdateUserDefaultProjectIdConfig(orgId, userId int64, input vo.UpdateUserDefaultProjectConfigReq) (*vo.UpdateUserConfigResp, errs.SystemErrorInfo)
- func UpdateUserInfo(orgId, userId int64, input vo.UpdateUserInfoReq) (*vo.Void, errs.SystemErrorInfo)
- func UpdateUserPcConfig(orgId, userId int64, input vo.UpdateUserPcConfigReq) (*vo.UpdateUserConfigResp, errs.SystemErrorInfo)
- func UserAlreadyRegisterHandleHook(req vo.UserLoginReq, userBo bo.UserInfoBo) errs.SystemErrorInfo
- func UserAuthCodeLogin(req vo.UserLoginReq) (*bo.UserInfoBo, errs.SystemErrorInfo)
- func UserConfigInfo(orgId, userId int64) (*vo.UserConfig, errs.SystemErrorInfo)
- func UserInitByOrg(userId string, corpId string, orgId int64, tx sqlbuilder.Tx) (int64, errs.SystemErrorInfo)
- func UserLogin(req vo.UserLoginReq) (*vo.UserLoginResp, errs.SystemErrorInfo)
- func UserOrganizationList(userId int64) (*vo.UserOrganizationListResp, errs.SystemErrorInfo)
- func UserPwdLogin(req vo.UserLoginReq) (*bo.UserInfoBo, errs.SystemErrorInfo)
- func UserQuit(req orgvo.UserQuitReqVo) errs.SystemErrorInfo
- func UserRegister(req orgvo.UserRegisterReqVo) (*vo.UserRegisterResp, errs.SystemErrorInfo)
- func VerifyCaptcha(captchaID, captchaPassword *string, phoneNumber string) errs.SystemErrorInfo
- func VerifyOrg(orgId int64, userId int64) bool
- func VerifyOrgUsers(orgId int64, userIds []int64) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AuthOrgRole ¶
func AuthOrgRole(orgId, userId int64, path string, operation string) errs.SystemErrorInfo
func BatchGetUserDetailInfo ¶
func BatchGetUserDetailInfo(userIds []int64) ([]vo.PersonalInfo, errs.SystemErrorInfo)
func BindLoginName ¶
func BindLoginName(req orgvo.BindLoginNameReqVo) errs.SystemErrorInfo
func CheckLoginName ¶
func CheckLoginName(req orgvo.CheckLoginNameReqVo) errs.SystemErrorInfo
func CreateOrg ¶
func CreateOrg(req orgvo.CreateOrgReqVo, sourceChannel, sourcePlatform string) (int64, errs.SystemErrorInfo)
func DepartmentMembers ¶
func DepartmentMembers(params vo.DepartmentMemberListReq, orgId int64) ([]*vo.DepartmentMemberInfo, errs.SystemErrorInfo)
func Departments ¶
func Departments(page uint, size uint, params *vo.DepartmentListReq, orgId int64) (*vo.DepartmentList, errs.SystemErrorInfo)
func FeiShuAuth ¶
func FeiShuAuth(input vo.FeiShuAuthReq) (*vo.FeiShuAuthResp, errs.SystemErrorInfo)
func GeneralInitOrg ¶
func GeneralInitOrg(initOrgBo bo.InitOrgBo, tx sqlbuilder.Tx) (int64, errs.SystemErrorInfo)
func GetBaseOrgInfo ¶
func GetBaseOrgInfo(sourceChannel string, orgId int64) (*bo.BaseOrgInfoBo, errs.SystemErrorInfo)
func GetBaseOrgInfoByOutOrgId ¶
func GetBaseOrgInfoByOutOrgId(sourceChannel string, outOrgId string) (*bo.BaseOrgInfoBo, errs.SystemErrorInfo)
func GetBaseUserInfo ¶
func GetBaseUserInfo(sourceChannel string, orgId int64, userId int64) (*bo.BaseUserInfoBo, errs.SystemErrorInfo)
func GetBaseUserInfoBatch ¶
func GetBaseUserInfoBatch(sourceChannel string, orgId int64, userIds []int64) ([]bo.BaseUserInfoBo, errs.SystemErrorInfo)
func GetBaseUserInfoByEmpId ¶
func GetBaseUserInfoByEmpId(sourceChannel string, orgId int64, empId string) (*bo.BaseUserInfoBo, errs.SystemErrorInfo)
func GetCurrentUser ¶
func GetCurrentUser(ctx context.Context) (*bo.CacheUserInfoBo, errs.SystemErrorInfo)
func GetCurrentUserWithCond ¶
func GetCurrentUserWithCond(ctx context.Context, orgVerify bool) (*bo.CacheUserInfoBo, errs.SystemErrorInfo)
func GetCurrentUserWithoutOrgVerify ¶
func GetCurrentUserWithoutOrgVerify(ctx context.Context) (*bo.CacheUserInfoBo, errs.SystemErrorInfo)
func GetDingTalkBaseUserInfo ¶
func GetDingTalkBaseUserInfo(orgId int64, userId int64) (*bo.BaseUserInfoBo, errs.SystemErrorInfo)
func GetDingTalkBaseUserInfoByEmpId ¶
func GetDingTalkBaseUserInfoByEmpId(orgId int64, empId string) (*bo.BaseUserInfoBo, errs.SystemErrorInfo)
func GetFsAccessToken ¶
func GetFsAccessToken(orgId, userId int64) (string, errs.SystemErrorInfo)
func GetInviteCode ¶
func GetInviteCode(currentUserId int64, orgId int64, sourcePlatform string) (*orgvo.GetInviteCodeRespVoData, errs.SystemErrorInfo)
func GetInviteInfo ¶
func GetInviteInfo(inviteCode string) (*vo.GetInviteInfoResp, errs.SystemErrorInfo)
func GetJsAPISign ¶
func GetJsAPISign(input vo.JsAPISignReq) (*vo.JsAPISignResp, errs.SystemErrorInfo)
func GetOrgBoList ¶
func GetOrgBoList() ([]bo.OrganizationBo, errs.SystemErrorInfo)
func GetOrgIdListBySourceChannel ¶
func GetOrgIdListBySourceChannel(sourceChannel string, page int, size int) ([]int64, errs.SystemErrorInfo)
通过来源获取组织id列表
func GetOrgUserInfoListBySourceChannel ¶
func GetOrgUserInfoListBySourceChannel(reqVo orgvo.GetOrgUserInfoListBySourceChannelReq) (*orgvo.GetOrgUserInfoListBySourceChannelRespData, errs.SystemErrorInfo)
func GetOutUserInfoListBySourceChannel ¶
func GetOutUserInfoListBySourceChannel(sourceChannel string, page int, size int) ([]bo.UserOutInfoBo, errs.SystemErrorInfo)
func GetUserConfigInfo ¶
func GetUserConfigInfo(orgId int64, userId int64) (*bo.UserConfigBo, errs.SystemErrorInfo)
func GetUserId ¶
func GetUserId(orgId int64, corpId, sourceChannel, empId string) (*vo.UserIDInfo, errs.SystemErrorInfo)
func GetUserIds ¶
func GetUserIds(orgId int64, corpId, sourceChannel string, empIds []string) ([]*vo.UserIDInfo, errs.SystemErrorInfo)
func GetUserInfo ¶
func GetUserInfo(orgId int64, userId int64, sourceChannel string) (*bo.UserInfoBo, errs.SystemErrorInfo)
func GetUserInfoByUserIds ¶
func GetUserInfoByUserIds(input orgvo.GetUserInfoByUserIdsReqVo) (*[]orgvo.GetUserInfoByUserIdsRespVo, errs.SystemErrorInfo)
func GetUserInfoListByOrg ¶
func GetUserInfoListByOrg(orgId int64) ([]bo.SimpleUserInfoBo, errs.SystemErrorInfo)
func InitDepartment ¶
func InitDepartment(orgId int64, corpId string, sourceChannel string, tx sqlbuilder.Tx) errs.SystemErrorInfo
func InitOrg ¶
func InitOrg(initOrgBo bo.InitOrgBo, tx sqlbuilder.Tx) (int64, errs.SystemErrorInfo)
func IsInWhiteList ¶
func JudgeUserIsAdmin ¶
func LarkInit ¶
func LarkInit(orgId, userId int64, sourceChannel string, sourcePlatform string) errs.SystemErrorInfo
初始化lark通用数据
func NeedUpdate ¶
func OrgInit ¶
func OrgInit(corpId string, permanentCode string, tx sqlbuilder.Tx) (int64, errs.SystemErrorInfo)
func OrgOwnerInit ¶
func OrgOwnerInit(orgId int64, owner int64, tx sqlbuilder.Tx) errs.SystemErrorInfo
func OrgSysConfigInit ¶
func OrgSysConfigInit(tx sqlbuilder.Tx, orgId int64) errs.SystemErrorInfo
func OrgUserList ¶
func OrgUserList(orgId, userId int64, page, size int, input *vo.OrgUserListReq) (*vo.UserOrganizationList, errs.SystemErrorInfo)
func OrganizationInfo ¶
func OrganizationInfo(req orgvo.OrganizationInfoReqVo) (*vo.OrganizationInfoResp, errs.SystemErrorInfo)
获取组织信息
func PersonalInfo ¶
func PersonalInfo(orgId, userId int64, sourceChannel string) (*vo.PersonalInfo, errs.SystemErrorInfo)
func RemoveOrgMember ¶
func RemoveOrgMember(reqVo orgvo.RemoveOrgMemberReq) (*vo.Void, errs.SystemErrorInfo)
func ResetPassword ¶
func ResetPassword(req orgvo.ResetPasswordReqVo) errs.SystemErrorInfo
func RetrievePassword ¶
func RetrievePassword(req orgvo.RetrievePasswordReqVo) errs.SystemErrorInfo
func ScheduleOrganizationPageList ¶
func ScheduleOrganizationPageList(reqVo orgvo.ScheduleOrganizationPageListReqVo) (*orgvo.ScheduleOrganizationPageListResp, errs.SystemErrorInfo)
func SendAuthCode ¶
func SendAuthCode(req orgvo.SendAuthCodeReqVo) errs.SystemErrorInfo
func SendSMSLoginCode ¶
func SendSMSLoginCode(phoneNumber string) errs.SystemErrorInfo
func SetPassword ¶
func SetPassword(req orgvo.SetPasswordReqVo) errs.SystemErrorInfo
func SwitchUserOrganization ¶
func SwitchUserOrganization(orgId, userId int64, token string) errs.SystemErrorInfo
func TeamInit ¶
func TeamInit(orgId int64, tx sqlbuilder.Tx) (int64, errs.SystemErrorInfo)
func TeamOwnerInit ¶
func TeamOwnerInit(teamId int64, owner int64, tx sqlbuilder.Tx) errs.SystemErrorInfo
func TeamUserInit ¶
func TeamUserInit(orgId int64, teamId int64, userId int64, isRoot bool, tx sqlbuilder.Tx) errs.SystemErrorInfo
func UnbindLoginName ¶
func UnbindLoginName(req orgvo.UnbindLoginNameReqVo) errs.SystemErrorInfo
func UpdateCacheUserInfoOrgId ¶
func UpdateCacheUserInfoOrgId(token string, orgId int64) errs.SystemErrorInfo
func UpdateOrgMemberCheckStatus ¶
func UpdateOrgMemberCheckStatus(reqVo orgvo.UpdateOrgMemberCheckStatusReq) (*vo.Void, errs.SystemErrorInfo)
更新成员检查状态
func UpdateOrgMemberStatus ¶
func UpdateOrgMemberStatus(reqVo orgvo.UpdateOrgMemberStatusReq) (*vo.Void, errs.SystemErrorInfo)
更新成员状态
func UpdateOrganizationSetting ¶
func UpdateOrganizationSetting(req orgvo.UpdateOrganizationSettingReqVo) (int64, errs.SystemErrorInfo)
对于自己创建的组织,暂时不支持转让
对于加入的企业只有查看全,无操作权
暂时只做基本设置
func UpdateUserConfig ¶
func UpdateUserConfig(orgId, userId int64, input vo.UpdateUserConfigReq) (*vo.UpdateUserConfigResp, errs.SystemErrorInfo)
func UpdateUserDefaultProjectIdConfig ¶
func UpdateUserDefaultProjectIdConfig(orgId, userId int64, input vo.UpdateUserDefaultProjectConfigReq) (*vo.UpdateUserConfigResp, errs.SystemErrorInfo)
func UpdateUserInfo ¶
func UpdateUserInfo(orgId, userId int64, input vo.UpdateUserInfoReq) (*vo.Void, errs.SystemErrorInfo)
func UpdateUserPcConfig ¶
func UpdateUserPcConfig(orgId, userId int64, input vo.UpdateUserPcConfigReq) (*vo.UpdateUserConfigResp, errs.SystemErrorInfo)
func UserAlreadyRegisterHandleHook ¶
func UserAlreadyRegisterHandleHook(req vo.UserLoginReq, userBo bo.UserInfoBo) errs.SystemErrorInfo
func UserAuthCodeLogin ¶
func UserAuthCodeLogin(req vo.UserLoginReq) (*bo.UserInfoBo, errs.SystemErrorInfo)
func UserConfigInfo ¶
func UserConfigInfo(orgId, userId int64) (*vo.UserConfig, errs.SystemErrorInfo)
func UserInitByOrg ¶
func UserInitByOrg(userId string, corpId string, orgId int64, tx sqlbuilder.Tx) (int64, errs.SystemErrorInfo)
func UserLogin ¶
func UserLogin(req vo.UserLoginReq) (*vo.UserLoginResp, errs.SystemErrorInfo)
func UserOrganizationList ¶
func UserOrganizationList(userId int64) (*vo.UserOrganizationListResp, errs.SystemErrorInfo)
func UserPwdLogin ¶
func UserPwdLogin(req vo.UserLoginReq) (*bo.UserInfoBo, errs.SystemErrorInfo)
用户密码登录
func UserRegister ¶
func UserRegister(req orgvo.UserRegisterReqVo) (*vo.UserRegisterResp, errs.SystemErrorInfo)
func VerifyCaptcha ¶
func VerifyCaptcha(captchaID, captchaPassword *string, phoneNumber string) errs.SystemErrorInfo
func VerifyOrgUsers ¶
Types ¶
This section is empty.
Source Files ¶
- account_service.go
- cache_org_proxy_service.go
- common_service.go
- department_service.go
- dingtalk_service.go
- feishu_service.go
- init_org_service.go
- init_service.go
- invite_service.go
- login_service.go
- org_member_service.go
- org_service.go
- register_service.go
- send_auth_code_service.go
- service.go
- service_common.go
- user_service.go
Click to show internal directories.
Click to hide internal directories.