Documentation ¶
Index ¶
- func AddTagUser(tagID int64, userIDs []string, partyIDs []int64, result *ResultTagUserAdd) wx.Action
- func BatchDeleteUser(userIDs ...string) wx.Action
- func BatchInvite(userIDs []string, partyIDs, tagIDs []int64, result *ResultBatchInvite) wx.Action
- func BatchReplaceParty(mediaID string, callback *BatchCallback, result *ResultBatch) wx.Action
- func BatchReplaceUser(mediaID string, toInvite bool, callback *BatchCallback, result *ResultBatch) wx.Action
- func BatchSyncUser(mediaID string, toInvite bool, callback *BatchCallback, result *ResultBatch) wx.Action
- func ConvertToOpenID(userID string, result *ResultOpenIDConvert) wx.Action
- func ConvertToUserID(openid string, result *ResultUserIDConvert) wx.Action
- func CreateDepartment(params *ParamsDepartmentCreate, result *ResultDepartmentCreate) wx.Action
- func CreateTag(name string, result *ResultTagCreate) wx.Action
- func CreateUser(params *ParamsUserCreate) wx.Action
- func DeleteDepartment(id int64) wx.Action
- func DeleteTag(tagID int64) wx.Action
- func DeleteTagUser(tagID int64, userIDs []string, partyIDs []int64, result *ResultTagUserDelete) wx.Action
- func DeleteUser(userID string) wx.Action
- func ExportDepartment(encodingAESKey string, blockSize int64, result *ResultExport) wx.Action
- func ExportSimpleUser(encodingAESKey string, blockSize int64, result *ResultExport) wx.Action
- func ExportTagUser(tagID int64, encodingAESKey string, blockSize int64, result *ResultExport) wx.Action
- func ExportUser(encodingAESKey string, blockSize int64, result *ResultExport) wx.Action
- func GetActiveStat(date string, result *ResultActiveStat) wx.Action
- func GetBatchResult(jobID string, result *ResultBatchRet) wx.Action
- func GetDepartment(id int64, result *ResultDepartmentGet) wx.Action
- func GetExportResult(jobID string, result *ResultExportRet) wx.Action
- func GetJoinQRCode(size int, result *JoinQRCode) wx.Action
- func GetTagUser(tagID int64, result *ResultTagUser) wx.Action
- func GetUser(userID string, result *User) wx.Action
- func GetUserID(mobile string, result *ResultUserID) wx.Action
- func ListDepartment(id int64, result *ResultDepartmentList) wx.Action
- func ListSimpleDepartment(id int64, result *ResultSimpleDepartmentList) wx.Action
- func ListSimpleUser(departmentID int64, fetchChild int, result *ResultSimipleUserList) wx.Action
- func ListTag(result *ResultTagList) wx.Action
- func ListUser(departmentID int64, fetchChild int, result *ResultUserList) wx.Action
- func UpdateDepartment(params *ParamsDepartmentUpdate) wx.Action
- func UpdateTag(tagID int64, tagName string) wx.Action
- func UpdateUser(params *ParamsUserUpdate) wx.Action
- type Attr
- type AttrMinip
- type AttrText
- type AttrWeb
- type BatchCallback
- type BatchRet
- type BatchType
- type Department
- type ExportData
- type ExtAttr
- type ExternalProfile
- type JoinQRCode
- type ParamsActiveStat
- type ParamsBatchInvite
- type ParamsDepartmentCreate
- type ParamsDepartmentUpdate
- type ParamsExport
- type ParamsOpenIDConvert
- type ParamsPartyBatchReplace
- type ParamsTagCreate
- type ParamsTagUpdate
- type ParamsTagUserAdd
- type ParamsTagUserDelete
- type ParamsUserBatchDelete
- type ParamsUserBatchReplace
- type ParamsUserBatchSync
- type ParamsUserCreate
- type ParamsUserID
- type ParamsUserIDConvert
- type ParamsUserUpdate
- type ResultActiveStat
- type ResultBatch
- type ResultBatchInvite
- type ResultBatchRet
- type ResultDepartmentCreate
- type ResultDepartmentGet
- type ResultDepartmentList
- type ResultExport
- type ResultExportRet
- type ResultOpenIDConvert
- type ResultSimipleUserList
- type ResultSimpleDepartmentList
- type ResultTagCreate
- type ResultTagList
- type ResultTagUser
- type ResultTagUserAdd
- type ResultTagUserDelete
- type ResultUserID
- type ResultUserIDConvert
- type ResultUserList
- type SimpleDepartment
- type SimpleUser
- type Tag
- type TagUser
- type User
- type WechatChannels
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddTagUser ¶
func AddTagUser(tagID int64, userIDs []string, partyIDs []int64, result *ResultTagUserAdd) wx.Action
AddTagUser 增加标签成员
func BatchInvite ¶
func BatchInvite(userIDs []string, partyIDs, tagIDs []int64, result *ResultBatchInvite) wx.Action
BatchInvite 邀请成员
func BatchReplaceParty ¶
func BatchReplaceParty(mediaID string, callback *BatchCallback, result *ResultBatch) wx.Action
BatchReplaceParty 全量覆盖部门
func BatchReplaceUser ¶
func BatchReplaceUser(mediaID string, toInvite bool, callback *BatchCallback, result *ResultBatch) wx.Action
BatchReplaceUser 全量覆盖成员
func BatchSyncUser ¶
func BatchSyncUser(mediaID string, toInvite bool, callback *BatchCallback, result *ResultBatch) wx.Action
BatchSyncUser 增量更新成员
func ConvertToOpenID ¶
func ConvertToOpenID(userID string, result *ResultOpenIDConvert) wx.Action
ConvertToOpenID userid转openid
func ConvertToUserID ¶
func ConvertToUserID(openid string, result *ResultUserIDConvert) wx.Action
ConvertToUserID openid转userid
func CreateDepartment ¶
func CreateDepartment(params *ParamsDepartmentCreate, result *ResultDepartmentCreate) wx.Action
CreateDepartment 创建部门
func DeleteTagUser ¶
func DeleteTagUser(tagID int64, userIDs []string, partyIDs []int64, result *ResultTagUserDelete) wx.Action
DeleteTagUser 删除标签成员
func ExportDepartment ¶
func ExportDepartment(encodingAESKey string, blockSize int64, result *ResultExport) wx.Action
ExportDepartment 导出部门
func ExportSimpleUser ¶
func ExportSimpleUser(encodingAESKey string, blockSize int64, result *ResultExport) wx.Action
ExportSimpleUser 导出成员
func ExportTagUser ¶
func ExportTagUser(tagID int64, encodingAESKey string, blockSize int64, result *ResultExport) wx.Action
ExportTagUser 导出标签成员
func ExportUser ¶
func ExportUser(encodingAESKey string, blockSize int64, result *ResultExport) wx.Action
ExportUser 导出成员详情
func GetActiveStat ¶
func GetActiveStat(date string, result *ResultActiveStat) wx.Action
GetActiveStat 获取企业活跃成员数
func GetBatchResult ¶
func GetBatchResult(jobID string, result *ResultBatchRet) wx.Action
GetBatchResult 获取异步任务结果
func GetDepartment ¶
func GetDepartment(id int64, result *ResultDepartmentGet) wx.Action
GetDepartment 获取单个部门详情
func GetExportResult ¶
func GetExportResult(jobID string, result *ResultExportRet) wx.Action
GetExportResult 获取导出结果
func GetJoinQRCode ¶
func GetJoinQRCode(size int, result *JoinQRCode) wx.Action
GetJoinQRCode 获取加入企业二维码 尺寸: 1 - 171 x 171 2 - 399 x 399 3 - 741 x 741 4 - 2052 x 2052
func GetUserID ¶
func GetUserID(mobile string, result *ResultUserID) wx.Action
GetUserID 通过手机号获取其所对应的userid
func ListDepartment ¶
func ListDepartment(id int64, result *ResultDepartmentList) wx.Action
ListDepartment 获取部门列表
func ListSimpleDepartment ¶
func ListSimpleDepartment(id int64, result *ResultSimpleDepartmentList) wx.Action
ListSimpleDepartment 获取子部门ID列表
func ListSimpleUser ¶
func ListSimpleUser(departmentID int64, fetchChild int, result *ResultSimipleUserList) wx.Action
ListSimpleUser 获取部门成员
func ListUser ¶
func ListUser(departmentID int64, fetchChild int, result *ResultUserList) wx.Action
ListUser 获取部门成员详情
func UpdateDepartment ¶
func UpdateDepartment(params *ParamsDepartmentUpdate) wx.Action
UpdateDepartment 更新部门
Types ¶
type BatchCallback ¶
type Department ¶
type ExportData ¶
type ExternalProfile ¶
type ExternalProfile struct { ExternalCorpName string `json:"external_corp_name"` WechatChannels *WechatChannels `json:"wechat_channels"` ExternalAttr []*Attr `json:"external_attr"` }
type JoinQRCode ¶
type JoinQRCode struct {
URL string `json:"join_qrcode"` // 二维码链接,有效期7天
}
type ParamsActiveStat ¶
type ParamsActiveStat struct {
Date string `json:"date"`
}
type ParamsBatchInvite ¶
type ParamsDepartmentCreate ¶
type ParamsDepartmentUpdate ¶
type ParamsExport ¶
type ParamsOpenIDConvert ¶
type ParamsOpenIDConvert struct {
UserID string `json:"userid"`
}
type ParamsPartyBatchReplace ¶
type ParamsPartyBatchReplace struct { MediaID string `json:"media_id"` Callback *BatchCallback `json:"callback,omitempty"` }
type ParamsTagCreate ¶
type ParamsTagCreate struct {
TagName string `json:"tagname"`
}
type ParamsTagUpdate ¶
type ParamsTagUserAdd ¶
type ParamsTagUserDelete ¶
type ParamsUserBatchDelete ¶
type ParamsUserBatchDelete struct {
UserIDList []string `json:"useridlist"`
}
type ParamsUserBatchReplace ¶
type ParamsUserBatchReplace struct { MediaID string `json:"media_id"` ToInvite bool `json:"to_invite"` Callback *BatchCallback `json:"callback,omitempty"` }
type ParamsUserBatchSync ¶
type ParamsUserBatchSync struct { MediaID string `json:"media_id"` ToInvite bool `json:"to_invite"` Callback *BatchCallback `json:"callback,omitempty"` }
type ParamsUserCreate ¶
type ParamsUserCreate struct { UserID string `json:"userid"` Name string `json:"name"` Alias string `json:"alias,omitempty"` Mobile string `json:"mobile,omitempty"` Department []int64 `json:"department"` Order []int `json:"order,omitempty"` Position string `json:"position,omitempty"` Gender string `json:"gender,omitempty"` Email string `json:"email,omitempty"` BizMail string `json:"biz_mail,omitempty"` IsLeaderInDept []int `json:"is_leader_in_dept,omitempty"` DirectLeader []string `json:"direct_leader,omitempty"` Enable int `json:"enable,omitempty"` AvatarMediaID string `json:"avatar_mediaid,omitempty"` Telephone string `json:"telephone,omitempty"` Address string `json:"address,omitempty"` MainDepartment int64 `json:"main_department,omitempty"` ExtAttr *ExtAttr `json:"extattr,omitempty"` ToInvite *bool `json:"to_invite,omitempty"` ExternalPosition string `json:"external_position,omitempty"` ExternalProfile *ExternalProfile `json:"external_profile,omitempty"` }
type ParamsUserID ¶
type ParamsUserID struct {
Mobile string `json:"mobile"`
}
type ParamsUserIDConvert ¶
type ParamsUserIDConvert struct {
OpenID string `json:"openid"`
}
type ParamsUserUpdate ¶
type ParamsUserUpdate struct { UserID string `json:"userid"` Name string `json:"name,omitempty"` Alias string `json:"alias,omitempty"` Mobile string `json:"mobile,omitempty"` Department []int64 `json:"department"` Order []int `json:"order,omitempty"` Position string `json:"position,omitempty"` Gender string `json:"gender,omitempty"` Email string `json:"email,omitempty"` BizMail string `json:"biz_mail,omitempty"` IsLeaderInDept []int `json:"is_leader_in_dept,omitempty"` DirectLeader []string `json:"direct_leader,omitempty"` Enable int `json:"enable,omitempty"` AvatarMediaID string `json:"avatar_mediaid,omitempty"` Telephone string `json:"telephone,omitempty"` Address string `json:"address,omitempty"` MainDepartment int64 `json:"main_department,omitempty"` ExtAttr *ExtAttr `json:"extattr,omitempty"` ExternalPosition string `json:"external_position,omitempty"` ExternalProfile *ExternalProfile `json:"external_profile,omitempty"` }
type ResultActiveStat ¶
type ResultActiveStat struct {
ActiveCnt int `json:"active_cnt"`
}
type ResultBatch ¶
type ResultBatch struct {
JobID string `json:"jobid"`
}
type ResultBatchInvite ¶
type ResultBatchRet ¶
type ResultDepartmentCreate ¶
type ResultDepartmentCreate struct {
ID int64 `json:"id"`
}
type ResultDepartmentGet ¶
type ResultDepartmentGet struct {
Department *Department `json:"department"`
}
type ResultDepartmentList ¶
type ResultDepartmentList struct {
Department []*Department `json:"department"`
}
type ResultExport ¶
type ResultExport struct {
JobID string `json:"jobid"`
}
type ResultExportRet ¶
type ResultExportRet struct { Status int `json:"status"` DataList []*ExportData `json:"data_list"` }
type ResultOpenIDConvert ¶
type ResultOpenIDConvert struct {
OpenID string `json:"openid"`
}
type ResultSimipleUserList ¶
type ResultSimipleUserList struct {
UserList []*SimpleUser `json:"userlist"`
}
type ResultSimpleDepartmentList ¶
type ResultSimpleDepartmentList struct {
DepartmentID []*SimpleDepartment `json:"department_id"`
}
type ResultTagCreate ¶
type ResultTagCreate struct {
TagID int64 `json:"tagid"`
}
type ResultTagList ¶
type ResultTagList struct {
TagList []*Tag `json:"taglist"`
}
type ResultTagUser ¶
type ResultTagUserAdd ¶
type ResultTagUserDelete ¶
type ResultUserID ¶
type ResultUserID struct {
UserID string `json:"userid"`
}
type ResultUserIDConvert ¶
type ResultUserIDConvert struct {
UserID string `json:"userid"`
}
type ResultUserList ¶
type ResultUserList struct {
UserList []*User `json:"userlist"`
}
type SimpleDepartment ¶
type SimpleUser ¶
type User ¶
type User struct { UserID string `json:"userid"` Name string `json:"name"` Alias string `json:"alias"` Mobile string `json:"mobile"` Department []int64 `json:"department"` Order []int `json:"order"` Position string `json:"position"` Gender string `json:"gender"` Email string `json:"email"` BizMail string `json:"biz_mail"` IsLeaderInDept []int `json:"is_leader_in_dept"` DirectLeader []string `json:"direct_leader,omitempty"` Avatar string `json:"avatar"` ThumbAvatar string `json:"thumb_avatar"` Telephone string `json:"telephone"` Address string `json:"address"` OpenUserID string `json:"open_userid"` MainDepartment int64 `json:"main_department"` ExtAttr *ExtAttr `json:"extattr"` Status int `json:"status"` QRCode string `json:"qr_code"` ExternalPosition string `json:"external_position"` ExternalProfile *ExternalProfile `json:"external_profile"` }
type WechatChannels ¶
Click to show internal directories.
Click to hide internal directories.