Documentation
¶
Index ¶
- type AddTagReq
- type Articles
- type Attachment
- type Attribute
- type AttributeMiniProgram
- type AttributeText
- type AttributeWeb
- type BatchUserId
- type BatchUserIdRes
- type CreateUser
- type DepUser
- type Department
- type DepartmentId
- type EditTagReq
- type ExFile
- type ExImage
- type ExLink
- type ExMsgTemplate
- type ExProgram
- type ExText
- type ExVideo
- type ExVoice
- type ExWelcomeMsg
- type ExternalContact
- type ExternalContactDetail
- type ExternalGroupListReq
- type ExternalProfile
- type ExternalRemark
- type ExternalUserIdItem
- type ExternalUserIds
- type FollowUser
- type Group
- type GroupAdmin
- type GroupChat
- type GroupChatDetail
- type GroupMember
- type GroupMsg
- type GroupMsgReq
- type Head
- type ImageMsg
- type Invitor
- type MarkTagReq
- type MarkdownMsg
- type Message
- type MsgTemplateRes
- type News
- type NewsMsg
- type OpenUserId
- type OpenUserIdInfo
- type OwnerFilter
- type Tag
- type TagGroup
- type TagGroupItem
- type TagInfo
- type TextCard
- type TextCardMsg
- type TextMsg
- type ToAgent
- type ToGroup
- type ToRoot
- type ToWho
- type UserIdReq
- type UserInfo
- type UserInfoWithCode
- type VideoMsg
- type VoiceMsg
- type WechatChannels
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Attachment ¶ added in v1.0.34
type Attribute ¶
type Attribute struct { Type int `json:"type"` Name string `json:"name"` Text *AttributeText `json:"text,omitempty"` Web *AttributeWeb `json:"web,omitempty"` MiniProgram *AttributeMiniProgram `json:"miniprogram,omitempty"` }
type AttributeMiniProgram ¶
type AttributeText ¶
type AttributeText struct {
Value string `json:"value"`
}
type AttributeWeb ¶
type BatchUserId ¶
type BatchUserIdRes ¶
type BatchUserIdRes struct { ExternalContactList []ExternalContactDetail `json:"external_contact_list"` NextCursor string `json:"next_cursor"` }
type CreateUser ¶
type CreateUser struct { Userid string `json:"userid"` Name string `json:"name"` Alias string `json:"alias"` Mobile string `json:"mobile"` Position string `json:"position"` Gender string `json:"gender"` Email string `json:"email"` BizMail string `json:"biz_mail"` AvatarMediaId string `json:"avatar_mediaid"` Telephone string `json:"telephone"` Address string `json:"address"` ExternalPosition string `json:"external_position"` ToInvite bool `json:"to_invite"` Enable int `json:"enable"` MainDepartment int64 `json:"main_department"` Department []int64 `json:"department"` IsLeaderInDept []int64 `json:"is_leader_in_dept"` Order []int `json:"order"` DirectLeader []string `json:"direct_leader"` Extattr *Attribute `json:"extattr,omitempty"` ExternalProfile *ExternalProfile `json:"external_profile,omitempty"` }
type Department ¶
type DepartmentId ¶
type EditTagReq ¶ added in v1.0.34
type ExMsgTemplate ¶
type ExWelcomeMsg ¶
type ExWelcomeMsg struct { Text *ExText `json:"text,omitempty"` Image *ExImage `json:"image,omitempty"` Link *ExLink `json:"link,omitempty"` MiniProgram *ExProgram `json:"miniprogram,omitempty"` Code int64 `json:"welcome_code"` }
func (*ExWelcomeMsg) IsAgent ¶
func (h *ExWelcomeMsg) IsAgent() bool
func (*ExWelcomeMsg) IsGroup ¶
func (h *ExWelcomeMsg) IsGroup() bool
func (*ExWelcomeMsg) IsWelcome ¶
func (h *ExWelcomeMsg) IsWelcome() bool
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"` UnionId string `json:"unionid"` Type int `json:"type"` Gender int `json:"gender"` ExternalProfile *ExternalProfile `json:"external_profile,omitempty"` }
type ExternalContactDetail ¶
type ExternalContactDetail struct { ExternalContact ExternalContact `json:"external_contact"` FollowUser FollowUser `json:"follow_user"` }
type ExternalGroupListReq ¶ added in v1.0.34
type ExternalGroupListReq struct { StatusFilter int `json:"status_filter"` OwnerFilter OwnerFilter `json:"owner_filter"` Cursor string `json:"cursor"` Limit int `json:"limit"` }
type ExternalProfile ¶
type ExternalProfile struct { ExternalAttr []Attribute `json:"external_attr,omitempty"` WechatChannels WechatChannels `json:"wechat_channels,omitempty"` ExternalCorpName string `json:"external_corp_name,omitempty"` }
type ExternalRemark ¶
type ExternalRemark struct { Userid string `json:"userid"` ExternalUserid string `json:"external_userid"` Remark string `json:"remark"` Description string `json:"description"` RemarkCompany string `json:"remark_company"` RemarkPicMediaId string `json:"remark_pic_mediaid"` RemarkMobiles []string `json:"remark_mobiles"` }
type ExternalUserIdItem ¶
type ExternalUserIds ¶
type ExternalUserIds struct {
Items []ExternalUserIdItem `json:"items"`
}
type FollowUser ¶ added in v1.0.34
type FollowUser struct { Userid string `json:"userid"` Remark string `json:"remark"` Description string `json:"description"` Tags []Tag `json:"tags,omitempty"` RemarkMobiles []string `json:"remark_mobiles,omitempty"` RemarkCorpName string `json:"remark_corp_name,omitempty"` OperUserid string `json:"oper_userid"` State string `json:"state,omitempty"` CreateTime int64 `json:"createtime"` AddWay int `json:"add_way"` WechatChannels *WechatChannels `json:"wechat_channels,omitempty"` }
type Group ¶
type Group struct { Id string `json:"chatid"` Name string `json:"name"` Owner string `json:"owner"` Users []string `json:"userlist"` }
Group 群组
type GroupAdmin ¶ added in v1.0.34
type GroupAdmin struct {
Userid string `json:"userid"`
}
type GroupChatDetail ¶ added in v1.0.34
type GroupChatDetail struct { ChatId string `json:"chat_id"` Name string `json:"name"` Owner string `json:"owner"` CreateTime int64 `json:"create_time"` Notice string `json:"notice"` MemberList []GroupMember `json:"member_list"` AdminList []GroupAdmin `json:"admin_list"` }
type GroupMember ¶ added in v1.0.34
type GroupMember struct { Userid string `json:"userid"` Type int `json:"type"` JoinTime int64 `json:"join_time"` JoinScene int `json:"join_scene"` Invitor Invitor `json:"invitor,omitempty"` GroupNickname string `json:"group_nickname"` Name string `json:"name"` Unionid string `json:"unionid,omitempty"` }
type GroupMsgReq ¶ added in v1.0.34
type Head ¶
type Head struct { ChatId string `json:"chatid,omitempty"` AgentId int64 `json:"agentid,omitempty"` //应用id ToUser string `json:"touser,omitempty"` //企业号中的用户帐号 ToTag string `json:"totag,omitempty"` //企业号中的标签id,群发使用(推荐) ToParty string `json:"toparty,omitempty"` //企业号中的部门id,群发时使用。 Type string `json:"msgtype"` Safe int `json:"safe"` }
{ "chatid": "", "touser": "UserID1|UserID2|UserID3", "toparty": " PartyID1 | PartyID2 ", "totag": " TagID1 | TagID2 ", "agentid": 1, "msgtype": "text", "text": { "content": "Holiday Service For Pony(http://xxxxx)" }, "safe":0 }
type MarkTagReq ¶ added in v1.0.34
type MarkdownMsg ¶
type MsgTemplateRes ¶ added in v1.0.34
type News ¶
type News struct {
Articles []Articles `json:"articles"`
}
News "news" : { "articles" : [ { "title" : "中秋节礼品领取", "description" : "今年中秋节公司有豪礼相送", "url" : "URL", "picurl" : "http://res.mail.qq.com/node/ww/wwopenmng/images/independent/doc/test_pic_msg1.png" }
type OpenUserId ¶
type OpenUserId struct { OpenUseridList []OpenUserIdInfo `json:"open_userid_list"` InvalidUseridList []string `json:"invalid_userid_list"` }
type OpenUserIdInfo ¶
type OwnerFilter ¶ added in v1.0.34
type OwnerFilter struct {
UseridList []string `json:"userid_list"`
}
type TagGroupItem ¶ added in v1.0.34
type TextCard ¶
type TextCard struct { Title string `json:"title"` Desc string `json:"description"` Url string `json:"url"` BtnTxt string `json:"btntxt"` }
TextCard "textcard" : { "title" : "领奖通知", "description" : "<div class=\"gray\">2016年9月26日</div> <div class=\"normal\">恭喜你抽中iPhone 7一台,领奖码:xxxx</div><div class=\"highlight\">请于2016年10月10日前联系行政同事领取</div>", "url" : "URL", "btntxt":"更多" }
type TextCardMsg ¶
TextCardMsg 文本卡片消息