Versions in this module Expand all Collapse all v1 v1.10.0 May 30, 2024 v1.9.0 May 30, 2024 Changes in this version + const ChatNeedName + const DefaultQYAPIHost + const EventTypeAppMenuClick + const EventTypeAppMenuLocationSelect + const EventTypeAppMenuPicPhotoOrAlbum + const EventTypeAppMenuPicSysPhoto + const EventTypeAppMenuPicWeixin + const EventTypeAppMenuScanCodePush + const EventTypeAppMenuScanCodeWaitMsg + const EventTypeAppMenuView + const EventTypeAppSubscribe + const EventTypeAppUnsubscribe + const MentionAll + const MsgAuditAgreeStatusAgree + const MsgAuditAgreeStatusDefaultAgree + const MsgAuditAgreeStatusDisagree + type ActionList struct + Key string + Text string + type ActionMenu struct + ActionList []ActionList + Desc string + type AddMsgTemplateDetail struct + FailList []string + MsgID string + type AddMsgTemplateExternalContact struct + Attachments []Attachments + ChatType ChatType + ExternalUserID []string + Sender string + Text Text + type Article struct + AppID string + Description string + PagePath string + PicURL string + Title string + URL string + type AttachmentMsgType string + const AttachmentMsgTypeImage + const AttachmentMsgTypeLink + const AttachmentMsgTypeMiniprogram + const AttachmentMsgTypeVideo + type Attachments struct + File File + Image Image + Link Link + Miniprogram MiniProgram + MsgType AttachmentMsgType + Video Video + type AuthCodeUserInfo struct + ExternalUserID string + OpenID string + UserID string + UserTicket string + type BatchListExternalContactsResp struct + NextCursor string + Result []ExternalContactBatchInfo + type Button struct + Key string + Style int + Text string + Type int + URL string + type ButtonSelection struct + OptionList []struct{ ... } + QuestionKey string + SelectedID string + Title string + type CardAction struct + Appid string + Pagepath string + Type int + URL string + type CardImage struct + AspectRatio float32 + URL string + type ChangeType string + const ChangeTypeAddExternalContact + const ChangeTypeAddHalfExternalContact + const ChangeTypeCreateUser + const ChangeTypeDelExternalContact + const ChangeTypeDelFollowUser + const ChangeTypeEditExternalContact + const ChangeTypeTransferFail + const ChangeTypeUpdateUser + type ChatAdminList struct + UserID string + type ChatInfo struct + ChatID string + MemberUserIDs []string + Name string + OwnerUserID string + type ChatMemberList struct + GroupNickname string + Invitor ChatMemberListInvitor + JoinScene int64 + JoinTime int64 + Name string + Type int64 + UnionID string + UserID string + type ChatMemberListInvitor struct + UserID string + type ChatType string + const ChatTypeGroup + const ChatTypeSingle + type CheckBox struct + Mode int + OptionList []struct{ ... } + QuestionKey string + type CheckMsgAuditRoomAgreeInfo struct + AgreeStatus MsgAuditAgreeStatus + ExternalOpenID string + StatusChangeTime time.Time + type CheckMsgAuditSingleAgreeInfo struct + AgreeStatus MsgAuditAgreeStatus + StatusChangeTime time.Time + type CheckMsgAuditSingleAgreeUserInfo struct + ExternalOpenID string + UserID string + type Conclusions struct + Image Image + Link Link + MiniProgram MiniProgram + Text Text + type CorpVacationConf struct + DurationType uint32 + EnterCompTimeLimit *uint32 + ExpireRule *CorpVacationConfExpireRule + ID uint32 + IsNewovertime *uint32 + Name string + PerdayDuration uint32 + QuotaAttr CorpVacationConfQuotaAttr + TimeAttr uint32 + type CorpVacationConfDate struct + Day uint32 + Month uint32 + type CorpVacationConfExpireRule struct + Date CorpVacationConfDate + Duration uint64 + ExternDuration CorpVacationConfDate + ExternDurationEnable bool + Type uint32 + type CorpVacationConfQuotaAttr struct + AtEntryDate *bool + AutoResetMonthDay *uint32 + AutoresetDuration uint32 + AutoresetTime uint32 + QuotaRuleType *uint32 + QuotaRules *CorpVacationConfQuotaRules + Type uint32 + type CorpVacationConfQuotaRule struct + BasedOnActualWorkTime bool + Begin uint32 + End uint32 + Quota uint32 + type CorpVacationConfQuotaRules struct + List []CorpVacationConfQuotaRule + type CtorOption interface + func WithAccessTokenProvider(provider ITokenProvider) CtorOption + func WithHTTPClient(client *http.Client) CtorOption + func WithJSAPITicketAgentConfigProvider(provider ITokenProvider) CtorOption + func WithJSAPITicketProvider(provider ITokenProvider) CtorOption + func WithQYAPIHost(host string) CtorOption + type CustomerTransferResult struct + Customer []struct{ ... } + NextCursor string + type DeptInfo struct + ID int64 + Name string + NameEn string + Order uint32 + ParentID int64 + type EmailType int + const EmailTypeCorporate + const EmailTypePersonal + type EmphasisContent struct + Desc string + Title string + type EventAddExternalContact interface + GetExternalUserID func() string + GetState func() string + GetUserID func() string + GetWelcomeCode func() string + type EventAddHalfExternalContact interface + GetExternalUserID func() string + GetState func() string + GetUserID func() string + type EventChangeExternalChat interface + GetChatID func() string + GetFailReason func() string + GetFromUserName func() string + GetToUserName func() string + type EventDelExternalContact interface + GetExternalUserID func() string + GetUserID func() string + type EventDelFollowUser interface + GetExternalUserID func() string + GetUserID func() string + type EventEditExternalContact interface + GetExternalUserID func() string + GetState func() string + GetUserID func() string + type EventKfMsgOrEvent interface + GetOpenKfID func() string + GetToken func() string + type EventSysApprovalChange interface + GetApprovalInfo func() OAApprovalInfo + type EventTransferFail interface + GetExternalUserID func() string + GetFailReason func() string + GetUserID func() string + type EventType string + const EventTypeChangeContact + const EventTypeChangeExternalChat + const EventTypeChangeExternalContact + const EventTypeKfMsgOrEvent + const EventTypeSysApprovalChange + type ExternalAttr struct + Miniprogram ExternalAttrMiniprogram + Name string + Text ExternalAttrText + Type int + Web ExternalAttrWeb + type ExternalAttrMiniprogram struct + Appid string + Pagepath string + Title string + type ExternalAttrText struct + Value string + type ExternalAttrWeb struct + Title string + Url string + type ExternalContact struct + Avatar string + CorpName string + ExternalProfile ExternalProfile + ExternalUserid string + Gender UserGender + Name string + Position string + Type ExternalUserType + Unionid string + type ExternalContactAddContact struct + ConfigID string + QRCode string + type ExternalContactAddCorpTag struct + Name string + Order uint32 + type ExternalContactAddCorpTagGroup struct + AgentID int64 + GroupID string + GroupName string + Order uint32 + Tag []ExternalContactAddCorpTag + type ExternalContactBatchInfo struct + ExternalContact ExternalContact + FollowInfo FollowInfo + type ExternalContactContactWay struct + ConfigID string + QRCode string + type ExternalContactCorpTag struct + CreateTime int + Deleted bool + ID string + Name string + Order uint32 + type ExternalContactCorpTagGroup struct + CreateTime int + Deleted bool + GroupID string + GroupName string + Order uint32 + Tag []ExternalContactCorpTag + type ExternalContactFollowUserList struct + FollowUser []string + type ExternalContactGroupChatJoinWay struct + ConfigID string + QRCode string + type ExternalContactGroupChatTransferFailed struct + ChatID string + ErrCode int + ErrMsg string + type ExternalContactInfo struct + ExternalContact ExternalContact + FollowUser []FollowUser + type ExternalContactListContactWayChat struct + ContactWay []contactWay + NextCursor string + type ExternalContactMarkTag struct + AddTag []string + ExternalUserID string + RemoveTag []string + UserID string + type ExternalContactRemark struct + Description string + ExternalUserid string + Remark string + RemarkCompany string + RemarkMobiles []string + RemarkPicMediaid string + Userid string + type ExternalContactTransferResult struct + Status ExternalContactTransferStatus + TakeoverTime time.Time + type ExternalContactTransferStatus uint8 + const ExternalContactTransferStatusExhausted + const ExternalContactTransferStatusNoData + const ExternalContactTransferStatusRefused + const ExternalContactTransferStatusSuccess + const ExternalContactTransferStatusWait + type ExternalContactUnassigned struct + DemissionTime time.Time + ExternalUserID string + HandoverUserID string + type ExternalContactUnassignedList struct + Info []ExternalContactUnassigned + IsLast bool + NextCursor string + type ExternalContactWay struct + ChatExpiresIn int + Conclusions Conclusions + ExpiresIn int + IsTemp bool + Party []int + Remark string + Scene int + SkipVerify bool + State string + Style int + Type int + UnionID string + User []string + type ExternalGroupChatJoinWay struct + AutoCreateRoom int + ChatIDs []string + Remark string + RoomBaseID int + RoomBaseName string + Scene int + State string + type ExternalProfile struct + ExternalAttr []ExternalAttr + ExternalCorpName string + type ExternalUserType int + const ExternalUserTypeWeChat + const ExternalUserTypeWorkWeChat + type File struct + MediaID string + type FollowInfo struct + TagID []string + type FollowUser struct + Tags []FollowUserTag + type FollowUserAddWay int + const FollowUserAddWayAddressBook + const FollowUserAddWayAdmin + const FollowUserAddWayCard + const FollowUserAddWayEmail + const FollowUserAddWayGroupChat + const FollowUserAddWayInternalShare + const FollowUserAddWayMobile + const FollowUserAddWayQRCode + const FollowUserAddWayThirdParty + const FollowUserAddWayUnknown + const FollowUserAddWayWeChatContact + const FollowUserAddWayWeChatFriendApply + type FollowUserInfo struct + AddWay FollowUserAddWay + Createtime int + Description string + OperUserID string + Remark string + RemarkCorpName string + RemarkMobiles []string + State string + UserID string + type FollowUserTag struct + GroupName string + TagName string + Type FollowUserTagType + type FollowUserTagType int + const FollowUserTagTypeUser + const FollowUserTagTypeWork + type GetOAApprovalInfoReq struct + Cursor int + EndTime time.Time + Filters []OAApprovalInfoFilter + Size uint32 + StartTime time.Time + type GroupChatList struct + ChatID string + Status int64 + type HTTPHandler struct + func NewHTTPHandler(token string, encodingAESKey string, rxMessageHandler RxMessageHandler) (*HTTPHandler, error) + func (h *HTTPHandler) ServeHTTP(rw http.ResponseWriter, r *http.Request) + type HorizontalContentList struct + KeyName string + MediaID string + Type int + URL string + Userid string + Value string + type ITokenProvider interface + GetToken func(context.Context) (string, error) + type Image struct + MediaID string + PicURL string + type ImageMessageExtras interface + GetMediaID func() string + GetPicURL func() string + type ImageTextArea struct + AppID string + Desc string + ImageURL string + PagePath string + Title string + Type int + URL string + type JSCodeSession struct + CorpID string + SessionKey string + UserID string + type JumpList struct + Appid string + PagePath string + Title string + Type int + URL string + type KfAccount struct + Avatar string + ManagePrivilege bool + Name string + OpenKfID string + type KfEvent struct + ChangeType KfServiceState + EventType KfEventType + ExternalUserID string + FailMsgID string + FailType int + MsgCode string + NewServicerUserid string + OldServicerUserID string + OpenKfID string + RecallMsgID string + RejectSwitch int + Scene string + SceneParam string + ServicerUserID string + Status int + StopType int + WechatChannels KfWechatChannels + WelcomeCode string + type KfEventType string + const KfEventTypeEnterSession + const KfEventTypeMsgSendFail + const KfEventTypeRejectCustomerMsgSwitchChange + const KfEventTypeServicerRecallMsg + const KfEventTypeServicerStatusChange + const KfEventTypeSessionStatusChange + const KfEventTypeUserRecallMsg + type KfMsg struct + Event KfEvent + ExternalUserID string + Image Image + Link Link + MiniProgram MiniProgram + MsgID string + MsgType MessageType + OpenKfID string + Origin int + SendTime int64 + ServicerUserID string + Text Text + type KfServiceState int + const KfServiceStateFinished + const KfServiceStateInQueue + const KfServiceStateManualReception + const KfServiceStateRobotReception + const KfServiceStateUntreated + type KfServicer struct + DepartmentID int64 + Status int + StopType int + UserID string + type KfServicerResult struct + DepartmentID int64 + ErrCode int64 + ErrMsg string + UserID string + type KfWechatChannels struct + NickName string + Scene int64 + ShopNickName string + type Link struct + Desc string + PicURL string + Title string + URL string + type LinkMessageExtras interface + GetDescription func() string + GetPicURL func() string + GetTitle func() string + GetURL func() string + type LocationMessageExtras interface + GetLabel func() string + GetLatitude func() float64 + GetLongitude func() float64 + GetScale func() int + type MPArticle struct + Author string + Content string + ContentSourceURL string + Digest string + ThumbMediaID string + Title string + type MainTitle struct + Desc string + Title string + type Media struct + func NewMediaFromBuffer(filename string, buf []byte) (*Media, error) + func NewMediaFromFile(f *os.File) (*Media, error) + type MediaUploadResult struct + CreatedAt time.Time + MediaID string + Type string + type Mentions struct + Mobiles []string + UserIDs []string + type MessageType string + const MessageTypeEvent + const MessageTypeImage + const MessageTypeLink + const MessageTypeLocation + const MessageTypeText + const MessageTypeVideo + const MessageTypeVoice + type MiniProgram struct + AppID string + Page string + PicMediaID string + Title string + type MsgAuditAgreeStatus string + type MsgAuditEdition uint8 + const MsgAuditEditionEnterprise + const MsgAuditEditionOffice + const MsgAuditEditionService + type MsgAuditGroupChat struct + Creator string + Members []MsgAuditGroupChatMember + Notice string + RoomCreateTime time.Time + RoomName string + type MsgAuditGroupChatMember struct + JoinTime time.Time + MemberID string + type OAApplyEvent struct + ApplyData OAContents + Approver []OAApprover + CreatorUserID string + Notifier []string + NotifyType *uint8 + SummaryList []OASummaryList + TemplateID string + UseTemplateApprover uint8 + type OAApprovalDetail struct + Applicant OAApprovalDetailApplicant + ApplyData OAContents + ApplyTime int + Comments []OAApprovalDetailComment + Notifier []OAApprovalDetailNotifier + SpName string + SpNo string + SpRecord []OAApprovalDetailSpRecord + SpStatus uint8 + TemplateID string + type OAApprovalDetailApplicant struct + PartyID string + UserID string + type OAApprovalDetailComment struct + CommentID string + CommentTime int + CommentTontent string + CommentUserInfo OAApprovalDetailCommentUserInfo + MediaID []string + type OAApprovalDetailCommentUserInfo struct + UserID string + type OAApprovalDetailNotifier struct + UserID string + type OAApprovalDetailSpRecord struct + ApproverAttr uint8 + Details []OAApprovalDetailSpRecordDetail + SpStatus uint8 + type OAApprovalDetailSpRecordDetail struct + Approver OAApprovalDetailSpRecordDetailApprover + MediaID []string + SpStatus uint8 + SpTime int + Speech string + type OAApprovalDetailSpRecordDetailApprover struct + UserID string + type OAApprovalInfo struct + Applicant OAApprovalInfoApplicant + ApplyTime string + Comments []OAApprovalInfoComment + Notifier OAApprovalInfoNotifier + SpName string + SpNo string + SpRecord []OAApprovalInfoSpRecord + SpStatus string + StatusChangeEvent string + TemplateID string + type OAApprovalInfoApplicant struct + Party string + UserID string + type OAApprovalInfoComment struct + Attach []string + CommentContent string + CommentID string + CommentTime string + CommentUserInfo OAApprovalInfoCommentUserInfo + type OAApprovalInfoCommentUserInfo struct + UserID string + type OAApprovalInfoFilter struct + Key OAApprovalInfoFilterKey + Value string + type OAApprovalInfoFilterKey string + const OAApprovalInfoFilterKeyCreator + const OAApprovalInfoFilterKeyDepartment + const OAApprovalInfoFilterKeySpStatus + const OAApprovalInfoFilterKeyTemplateID + type OAApprovalInfoNotifier struct + UserID string + type OAApprovalInfoSpRecord struct + ApproverAttr string + Details []OAApprovalInfoSpRecordDetail + SpStatus string + type OAApprovalInfoSpRecordDetail struct + Approver OAApprovalInfoSpRecordDetailApprover + Attach []string + SpStatus string + SpTime string + Speech string + type OAApprovalInfoSpRecordDetailApprover struct + UserID string + type OAApprover struct + Attr uint8 + UserID []string + type OAContent struct + Control OAControl + ID string + Title []OAText + Value OAContentValue + type OAContentBankAccount struct + AccountName string + AccountNumber string + AccountType uint8 + Bank OAContentBankAccountBank + Remark string + type OAContentBankAccountBank struct + BankAlias string + BankAliasCode string + BankBranchId string + BankBranchName string + City string + CityCode uint8 + Province string + ProvinceCode uint8 + type OAContentDate struct + Timestamp string + Type string + type OAContentDateRange struct + NewBegin int + NewDuration int + NewEnd int + PerdayDuration int + TimezoneInfo *OAContentDateRangeTimezoneInfo + Type string + type OAContentDateRangeTimezoneInfo struct + ZoneDesc string + ZoneOffset string + type OAContentDepartment struct + Name string + OpenAPIID string + type OAContentFile struct + FileID string + type OAContentFormula struct + Value string + type OAContentLocation struct + Address string + Latitude string + Longitude string + Time int + Title string + type OAContentMember struct + Name string + UserID string + type OAContentPunchCorrection struct + Daymonthyear uint64 + State string + Time uint64 + Version uint8 + type OAContentRelatedApproval struct + SpNo string + type OAContentSelector struct + Options []OAContentSelectorOption + Type string + type OAContentSelectorOption struct + Key string + Value []OAText + type OAContentTableList struct + List []OAContent + type OAContentVacation struct + Attendance OAContentVacationAttendance + Selector OAContentSelector + type OAContentVacationAttendance struct + DateRange OAContentVacationAttendanceDateRange + SliceInfo OAContentVacationAttendanceSliceInfo + Type uint8 + type OAContentVacationAttendanceDateRange struct + Type string + type OAContentVacationAttendanceSliceInfo struct + DayItems []OAContentVacationAttendanceSliceInfoDayItem + Duration uint64 + State uint8 + type OAContentVacationAttendanceSliceInfoDayItem struct + Daytime uint64 + Duration uint64 + type OAContentValue struct + Attendance OAContentVacationAttendance + BankAccount OAContentBankAccount + Date OAContentDate + DateRange OAContentDateRange + Departments []OAContentDepartment + Files []OAContentFile + Formula OAContentFormula + Location OAContentLocation + Members []OAContentMember + Money string + Number string + PunchCorrection OAContentPunchCorrection + RelatedApproval []OAContentRelatedApproval + Selector OAContentSelector + Table []OAContentTableList + Text string + Tips OATemplateControlConfigTips + Vacation OAContentVacation + type OAContents struct + Contents []OAContent + type OAControl string + const OAControlAttendance + const OAControlContact + const OAControlDate + const OAControlDateRange + const OAControlFile + const OAControlFormula + const OAControlLocation + const OAControlMoney + const OAControlNumber + const OAControlRelatedApproval + const OAControlSelector + const OAControlTable + const OAControlText + const OAControlTextarea + const OAControlTips + const OAControlVacation + type OASetOneUserVacationQuota struct + LeftDuration string + Remarks string + TimeAttr int64 + UserID string + VacationID string + type OASummaryList struct + SummaryInfo []OAText + type OATemplateControl struct + Config OATemplateControlConfig + Property OATemplateControlProperty + type OATemplateControlConfig struct + Attendance OATemplateControlConfigAttendance + Contact OATemplateControlConfigContact + Date OATemplateControlConfigDate + Selector OATemplateControlConfigSelector + Table OATemplateControlConfigTable + Tips OATemplateControlConfigTips + Vacation OATemplateControlConfigVacation + type OATemplateControlConfigAttendance struct + DateRange OATemplateControlConfigAttendanceDateRange + Type uint8 + type OATemplateControlConfigAttendanceDateRange struct + Type string + type OATemplateControlConfigContact struct + Mode string + Type string + type OATemplateControlConfigDate struct + Type string + type OATemplateControlConfigSelector struct + Options []OATemplateControlConfigSelectorOption + Type string + type OATemplateControlConfigSelectorOption struct + Key string + Value []OAText + type OATemplateControlConfigTable struct + Children []OATemplateControl + type OATemplateControlConfigTips struct + TipsContent []OATemplateControlConfigTipsContent + type OATemplateControlConfigTipsContent struct + Lang string + Text OATemplateControlConfigTipsContentText + type OATemplateControlConfigTipsContentSubText struct + Content OATemplateControlConfigTipsContentSubTextContent + Type uint8 + type OATemplateControlConfigTipsContentSubTextContent struct + Lang *OATemplateControlConfigTipsContentSubTextContentLink + Text *OATemplateControlConfigTipsContentSubTextContentPlain + type OATemplateControlConfigTipsContentSubTextContentLink struct + Title string + URL string + type OATemplateControlConfigTipsContentSubTextContentPlain struct + Content string + type OATemplateControlConfigTipsContentText struct + SubText []OATemplateControlConfigTipsContentSubText + type OATemplateControlConfigVacation struct + Item []OATemplateControlConfigVacationItem + type OATemplateControlConfigVacationItem struct + ID int + Name []OAText + type OATemplateControlProperty struct + Control OAControl + ID string + Placeholder []OAText + Require uint8 + Title []OAText + UnPrint uint8 + type OATemplateControls struct + Controls []OATemplateControl + type OATemplateDetail struct + TemplateContent OATemplateControls + TemplateNames []OAText + Vacation OATemplateControlConfigVacation + type OAText struct + Lang string + Text string + type OptionList struct + ID string + Text string + type QuoteArea struct + AppID string + PagePath string + QuoteText string + Title string + Type int + URL string + type Recipient struct + ChatID string + Code string + OpenKfID string + PartyIDs []string + TagIDs []string + UserIDs []string + type ReqChatList struct + Cursor string + Limit int64 + OwnerFilter ReqChatListOwnerFilter + StatusFilter int64 + type ReqChatListOwnerFilter struct + UserIDList []string + type RespAppChatInfo = RespGroupChatInfo + type RespAppchatList = RespGroupChatList + type RespGroupChatInfo struct + AdminList []*ChatAdminList + ChatID string + CreateTime int64 + MemberList []*ChatMemberList + Name string + Notice string + Owner string + type RespGroupChatList struct + GroupChatList []GroupChatList + NextCursor string + type RxMessage struct + AgentID int64 + ChangeType ChangeType + Event EventType + FromUserID string + MsgID int64 + MsgType MessageType + SendTime time.Time + func (m *RxMessage) EventAddExternalContact() (EventAddExternalContact, bool) + func (m *RxMessage) EventAddHalfExternalContact() (EventAddHalfExternalContact, bool) + func (m *RxMessage) EventAppMenuClick() (*rxEventAppMenuClick, bool) + func (m *RxMessage) EventAppMenuView() (*rxEventAppMenuView, bool) + func (m *RxMessage) EventAppSubscribe() (*rxEventAppSubscribe, bool) + func (m *RxMessage) EventAppUnsubscribe() (*rxEventAppUnsubscribe, bool) + func (m *RxMessage) EventChangeExternalChat() (EventChangeExternalChat, bool) + func (m *RxMessage) EventChangeTypeCreateUser() (*rxEventChangeTypeCreateUser, bool) + func (m *RxMessage) EventChangeTypeUpdateUser() (*rxEventChangeTypeUpdateUser, bool) + func (m *RxMessage) EventDelExternalContact() (EventDelExternalContact, bool) + func (m *RxMessage) EventDelFollowUser() (EventDelFollowUser, bool) + func (m *RxMessage) EventEditExternalContact() (EventEditExternalContact, bool) + func (m *RxMessage) EventKfMsgOrEvent() (*rxEventKfMsgOrEvent, bool) + func (m *RxMessage) EventSysApprovalChange() (EventSysApprovalChange, bool) + func (m *RxMessage) EventTransferFail() (EventTransferFail, bool) + func (m *RxMessage) EventUnknown() (*rxEventUnknown, bool) + func (m *RxMessage) Image() (ImageMessageExtras, bool) + func (m *RxMessage) Link() (LinkMessageExtras, bool) + func (m *RxMessage) Location() (LocationMessageExtras, bool) + func (m *RxMessage) String() string + func (m *RxMessage) Text() (TextMessageExtras, bool) + func (m *RxMessage) Video() (VideoMessageExtras, bool) + func (m *RxMessage) Voice() (VoiceMessageExtras, bool) + type RxMessageHandler interface + OnIncomingMessage func(msg *RxMessage) error + type SelectList struct + OptionList []OptionList + QuestionKey string + SelectedID string + Title string + type SendWelcomeMsgExternalContact struct + Attachments []Attachments + Text Text + WelcomeCode string + type SizeType int + const SizeTypeLarge + const SizeTypeMedium + const SizeTypeMini + const SizeTypeSmall + type Source struct + Desc string + DescColor int + IconURL string + type SubmitButton struct + Key string + Text string + type TaskCardBtn struct + Color string + IsBold bool + Key string + Name string + ReplaceName string + type TemplateCard struct + ActionMenu *ActionMenu + ButtonList []Button + ButtonSelection *ButtonSelection + CardAction *CardAction + CardImage *CardImage + CardType TemplateCardType + CheckBox *CheckBox + EmphasisContent *EmphasisContent + HorizontalContentList []HorizontalContentList + ImageTextArea *ImageTextArea + JumpList []JumpList + MainTitle *MainTitle + QuoteArea *QuoteArea + SelectList []SelectList + Source Source + SubTitleText string + SubmitButton *SubmitButton + TaskID string + type TemplateCardType string + const CardTypeButtonInteraction + const CardTypeMultipleInteraction + const CardTypeNewsNotice + const CardTypeTextNotice + const CardTypeVoteInteraction + type TemplateCardUpdateMessage struct + AtAll int + Button struct{ ... } + PartyIds []int64 + ReplaceText string + ResponseCode string + TagIds []int32 + TemplateCard TemplateCard + UserIds []string + type Text struct + Content string + type TextMessageExtras interface + GetContent func() string + type TransferCustomerResult []struct + type UserDeptInfo struct + DeptID int64 + IsLeader bool + Order uint32 + type UserDetail struct + Alias string + AvatarURL string + DeptIDs []int64 + DeptOrder []uint32 + Email string + Gender string + IsEnabled int + IsLeaderInDept []int + Mobile string + Name string + Position string + QRCodeURL string + Status int + Telephone string + UserID string + type UserGender int + const UserGenderFemale + const UserGenderMale + const UserGenderUnspecified + type UserIdentityInfo struct + DeviceID string + OpenID string + UserID string + type UserInfo struct + Alias string + AvatarURL string + Departments []UserDeptInfo + Email string + Gender UserGender + IsEnabled bool + Mobile string + Name string + Position string + QRCodeURL string + Status UserStatus + Telephone string + UserID string + type UserStatus int + const UserStatusActivated + const UserStatusDeactivated + const UserStatusUnactivated + type UserVacationQuota struct + AssignDuration uint32 + ID uint32 + LeftDuration uint32 + RealAssignDuration uint32 + UsedDuration uint32 + VacationName string + type Video struct + MediaID string + type VideoMessageExtras interface + GetMediaID func() string + GetThumbMediaID func() string + type VoiceMessageExtras interface + GetFormat func() string + GetMediaID func() string + type WebhookClient struct + func NewWebhookClient(key string, opts ...CtorOption) *WebhookClient + func (c *WebhookClient) Key() string + func (c *WebhookClient) SendMarkdownMessage(content string) error + func (c *WebhookClient) SendTextMessage(content string, mentions *Mentions) error + type Workwx struct + CorpID string + func New(corpID string, opts ...CtorOption) *Workwx + func (c *Workwx) WithApp(corpSecret string, agentID int64) *WorkwxApp + type WorkwxApp struct + AgentID int64 + CorpSecret string + func (c *WorkwxApp) AddExternalContactCorpTag(req ExternalContactAddCorpTagGroup) (ExternalContactCorpTagGroup, error) + func (c *WorkwxApp) AddKfContact(openKfID, scene string) (url string, err error) + func (c *WorkwxApp) AddMsgTemplate(chatType ChatType, sender string, externalUserID []string, text Text, ...) (*AddMsgTemplateDetail, error) + func (c *WorkwxApp) ApplyOAEvent(applyInfo OAApplyEvent) (string, error) + func (c *WorkwxApp) AuthCode2UserInfo(code string) (*AuthCodeUserInfo, error) + func (c *WorkwxApp) BatchListExternalContact(userID string, cursor string, limit int) (*BatchListExternalContactsResp, error) + func (c *WorkwxApp) CheckMsgAuditRoomAgree(roomID string) ([]CheckMsgAuditRoomAgreeInfo, error) + func (c *WorkwxApp) CheckMsgAuditSingleAgree(infos []CheckMsgAuditSingleAgreeUserInfo) ([]CheckMsgAuditSingleAgreeInfo, error) + func (c *WorkwxApp) ConvertOpenGIDToChatID(openGID string) (string, error) + func (c *WorkwxApp) ConvertOpenIDToUserID(openID string) (string, error) + func (c *WorkwxApp) ConvertUserIDToOpenID(userID string) (string, error) + func (c *WorkwxApp) CreateAppchat(chatInfo *ChatInfo) (chatID string, err error) + func (c *WorkwxApp) CreateDept(deptInfo *DeptInfo) (deptID int64, err error) + func (c *WorkwxApp) CreateKfAccount(name, mediaID string) (openKfID string, err error) + func (c *WorkwxApp) CreateKfServicer(openKfID string, userIDs []string, departmentIDs []int64) (resultList []*KfServicerResult, err error) + func (c *WorkwxApp) DelExternalContactCorpTag(tagID, groupID []string) error + func (c *WorkwxApp) DeleteKfAccount(openKfID string) (err error) + func (c *WorkwxApp) DeleteKfServicer(openKfID string, userIDs []string, departmentIDs []int64) (resultList []*KfServicerResult, err error) + func (c *WorkwxApp) EditExternalContactCorpTag(id, name string, order uint32) error + func (c *WorkwxApp) ExternalContactAddContact(t int, scene int, style int, remark string, skipVerify bool, state string, ...) (*ExternalContactAddContact, error) + func (c *WorkwxApp) ExternalContactAddGroupChatJoinWay(externalGroupChatJoinWay ExternalGroupChatJoinWay) (string, error) + func (c *WorkwxApp) ExternalContactCloseTempChat(userID, externalUserID string) error + func (c *WorkwxApp) ExternalContactDelContactWay(configID string) error + func (c *WorkwxApp) ExternalContactDelGroupChatJoinWay(configID string) error + func (c *WorkwxApp) ExternalContactGetContactWay(configID string) (*ExternalContactContactWay, error) + func (c *WorkwxApp) ExternalContactGetGroupChatJoinWay(configID string) (*ExternalContactGroupChatJoinWay, error) + func (c *WorkwxApp) ExternalContactListContactWayChat(startTime int, endTime int, cursor string, limit int) (*ExternalContactListContactWayChat, error) + func (c *WorkwxApp) ExternalContactListFollowUser() (*ExternalContactFollowUserList, error) + func (c *WorkwxApp) ExternalContactTransferGroupChat(chatIDList []string, newOwner string) ([]ExternalContactGroupChatTransferFailed, error) + func (c *WorkwxApp) ExternalContactUpdateContactWay(configID string, remark string, skipVerify bool, style int, state string, ...) error + func (c *WorkwxApp) ExternalContactUpdateGroupChatJoinWay(configID string, externalGroupChatJoinWay ExternalGroupChatJoinWay) error + func (c *WorkwxApp) GetAppChatInfo(chatID string) (*RespAppChatInfo, error) + func (c *WorkwxApp) GetAppChatList(req ReqChatList) (*RespAppchatList, error) + func (c *WorkwxApp) GetAppchat(chatID string) (*ChatInfo, error) + func (c *WorkwxApp) GetExternalContact(externalUserID string) (*ExternalContactInfo, error) + func (c *WorkwxApp) GetGroupChatInfo(chatID string, chatNeedName int64) (*RespGroupChatInfo, error) + func (c *WorkwxApp) GetGroupChatList(req ReqChatList) (*RespGroupChatList, error) + func (c *WorkwxApp) GetJSAPITicket() (string, error) + func (c *WorkwxApp) GetJSAPITicketAgentConfig() (string, error) + func (c *WorkwxApp) GetKfServiceState(openKfID, externalUserID string) (KfServiceState, string, error) + func (c *WorkwxApp) GetMsgAuditGroupChat(roomID string) (*MsgAuditGroupChat, error) + func (c *WorkwxApp) GetOAApprovalDetail(spNo string) (*OAApprovalDetail, error) + func (c *WorkwxApp) GetOAApprovalInfo(req GetOAApprovalInfoReq) ([]string, error) + func (c *WorkwxApp) GetOAGetCorpVacationConf() ([]CorpVacationConf, error) + func (c *WorkwxApp) GetOAGetUserVacationQuota(userID string) ([]UserVacationQuota, error) + func (c *WorkwxApp) GetOATemplateDetail(templateID string) (*OATemplateDetail, error) + func (c *WorkwxApp) GetTransferCustomerResult(handoverUserID, takeoverUserID, cursor string) (*CustomerTransferResult, error) + func (c *WorkwxApp) GetTransferExternalContactResult(externalUserID, handoverUserID, takeoverUserID string) (*ExternalContactTransferResult, error) + func (c *WorkwxApp) GetTransferResignedCustomerResult(handoverUserID, takeoverUserID, cursor string) (*CustomerTransferResult, error) + func (c *WorkwxApp) GetUser(userid string) (*UserInfo, error) + func (c *WorkwxApp) GetUserIDByEmail(email string, emailType EmailType) (string, error) + func (c *WorkwxApp) GetUserIDByMobile(mobile string) (string, error) + func (c *WorkwxApp) GetUserInfoByCode(code string) (*UserIdentityInfo, error) + func (c *WorkwxApp) GetUserJoinQrcode(sizeType SizeType) (string, error) + func (c *WorkwxApp) JSCode2Session(jscode string) (*JSCodeSession, error) + func (c *WorkwxApp) KfSyncMsg(openKfID, token, cursor string, limit int64, voiceFormat int) ([]KfMsg, int, string, error) + func (c *WorkwxApp) ListAllDepts() ([]*DeptInfo, error) + func (c *WorkwxApp) ListDepts(id int64) ([]*DeptInfo, error) + func (c *WorkwxApp) ListExternalContact(userID string) ([]string, error) + func (c *WorkwxApp) ListExternalContactCorpTags(tagIDs ...string) ([]ExternalContactCorpTagGroup, error) + func (c *WorkwxApp) ListKfAccount(offset, limit int64) ([]*KfAccount, error) + func (c *WorkwxApp) ListKfServicer(openKfID string) ([]*KfServicer, error) + func (c *WorkwxApp) ListMsgAuditPermitUser(msgAuditEdition MsgAuditEdition) ([]string, error) + func (c *WorkwxApp) ListUnassignedExternalContact(pageID, pageSize uint32, cursor string) (*ExternalContactUnassignedList, error) + func (c *WorkwxApp) ListUsersByDeptID(deptID int64, fetchChild bool) ([]*UserInfo, error) + func (c *WorkwxApp) MarkExternalContactTag(userID, externalUserID string, addTag, removeTag []string) error + func (c *WorkwxApp) RemarkExternalContact(req *ExternalContactRemark) error + func (c *WorkwxApp) ResignedTransferCustomer(handoverUserID, takeoverUserID string, externalUserIDs []string) (TransferCustomerResult, error) + func (c *WorkwxApp) SendFileMessage(recipient *Recipient, mediaID string, isSafe bool) error + func (c *WorkwxApp) SendImageMessage(recipient *Recipient, mediaID string, isSafe bool) error + func (c *WorkwxApp) SendMPNewsMessage(recipient *Recipient, mparticles []MPArticle, isSafe bool) error + func (c *WorkwxApp) SendMarkdownMessage(recipient *Recipient, content string, isSafe bool) error + func (c *WorkwxApp) SendNewsMessage(recipient *Recipient, articles []Article, isSafe bool) error + func (c *WorkwxApp) SendTaskCardMessage(recipient *Recipient, title string, description string, url string, ...) error + func (c *WorkwxApp) SendTemplateCardMessage(recipient *Recipient, templateCard TemplateCard, isSafe bool) error + func (c *WorkwxApp) SendTextCardMessage(recipient *Recipient, title string, description string, url string, ...) error + func (c *WorkwxApp) SendTextMessage(recipient *Recipient, content string, isSafe bool) error + func (c *WorkwxApp) SendVideoMessage(recipient *Recipient, mediaID string, description string, title string, ...) error + func (c *WorkwxApp) SendVoiceMessage(recipient *Recipient, mediaID string, isSafe bool) error + func (c *WorkwxApp) SendWelcomeMsg(welcomeCode string, text Text, attachments []Attachments) error + func (c *WorkwxApp) SetOAOneUserVacationQuota(req OASetOneUserVacationQuota) error + func (c *WorkwxApp) SimpleListAllDepts() ([]*DeptInfo, error) + func (c *WorkwxApp) SimpleListDepts(id int64) ([]*DeptInfo, error) + func (c *WorkwxApp) SpawnAccessTokenRefresher() + func (c *WorkwxApp) SpawnAccessTokenRefresherWithContext(ctx context.Context) + func (c *WorkwxApp) SpawnJSAPITicketAgentConfigRefresher() + func (c *WorkwxApp) SpawnJSAPITicketAgentConfigRefresherWithContext(ctx context.Context) + func (c *WorkwxApp) SpawnJSAPITicketRefresher() + func (c *WorkwxApp) SpawnJSAPITicketRefresherWithContext(ctx context.Context) + func (c *WorkwxApp) TransKfServiceState(openKfID, externalUserID, servicerUserID string, ServiceState KfServiceState) (string, error) + func (c *WorkwxApp) TransferCustomer(handoverUserID, takeoverUserID string, externalUserIDs []string) (TransferCustomerResult, error) + func (c *WorkwxApp) TransferExternalContact(externalUserID, handoverUserID, takeoverUserID, transferSuccessMsg string) error + func (c *WorkwxApp) UpdateAppchat(chatInfo ChatInfo, addMemberUserIDs, delMemberUserIDs []string) (err error) + func (c *WorkwxApp) UpdateKfAccount(openKfID, name, mediaID string) (err error) + func (c *WorkwxApp) UpdateUser(userDetail *UserDetail) error + func (c *WorkwxApp) UploadPermanentImageMedia(media *Media) (url string, err error) + func (c *WorkwxApp) UploadTempFileMedia(media *Media) (*MediaUploadResult, error) + func (c *WorkwxApp) UploadTempImageMedia(media *Media) (*MediaUploadResult, error) + func (c *WorkwxApp) UploadTempVideoMedia(media *Media) (*MediaUploadResult, error) + func (c *WorkwxApp) UploadTempVoiceMedia(media *Media) (*MediaUploadResult, error) + type WorkwxClientError struct + Code errcodes.ErrCode + Msg string + func (e *WorkwxClientError) Error() string