Documentation ¶
Index ¶
- func BatchDeleteUser(userIDs ...string) wx.Action
- func BatchGetResult(dest *BatchSyncResult, jobID string) wx.Action
- func BatchInvite(dest *InviteResult, params *ParamsInvite) wx.Action
- func BatchReplaceParty(dest *BatchSyncJob, params *ParamsBatchSync) wx.Action
- func BatchReplaceUser(dest *BatchSyncJob, params *ParamsBatchSync) wx.Action
- func BatchSyncUser(dest *BatchSyncJob, params *ParamsBatchSync) wx.Action
- func Convert2OpenID(dest *ConvertResult, userID string) wx.Action
- func Convert2UserID(dest *ConvertResult, openid string) wx.Action
- func CreateDepartment(data *Department) wx.Action
- func CreateTag(data *Tag) wx.Action
- func CreateUser(data *User) wx.Action
- func DeleteDepartment(id int64) wx.Action
- func DeleteTag(tagID int64) wx.Action
- func DeleteUser(userID string) wx.Action
- func GetActiveStat(dest *ActiveStat, date string) wx.Action
- func GetDepartmentList(dest *[]*Department, id ...int64) wx.Action
- func GetJoinQRCode(dest *JoinQRCode, size ...int) wx.Action
- func GetLinkedCorpDeparmentList(dest *[]*LinkedCorpDepartment, linkedID, departmentID string) wx.Action
- func GetLinkedCorpPermList(dest *LinkedCorpPermList) wx.Action
- func GetLinkedCorpUser(dest *LinkedCorpUser, corpID, userID string) wx.Action
- func GetLinkedCorpUserList(dest *[]*LinkedCorpUser, linkedID, departmentID string, fetchChild bool) wx.Action
- func GetLinkedCorpUserSimpleList(dest *[]*LinkedCorpUser, linkedID, departmentID string, fetchChild bool) wx.Action
- func GetTag(dest *TagSpec, tagID int64) wx.Action
- func GetTagList(dest *[]*Tag) wx.Action
- func GetUser(dest *User, userID string) wx.Action
- func GetUserSimpleList(dest *[]*User, departmentID int64, fetchChild bool) wx.Action
- func UpdateDepartment(data *Department) wx.Action
- func UpdateTag(data *Tag) wx.Action
- func UpdateUser(data *User) wx.Action
- func UserList(dest *[]*User, departmentID int64, fetchChild bool) wx.Action
- type ActiveStat
- type Attr
- type AttrType
- type BatchSyncJob
- type BatchSyncResult
- type BatchSyncType
- type ConvertResult
- type Department
- type ExtAttr
- type ExternalProfile
- type Gender
- type InviteResult
- type JoinQRCode
- type LinkedCorpAttrType
- type LinkedCorpDepartment
- type LinkedCorpPermList
- type LinkedCorpUser
- type LinkedCorpUserAttr
- type LinkedCorpUserExtAttr
- type ParamsBatchSync
- type ParamsInvite
- type SyncCallback
- type SyncResult
- type Tag
- type TagSpec
- type TagUser
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BatchGetResult ¶
func BatchGetResult(dest *BatchSyncResult, jobID string) wx.Action
func BatchInvite ¶
func BatchInvite(dest *InviteResult, params *ParamsInvite) wx.Action
BatchInvite 邀请成员
func BatchReplaceParty ¶
func BatchReplaceParty(dest *BatchSyncJob, params *ParamsBatchSync) wx.Action
func BatchReplaceUser ¶
func BatchReplaceUser(dest *BatchSyncJob, params *ParamsBatchSync) wx.Action
func BatchSyncUser ¶
func BatchSyncUser(dest *BatchSyncJob, params *ParamsBatchSync) wx.Action
func Convert2OpenID ¶
func Convert2OpenID(dest *ConvertResult, userID string) wx.Action
Convert2OpenID userid转openid
func Convert2UserID ¶
func Convert2UserID(dest *ConvertResult, openid string) wx.Action
Convert2UserID openid转userid
func GetActiveStat ¶
func GetActiveStat(dest *ActiveStat, date string) wx.Action
GetActiveStat 获取企业活跃成员数
func GetDepartmentList ¶
func GetDepartmentList(dest *[]*Department, id ...int64) wx.Action
GetDepartmentList 获取部门列表
func GetJoinQRCode ¶
func GetJoinQRCode(dest *JoinQRCode, size ...int) wx.Action
GetJoinQRCode 获取加入企业二维码 尺寸: 1 - 171 x 171 2 - 399 x 399 3 - 741 x 741 4 - 2052 x 2052
func GetLinkedCorpDeparmentList ¶
func GetLinkedCorpDeparmentList(dest *[]*LinkedCorpDepartment, linkedID, departmentID string) wx.Action
func GetLinkedCorpPermList ¶
func GetLinkedCorpPermList(dest *LinkedCorpPermList) wx.Action
func GetLinkedCorpUser ¶
func GetLinkedCorpUser(dest *LinkedCorpUser, corpID, userID string) wx.Action
func GetLinkedCorpUserList ¶
func GetLinkedCorpUserList(dest *[]*LinkedCorpUser, linkedID, departmentID string, fetchChild bool) wx.Action
func GetLinkedCorpUserSimpleList ¶
func GetLinkedCorpUserSimpleList(dest *[]*LinkedCorpUser, linkedID, departmentID string, fetchChild bool) wx.Action
func GetTagList ¶
func GetUserSimpleList ¶
GetUserSimpleList 获取部门成员
Types ¶
type ActiveStat ¶
type ActiveStat struct {
Count int `json:"active_cnt"`
}
type BatchSyncJob ¶
type BatchSyncJob struct {
JobID string `json:"jobid"`
}
type BatchSyncResult ¶
type BatchSyncResult struct { Status int `json:"status"` Type BatchSyncType `json:"type"` Total int `json:"total"` Percentage int `json:"percentage"` Result []*SyncResult `json:"result"` }
type BatchSyncType ¶
type BatchSyncType string
const ( SyncUser BatchSyncType = "sync_user" ReplaceUser BatchSyncType = "replace_user" ReplaceParty BatchSyncType = "replace_party" )
type ConvertResult ¶
type Department ¶
type ExternalProfile ¶
type InviteResult ¶
type JoinQRCode ¶
type JoinQRCode struct {
URL string `json:"join_qrcode"` // 二维码链接,有效期7天
}
type LinkedCorpAttrType ¶
type LinkedCorpAttrType int
const ( LinkedCorpAttrText LinkedCorpAttrType = 0 LinkedCorpAttrWeb LinkedCorpAttrType = 1 )
type LinkedCorpDepartment ¶
type LinkedCorpPermList ¶
type LinkedCorpUser ¶
type LinkedCorpUser struct { UserID string `json:"userid"` Name string `json:"name"` Department []string `json:"department"` Mobile string `json:"mobile"` Telephone string `json:"telephone"` EMail string `json:"email"` Position string `json:"position"` CorpID string `json:"corpid"` ExtAttr *LinkedCorpUserExtAttr `json:"extattr"` }
type LinkedCorpUserAttr ¶
type LinkedCorpUserExtAttr ¶
type LinkedCorpUserExtAttr struct {
Attrs []*LinkedCorpUserAttr `json:"attrs"`
}
type ParamsBatchSync ¶
type ParamsBatchSync struct { MediaID string `json:"media_id"` ToInvite bool `json:"to_invite"` Callback *SyncCallback `json:"callback,omitempty"` }
type ParamsInvite ¶
type SyncCallback ¶
type SyncResult ¶
type User ¶
type User struct { UserID string `json:"user_id"` Name string `json:"name"` Alias string `json:"alias,omitempty"` Mobile string `json:"mobile,omitempty"` Department []int64 `json:"department"` Order []int64 `json:"order,omitempty"` Position string `json:"position,omitempty"` Gender Gender `json:"gender,omitempty"` Email string `json:"email,omitempty"` IsLeaderInDept []int64 `json:"is_leader_in_dept,omitempty"` Enable int `json:"enable,omitempty"` AvatarMediaID string `json:"avatar_mediaid,omitempty"` // 仅创建/更新可见 Avatar string `json:"avatar,omitempty"` // 仅详情可见 ThumbAvatar string `json:"thumb_avatar,omitempty"` // 仅详情可见 Telephone string `json:"telephone,omitempty"` Address string `json:"address,omitempty"` OpenUserID string `json:"open_userid,omitempty"` // 仅详情可见 MainDepartment int64 `json:"main_department,omitempty"` ExtAttr *ExtAttr `json:"extattr,omitempty"` ToInvite bool `json:"to_invite,omitempty"` // 仅创建/更新可见 Status int `json:"status,omitempty"` // 仅详情可见 QRCode string `json:"qr_code,omitempty"` // 仅详情可见 ExternalPosition string `json:"external_position,omitempty"` ExternalProfile *ExternalProfile `json:"external_profile,omitempty"` }
Click to show internal directories.
Click to hide internal directories.