Versions in this module Expand all Collapse all v1 v1.0.6 Nov 18, 2020 v1.0.5 Nov 17, 2020 Changes in this version type WorkNotificationGetSendResultRsp + RequestID string v1.0.4 Nov 17, 2020 v1.0.3 Nov 17, 2020 v1.0.2 Nov 17, 2020 Changes in this version type Client + func (c *Client) WorkNotificationV2Add(info WorkNotificationV2) (*WorkNotificationV2Rsp, error) + func (c *Client) WorkNotificationV2GetSendProgress(info WorkNotificationGetSendProgress) (*WorkNotificationGetSendProgressRsp, error) + func (c *Client) WorkNotificationV2GetSendResult(info WorkNotificationGetSendResult) (*WorkNotificationGetSendResultRsp, error) + func (c *Client) WorkNotificationV2Remove(info WorkNotificationCancel) (*WorkNotificationCancelRsp, error) + type WorkNotificationGetSendProgress struct + AgentID int64 + TaskID int64 + type WorkNotificationGetSendProgressRsp struct + Errcode int + Errmsg string + Progress struct{ ... } + type WorkNotificationGetSendResult struct + AgentID int64 + TaskID int64 + type WorkNotificationGetSendResultRsp struct + Errcode int + Errmsg string + SendResult struct{ ... } v1.0.0 Nov 15, 2020 Changes in this version + const ROOTURL + var ChatCreate = ROOTURL + "/topapi/chat/create" + var ChatGet = ROOTURL + "/topapi/chat/get" + var ChatMemberFriendswitchUpdate = ROOTURL + "/topapi/chat/member/friendswitch/update" + var ChatSend = ROOTURL + "/topapi/chat/send" + var ChatSubadminUpdate = ROOTURL + "/topapi/chat/subadmin/update" + var ChatUpdate = ROOTURL + "/topapi/chat/update" + var DepartmentCreate = ROOTURL + "/department/create" + var DepartmentDelete = ROOTURL + "/department/delete" + var DepartmentGet = ROOTURL + "/department/get" + var DepartmentList = ROOTURL + "/department/list" + var DepartmentListIds = ROOTURL + "/department/list_ids" + var DepartmentListParent = ROOTURL + "/department/list_parent_depts_by_dept" + var DepartmentListParentDepts = ROOTURL + "/department/list_parent_depts" + var DepartmentUpdate = ROOTURL + "/department/update" + var GetToken = ROOTURL + "/gettoken" + var GetUserInfo = ROOTURL + "/user/getuserinfo" + var GetUserInfoBycode = ROOTURL + "/sns/getuserinfo_bycode" + var MessageCorpconversationAsyncsendV2 = ROOTURL + "/topapi/message/corpconversation/asyncsend_v2" + var MessageCorpconversationGetsendprogress = ROOTURL + "/topapi/message/corpconversation/getsendprogress" + var MessageCorpconversationGetsendresult = ROOTURL + "/topapi/message/corpconversation/getsendresult" + var MessageCorpconversationRecall = ROOTURL + "/topapi/message/corpconversation/recall" + var MessageSendToConversation = ROOTURL + "/topapi/message/send_to_conversation" + var SSOGetToken = ROOTURL + "/sso/gettoken" + var SSOGetUserInfo = ROOTURL + "/sso/getuserinfo" + var UserCreate = ROOTURL + "/user/create" + var UserDelete = ROOTURL + "/user/delete" + var UserGet = ROOTURL + "/user/get" + var UserGetAdmin = ROOTURL + "/user/get_admin" + var UserGetAdminScope = ROOTURL + "/topapi/user/get_admin_scope" + var UserGetByMobile = ROOTURL + "/user/get_by_mobile" + var UserGetDeptMember = ROOTURL + "/user/getDeptMember" + var UserGetInactive = ROOTURL + "/topapi/inactive/user/get" + var UserGetOrgUserCount = ROOTURL + "/user/get_org_user_count" + var UserGetUseridByUnionid = ROOTURL + "/user/getUseridByUnionid" + var UserListByPage = ROOTURL + "/user/listbypage" + var UserSimpleList = ROOTURL + "/user/simplelist" + var UserUpdate = ROOTURL + "/user/update" + var WorkrecordAdd = ROOTURL + "/topapi/workrecord/add" + var WorkrecordGetbyuserid = ROOTURL + "/topapi/workrecord/getbyuserid" + var WorkrecordUpdate = ROOTURL + "/topapi/workrecord/update" + type ActionCardA struct + ActionCard struct{ ... } + Msgtype string + type ActionCardB struct + ActionCard struct{ ... } + Msgtype string + type AddTodo struct + BizID string + CreateTime int64 + FormItemList struct{ ... } + OriginatorUserID string + PcOpenType int + PcURL string + SourceName string + Title string + URL string + Userid string + type AddTodoRsp struct + Errcode int + Errmsg string + RecordID string + type AuthClient struct + AppID string + AppSecret string + type Client struct + AppKey string + AppSecret string + Cache cache.Cache + Debug bool + Tlock *sync.RWMutex + func NewClient(appkey, appsecret string) *Client + func (c *Client) AddWorkNotificationV2(info WorkNotificationV2) (*WorkNotificationV2Rsp, error) + func (c *Client) AddWorkrecord(info AddTodo) (*AddTodoRsp, error) + func (c *Client) DepartmentCreate(department *CreateDepartment) (*DepartmentCreateRsp, error) + func (c *Client) DepartmentDelete(departmentid int) (*DepartmentCreateRsp, error) + func (c *Client) DepartmentGet(departmentid int) (*DepartmentGetRsp, error) + func (c *Client) DepartmentList(departmentid int) (*DepartmentListRsp, error) + func (c *Client) DepartmentListIds(departmentid int) (*DepartmentListIdsRsp, error) + func (c *Client) DepartmentListParent(departmentid int) (*DepartmentListParentRsp, error) + func (c *Client) DepartmentUpdate(department *UpdateDepartment) (*DepartmentCreateRsp, error) + func (c *Client) EditWorkrecord(info EditTodo) (*EditTodoRsp, error) + func (c *Client) GetAccessToken() (accessToken string, err error) + func (c *Client) GetAccessTokenFromServer() (resAccessToken ResAccessToken, err error) + func (c *Client) GetSsoAccessToken(code string) (*SsoAccessToken, error) + func (c *Client) GetUserInfoByCode(code, appID, appSecret string) (u *UserinfoBycode, err error) + func (c *Client) GetUserInfoByIn(code string) (u *UserinfoByInternal, err error) + func (c *Client) GetUserInfoBySso(code, ssoAccessToken string) (*UserinfoBySso, error) + func (c *Client) GetWorkrecordByUserID(info UserTodoList) (*UserTodoListRsp, error) + func (c *Client) RemoveWorkNotificationV2(info WorkNotificationCancel) (*WorkNotificationCancelRsp, error) + func (c *Client) SetCache(key string, cfg interface{}) + func (c *Client) SetDebug(b bool) + func (c *Client) UserCreate(user *CreateUser) (*CreateUserRsp, error) + func (c *Client) UserDelete(userid string) (*CreateUserRsp, error) + func (c *Client) UserGet(userid string) (*UsertGetRsp, error) + func (c *Client) UserGetAdmin() (*UserGetAdminRsp, error) + func (c *Client) UserGetAdminScope() (*UserGetAdminScopeRsp, error) + func (c *Client) UserGetByMobile(mobile string) (*UserGetByMobileRsp, error) + func (c *Client) UserGetDeptMember(userid string) (*UserGetDeptMemberRsp, error) + func (c *Client) UserGetInactive() (*UserGetInactiveRsp, error) + func (c *Client) UserGetOrgUserCount() (*UserGetOrgUserCountRsp, error) + func (c *Client) UserGetUseridByUnionid(unionid string) (*UserGetUseridByUnionidRsp, error) + func (c *Client) UserListByPage(departmentid int) (*UserListByPageRsp, error) + func (c *Client) UserSimpleList(departmentid int) (*UserSimpleListRsp, error) + func (c *Client) UserUpdate(user *CreateUser) (*CreateUserRsp, error) + type CreateDepartment struct + CreateDeptGroup bool + DeptHiding bool + DeptPermits string + Name string + Order string + OuterDept bool + OuterPermitDepts string + OuterPermitUsers string + Parentid string + SourceIdentifier string + UserPermits string + type CreateUser struct + Department []int + Email string + Extattr interface{} + IsHide bool + IsSenior bool + Jobnumber string + Mobile string + Name string + OrderInDepts string + OrgEmail string + Position string + Remark string + Tel string + UserID string + WorkPlace string + type CreateUserRsp struct + Errcode int + Errmsg string + Userid string + type DepartmentCreateRsp struct + Errcode int + Errmsg string + ID int + type DepartmentGetRsp struct + AutoAddUser bool + CreateDeptGroup bool + DeptHiding bool + DeptManagerUseridList string + DeptPermits string + Errcode int + Errmsg string + ID int + Name string + Order int + OrgDeptOwner string + OuterDept bool + OuterPermitDepts string + OuterPermitUsers string + Parentid int + SourceIdentifier string + UserPermits string + type DepartmentListIdsRsp struct + Errcode int + Errmsg string + SubDeptIDList []int + type DepartmentListParentRsp struct + Department [][]int + Errcode int + Errmsg string + type DepartmentListRsp struct + Department []struct{ ... } + Errcode int + Errmsg string + type EditTodo struct + RecordID string + Userid string + type EditTodoRsp struct + Errcode int + Errmsg string + Result bool + type File struct + File struct{ ... } + Msgtype string + type Image struct + Image struct{ ... } + Msgtype string + type Link struct + Link struct{ ... } + Msgtype string + type Markdown struct + Markdown struct{ ... } + Msgtype string + type Oa struct + Msgtype string + Oa struct{ ... } + type ResAccessToken struct + AccessToken string + ErrCode int64 + ErrMsg string + type SendNormalMessageRsp struct + Errcode int + Errmsg string + Receiver string + type SsoAccessToken struct + AccessToken string + ErrCode int + ErrMsg string + type Text struct + Msgtype string + Text struct{ ... } + type UpdateDepartment struct + AutoAddUser bool + CreateDeptGroup bool + DeptHiding bool + DeptManagerUseridList string + DeptPermits string + ID int + Name string + Order string + OrgDeptOwner string + OuterDept bool + OuterPermitDepts string + OuterPermitUsers string + Parentid string + SourceIdentifier string + UserPermits string + type UserGetAdminRsp struct + AdminList []struct{ ... } + Errcode int + Errmsg string + type UserGetAdminScopeRsp struct + DeptIds []int + Errcode int + Errmsg string + type UserGetByMobileRsp struct + type UserGetDeptMemberRsp struct + Errcode int + Errmsg string + UserIds []string + type UserGetInactiveRsp struct + Errcode int + Errmsg string + Result struct{ ... } + type UserGetOrgUserCountRsp struct + Count int + Errcode int + Errmsg string + type UserGetUseridByUnionidRsp struct + ContactType int + Errcode int + Errmsg string + Userid string + type UserListByPageRsp struct + Errcode int + Errmsg string + HasMore bool + Userlist []struct{ ... } + type UserSimpleListRsp struct + Errcode int + Errmsg string + HasMore bool + Userlist []struct{ ... } + type UserTodoList struct + Limit int + Offset int + Status int + Userid string + type UserTodoListRsp struct + Errcode int + Errmsg string + Records struct{ ... } + type UserinfoByInternal struct + ErrCode int + ErrMsg string + IsSYS bool + SYSLevel int + UserID string + type UserinfoBySso struct + CorpInfo struct{ ... } + ErrCode int + ErrMsg string + IsSys bool + UserInfo struct{ ... } + type UserinfoBycode struct + ErrCode int + ErrMsg string + UserInfo struct{ ... } + type UsertGetRsp struct + Active bool + Avatar string + Department []int + Email string + Errcode int + Errmsg string + Extattr struct{} + HiredDate int64 + IsAdmin bool + IsBoss bool + IsHide bool + IsLeaderInDepts string + IsSenior bool + Jobnumber string + Mobile string + Name string + OrderInDepts string + Position string + Remark string + Roles []struct{ ... } + StateCode string + Tel string + UnionID string + UserID string + WorkPlace string + type Voice struct + Msgtype string + Voice struct{ ... } + type WorkNotificationCancel struct + AgentID int + MsgTaskID int64 + type WorkNotificationCancelRsp struct + Errcode int + Errmsg string + type WorkNotificationV2 struct + AgentID int + Msg interface{} + UseridList string + type WorkNotificationV2Rsp struct + Errcode int + Errmsg string + RequestID string + TaskID int64