Documentation ¶
Index ¶
- Constants
- type ActionList
- type ActionMenu
- type ActiveAccountRequest
- type ActiveInfo
- type AddInterceptRuleResponse
- type AddMomentTaskResponse
- type AddMsgTemplateResponse
- type AddProductAlbumResponse
- type Agent
- type AgentGetResponse
- type AgentListResponse
- type Article
- type Attachments
- type Attrs
- type AuthCorpInfo
- type AuthUserInfo
- type BatchActiveAccountRequest
- type BatchActiveAccountResponse
- type BatchGetActiveInfoByCodeRequest
- type BatchGetActiveInfoByCodeResponse
- type BatchParentResponse
- type BatchStudentResponse
- type BatchToExternalUserIdResponse
- type BatchTransferLicenseRequest
- type BatchTransferLicenseResponse
- type Button
- type ButtonSelection
- type CancelUpgradeServiceRequest
- type CardAction
- type CardImage
- type CheckBox
- type CheckMemberAuthResponse
- type CheckSingleAgreeRequest
- type CheckSingleAgreeResponse
- type ConclusionsImage
- type ConclusionsLink
- type ConclusionsMiniProgram
- type ConclusionsText
- type ContactMe
- type ContactMeAddResponse
- type ContactMeGetResponse
- type ContactMeListResponse
- type CorpTag
- type CorpTagAddResponse
- type CorpTagGroup
- type CorpTagListResponse
- type CreateOrderRequest
- type CreateReNewOrderJobRequest
- type CreateReNewOrderJobResponse
- type DealerCorpInfo
- type Department
- type DepartmentCreateResponse
- type DepartmentGetResponse
- type DepartmentListResponse
- type DepartmentSimpleListResponse
- type EmphasisContent
- type ExternalAttachments
- type ExternalAttr
- type ExternalContact
- type ExternalContactBatchGetByUserResponse
- type ExternalContactGetFollowUserListResponse
- type ExternalContactGetResponse
- type ExternalContactList
- type ExternalContactListResponse
- type ExternalContactRemarkRequest
- type ExternalFile
- type ExternalImage
- type ExternalLink
- type ExternalMiniprogram
- type ExternalMsg
- type ExternalText
- type ExternalVideo
- type FileMessage
- type FollowUser
- type GetActiveInfoByCodeRequest
- type GetActiveInfoByCodeResponse
- type GetActiveInfoByUserRequest
- type GetActiveInfoByUserResponse
- type GetAllowScopeResponse
- type GetAppQrCodeRequest
- type GetAppQrCodeResponse
- type GetAuditGroupChatResponse
- type GetAuthInfoResponse
- type GetGroupMsgListV2Response
- type GetGroupMsgSendResultResponse
- type GetGroupMsgTaskResponse
- type GetInterceptRuleListResponse
- type GetInterceptRuleResponse
- type GetInvoiceInfoBatchResponse
- type GetInvoiceInfoResponse
- type GetLivingInfoResponse
- type GetLoginInfoResponse
- type GetMomentCommentsResponse
- type GetMomentCustomerListResponse
- type GetMomentListResponse
- type GetMomentSendResultResponse
- type GetMomentTaskResponse
- type GetMomentTaskResultResponse
- type GetOrderRequest
- type GetOrderResponse
- type GetPaymentResultResponse
- type GetPermanentCodeResponse
- type GetPermitUserListResponse
- type GetPreAuthCodeResponse
- type GetProductAlbumListResponse
- type GetProductAlbumResponse
- type GetSubScribeModeResponse
- type GetSubScribeQrCodeResponse
- type GetTeacherViewModeResponse
- type GetTradeRequest
- type GetTradeResponse
- type GetUnWatchStatResponse
- type GetUserAllLivingIdRequest
- type GetUserAllLivingIdResponse
- type GetUserBehaviorDataResponse
- type GetUserBehaviorFilter
- type GetUserIdResponse
- type GetUserInfo3rdResponse
- type GetUserInfoDetail3rdResponse
- type GetUserInfoResponse
- type GetWatchStatRequest
- type GetWatchStatResponse
- type GroupChatListFilter
- type GroupChatListResponse
- type GroupChatRequest
- type GroupChatResponse
- type GroupChatStatisticFilter
- type GroupChatStatisticGroupByDayFilter
- type GroupChatStatisticResponse
- type GroupChatTransferRequest
- type GroupChatTransferResponse
- type GroupMsgList
- type GroupMsgListFilter
- type GroupMsgSendResultFilter
- type GroupMsgTaskFilter
- type GroupOpengId2ChatIdResponse
- type H
- type HorizontalContentList
- type IWeWork
- type Image
- type ImageMessage
- type ImageTextArea
- type InterceptRule
- type InvoiceInfoQuery
- type InvoiceInfoQueryBatch
- type JumpList
- type KfAccContactWayResponse
- type KfAccount
- type KfAccountAddResponse
- type KfAccountListRequest
- type KfAccountListResponse
- type KfCustomerBatchGetResponse
- type KfGetCorpQualificationResponse
- type KfGetCorpStatisticFilter
- type KfGetCorpStatisticResponse
- type KfGetServicerStatisticFilter
- type KfGetServicerStatisticResponse
- type KfGetUpgradeServiceConfigResponse
- type KfServiceStateGetRequest
- type KfServiceStateGetResponse
- type KfServiceStateTransRequest
- type KfServiceStateTransResponse
- type KfServicerListResponse
- type KfServicerRequest
- type KfServicerResponse
- type KfSyncMsgRequest
- type KfSyncMsgResponse
- type Link
- type ListActivedAccountRequest
- type ListActivedAccountResponse
- type ListMemberAuthResponse
- type ListOrderAccountRequest
- type ListOrderAccountResponse
- type ListOrderRequest
- type ListOrderResponse
- type ListParentWithDepartmentIdResponse
- type ListSelectedTicketUserResponse
- type Location
- type MainTitle
- type MarkDownMessage
- type Media
- type MediaType
- type MediaUploadImgResponse
- type MediaUploadResponse
- type Message
- type MessageSendResponse
- type MessageUpdateTemplateCardResponse
- type MiniProgramMessage
- type MiniProgramNotice
- type MomentCustomerFilter
- type MomentList
- type MomentListFilter
- type MomentTask
- type MomentTaskFilter
- type MpArticle
- type MpNews
- type MpNewsMessage
- type MsgBusinessCard
- type MsgEvent
- type MsgFile
- type MsgImage
- type MsgLink
- type MsgLocation
- type MsgMenu
- type MsgMiniProgram
- type MsgText
- type MsgVideo
- type MsgVoice
- type MultiMedia
- type News
- type NewsMessage
- type OpenId2UserIdResponse
- type OrderResponse
- type Parent
- type Product
- type ProductUpdateRequest
- type QuoteArea
- type RegisterCodeInfo
- type SchoolDepartment
- type SchoolDepartmentCreateResponse
- type SchoolDepartmentListResponse
- type SchoolUserGetResponse
- type SchoolUserListResponse
- type SelectList
- type SendMsgOnEventRequest
- type SendMsgRequest
- type SendMsgResponse
- type SenderList
- type Source
- type Student
- type SubmitButton
- type SubmitOrderJobRequest
- type Tag
- type TagAddOrDelUsersResponse
- type TagCreateResponse
- type TagListResponse
- type TagUserListResponse
- type TemplateCard
- type TemplateCardMessage
- type TemplateCardType
- type TemplateCardUpdateMessage
- type Text
- type TextCard
- type TextCardMessage
- type TextMessage
- type TicketResponse
- type ToServiceExternalUseridResponse
- type TransferCustomerRequest
- type TransferCustomerResponse
- type TransferResultRequest
- type TransferResultResponse
- type UnAssignedInfo
- type UnAssignedRequest
- type UnAssignedResponse
- type UnionId2ExternalUserIdResponse
- type UpdateInterceptRuleRequest
- type UpdateInvoiceStatusBatchRequest
- type UpdateInvoiceStatusRequest
- type UpgradeInfoResponse
- type UpgradeRequest
- type UpgradeServiceGroupChat
- type UpgradeServiceMember
- type UpgradeServiceRequest
- type User
- type UserGetResponse
- type UserId2OpenIdResponse
- type UserListResponse
- type UserSimpleListResponse
- type Video
- type VideoMessage
- type VisibleRange
- type VoiceMessage
- type WeWorkConfig
Constants ¶
View Source
const ( ReimburseStatusInit = "INVOICE_REIMBURSE_INIT" ReimburseStatusLock = "INVOICE_REIMBURSE_LOCK" ReimburseStatusClosure = "INVOICE_REIMBURSE_CLOSURE" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ActionList ¶
type ActionMenu ¶
type ActionMenu struct { Desc string `json:"desc"` ActionList []ActionList `json:"action_list" validate:"required,max=3,min=1"` }
type ActiveAccountRequest ¶ added in v1.4.6
type ActiveInfo ¶ added in v1.4.6
type AddInterceptRuleResponse ¶
type AddInterceptRuleResponse struct { internal.BizResponse RuleId string `json:"rule_id"` }
type AddMomentTaskResponse ¶
type AddMomentTaskResponse struct { internal.BizResponse JobId string `json:"jobid"` }
type AddMsgTemplateResponse ¶
type AddMsgTemplateResponse struct { internal.BizResponse FailList []string `json:"fail_list"` MsgId string `json:"msgid"` }
type AddProductAlbumResponse ¶
type AddProductAlbumResponse struct { internal.BizResponse ProductId string `json:"product_id"` }
type Agent ¶
type Agent struct { AgentId int `json:"agentid"` Name string `json:"name"` RoundLogoURL string `json:"round_logo_url"` SquareLogoURL string `json:"square_logo_url"` Appid int `json:"appid"` AuthMode int `json:"auth_mode,omitempty"` IsCustomizedApp bool `json:"is_customized_app,omitempty"` Privilege struct { Level int `json:"level"` AllowParty []int `json:"allow_party"` AllowUser []string `json:"allow_user"` AllowTag []int `json:"allow_tag"` ExtraParty []int `json:"extra_party"` ExtraUser []string `json:"extra_user"` ExtraTag []int `json:"extra_tag"` } `json:"privilege,omitempty"` Corpid string `json:"corpid"` } `json:"shared_from"` }
type AgentGetResponse ¶
type AgentGetResponse struct { internal.BizResponse AgentId int `json:"agentid"` Name string `json:"name"` SquareLogoURL string `json:"square_logo_url"` Description string `json:"description"` AllowUserInfos struct { User []struct { Userid string `json:"userid"` } `json:"user"` } `json:"allow_userinfos"` AllowPartys struct { PartyId []int `json:"partyid"` } `json:"allow_partys"` AllowTags struct { TagId []int `json:"tagid"` } `json:"allow_tags"` Close int `json:"close"` RedirectDomain string `json:"redirect_domain"` ReportLocationFlag int `json:"report_location_flag"` IsReportEnter int `json:"isreportenter"` HomeURL string `json:"home_url"` }
type AgentListResponse ¶
type AgentListResponse struct { internal.BizResponse AgentList []struct { AgentId int `json:"agentid"` Name string `json:"name"` SquareLogoURL string `json:"square_logo_url"` } `json:"agentlist"` }
type Attachments ¶
type Attachments struct { Msgtype string `json:"msgtype" validate:"required,oneof=image link video"` Image *Image `json:"image,omitempty" validate:"required_without_all=Video Link"` Video *Video `json:"video,omitempty" validate:"required_without_all=Image Link"` Link *Link `json:"link,omitempty" validate:"required_without_all=Video Image"` }
type Attrs ¶
type Attrs struct { Type int `json:"type" validate:"required,oneof= 0 1 2"` Name string `json:"name" validate:"required"` Text struct { Value string `json:"value"` } `json:"text,omitempty"` Web struct { URL string `json:"url" validate:"required"` Title string `json:"title" validate:"required"` } `json:"web,omitempty"` }
type AuthCorpInfo ¶
type AuthCorpInfo struct { CorpId string `json:"corpid"` CorpName string `json:"corp_name"` CorpType string `json:"corp_type"` CorpSquareLogoURL string `json:"corp_square_logo_url"` CorpUserMax int `json:"corp_user_max"` CorpAgentMax int `json:"corp_agent_max"` CorpFullName string `json:"corp_full_name"` VerifiedEndTime int `json:"verified_end_time"` SubjectType int `json:"subject_type"` CorpWxqrcode string `json:"corp_wxqrcode"` CorpScale string `json:"corp_scale"` CorpIndustry string `json:"corp_industry"` CorpSubIndustry string `json:"corp_sub_industry"` }
type AuthUserInfo ¶
type BatchActiveAccountRequest ¶ added in v1.4.6
type BatchActiveAccountResponse ¶ added in v1.4.6
type BatchActiveAccountResponse struct { internal.BizResponse ActiveResult []struct { ActiveCode string `json:"active_code"` Userid string `json:"userid"` ErrCode int `json:"errcode"` } `json:"active_result"` }
type BatchGetActiveInfoByCodeRequest ¶ added in v1.4.6
type BatchGetActiveInfoByCodeResponse ¶ added in v1.4.6
type BatchGetActiveInfoByCodeResponse struct { internal.BizResponse ActiveInfoList []ActiveInfo `json:"active_info_list"` InvalidActiveCodeList []string `json:"invalid_active_code_list"` }
type BatchParentResponse ¶
type BatchParentResponse struct { internal.BizResponse ResultList []struct { ParentUserId string `json:"parent_userid"` internal.BizResponse } `json:"result_list"` }
type BatchStudentResponse ¶
type BatchStudentResponse struct { internal.BizResponse ResultList []struct { internal.BizResponse StudentUserId string `json:"student_userid"` } `json:"result_list"` }
type BatchToExternalUserIdResponse ¶
type BatchToExternalUserIdResponse struct { internal.BizResponse SuccessList []struct { Mobile string `json:"mobile"` ExternalUserid string `json:"external_userid"` ForeignKey string `json:"foreign_key"` } `json:"success_list"` FailList []struct { internal.BizResponse Mobile string `json:"mobile"` } `json:"fail_list"` }
type BatchTransferLicenseRequest ¶ added in v1.4.6
type BatchTransferLicenseResponse ¶ added in v1.4.6
type BatchTransferLicenseResponse struct { internal.BizResponse TransferResult []struct { HandoverUserid string `json:"handover_userid"` TakeoverUserid string `json:"takeover_userid"` ErrCode int `json:"errcode"` } `json:"transfer_result"` }
type Button ¶
type Button struct { Type int `json:"type,omitempty"` //按钮点击事件类型,0 或不填代表回调点击事件,1 代表跳转url Text string `json:"text" validate:"required"` Style int `json:"style,omitempty"` //按钮样式,目前可填1~4,不填或错填默认1 Key string `json:"key,omitempty"` // 按钮key值,用户点击后,会产生回调事件将本参数作为EventKey返回,回调事件会带上该key值,最长支持1024字节,不可重复,button_list.type是0时必填 Url string `json:"url,omitempty"` //跳转事件的url,button_list.type是1时必填 }
type ButtonSelection ¶
type ButtonSelection struct { QuestionKey string `json:"question_key" validate:"required"` Title string `json:"title"` OptionList []struct { ID string `json:"id" validate:"required"` Text string `json:"text" validate:"required"` } `json:"option_list" validate:"required"` SelectedID string `json:"selected_id"` }
ButtonSelection 按钮交互型
type CancelUpgradeServiceRequest ¶ added in v1.4.1
type CardAction ¶
type CheckBox ¶
type CheckBox struct { QuestionKey string `json:"question_key" validate:"required"` OptionList []struct { ID string `json:"id" validate:"required"` Text string `json:"text" validate:"required"` IsChecked bool `json:"is_checked" validate:"required"` } `json:"option_list" validate:"required,min=1,max=20"` Mode int `json:"mode" validate:"omitempty,oneof=0 1"` }
CheckBox 投票选择型
type CheckMemberAuthResponse ¶
type CheckMemberAuthResponse struct { internal.BizResponse IsMemberAuth bool `json:"is_member_auth"` }
type CheckSingleAgreeRequest ¶ added in v1.4.10
type CheckSingleAgreeResponse ¶ added in v1.4.10
type ConclusionsImage ¶
type ConclusionsLink ¶
type ConclusionsMiniProgram ¶
type ConclusionsText ¶
type ConclusionsText struct {
Content string `json:"content"`
}
type ContactMe ¶
type ContactMe struct { ConfigId string `json:"config_id,omitempty"` Type int `json:"type" validate:"required,oneof=1 2"` Scene int `json:"scene" validate:"required,oneof=1 2"` Style int `json:"style"` Remark string `json:"remark"` SkipVerify bool `json:"skip_verify"` State string `json:"state"` User []string `json:"user"` Party []int32 `json:"party"` IsTemp bool `json:"is_temp"` ExpiresIn int32 `json:"expires_in"` ChatExpiresIn int32 `json:"chat_expires_in"` UnionId string `json:"unionid"` Conclusions struct { *ConclusionsText `json:"text,omitempty"` *ConclusionsImage `json:"image,omitempty"` *ConclusionsLink `json:"link,omitempty"` *ConclusionsMiniProgram `json:"miniprogram,omitempty"` } `json:"conclusions"` }
type ContactMeAddResponse ¶
type ContactMeAddResponse struct { internal.BizResponse ConfigId string `json:"config_id"` QrCode string `json:"qr_code"` }
type ContactMeGetResponse ¶
type ContactMeGetResponse struct { internal.BizResponse ContactWay struct { ConfigId string `json:"config_id"` ContactMe } `json:"contact_way"` }
type ContactMeListResponse ¶
type ContactMeListResponse struct { internal.BizResponse ContactWay []struct { ConfigId string `json:"config_id"` } `json:"contact_way"` NextCursor string `json:"next_cursor"` }
type CorpTagAddResponse ¶
type CorpTagAddResponse struct { internal.BizResponse TagGroup CorpTagGroup `json:"tag_group"` }
type CorpTagGroup ¶
type CorpTagListResponse ¶
type CorpTagListResponse struct { internal.BizResponse TagGroup []CorpTagGroup `json:"tag_group"` }
type CreateOrderRequest ¶ added in v1.4.6
type CreateOrderRequest struct { CorpId string `json:"corpid" validate:"required"` BuyerUserid string `json:"buyer_userid" validate:"required"` AccountCount struct { BaseCount int `json:"base_count" validate:"required_without=ExternalContactCount,max=1000000"` ExternalContactCount int `json:"external_contact_count" validate:"required_without=BaseCount,max=1000000"` } `json:"account_count" validate:"required"` AccountDuration struct { Months int `json:"months"` } `json:"account_duration"` }
type CreateReNewOrderJobRequest ¶ added in v1.4.6
type CreateReNewOrderJobResponse ¶ added in v1.4.6
type CreateReNewOrderJobResponse struct { internal.BizResponse Jobid string `json:"jobid"` InvalidAccountList []struct { internal.BizResponse Userid string `json:"userid"` Type int `json:"type"` } `json:"invalid_account_list"` }
type DealerCorpInfo ¶
type Department ¶
type Department struct { Id int32 `json:"id"` Order int32 `json:"order,omitempty"` ParentId int32 `json:"parentid" validate:"required"` Name string `json:"name" validate:"required,min=1,max=32"` NameEn string `json:"name_en,omitempty" validate:"omitempty,min=1,max=32"` DepartmentLeader []string `json:"department_leader"` }
type DepartmentCreateResponse ¶ added in v1.4.8
type DepartmentCreateResponse struct { internal.BizResponse Id int32 `json:"id"` }
type DepartmentGetResponse ¶
type DepartmentGetResponse struct { internal.BizResponse Department Department `json:"department"` }
type DepartmentListResponse ¶
type DepartmentListResponse struct { internal.BizResponse Department []Department `json:"department"` }
type DepartmentSimpleListResponse ¶
type DepartmentSimpleListResponse struct { internal.BizResponse DepartmentId []struct { Id int32 `json:"id"` ParentId int32 `json:"parentid"` Order int32 `json:"order"` } `json:"department_id"` }
type EmphasisContent ¶
EmphasisContent 文本通知型
type ExternalAttachments ¶
type ExternalAttachments struct { Msgtype string `json:"msgtype" validate:"required"` Image ExternalImage `json:"image,omitempty"` Link ExternalLink `json:"link,omitempty"` Miniprogram ExternalMiniprogram `json:"miniprogram,omitempty"` Video ExternalVideo `json:"video,omitempty"` File ExternalFile `json:"file,omitempty"` }
type ExternalAttr ¶
type ExternalAttr struct { Type int `json:"type"` Name string `json:"name"` Text struct { Value string `json:"value"` } `json:"text,omitempty"` Web struct { URL string `json:"url"` Title string `json:"title"` } `json:"web,omitempty"` Miniprogram struct { Appid string `json:"appid"` Pagepath string `json:"pagepath"` Title string `json:"title"` } `json:"miniprogram,omitempty"` }
type ExternalContact ¶
type ExternalContact struct { ExternalUserId string `json:"external_userid"` Name string `json:"name"` Position string `json:"position"` Avatar string `json:"avatar"` CorpName string `json:"corp_name"` CorpFullName string `json:"corp_full_name"` Type int `json:"type"` Gender int `json:"gender"` UnionId string `json:"unionid"` ExternalProfile struct { ExternalAttr []struct { Type int `json:"type"` Name string `json:"name"` Text struct { Value string `json:"value"` } `json:"text,omitempty"` Web struct { Url string `json:"url"` Title string `json:"title"` } `json:"web,omitempty"` MiniProgram struct { AppId string `json:"appid"` PagePath string `json:"pagepath"` Title string `json:"title"` } `json:"miniprogram,omitempty"` } } `json:"external_profile"` }
type ExternalContactBatchGetByUserResponse ¶
type ExternalContactBatchGetByUserResponse struct { internal.BizResponse ExternalContactList []struct { ExternalContact ExternalContact `json:"external_contact"` FollowInfo FollowUser `json:"follow_info"` } `json:"external_contact_list"` NextCursor string `json:"next_cursor"` }
type ExternalContactGetFollowUserListResponse ¶
type ExternalContactGetFollowUserListResponse struct { internal.BizResponse FollowUser []string `json:"follow_user"` }
type ExternalContactGetResponse ¶
type ExternalContactGetResponse struct { internal.BizResponse ExternalContact ExternalContact `json:"external_contact"` FollowUser []FollowUser `json:"follow_user"` NextCursor string `json:"next_cursor"` }
type ExternalContactList ¶
type ExternalContactList struct {
TagList []string `json:"tag_list"`
}
type ExternalContactListResponse ¶
type ExternalContactListResponse struct { internal.BizResponse ExternalUserId []string `json:"external_userid"` }
type ExternalContactRemarkRequest ¶
type ExternalContactRemarkRequest struct { UserId string `json:"user_id" validate:"required"` ExternalUserid string `json:"external_userid" validate:"required"` Remark string `json:"remark"` Description string `json:"description"` RemarkCompany string `json:"remark_company"` RemarkMobiles []string `json:"remark_mobiles"` RemarkPicMediaId string `json:"remark_pic_mediaid"` }
type ExternalFile ¶
type ExternalFile struct {
MediaID string `json:"media_id" validate:"required"`
}
type ExternalImage ¶
type ExternalLink ¶
type ExternalMiniprogram ¶
type ExternalMsg ¶
type ExternalMsg struct { ChatType string `json:"chat_type,omitempty" validate:"omitempty,oneof=single group"` ExternalUserid []string `json:"external_userid,omitempty" validate:"required_without=Sender"` Sender string `json:"sender,omitempty" validate:"required_without=ExternalUserid"` Text ExternalText `json:"text,omitempty" validate:"required_without=Attachments"` Attachments []ExternalAttachments `json:"attachments,omitempty" validate:"required_without=Text"` }
type ExternalText ¶
type ExternalText struct {
Content string `json:"content"`
}
type ExternalVideo ¶
type ExternalVideo struct {
MediaID string `json:"media_id" validate:"required"`
}
type FileMessage ¶
type FileMessage struct { Message Safe int `json:"safe,omitempty"` File MultiMedia `json:"file" validate:"required"` }
type FollowUser ¶
type FollowUser struct { UserId string `json:"userid"` Remark string `json:"remark,omitempty"` Description string `json:"description,omitempty"` CreateTime int64 `json:"createtime"` Tags []struct { GroupName string `json:"group_name"` TagName string `json:"tag_name"` TagId string `json:"tag_id"` Type int `json:"type"` } `json:"tags,omitempty"` RemarkCorpName string `json:"remark_corp_name,omitempty"` RemarkMobiles []string `json:"remark_mobiles,omitempty"` State string `json:"state,omitempty"` OperUserId string `json:"oper_userid,omitempty"` AddWay int `json:"add_way,omitempty"` WechatChannels struct { Nickname string `json:"nickname"` Source int `json:"source"` } `json:"wechat_channels,omitempty"` }
type GetActiveInfoByCodeRequest ¶ added in v1.4.6
type GetActiveInfoByCodeResponse ¶ added in v1.4.6
type GetActiveInfoByCodeResponse struct { internal.BizResponse ActiveInfo ActiveInfo `json:"active_info"` }
type GetActiveInfoByUserRequest ¶ added in v1.4.6
type GetActiveInfoByUserResponse ¶ added in v1.4.6
type GetActiveInfoByUserResponse struct { internal.BizResponse ActiveStatus int `json:"active_status"` ActiveInfoList []struct { ActiveCode string `json:"active_code"` Type int `json:"type"` Userid string `json:"userid"` ActiveTime int `json:"active_time"` ExpireTime int `json:"expire_time"` } `json:"active_info_list"` }
type GetAllowScopeResponse ¶
type GetAllowScopeResponse struct { internal.BizResponse AllowScope struct { Students []struct { Userid string `json:"userid"` } `json:"students"` Departments []int `json:"departments"` } `json:"allow_scope"` }
type GetAppQrCodeRequest ¶
type GetAppQrCodeResponse ¶
type GetAppQrCodeResponse struct { internal.BizResponse QrCode string `json:"qrcode"` }
type GetAuditGroupChatResponse ¶ added in v1.4.10
type GetAuditGroupChatResponse struct { internal.BizResponse Roomname string `json:"roomname"` Creator string `json:"creator"` RoomCreateTime int `json:"room_create_time"` Notice string `json:"notice"` Members []struct { Memberid string `json:"memberid"` Jointime int `json:"jointime"` } `json:"members"` }
type GetAuthInfoResponse ¶
type GetAuthInfoResponse struct { internal.BizResponse DealerCorpInfo DealerCorpInfo `json:"dealer_corp_info"` AuthCorpInfo AuthCorpInfo `json:"auth_corp_info"` AuthInfo struct { Agent []Agent `json:"agent"` } `json:"auth_info"` }
type GetGroupMsgListV2Response ¶
type GetGroupMsgListV2Response struct { internal.BizResponse NextCursor string `json:"next_cursor"` GroupMsgList []GroupMsgList `json:"group_msg_list"` }
type GetGroupMsgTaskResponse ¶
type GetInterceptRuleListResponse ¶
type GetInterceptRuleListResponse struct { internal.BizResponse RuleList []struct { RuleID string `json:"rule_id"` RuleName string `json:"rule_name"` CreateTime int `json:"create_time"` } `json:"rule_list"` }
type GetInterceptRuleResponse ¶
type GetInterceptRuleResponse struct { internal.BizResponse Rule struct { RuleId string InterceptRule } }
type GetInvoiceInfoBatchResponse ¶
type GetInvoiceInfoBatchResponse struct { internal.BizResponse ItemList []GetInvoiceInfoResponse `json:"item_list"` }
type GetInvoiceInfoResponse ¶
type GetInvoiceInfoResponse struct { internal.BizResponse CardID string `json:"card_id"` BeginTime int `json:"begin_time"` EndTime int `json:"end_time"` Openid string `json:"openid"` Type string `json:"type"` Payee string `json:"payee"` Detail string `json:"detail"` UserInfo struct { Fee int `json:"fee"` Title string `json:"title"` BillingTime int `json:"billing_time"` BillingNo string `json:"billing_no"` BillingCode string `json:"billing_code"` Info []struct { Name string `json:"name"` Num int `json:"num"` Unit string `json:"unit"` Fee int `json:"fee"` Price int `json:"price"` } `json:"info"` FeeWithoutTax int `json:"fee_without_tax"` Tax int `json:"tax"` Detail string `json:"detail"` PdfURL string `json:"pdf_url"` ReimburseStatus string `json:"reimburse_status"` CheckCode string `json:"check_code"` } `json:"user_info"` }
type GetLivingInfoResponse ¶
type GetLivingInfoResponse struct { internal.BizResponse LivingInfo struct { Theme string `json:"theme"` LivingStart int `json:"living_start"` LivingDuration int `json:"living_duration"` AnchorUserId string `json:"anchor_userid"` LivingRange struct { PartyIds []int `json:"partyids"` GroupNames []string `json:"group_names"` } `json:"living_range"` ViewerNum int `json:"viewer_num"` CommentNum int `json:"comment_num"` OpenReplay int `json:"open_replay"` PushStreamURL string `json:"push_stream_url"` } `json:"living_info"` }
type GetLoginInfoResponse ¶
type GetLoginInfoResponse struct { internal.BizResponse UserType int `json:"usertype"` UserInfo struct { } `json:"user_info"` CorpInfo struct { CorpId string `json:"corpid"` } `json:"corp_info"` Agent []struct { AgentId int `json:"agentid"` AuthType int `json:"auth_type"` } `json:"agent"` AuthInfo []struct { Department []struct { Id int `json:"id"` Writable bool `json:"writable"` } `json:"department"` } `json:"auth_info"` }
type GetMomentCommentsResponse ¶
type GetMomentCommentsResponse struct { internal.BizResponse CommentList []struct { ExternalUserId string `json:"external_userid"` CreateTime int `json:"create_time"` } `json:"comment_list"` LikeList []struct { ExternalUserId string `json:"external_userid"` CreateTime int `json:"create_time"` } `json:"like_list"` }
type GetMomentCustomerListResponse ¶
type GetMomentCustomerListResponse struct { internal.BizResponse NextCursor string `json:"next_cursor"` CustomerList []struct { UserId string `json:"userid"` ExternalUserId string `json:"external_userid"` } `json:"customer_list"` }
type GetMomentListResponse ¶
type GetMomentListResponse struct { internal.BizResponse NextCursor string `json:"next_cursor"` MomentList []MomentList `json:"moment_list"` }
type GetMomentSendResultResponse ¶
type GetMomentSendResultResponse struct { internal.BizResponse NextCursor string `json:"next_cursor"` CustomerList []struct { ExternalUserId string `json:"external_userid"` } `json:"customer_list"` }
type GetMomentTaskResponse ¶
type GetMomentTaskResponse struct { internal.BizResponse NextCursor string `json:"next_cursor"` TaskList []struct { UserId string `json:"userid"` PublishStatus int `json:"publish_status"` } `json:"task_list"` }
type GetMomentTaskResultResponse ¶
type GetMomentTaskResultResponse struct { internal.BizResponse Status int `json:"status"` Type string `json:"type"` Result struct { internal.BizResponse MomentId string `json:"moment_id"` InvalidSenderList struct { UserList []string `json:"user_list"` DepartmentList []int32 `json:"department_list"` } `json:"invalid_sender_list"` InvalidExternalContactList struct { TagList []string `json:"tag_list"` } `json:"invalid_external_contact_list"` } }
type GetOrderRequest ¶ added in v1.4.6
type GetOrderRequest struct {
OrderId string `json:"order_id" validate:"required"`
}
type GetOrderResponse ¶ added in v1.4.6
type GetOrderResponse struct { internal.BizResponse Order struct { OrderID string `json:"order_id"` OrderType int `json:"order_type"` OrderStatus int `json:"order_status"` Corpid string `json:"corpid"` Price int `json:"price"` AccountCount struct { BaseCount int `json:"base_count"` ExternalContactCount int `json:"external_contact_count"` } `json:"account_count"` AccountDuration struct { Months int `json:"months"` } `json:"account_duration"` CreateTime int `json:"create_time"` PayTime int `json:"pay_time"` } `json:"order"` }
type GetPaymentResultResponse ¶
type GetPaymentResultResponse struct { internal.BizResponse ProjectName string `json:"project_name"` Amount int `json:"amount"` PaymentResult []struct { StudentUserid string `json:"student_userid"` TradeState int `json:"trade_state"` TradeNo string `json:"trade_no"` PayerParentUserid string `json:"payer_parent_userid"` } `json:"payment_result"` }
type GetPermanentCodeResponse ¶
type GetPermanentCodeResponse struct { internal.BizResponse AccessToken string `json:"access_token"` ExpiresIn int `json:"expires_in"` PermanentCode string `json:"permanent_code"` DealerCorpInfo DealerCorpInfo `json:"dealer_corp_info"` AuthCorpInfo AuthCorpInfo `json:"auth_corp_info"` AuthInfo struct { Agent []Agent `json:"agent"` } `json:"auth_info"` AuthUserInfo AuthUserInfo `json:"auth_user_info"` RegisterCodeInfo RegisterCodeInfo `json:"register_code_info"` State string `json:"state"` }
type GetPermitUserListResponse ¶ added in v1.4.10
type GetPermitUserListResponse struct { internal.BizResponse Ids []string `json:"ids"` }
type GetPreAuthCodeResponse ¶
type GetPreAuthCodeResponse struct { internal.BizResponse PreAuthCode string `json:"pre_auth_code"` ExpiresIn int `json:"expires_in"` }
type GetProductAlbumListResponse ¶
type GetProductAlbumListResponse struct { internal.BizResponse NextCursor string `json:"next_cursor"` ProductList []struct { ProductId string `json:"product_id"` Product } `json:"product_list"` }
type GetProductAlbumResponse ¶
type GetProductAlbumResponse struct { internal.BizResponse Product struct { Product ProductId string `json:"product_id"` CreateTime int `json:"create_time"` } `json:"product"` }
type GetSubScribeModeResponse ¶
type GetSubScribeModeResponse struct { internal.BizResponse SubscribeMode int `json:"subscribe_mode"` }
type GetSubScribeQrCodeResponse ¶
type GetSubScribeQrCodeResponse struct { internal.BizResponse QrCodeBig string `json:"qrcode_big"` QrCodeMiddle string `json:"qrcode_middle"` QrCodeThumb string `json:"qrcode_thumb"` }
type GetTeacherViewModeResponse ¶
type GetTeacherViewModeResponse struct { internal.BizResponse ViewMode int `json:"view_mode"` }
type GetTradeRequest ¶
type GetTradeResponse ¶
type GetTradeResponse struct { internal.BizResponse TransactionId string `json:"transaction_id"` PayTime int `json:"pay_time"` }
type GetUnWatchStatResponse ¶
type GetUnWatchStatResponse struct { internal.BizResponse Ending int `json:"ending"` NextKey string `json:"next_key"` StatInfo struct { Students []struct { StudentUserid string `json:"student_userid"` ParentUserid string `json:"parent_userid"` Partyids []int `json:"partyids"` } `json:"students"` } `json:"stat_info"` }
type GetUserAllLivingIdResponse ¶
type GetUserAllLivingIdResponse struct { internal.BizResponse NextCursor string `json:"next_cursor"` LivingIdList []string `json:"livingid_list"` }
type GetUserBehaviorDataResponse ¶
type GetUserBehaviorDataResponse struct {
internal.BizResponse
}
type GetUserBehaviorFilter ¶
type GetUserIdResponse ¶
type GetUserIdResponse struct { internal.BizResponse UserId string `json:"userid"` }
type GetUserInfo3rdResponse ¶
type GetUserInfoResponse ¶ added in v1.4.0
type GetUserInfoResponse struct { internal.BizResponse UserId string `json:"UserId"` OpenId string `json:"OpenId"` }
type GetWatchStatRequest ¶
type GetWatchStatResponse ¶
type GetWatchStatResponse struct { internal.BizResponse Ending int `json:"ending"` NextKey string `json:"next_key"` StatInfoes struct { Students []struct { StudentUserid string `json:"student_userid"` ParentUserid string `json:"parent_userid"` Partyids []int `json:"partyids"` WatchTime int `json:"watch_time"` EnterTime int `json:"enter_time"` LeaveTime int `json:"leave_time"` IsComment int `json:"is_comment"` } `json:"students"` Visitors []struct { Nickname string `json:"nickname"` WatchTime int `json:"watch_time"` EnterTime int `json:"enter_time"` LeaveTime int `json:"leave_time"` IsComment int `json:"is_comment"` } `json:"visitors"` } `json:"stat_infoes"` }
type GroupChatListFilter ¶
type GroupChatListFilter struct { StatusFilter int `json:"status_filter,omitempty" validate:"omitempty,oneof=0 1 2 3"` OwnerFilter struct { UserIdList []string `json:"userid_list"` } `json:"owner_filter,omitempty"` Cursor string `json:"cursor,omitempty"` Limit int `json:"limit" validate:"required,min=1,max=1000"` }
type GroupChatListResponse ¶
type GroupChatListResponse struct { internal.BizResponse GroupChatList []struct { ChatId string `json:"chat_id"` Status int `json:"status"` } `json:"group_chat_list"` NextCursor string `json:"next_cursor"` }
type GroupChatRequest ¶
type GroupChatResponse ¶
type GroupChatResponse struct { internal.BizResponse GroupChat struct { ChatID string `json:"chat_id"` Name string `json:"name"` Owner string `json:"owner"` CreateTime int `json:"create_time"` Notice string `json:"notice"` MemberList []struct { Userid string `json:"userid"` Type int `json:"type"` JoinTime int `json:"join_time"` JoinScene int `json:"join_scene"` Invitor struct { Userid string `json:"userid"` } `json:"invitor,omitempty"` GroupNickname string `json:"group_nickname"` Name string `json:"name"` Unionid string `json:"unionid,omitempty"` } `json:"member_list"` AdminList []struct { Userid string `json:"userid"` } `json:"admin_list"` } `json:"group_chat"` }
type GroupChatStatisticFilter ¶
type GroupChatStatisticFilter struct { DayBeginTime int `json:"day_begin_time" validate:"required"` DayEndTime int `json:"day_end_time"` OwnerFilter struct { UseridList []string `json:"userid_list" validate:"required,max=100"` } `json:"owner_filter" validate:"required"` OrderBy int `json:"order_by"` OrderAsc int `json:"order_asc"` Offset int `json:"offset"` Limit int `json:"limit"` }
type GroupChatStatisticResponse ¶
type GroupChatStatisticResponse struct { internal.BizResponse Total int `json:"total"` NextOffset int `json:"next_offset"` Items []struct { Owner string `json:"owner"` Data struct { NewChatCnt int `json:"new_chat_cnt"` ChatTotal int `json:"chat_total"` ChatHasMsg int `json:"chat_has_msg"` NewMemberCnt int `json:"new_member_cnt"` MemberTotal int `json:"member_total"` MemberHasMsg int `json:"member_has_msg"` MsgTotal int `json:"msg_total"` MigrateTraineeChatCnt int `json:"migrate_trainee_chat_cnt"` } `json:"data"` } `json:"items"` }
type GroupChatTransferResponse ¶
type GroupChatTransferResponse struct { internal.BizResponse FailedChatList []struct { ChatId string `json:"chat_id"` ErrCode int `json:"errcode"` ErrMsg string `json:"errmsg"` } `json:"failed_chat_list"` }
type GroupMsgList ¶
type GroupMsgList struct { Msgid string `json:"msgid"` Creator string `json:"creator"` CreateTime string `json:"create_time"` CreateType int `json:"create_type"` Text ExternalText `json:"text"` Attachments []ExternalAttachments `json:"attachments"` }
type GroupMsgListFilter ¶
type GroupMsgListFilter struct { ChatType string `json:"chat_type" validate:"required,oneof=single group"` StartTime int64 `json:"start_time" validate:"required"` EndTime int64 `json:"end_time" validate:"required"` Creator string `json:"creator,omitempty"` FilterType int `json:"filter_type,omitempty" validate:"omitempty,oneof=0 1 2"` Limit int `json:"limit" validate:"max=100"` Cursor string `json:"cursor"` }
type GroupMsgTaskFilter ¶
type GroupOpengId2ChatIdResponse ¶
type GroupOpengId2ChatIdResponse struct { internal.BizResponse ChatId string `json:"chat_id"` }
type HorizontalContentList ¶
type IWeWork ¶
type IWeWork interface { GetCorpId() string GetSuiteId() string GetSuiteToken() string GetSuiteEncodingAesKey() string Logger() *zap.Logger SetAppSecretFunc(f func(corpId uint) (corpid string, secret string, customizedApp bool)) SetAgentIdFunc(f func(corpId uint) (agentId int)) GetLoginInfo(authCode string) (resp GetLoginInfoResponse) GetUserInfo3rd(code string) (resp GetUserInfo3rdResponse) GetUserInfoDetail3rd(userTicket string) (resp GetUserInfoDetail3rdResponse) GetUserInfo(corpId uint, code string) (resp GetUserInfoResponse) AgentGet(corpId uint, agentId int) (resp AgentGetResponse) AgentList(corpId uint) (resp AgentListResponse) UpdateSuiteTicket(ticket string) GetPreAuthCode() (resp GetPreAuthCodeResponse) GetPermanentCode(authCode string) (resp GetPermanentCodeResponse) GetAuthInfo(authCorpId, permanentCode string) (resp GetAuthInfoResponse) GetAppQrCode(request GetAppQrCodeRequest) (resp GetAppQrCodeResponse) UserCreate(corpId uint, user User) (resp internal.BizResponse) UserUpdate(corpId uint, user User) (resp internal.BizResponse) UserDelete(corpId uint, userId string) (resp internal.BizResponse) UserGet(corpId uint, userId string) (resp UserGetResponse) UserSimpleList(corpId uint, departId int32, fetchChild int) (resp UserSimpleListResponse) UserList(corpId uint, departId int32, fetchChild int) (resp UserListResponse) UserId2OpenId(corpId uint, userId string) (resp UserId2OpenIdResponse) OpenId2UserId(corpId uint, openId string) (resp OpenId2UserIdResponse) ListMemberAuth(corpId uint, cursor string, limit int) (resp ListMemberAuthResponse) CheckMemberAuth(corpId uint, openUserId string) (resp CheckMemberAuthResponse) GetUserId(corpId uint, mobile string) (resp GetUserIdResponse) ListSelectedTicketUser(corpId uint, ticket string) (resp ListSelectedTicketUserResponse) CorpTagList(corpId uint, tagIds, groupIds []string) (resp CorpTagListResponse) CorpTagAdd(corpId uint, tagGroup CorpTagGroup) (resp CorpTagAddResponse) CorpTagUpdate(corpId uint, tag CorpTag) (resp internal.BizResponse) CorpTagDelete(corpId uint, tagIds, groupIds []string) (resp internal.BizResponse) MarkTag(corpId uint, userId string, externalUserId string, addTag []int, removeTag []int) (resp internal.BizResponse) DepartmentCreate(corpId uint, department Department) (resp DepartmentCreateResponse) DepartmentUpdate(corpId uint, department Department) (resp internal.BizResponse) DepartmentDelete(corpId uint, id int32) (resp internal.BizResponse) DepartmentList(corpId uint, id uint) (resp DepartmentListResponse) DepartmentSimpleList(corpId uint, id int32) (resp DepartmentSimpleListResponse) DepartmentGet(corpId uint, id int32) (resp DepartmentGetResponse) ExternalContactGetFollowUserList(corpId uint) (resp ExternalContactGetFollowUserListResponse) ExternalContactList(corpId uint, userId string) (resp ExternalContactListResponse) ExternalContactGet(corpId uint, externalUserId, cursor string) (resp ExternalContactGetResponse) ExternalContactBatchGetByUser(corpId uint, userIds []string, cursor string, limit int) (resp ExternalContactBatchGetByUserResponse) ExternalContactRemark(corpId uint, remark ExternalContactRemarkRequest) (resp internal.BizResponse) UnionId2ExternalUserId(corpId uint, unionid, openid string) (resp UnionId2ExternalUserIdResponse) ToServiceExternalUserid(corpId uint, externalUserId string) (resp ToServiceExternalUseridResponse) ExternalAddContactWay(corpId uint, me ContactMe) (resp ContactMeAddResponse) ExternalUpdateContactWay(corpId uint, me ContactMe) (resp internal.BizResponse) ExternalGetContactWay(corpId uint, configId string) (resp ContactMeGetResponse) ExternalListContactWay(corpId uint, startTime, endTime int64, cursor string, limit int) (resp ContactMeListResponse) ExternalDeleteContactWay(corpId uint, configId string) (resp internal.BizResponse) ExternalCloseTempChat(corpId uint, userId, externalUserId string) (resp internal.BizResponse) AddMsgTemplate(corpId uint, msg ExternalMsg) (resp AddMsgTemplateResponse) GetGroupMsgListV2(corpId uint, filter GroupMsgListFilter) (resp GetGroupMsgListV2Response) GetGroupMsgTask(corpId uint, filter GroupMsgTaskFilter) (resp GetGroupMsgTaskResponse) GetGroupMsgSendResult(corpId uint, filter GroupMsgSendResultFilter) (resp GetGroupMsgSendResultResponse) SendWelcomeMsg(corpId uint, msg ExternalMsg) (resp internal.BizResponse) GetUserBehaviorData(corpId uint, filter GetUserBehaviorFilter) (resp GetUserBehaviorDataResponse) GroupChatStatistic(corpId uint, filter GroupChatStatisticFilter) (resp GroupChatStatisticResponse) GroupChatStatisticGroupByDay(corpId uint, filter GroupChatStatisticGroupByDayFilter) (resp GroupChatStatisticResponse) AddProductAlbum(corpId uint, product Product) (resp AddProductAlbumResponse) GetProductAlbum(corpId uint, productId string) (resp GetProductAlbumResponse) GetProductAlbumList(corpId uint, limit int, cursor string) (resp GetProductAlbumListResponse) UpdateProductAlbum(corpId uint, request ProductUpdateRequest) (resp internal.BizResponse) DeleteProductAlbum(corpId uint, productId string) (resp internal.BizResponse) AddInterceptRule(corpId uint, interceptRule InterceptRule) (resp AddInterceptRuleResponse) GetInterceptRuleList(corpId uint) (resp GetInterceptRuleListResponse) GetInterceptRule(corpId uint, ruleId string) (resp GetInterceptRuleResponse) UpdateInterceptRule(corpId uint, request UpdateInterceptRuleRequest) (resp internal.BizResponse) DeleteInterceptRule(corpId uint, ruleId string) (resp internal.BizResponse) GroupChatList(corpId uint, filter GroupChatListFilter) (resp GroupChatListResponse) GroupChat(corpId uint, request GroupChatRequest) (resp GroupChatResponse) GroupOpengId2ChatId(corpId uint, opengid string) (resp GroupOpengId2ChatIdResponse) MediaUploadAttachment(corpId uint, attrs Media) (resp MediaUploadResponse) MediaUpload(corpId uint, fileType MediaType, filePath string, fileName string) (resp MediaUploadResponse) MediaUploadImg(corpId uint, filePath string, fileName string) (resp MediaUploadImgResponse) MessageSend(corpId uint, msg interface{}) (resp MessageSendResponse) MessageReCall(corpId uint, msgId string) (resp internal.BizResponse) MessageUpdateTemplateCard(corpId uint, msg TemplateCardUpdateMessage) (resp MessageUpdateTemplateCardResponse) AddMomentTask(corpId uint, task MomentTask) (resp AddMomentTaskResponse) GetMomentTaskResult(corpId uint, jobId string) (resp GetMomentTaskResultResponse) GetMomentList(corpId uint, filter MomentListFilter) (resp GetMomentListResponse) GetMomentTask(corpId uint, filter MomentTaskFilter) (resp GetMomentTaskResponse) GetMomentCustomerList(corpId uint, filter MomentCustomerFilter) (resp GetMomentCustomerListResponse) GetMomentSendResult(corpId uint, filter MomentCustomerFilter) (resp GetMomentSendResultResponse) GetMomentComments(corpId uint, momentId string, userId string) (resp GetMomentCommentsResponse) TagCreate(corpId uint, tag Tag) (resp TagCreateResponse) TagUpdate(corpId uint, tag Tag) (resp internal.BizResponse) TagDelete(corpId uint, id int) (resp internal.BizResponse) TagList(corpId uint) (resp TagListResponse) TagUserList(corpId uint, id int) (resp TagUserListResponse) TagAddUsers(corpId uint, tagId int, userIds []string, partyIds []int32) (resp TagAddOrDelUsersResponse) TagDelUsers(corpId uint, tagId int, userIds []string, partyIds []int32) (resp TagAddOrDelUsersResponse) TransferCustomer(corpId uint, request TransferCustomerRequest) (resp TransferCustomerResponse) TransferResult(corpId uint, request TransferResultRequest) (resp TransferResultResponse) GetUnassignedList(corpId uint, request UnAssignedRequest) (resp UnAssignedResponse) TransferCustomerResigned(corpId uint, request TransferCustomerRequest) (resp TransferCustomerResponse) TransferResultResigned(corpId uint, request TransferResultRequest) (resp TransferResultResponse) TransferGroupChat(corpId uint, request GroupChatTransferRequest) (resp GroupChatTransferResponse) GetInvoiceInfo(corpId uint, query InvoiceInfoQuery) (resp GetInvoiceInfoResponse) GetInvoiceInfoBatch(corpId uint, query InvoiceInfoQueryBatch) (resp GetInvoiceInfoBatchResponse) UpdateInvoiceStatus(corpId uint, request UpdateInvoiceStatusRequest) (resp internal.BizResponse) UpdateInvoiceStatusBatch(corpId uint, request UpdateInvoiceStatusBatchRequest) (resp internal.BizResponse) CreateStudent(corpId uint, student Student) (resp internal.BizResponse) BatchCreateStudent(corpId uint, students []Student) (resp BatchStudentResponse) DeleteStudent(corpId uint, userId string) (resp internal.BizResponse) BatchDeleteStudent(corpId uint, userIdList []string) (resp BatchStudentResponse) UpdateStudent(corpId uint, student Student) (resp internal.BizResponse) BatchUpdateStudent(corpId uint, students []Student) (resp BatchStudentResponse) CreateParent(corpId uint, parent Parent) (resp internal.BizResponse) BatchCreateParent(corpId uint, parents []Parent) (resp BatchParentResponse) DeleteParent(corpId uint, userId string) (resp internal.BizResponse) BatchDeleteParent(corpId uint, userIdList []string) (resp BatchParentResponse) UpdateParent(corpId uint, parent Parent) (resp internal.BizResponse) BatchUpdateParent(corpId uint, parents []Parent) (resp BatchParentResponse) ListParentWithDepartmentId(corpId uint, departmentId int32) (resp ListParentWithDepartmentIdResponse) SchoolUserGet(corpId uint, userId string) (resp SchoolUserGetResponse) SchoolUserList(corpId uint, departmentId uint32, fetchChild int) (resp SchoolUserListResponse) SetArchSyncMode(corpId uint, mode int) (resp internal.BizResponse) GetSubScribeQrCode(corpId uint) (resp GetSubScribeQrCodeResponse) SetSubScribeMode(corpId uint, mode int) (resp internal.BizResponse) GetSubScribeMode(corpId uint) (resp GetSubScribeModeResponse) BatchToExternalUserId(corpId uint, mobiles []string) (resp BatchToExternalUserIdResponse) SetTeacherViewMode(corpId uint, mode int) (resp internal.BizResponse) GetTeacherViewMode(corpId uint) (resp GetTeacherViewModeResponse) GetAllowScope(corpId uint, agentId int) (resp GetAllowScopeResponse) SetUpgradeInfo(corpId uint, request UpgradeRequest) (resp UpgradeInfoResponse) SchoolDepartmentCreate(corpId uint, department SchoolDepartment) (resp SchoolDepartmentCreateResponse) SchoolDepartmentUpdate(corpId uint, department SchoolDepartment) (resp internal.BizResponse) SchoolDepartmentDelete(corpId uint, departmentId int32) (resp internal.BizResponse) SchoolDepartmentList(corpId uint, departmentId int32) (resp SchoolDepartmentListResponse) GetUserAllLivingId(corpId uint, request GetUserAllLivingIdRequest) (resp GetUserAllLivingIdResponse) GetLivingInfo(corpId uint, liveId string) (resp GetLivingInfoResponse) GetWatchStat(corpId uint, request GetWatchStatRequest) (resp GetWatchStatResponse) GetUnWatchStat(corpId uint, request GetWatchStatRequest) (resp GetUnWatchStatResponse) DeleteReplayData(corpId uint, livingId string) (resp internal.BizResponse) GetPaymentResult(corpId uint, paymentId string) (resp GetPaymentResultResponse) GetTrade(corpId uint, request GetTradeRequest) (resp GetTradeResponse) GetJsApiTicket(corpId uint) (resp TicketResponse) GetJsApiAgentTicket(corpId uint, agentId int) (resp TicketResponse) KfAccountAdd(corpId uint, account KfAccount) (resp KfAccountAddResponse) KfAccountDel(corpId uint, kfId string) (resp internal.BizResponse) KfAccountUpdate(corpId uint, account KfAccount) (resp internal.BizResponse) KfAccountList(corpId uint, request KfAccountListRequest) (resp KfAccountListResponse) KfAddContactWay(corpId uint, kfId string, scene string) (resp KfAccContactWayResponse) KfServicerAdd(corpId uint, request KfServicerRequest) (resp KfServicerResponse) KfServicerDel(corpId uint, request KfServicerRequest) (resp KfServicerResponse) KfServicerList(corpId uint, kfId string) (resp KfServicerListResponse) KfServiceStateGet(corpId uint, request KfServiceStateGetRequest) (resp KfServiceStateGetResponse) KfServiceStateTrans(corpId uint, request KfServiceStateTransRequest) (resp KfServiceStateTransResponse) KfSyncMsg(corpId uint, request KfSyncMsgRequest) (resp KfSyncMsgResponse) KfSendMsg(corpId uint, request SendMsgRequest) (resp SendMsgResponse) KfSendMsgOnEvent(corpId uint, request SendMsgOnEventRequest) (resp SendMsgResponse) KfCustomerBatchGet(corpId uint, userList []string, needEnterSessionContext int) (resp KfCustomerBatchGetResponse) // KfGetCorpQualification 仅支持第三方应用,且需具有“微信客服->获取基础信息”权限 KfGetCorpQualification(corpId uint) (resp KfGetCorpQualificationResponse) KfGetUpgradeServiceConfig(corpId uint) (resp KfGetUpgradeServiceConfigResponse) KfUpgradeService(corpId uint, request UpgradeServiceRequest) (resp internal.BizResponse) KfCancelUpgradeService(corpId uint, request CancelUpgradeServiceRequest) (resp internal.BizResponse) // KfGetCorpStatistic // 查询时间区间[start_time, end_time]为闭区间,最大查询跨度为31天,用户最多可获取最近180天内的数据。 // 当天的数据需要等到第二天才能获取,建议在第二天早上六点以后再调用此接口获取前一天的数据 KfGetCorpStatistic(corpId uint, filter KfGetCorpStatisticFilter) (resp KfGetCorpStatisticResponse) // KfGetServicerStatistic // 查询时间区间[start_time, end_time]为闭区间,最大查询跨度为31天,用户最多可获取最近180天内的数据。 // 当天的数据需要等到第二天才能获取,建议在第二天早上六点以后再调用此接口获取前一天的数据 KfGetServicerStatistic(corpId uint, filter KfGetServicerStatisticFilter) (resp KfGetServicerStatisticResponse) CreateNewOrder(request CreateOrderRequest) (resp OrderResponse) CreateReNewOrderJob(request CreateReNewOrderJobRequest) (resp CreateReNewOrderJobResponse) SubmitOrderJob(request SubmitOrderJobRequest) (resp OrderResponse) ListOrder(request ListOrderRequest) (resp ListOrderResponse) GetOrder(request GetOrderRequest) (resp GetOrderResponse) ListOrderAccount(request ListOrderAccountRequest) (resp ListOrderAccountResponse) ActiveAccount(request ActiveAccountRequest) (resp internal.BizResponse) BatchActiveAccount(request BatchActiveAccountRequest) (resp BatchActiveAccountResponse) GetActiveInfoByCode(request GetActiveInfoByCodeRequest) (resp GetActiveInfoByCodeResponse) BatchGetActiveInfoByCode(request BatchGetActiveInfoByCodeRequest) (resp BatchGetActiveInfoByCodeResponse) ListActivedAccount(request ListActivedAccountRequest) (resp ListActivedAccountResponse) GetActiveInfoByUser(request GetActiveInfoByUserRequest) (resp GetActiveInfoByUserResponse) BatchTransferLicense(request BatchTransferLicenseRequest) (resp BatchTransferLicenseResponse) GetPermitUserList(corpId uint, T int) (resp GetPermitUserListResponse, err error) CheckSingleAgree(corpId uint, request CheckSingleAgreeRequest) (resp CheckSingleAgreeResponse, err error) GetAuditGroupChat(corpId uint, roomId string) (resp GetAuditGroupChatResponse, err error) // ExecuteCorpApi 用于执行未实现的接口,返回 []byte,error ExecuteCorpApi(corpId uint, apiUrl string, query url.Values, data H) (body []byte, err error) // contains filtered or unexported methods }
func NewWeWork ¶
func NewWeWork(c WeWorkConfig) IWeWork
type ImageMessage ¶
type ImageMessage struct { Message Safe int `json:"safe,omitempty" validate:"omitempty,oneof=0 1"` Image MultiMedia `json:"image" validate:"required"` }
type ImageTextArea ¶
type ImageTextArea struct { Type int `json:"type" validate:"omitempty,oneof=0 1 2"` URL string `json:"url"` AppId string `json:"appid,omitempty"` PagePath string `json:"pagepath,omitempty"` Title string `json:"title"` Desc string `json:"desc"` ImageURL string `json:"image_url" validate:"required"` }
ImageTextArea 图文展示型
type InterceptRule ¶
type InterceptRule struct { RuleName string `json:"rule_name" validate:"required,max=20"` WordList []string `json:"word_list" validate:"required,max=300"` SemanticsList []int `json:"semantics_list"` InterceptType int `json:"intercept_type" validate:"required,oneof=1 2"` ApplicableRange struct { UserList []string `json:"user_list" validate:"required_without=DepartmentList,max=1000"` DepartmentList []uint `json:"department_list" validate:"required_without=UserList,max=1000"` } `json:"applicable_range"validate:"required"` }
type InvoiceInfoQuery ¶
type InvoiceInfoQueryBatch ¶
type InvoiceInfoQueryBatch struct {
ItemList []InvoiceInfoQuery `json:"item_list" validate:"required"`
}
type KfAccContactWayResponse ¶ added in v1.4.1
type KfAccContactWayResponse struct { internal.BizResponse Url string `json:"url"` }
type KfAccountAddResponse ¶ added in v1.4.1
type KfAccountAddResponse struct { internal.BizResponse OpenKfId string `json:"open_kfid"` }
type KfAccountListRequest ¶ added in v1.4.2
type KfAccountListResponse ¶ added in v1.4.1
type KfAccountListResponse struct { internal.BizResponse AccountList []struct { OpenKfId string `json:"open_kfid"` Name string `json:"name"` Avatar string `json:"avatar"` } `json:"account_list"` }
type KfCustomerBatchGetResponse ¶ added in v1.4.1
type KfCustomerBatchGetResponse struct { internal.BizResponse CustomerList []struct { ExternalUserid string `json:"external_userid"` Nickname string `json:"nickname"` Avatar string `json:"avatar"` Gender int `json:"gender"` Unionid string `json:"unionid"` EnterSessionContext struct { Scene string `json:"scene"` SceneParam string `json:"scene_param"` WechatChannels struct { Nickname string `json:"nickname"` } `json:"wechat_channels"` } `json:"enter_session_context"` } `json:"customer_list"` InvalidExternalUserid []string `json:"invalid_external_userid"` }
type KfGetCorpQualificationResponse ¶ added in v1.4.1
type KfGetCorpQualificationResponse struct { internal.BizResponse WeChatChannelsBinding bool `json:"wechat_channels_binding"` }
type KfGetCorpStatisticFilter ¶ added in v1.4.1
type KfGetCorpStatisticResponse ¶ added in v1.4.1
type KfGetCorpStatisticResponse struct { internal.BizResponse StatisticList []struct { StatTime int `json:"stat_time"` Statistic struct { SessionCnt int `json:"session_cnt"` CustomerCnt int `json:"customer_cnt"` CustomerMsgCnt int `json:"customer_msg_cnt"` UpgradeServiceCustomerCnt int `json:"upgrade_service_customer_cnt"` AiSessionReplyCnt int `json:"ai_session_reply_cnt"` AiTransferRate int `json:"ai_transfer_rate"` AiKnowledgeHitRate int `json:"ai_knowledge_hit_rate"` } `json:"statistic"` } `json:"statistic_list"` }
type KfGetServicerStatisticFilter ¶ added in v1.4.1
type KfGetServicerStatisticResponse ¶ added in v1.4.1
type KfGetServicerStatisticResponse struct { internal.BizResponse StatisticList []struct { StatTime int `json:"stat_time"` Statistic struct { SessionCnt int `json:"session_cnt"` CustomerCnt int `json:"customer_cnt"` CustomerMsgCnt int `json:"customer_msg_cnt"` ReplyRate int `json:"reply_rate"` FirstReplyAverageSec int `json:"first_reply_average_sec"` SatisfactionInvestgateCnt int `json:"satisfaction_investgate_cnt"` SatisfactionParticipationRate int `json:"satisfaction_participation_rate"` SatisfiedRate int `json:"satisfied_rate"` MiddlingRate int `json:"middling_rate"` DissatisfiedRate int `json:"dissatisfied_rate"` UpgradeServiceCustomerCnt int `json:"upgrade_service_customer_cnt"` UpgradeServiceMemberInviteCnt int `json:"upgrade_service_member_invite_cnt"` UpgradeServiceMemberCustomerCnt int `json:"upgrade_service_member_customer_cnt"` UpgradeServiceGroupchatInviteCnt int `json:"upgrade_service_groupchat_invite_cnt"` UpgradeServiceGroupchatCustomerCnt int `json:"upgrade_service_groupchat_customer_cnt"` } `json:"statistic"` } `json:"statistic_list"` }
type KfGetUpgradeServiceConfigResponse ¶ added in v1.4.1
type KfGetUpgradeServiceConfigResponse struct { internal.BizResponse MemberRange struct { UseridList []string `json:"userid_list"` DepartmentIDList []int `json:"department_id_list"` } `json:"member_range"` GroupchatRange struct { ChatIDList []string `json:"chat_id_list"` } `json:"groupchat_range"` }
type KfServiceStateGetRequest ¶ added in v1.4.1
type KfServiceStateGetResponse ¶ added in v1.4.1
type KfServiceStateGetResponse struct { internal.BizResponse ServiceState int `json:"service_state"` ServicerUserId string `json:"servicer_userid"` }
type KfServiceStateTransRequest ¶ added in v1.4.1
type KfServiceStateTransResponse ¶ added in v1.4.1
type KfServiceStateTransResponse struct { internal.BizResponse MsgCode string `json:"msg_code"` }
type KfServicerListResponse ¶ added in v1.4.1
type KfServicerListResponse struct { internal.BizResponse ServicerList []struct { UserId string `json:"userid,omitempty"` Status uint `json:"status,omitempty"` DepartmentId uint32 `json:"department_id,omitempty"` } `json:"servicer_list"` }
type KfServicerRequest ¶ added in v1.4.1
type KfServicerResponse ¶ added in v1.4.1
type KfServicerResponse struct { internal.BizResponse ResultList []struct { UserId string `json:"userid,omitempty"` DepartmentId uint32 `json:"department_id,omitempty"` internal.BizResponse } `json:"result_list"` }
type KfSyncMsgRequest ¶ added in v1.4.1
type KfSyncMsgResponse ¶ added in v1.4.1
type KfSyncMsgResponse struct { internal.BizResponse NextCursor string `json:"next_cursor"` HasMore bool `json:"has_more"` MsgList []struct { MsgId string `json:"msgid"` OpenKfId string `json:"open_kfid"` ExternalUserId string `json:"external_userid"` SendTime int `json:"send_time"` Origin int `json:"origin"` ServicerUserId string `json:"servicer_userid"` MsgType string `json:"msgtype"` Text MsgText `json:"text,omitempty"` Image MsgImage `json:"image,omitempty"` Voice MsgVoice `json:"voice,omitempty"` Video MsgVideo `json:"video,omitempty"` File MsgFile `json:"file,omitempty"` Location MsgLocation `json:"location,omitempty"` Link MsgLink `json:"link,omitempty"` BusinessCard MsgBusinessCard `json:"business_card,omitempty"` MiniProgram MsgMiniProgram `json:"miniprogram,omitempty"` MsgMenu MsgMenu `json:"msgmenu,omitempty"` Event MsgEvent `json:"event,omitempty"` } `json:"msg_list"` }
type ListActivedAccountRequest ¶ added in v1.4.6
type ListActivedAccountResponse ¶ added in v1.4.6
type ListActivedAccountResponse struct { internal.BizResponse NextCursor string `json:"next_cursor"` HasMore int `json:"has_more"` AccountList []ActiveInfo `json:"account_list"` }
type ListMemberAuthResponse ¶
type ListMemberAuthResponse struct { internal.BizResponse NextCursor string `json:"next_cursor"` MemberAuthList []struct { OpenUserId string `json:"open_userid"` } `json:"member_auth_list"` }
type ListOrderAccountRequest ¶ added in v1.4.6
type ListOrderAccountResponse ¶ added in v1.4.6
type ListOrderRequest ¶ added in v1.4.6
type ListOrderResponse ¶ added in v1.4.6
type ListParentWithDepartmentIdResponse ¶
type ListParentWithDepartmentIdResponse struct { internal.BizResponse Parents []struct { ParentUserid string `json:"parent_userid"` Mobile string `json:"mobile"` IsSubscribe int `json:"is_subscribe"` ExternalUserid string `json:"external_userid,omitempty"` Children []struct { StudentUserid string `json:"student_userid"` Relation string `json:"relation"` Name string `json:"name"` } `json:"children"` } `json:"parents"` }
type MarkDownMessage ¶
type MediaUploadImgResponse ¶
type MediaUploadImgResponse struct { internal.BizResponse Url string `json:"url"` }
type MediaUploadResponse ¶
type MediaUploadResponse struct { internal.BizResponse Type string `json:"type"` MediaId string `json:"media_id"` CreateAt uint64 `json:"create_at"` }
type Message ¶
type Message struct { ToUser string `json:"touser,omitempty" validate:"omitempty,required_without=ToParty ToTag"` ToParty string `json:"toparty,omitempty" validate:"omitempty,required_without=ToUser ToTag"` ToTag string `json:"totag,omitempty" validate:"omitempty,required_without=ToParty ToUser"` EnableIDTrans int `json:"enable_id_trans,omitempty"` EnableDuplicateCheck int `json:"enable_duplicate_check,omitempty"` DuplicateCheckInterval int `json:"duplicate_check_interval,omitempty"` }
type MessageSendResponse ¶
type MessageUpdateTemplateCardResponse ¶
type MessageUpdateTemplateCardResponse struct { internal.BizResponse InvalidUser []string `json:"invalid_user"` }
type MiniProgramMessage ¶
type MiniProgramMessage struct { Message MiniProgramNotice MiniProgramNotice `json:"miniprogram_notice"` }
type MiniProgramNotice ¶
type MiniProgramNotice struct { Appid string `json:"appid" validate:"required"` Page string `json:"page"` Title string `json:"title" validate:"required"` Description string `json:"description"` EmphasisFirstItem bool `json:"emphasis_first_item"` ContentItem []struct { Key string `json:"key" validate:"required"` Value string `json:"value" validate:"required"` } `json:"content_item"` }
type MomentCustomerFilter ¶
type MomentList ¶
type MomentList struct { MomentID string `json:"moment_id"` Creator string `json:"creator"` CreateTime string `json:"create_time"` CreateType int `json:"create_type"` VisibleType int `json:"visible_type"` Text Text `json:"text"` Image []Image `json:"image"` Video Video `json:"video"` Link Link `json:"link"` Location Location `json:"location"` }
type MomentListFilter ¶
type MomentListFilter struct { StartTime int64 `json:"start_time" validate:"required"` EndTime int64 `json:"end_time" validate:"required"` Creator string `json:"creator,omitempty"` FilterType int `json:"filter_type,omitempty" validate:"omitempty,oneof=0 1 2"` Cursor string `json:"cursor"` Limit int `json:"limit"` }
type MomentTask ¶
type MomentTask struct { Text Text `json:"text,omitempty"` Attachments []Attachments `json:"attachments" validate:"required_without=Text.Content"` VisibleRange VisibleRange `json:"visible_range,omitempty"` }
type MomentTaskFilter ¶
type MpArticle ¶
type MpArticle struct { Title string `json:"title" validate:"required"` ThumbMediaId string `json:"thumb_media_id" validate:"required"` Author string `json:"author,omitempty"` ContentSourceUrl string `json:"content_source_url,omitempty"` Content string `json:"content" validate:"required"` Digest string `json:"digest,omitempty"` }
type MpNewsMessage ¶
type MsgBusinessCard ¶ added in v1.4.1
type MsgBusinessCard struct {
UserId string `json:"userid"`
}
type MsgEvent ¶ added in v1.4.1
type MsgEvent struct { EventType string `json:"event_type"` OpenKfid string `json:"open_kfid"` ExternalUserid string `json:"external_userid"` Scene string `json:"scene"` SceneParam string `json:"scene_param"` WelcomeCode string `json:"welcome_code"` WechatChannels struct { Nickname string `json:"nickname"` } `json:"wechat_channels"` }
type MsgLocation ¶ added in v1.4.1
type MsgMenu ¶ added in v1.4.1
type MsgMenu struct { HeadContent string `json:"head_content"` List []struct { Type string `json:"type"` Click struct { ID string `json:"id"` Content string `json:"content"` } `json:"click,omitempty"` View struct { URL string `json:"url"` Content string `json:"content"` } `json:"view,omitempty"` Miniprogram struct { Appid string `json:"appid"` Pagepath string `json:"pagepath"` Content string `json:"content"` } `json:"miniprogram,omitempty"` } `json:"list"` TailContent string `json:"tail_content"` }
type MsgMiniProgram ¶ added in v1.4.1
type MultiMedia ¶
type MultiMedia struct {
MediaId string `json:"media_id" validate:"required"`
}
type NewsMessage ¶
type OpenId2UserIdResponse ¶
type OpenId2UserIdResponse struct { internal.BizResponse UserId string `json:"userid"` }
type OrderResponse ¶ added in v1.4.6
type OrderResponse struct { internal.BizResponse OrderId string `json:"order_id"` }
type Parent ¶
type Parent struct { ParentUserId string `json:"parent_userid" validate:"required"` NewParentUserId string `json:"new_parent_userid,omitempty"` Mobile string `json:"mobile" validate:"required"` ToInvite bool `json:"to_invite"` Children []struct { StudentUserId string `json:"student_userid"` Relation string `json:"relation"` } `json:"children" validate:"required,max=10"` }
type Product ¶
type Product struct { Description string `json:"description" validate:"required,max=300"` Price int `json:"price" validate:"required,max=5000000"` ProductSn string `json:"product_sn" validate:"omitempty,max=128,"` Attachments []struct { Type string `json:"type"` Image struct { MediaID string `json:"media_id"` } `json:"image"` } `json:"attachments" validate:"required"` }
type ProductUpdateRequest ¶
type ProductUpdateRequest struct { ProductId string `json:"product_id" validate:"required"` Description string `json:"description,omitempty" validate:"omitempty,max=300"` Price int `json:"price,omitempty" validate:"omitempty,max=5000000"` ProductSn string `json:"product_sn,omitempty" validate:"omitempty,max=128,"` Attachments []struct { Type string `json:"type"` Image struct { MediaID string `json:"media_id"` } `json:"image"` } `json:"attachments,omitempty" validate:"required"` }
type RegisterCodeInfo ¶
type SchoolDepartment ¶
type SchoolDepartment struct { Name string `json:"name"` ParentId int32 `json:"parentid" validate:"required"` Id int32 `json:"id"` NewId int32 `json:"new_id,omitempty"` Type int32 `json:"type" validate:"required,oneof=1 2 3 4"` RegisterYear int `json:"register_year" validate:"omitempty,min=1970,max=2100"` StandardGrade int `json:"standard_grade"` Order int `json:"order"` DepartmentAdmins []struct { Userid string `json:"userid"` Type int `json:"type" validate:"oneof=1 2 3 4 5"` Subject string `json:"subject"` } `json:"department_admins"` }
type SchoolDepartmentCreateResponse ¶
type SchoolDepartmentCreateResponse struct { internal.BizResponse Id int32 `json:"id"` }
type SchoolDepartmentListResponse ¶
type SchoolDepartmentListResponse struct { internal.BizResponse Departments []struct { Name string `json:"name"` ParentId int `json:"parentid"` ID int `json:"id"` Type int `json:"type"` RegisterYear int `json:"register_year,omitempty"` StandardGrade int `json:"standard_grade,omitempty"` Order int `json:"order,omitempty"` DepartmentAdmins []struct { Userid string `json:"userid"` Type int `json:"type"` } `json:"department_admins"` IsGraduated int `json:"is_graduated,omitempty"` OpenGroupChat int `json:"open_group_chat,omitempty"` GroupChatID string `json:"group_chat_id,omitempty"` } `json:"departments"` }
type SchoolUserGetResponse ¶
type SchoolUserGetResponse struct { internal.BizResponse UserType int `json:"user_type"` Student struct { StudentUserId string `json:"student_userid"` Name string `json:"name"` Department []int `json:"department"` Parents []struct { ParentUserId string `json:"parent_userid"` Relation string `json:"relation"` Mobile string `json:"mobile"` IsSubscribe int `json:"is_subscribe"` ExternalUserId string `json:"external_userid,omitempty"` } `json:"parents"` } `json:"student,omitempty"` Parent struct { ParentUserId string `json:"parent_userid"` Mobile string `json:"mobile"` IsSubscribe int `json:"is_subscribe"` ExternalUserId string `json:"external_userid"` Children []struct { StudentUserId string `json:"student_userid"` Relation string `json:"relation"` } `json:"children"` } `json:"parent,omitempty"` }
type SchoolUserListResponse ¶
type SchoolUserListResponse struct { internal.BizResponse Students []struct { StudentUserid string `json:"student_userid"` Name string `json:"name"` Department []int `json:"department"` Parents []struct { ParentUserid string `json:"parent_userid"` Relation string `json:"relation"` Mobile string `json:"mobile"` IsSubscribe int `json:"is_subscribe"` ExternalUserid string `json:"external_userid,omitempty"` } `json:"parents"` } `json:"students"` }
type SelectList ¶
type SelectList struct { QuestionKey string `json:"question_key" validate:"required"` Title string `json:"title,omitempty"` SelectedID string `json:"selected_id,omitempty"` OptionList []struct { ID string `json:"id" validate:"required"` Text string `json:"text" validate:"required"` } `json:"option_list" validate:"required"` }
SelectList 多项选择型
type SendMsgOnEventRequest ¶ added in v1.4.1
type SendMsgRequest ¶ added in v1.4.1
type SendMsgRequest struct { ToUser string `json:"touser" validate:"required"` OpenKfId string `json:"open_kfid" validate:"required"` MsgId string `json:"msgid" validate:"required"` MsgType string `json:"msgtype"` Text *MsgText `json:"text,omitempty"` Image *MsgImage `json:"image,omitempty"` Voice *MsgVoice `json:"voice,omitempty"` Video *MsgVideo `json:"video,omitempty"` File *MsgFile `json:"file,omitempty"` Location *MsgLocation `json:"location,omitempty"` Link *MsgLink `json:"link,omitempty"` MiniProgram *MsgMiniProgram `json:"miniprogram,omitempty"` MsgMenu *MsgMenu `json:"msgmenu,omitempty"` }
type SendMsgResponse ¶ added in v1.4.1
type SendMsgResponse struct { internal.BizResponse MsgId string `json:"msgid"` }
type SenderList ¶
type SubmitButton ¶
type SubmitOrderJobRequest ¶ added in v1.4.6
type TagAddOrDelUsersResponse ¶
type TagAddOrDelUsersResponse struct { internal.BizResponse InvalidList string `json:"invalidlist,omitempty"` InvalidParty []int32 `json:"invalidparty,omitempty"` }
type TagCreateResponse ¶
type TagCreateResponse struct { internal.BizResponse TagId int `json:"tagid"` }
type TagListResponse ¶
type TagListResponse struct { internal.BizResponse TagList []Tag `json:"taglist"` }
type TagUserListResponse ¶
type TemplateCard ¶
type TemplateCard struct { CardType TemplateCardType `json:"card_type"` Source Source `json:"source"` ActionMenu *ActionMenu `json:"action_menu,omitempty" validate:"required_with=TaskID"` TaskID string `json:"task_id,omitempty" validate:"required_with=ActionMenu"` MainTitle MainTitle `json:"main_title"` QuoteArea QuoteArea `json:"quote_area"` // 文本通知型 EmphasisContent *EmphasisContent `json:"emphasis_content,omitempty"` SubTitleText string `json:"sub_title_text,omitempty"` // 图文展示型 ImageTextArea *ImageTextArea `json:"image_text_area,omitempty"` CardImage *CardImage `json:"card_image,omitempty"` HorizontalContentList []HorizontalContentList `json:"horizontal_content_list"` JumpList []JumpList `json:"jump_list"` CardAction CardAction `json:"card_action,omitempty"` // 按钮交互型 ButtonSelection *ButtonSelection `json:"button_selection,omitempty"` ButtonList []Button `json:"button_list,omitempty" validate:"omitempty,max=6"` // 投票选择型 CheckBox *CheckBox `json:"checkbox,omitempty"` SelectList []SelectList `json:"select_list,omitempty" validate:"max=3"` SubmitButton *SubmitButton `json:"submit_button,omitempty"` }
TODO: CardAction 必填(text_notice,news_notice)判断
type TemplateCardMessage ¶
type TemplateCardMessage struct { Message TemplateCard TemplateCard `json:"template_card"` }
TemplateCardMessage 测试发送模板卡片消息必需配置应用回调地址
type TemplateCardType ¶
type TemplateCardType string
const ( CardTypeTextNotice TemplateCardType = "text_notice" CardTypeNewsNotice TemplateCardType = "news_notice" CardTypeButtonInteraction TemplateCardType = "button_interaction" CardTypeVoteInteraction TemplateCardType = "vote_interaction" CardTypeMultipleInteraction TemplateCardType = "multiple_interaction" )
type TemplateCardUpdateMessage ¶
type TemplateCardUpdateMessage struct { UserIds []string `json:"userids" validate:"omitempty,max=100"` PartyIds []int64 `json:"partyids" validate:"omitempty,max=100"` TagIds []int32 `json:"tagids" validate:"omitempty,max=100"` AtAll int `json:"atall,omitempty"` ResponseCode string `json:"response_code" validate:"required"` Button struct { ReplaceName string `json:"replace_name" validate:"required"` } `json:"button" validate:"required_without=TemplateCard"` TemplateCard TemplateCard `json:"template_card" validate:"required_without=Button"` ReplaceText string `json:"replace_text,omitempty"` }
type TextCardMessage ¶
type TextMessage ¶
type TicketResponse ¶ added in v1.4.0
type TicketResponse struct { internal.BizResponse Ticket string `json:"ticket"` ExpiresIn int `json:"expires_in"` }
type ToServiceExternalUseridResponse ¶
type ToServiceExternalUseridResponse struct {
internal.BizResponse
}
type TransferCustomerRequest ¶
type TransferCustomerRequest struct { HandoverUserId string `json:"handover_userid" validate:"required"` TakeoverUserId string `json:"takeover_userid" validate:"required"` ExternalUserId []string `json:"external_userid" validate:"required"` TransferSuccessMsg string `json:"transfer_success_msg,omitempty" validate:"omitempty,max=200"` }
type TransferCustomerResponse ¶
type TransferCustomerResponse struct { internal.BizResponse Customer []struct { ExternalUserId string `json:"external_userid"` ErrCode int `json:"errcode"` } }
type TransferResultRequest ¶
type TransferResultResponse ¶
type UnAssignedInfo ¶
type UnAssignedRequest ¶
type UnAssignedResponse ¶
type UnAssignedResponse struct { internal.BizResponse Info []UnAssignedInfo `json:"info"` IsLast bool `json:"is_last"` NextCursor string `json:"next_cursor"` }
type UnionId2ExternalUserIdResponse ¶
type UnionId2ExternalUserIdResponse struct { internal.BizResponse ExternalUserId string `json:"external_userid"` }
type UpdateInterceptRuleRequest ¶
type UpdateInterceptRuleRequest struct { RuleId string `json:"rule_id" validate:"required"` RuleName string `json:"rule_name,omitempty"` WordList []string `json:"word_list,omitempty"` ExtraRule struct { SemanticsList []int `json:"semantics_list"` } `json:"extra_rule,omitempty"` InterceptType int `json:"intercept_type,omitempty" validate:"omitempty,oneof=1 2"` AddApplicableRange struct { UserList []string `json:"user_list" validate:"required_without=DepartmentList,max=1000"` DepartmentList []uint `json:"department_list" validate:"required_without=UserList,max=1000"` } `json:"add_applicable_range,omitempty"` RemoveApplicableRange struct { UserList []string `json:"user_list" validate:"required_without=DepartmentList,max=1000"` DepartmentList []uint `json:"department_list" validate:"required_without=UserList,max=1000"` } `json:"remove_applicable_range,omitempty"` }
type UpdateInvoiceStatusBatchRequest ¶
type UpdateInvoiceStatusBatchRequest struct { OpenId string `json:"openid" validate:"required"` ReimburseStatus string `json:"reimburse_status" validate:"required,oneof=INVOICE_REIMBURSE_INIT INVOICE_REIMBURSE_LOCK INVOICE_REIMBURSE_CLOSURE"` InvoiceList []InvoiceInfoQuery `json:"invoice_list" validate:"required"` }
type UpdateInvoiceStatusRequest ¶
type UpdateInvoiceStatusRequest struct { CardId string `json:"card_id" validate:"required"` EncryptCode string `json:"encrypt_code" validate:"required"` ReimburseStatus string `json:"reimburse_status" validate:"required,oneof=INVOICE_REIMBURSE_INIT INVOICE_REIMBURSE_LOCK INVOICE_REIMBURSE_CLOSURE"` }
type UpgradeInfoResponse ¶
type UpgradeInfoResponse struct { internal.BizResponse NextUpgradeTime int `json:"next_upgrade_time"` }
type UpgradeRequest ¶
type UpgradeServiceGroupChat ¶ added in v1.4.1
type UpgradeServiceMember ¶ added in v1.4.1
type UpgradeServiceRequest ¶ added in v1.4.1
type UpgradeServiceRequest struct { OpenKfId string `json:"open_kfid" validate:"required"` ExternalUserId string `json:"external_userid" validate:"required"` Type int `json:"type" validate:"required,oneof=1 2"` Member *UpgradeServiceMember `json:"member,omitempty"` GroupChat *UpgradeServiceGroupChat `json:"groupchat,omitempty"` }
type User ¶
type User struct { OpenUserId string `json:"open_userid,omitempty"` // 仅在查询时返回 Userid string `json:"userid" validate:"required"` Name string `json:"name" validate:"required"` Alias string `json:"alias,omitempty"` Mobile string `json:"mobile" validate:"required_without=Email,omitempty"` Department []int32 `json:"department" validate:"required,max=100"` Order []int32 `json:"order,omitempty"` Position string `json:"position,omitempty"` Gender string `json:"gender,omitempty" validate:"omitempty,oneof=1 2"` Email string `json:"email" validate:"required_without=Mobile,omitempty,email"` BizEmail string `json:"biz_email"` IsLeaderInDept []int `json:"is_leader_in_dept,omitempty"` DirectLeader []string `json:"direct_leader"` Enable int `json:"enable"` Avatar string `json:"avatar,omitempty"` ThumbAvatar string `json:"thumb_avatar,omitempty"` Telephone string `json:"telephone,omitempty"` Address string `json:"address,omitempty"` MainDepartment int32 `json:"main_department,omitempty"` Status int `json:"status"` QrCode string `json:"qr_code"` Extattr struct { Attrs []Attrs `json:"attrs,omitempty"` } `json:"extattr,omitempty"` ToInvite bool `json:"to_invite,omitempty"` ExternalPosition string `json:"external_position,omitempty"` ExternalProfile struct { ExternalCorpName string `json:"external_corp_name,omitempty"` WechatChannels struct { Nickname string `json:"nickname,omitempty"` } `json:"wechat_channels,omitempty"` ExternalAttr []ExternalAttr `json:"external_attr,omitempty"` } `json:"external_profile,omitempty"` }
type UserGetResponse ¶
type UserGetResponse struct { internal.BizResponse User }
type UserId2OpenIdResponse ¶
type UserId2OpenIdResponse struct { internal.BizResponse OpenId string `json:"openid"` }
type UserListResponse ¶
type UserListResponse struct { internal.BizResponse UserList []User `json:"userlist"` }
type UserSimpleListResponse ¶
type Video ¶
type Video struct { MediaID string `json:"media_id" validate:"required"` Title string `json:"title,omitempty"` Description string `json:"description,omitempty"` }
Video 应用消息发关时title和description为可选项 朋友圈发送时只设置 media_id即可
type VideoMessage ¶
type VisibleRange ¶
type VisibleRange struct { SenderList SenderList `json:"sender_list,omitempty"` ExternalContactList ExternalContactList `json:"external_contact_list,omitempty"` }
type VoiceMessage ¶
type VoiceMessage struct { Message Safe int `json:"safe,omitempty"` Voice MultiMedia `json:"voice" validate:"required"` }
Source Files ¶
- agent.go
- corp_tag.go
- department.go
- edu.go
- edu_department.go
- edu_living.go
- edu_parent.go
- edu_payment.go
- edu_student.go
- external_contact.go
- external_contact_statistics.go
- external_contact_way.go
- external_intercept_rule.go
- external_message.go
- external_product_album.go
- external_welcome.go
- groupchat.go
- init.go
- invoice.go
- jsticket.go
- kf.go
- license.go
- media.go
- message.go
- message_template_card.go
- moment.go
- msg_audit.go
- provider.go
- suite.go
- tag.go
- transfer_customer.go
- user.go
- wework.go
Click to show internal directories.
Click to hide internal directories.