Versions in this module Expand all Collapse all v1 v1.1.3 Oct 6, 2024 v1.1.2 May 29, 2024 v1.1.1 May 25, 2024 v1.1.0 May 4, 2024 Changes in this version + type ResultWeixin struct + AccessToken string + ErrorCode int + ErrorMsg string + ExpiresIn int64 + InvalidUser string + type TAccessToken struct + AccessToken string + CreateDate time.Time + ExpiresIn int + func (Self *TAccessToken) IsValid() bool + func (Self *TAccessToken) String() string + type TAdmin struct + SysLevel int + UserId string + func (Self *TAdmin) String() string + type TAdmins struct + Admins []TAdmin + func (Self *TAdmins) String() string + type TDepartmentInfo struct + Id int + IsSub bool + MUserId string + Name string + PId int + func (Self *TDepartmentInfo) String() string + type TDingTalkClient struct + func GetDingTalkClient(appkey, appsecret string) *TDingTalkClient + func (Self *TDingTalkClient) GetAccessToken() (string, error) + func (Self *TDingTalkClient) GetAdmins() (*TAdmins, error) + func (Self *TDingTalkClient) GetDepartment(depid int) (*TDepartmentInfo, error) + func (Self *TDingTalkClient) GetFullDepartmentName(depid int) (string, error) + func (Self *TDingTalkClient) GetJobName(depids []int) (string, error) + func (Self *TDingTalkClient) GetLoginInfo(authcode string) (*TLoginInfo, error) + func (Self *TDingTalkClient) GetOrgName(depids []int) (string, error) + func (Self *TDingTalkClient) GetUserInfo(userid string) (*TUserInfo, error) + func (Self *TDingTalkClient) GetUserInfoByPhone(phone string) (*TUserInfo, error) + func (Self *TDingTalkClient) SendWorkNotify(msg string) (int, error) + type TLoginInfo struct + UserId string + func (Self *TLoginInfo) String() string + type TResult struct + ErrCode int + ErrMsg string + type TUserInfo struct + Avatar string + Departments []int + Email string + Job string + Org string + Phone string + Position string + StaffCode string + StaffName string + UUID string + UserId string + type TWorkNotify struct + TaskId int + func (Self *TWorkNotify) String() string + type WorkWeixin struct + AgentID int + BeginTime time.Time + CorpID string + CorpSecret string + EndTime time.Time + Token string + func (w *WorkWeixin) GetAccessToken() string + func (w *WorkWeixin) Init(corpid string, corpsecret string, agentId int) + func (w *WorkWeixin) SendMessage(text string) bool + func (w *WorkWeixin) SendUserMessage(touser, text string) bool