externalcontact

package
v1.2.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 23, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddContactWay

func AddContactWay(params *ParamsContactWayAdd, result *ResultContactWayAdd) wx.Action

AddContactWay 配置客户联系「联系我」方式

func AddCorpTag

func AddCorpTag(params *ParamsCorpTagAdd, result *ResultCorpTagAdd) wx.Action

AddCorpTag 添加企业客户标签

func AddGroupWelcomeTemplate

func AddGroupWelcomeTemplate(params *ParamsGroupWelcomeTemplateAdd, result *ResultGroupWelcomeTemplateAdd) wx.Action

AddGroupWelcomeTemplate 添加入群欢迎语素材

func AddInterceptRule

func AddInterceptRule(params *ParamsInterceptRuleAdd, result *ResultInterceptRuleAdd) wx.Action

AddInterceptRule 新建敏感词规则

func AddMomentTask

func AddMomentTask(params *ParamsMomentTaskAdd, result *ResultMomentTaskAdd) wx.Action

AddMomentTask 创建客户朋友圈的发表任务

func AddMsgTemplate

func AddMsgTemplate(params *ParamsMsgTemplateAdd, result *ResultMsgTemplateAdd) wx.Action

AddMsgTemplate 创建企业群发

func AddProductAlbum

func AddProductAlbum(params *ParamsProductAlbumAdd, result *ResultProductAlbumAdd) wx.Action

AddProductAlbum 创建商品图册

func AddStrategyTag

func AddStrategyTag(params *ParamsStrategyTagAdd, result *ResultStrategyTagAdd) wx.Action

AddStrategyTag 为指定规则组创建企业客户标签

func BatchGetByUser

func BatchGetByUser(userIDs []string, cursor string, limit int, result *ResultBatchGetByUser) wx.Action

BatchGetByUser 批量获取客户详情

func CloseTempChat

func CloseTempChat(userID, externalUserID string) wx.Action

CloseTempChat 结束临时会话

func CreateCustomerStrategy

func CreateCustomerStrategy(params *ParamsCustomerStrategyCreate, result *ResultCustomerStrategyCreate) wx.Action

CreateCustomerStrategy 创建新的客户联系规则组

func CreateMomentStrategy

func CreateMomentStrategy(params *ParamsMomentStrategyCreate, result *ResultMomentStrategyCreate) wx.Action

CreateMomentStrategy 创建新的客户朋友圈规则组

func DeleteContactWay

func DeleteContactWay(configID string) wx.Action

DeleteContactWay 删除企业已配置的「联系我」方式

func DeleteCorpTag

func DeleteCorpTag(tagIDs, groupIDs []string, agentID int64) wx.Action

DeleteCorpTag 删除企业客户标签

func DeleteCustomerStrategy

func DeleteCustomerStrategy(strategyID int64) wx.Action

DeleteCustomerStrategy 删除客户联系规则组

func DeleteGroupWelcomeTemplate

func DeleteGroupWelcomeTemplate(templateID string, agentID int64) wx.Action

DeleteGroupWelcomeTemplate 删除入群欢迎语素材

func DeleteInterceptRule

func DeleteInterceptRule(ruleID string) wx.Action

DeleteInterceptRule 删除敏感词规则

func DeleteMomentStrategy

func DeleteMomentStrategy(strategyID int64) wx.Action

DeleteMomentStrategy 删除客户朋友圈规则组

func DeleteProductAlbum

func DeleteProductAlbum(productID string) wx.Action

DeleteProductAlbum 删除商品图册

func DeleteStrategyTag

func DeleteStrategyTag(tagIDs, groupIDs []string) wx.Action

DeleteStrategyTag 删除指定规则组下的企业客户标签

func EditCorpTag

func EditCorpTag(params *ParamsCorpTagEdit) wx.Action

EditCorpTag 编辑企业客户标签

func EditCustomerStrategy

func EditCustomerStrategy(params *ParamsCustomerStrategyEdit) wx.Action

EditCustomerStrategy 编辑客户联系规则组及其管理范围

func EditGroupWelcomeTemplate

func EditGroupWelcomeTemplate(params *ParamsGroupWelcomeTemplateEdit) wx.Action

EditGroupWelcomeTemplate 编辑入群欢迎语素材

func EditMomentStrategy

func EditMomentStrategy(params *ParamsMomentStrategyEdit) wx.Action

EditMomentStrategy 编辑客户朋友圈规则组及其管理范围

func EditStrategyTag

func EditStrategyTag(params *ParamsStrategyTagEdit) wx.Action

EditStrategyTag 编辑指定规则组下的企业客户标签

func Get

func Get(externalUserID, cursor string, result *ResultGet) wx.Action

Get 获取客户详情

func GetContactWay

func GetContactWay(configID string, result *ResultContactWayGet) wx.Action

GetContactWay 获取企业已配置的「联系我」方式

func GetCustomerStrategy

func GetCustomerStrategy(strategyID int64, result *ResultCustomerStrategyGet) wx.Action

GetCustomerStrategy 获取客户联系规则组详情

func GetCustomerStrategyRange

func GetCustomerStrategyRange(strategyID int64, cursor string, limit int, result *ResultCustomerStrategyRange) wx.Action

GetCustomerStrategyRange 获取客户联系规则组管理范围

func GetGroupChat

func GetGroupChat(chatID string, needName int, result *ResultGroupChatGet) wx.Action

GetGroupChat 获取客户群详情

func GetGroupChatStatistic

func GetGroupChatStatistic(params *ParamsGroupChatStatistic, result *ResultGroupChatStatistic) wx.Action

GetGroupChatStatistic 获取「群聊数据统计」数据(注意,企业微信仅存储180天的数据)

func GetGroupMsgSendResult

func GetGroupMsgSendResult(params *ParamsGroupMsgSendResult, result *ResultGroupMsgSendResult) wx.Action

GetGroupMsgSendResult 获取企业群发成员执行结果

func GetGroupMsgTask

func GetGroupMsgTask(params *ParamsGroupMsgTask, result *ResultGroupMsgTask) wx.Action

GetGroupMsgTask 获取群发成员发送任务列表

func GetGroupWelcomeTemplate

func GetGroupWelcomeTemplate(templateID string, result *ResultGroupWelcomeTemplateGet) wx.Action

GetGroupWelcomeTemplate 获取入群欢迎语素材

func GetInterceptRule

func GetInterceptRule(ruleID string, result *ResultInterceptRuleGet) wx.Action

GetInterceptRule 获取敏感词规则详情

func GetMomentComments

func GetMomentComments(momentID, userID, cursor string, limit int, result *ResultMomentComments) wx.Action

GetMomentComments 获取客户朋友圈的互动数据

func GetMomentSendResult

func GetMomentSendResult(momentID, userID, cursor string, limit int, result *ResultMomentSendResult) wx.Action

GetMomentSendResult 获取客户朋友圈发表后的可见客户列表

func GetMomentStrategy

func GetMomentStrategy(strategyID int64, result *ResultMomentStrategyGet) wx.Action

GetMomentStrategy 获取客户朋友圈规则组详情

func GetMomentStrategyRange

func GetMomentStrategyRange(strategyID int64, cursor string, limit int, result *ResultMomentStrategyRange) wx.Action

GetMomentStrategyRange 获取客户朋友圈规则组管理范围

func GetMomentTask

func GetMomentTask(momentID, cursor string, limit int, result *ResultMomentTaskGet) wx.Action

GetMomentTask 获取客户朋友圈企业发表的列表

func GetMomentTaskResult

func GetMomentTaskResult(jobID string, result *ResultMomentTaskResult) wx.Action

GetMomentTaskResult 获取客户朋友圈的任务创建结果

func GetProductAlbum

func GetProductAlbum(productID string, result *ResultProductAlbumGet) wx.Action

GetProductAlbum 获取商品图册

func GetResignedTransferResult

func GetResignedTransferResult(handoverUserID, takeoverUserID, cursor string, result *ResultResignedTransferResult) wx.Action

GetResignedTransferResult 查询客户接替状态

func GetTransferResult

func GetTransferResult(handoverUserID, takeoverUserID, cursor string, result *ResultTransferResult) wx.Action

GetTransferResult 查询客户接替状态

func GetUserBehaviorData

func GetUserBehaviorData(params *ParamsUserBehaviorData, result *ResultUserBehaviorData) wx.Action

GetUserBehaviorData 获取「联系客户统计」数据

func List

func List(userID string, result *ResultList) wx.Action

List 获取客户列表

func ListContactWay

func ListContactWay(params *ParamsContactWayList, result *ResultContactWayList) wx.Action

ListContactWay 获取企业已配置的「联系我」列表

func ListCorpTag

func ListCorpTag(tagIDs, groupIDs []string, result *ResultCorpTagList) wx.Action

ListCorpTag 获取企业标签库

func ListCustomerStrategy

func ListCustomerStrategy(cursor string, limit int, result *ResultCustomerStrategyList) wx.Action

ListCustomerStrategy 获取客户联系规则组列表

func ListFollowUser

func ListFollowUser(result *ResultFollowUserList) wx.Action

ListFollowUser 获取配置了客户联系功能的成员列表

func ListGroupChat

func ListGroupChat(params *ParamsGroupChatList, result *ResultGroupChatList) wx.Action

ListGroupChat 获取客户群列表

func ListGroupMsg

func ListGroupMsg(params *ParamsGroupMsgList, result *ResultGroupMsgList) wx.Action

ListGroupMsg 获取群发记录列表

func ListInterceptRule

func ListInterceptRule(result *ResultInterceptRuleList) wx.Action

ListInterceptRule 获取敏感词规则列表

func ListMoment

func ListMoment(params *ParamsMomentList, result *ResultMomentList) wx.Action

ListMoment 获取企业全部的发表列表

func ListMomentCustomer

func ListMomentCustomer(momentID, userID, cursor string, limit int, result *ResultMomentCustomerList) wx.Action

ListMomentCustomer 获取客户朋友圈发表时选择的可见范围

func ListMomentStrategy

func ListMomentStrategy(cursor string, limit int, result *ResultMomentStrategyList) wx.Action

ListMomentStrategy 获取客户朋友圈规则组列表

func ListProductAlbum

func ListProductAlbum(cursor string, limit int, result *ResultProductAlbumList) wx.Action

ListProductAlbum 获取商品图册列表

func ListStrategyTag

func ListStrategyTag(strategyID int64, tagIDs, groupIDs []string, result *ResultStrategyTagList) wx.Action

ListStrategyTag 获取指定规则组下的企业客户标签

func ListUnassigned

func ListUnassigned(pageID, pageSize int, cursor string, result *ResultUnassignedList) wx.Action

ListUnassigned 获取待分配的离职成员列表

func MarkTag

func MarkTag(params *ParamsTagMark) wx.Action

MarkTag 编辑客户企业标签

func OpenGIDToChatID

func OpenGIDToChatID(opengid string, result *ResultOpenGIDToChatID) wx.Action

OpenGIDToChatID 客户群opengid转换

func Remark

func Remark(params *ParamsRemark) wx.Action

Remark 修改客户备注信息

func SendWelcomeMsg

func SendWelcomeMsg(params *ParamsWelcomeMsgSend) wx.Action

SendWelcomeMsg 发送新客户欢迎语

func TransferCustomer

func TransferCustomer(params *ParamsCustomerTranster, result *ResultCustomerTransfer) wx.Action

TransferCustomer 分配在职成员的客户

func TransferGroupChat

func TransferGroupChat(chatIDs []string, newOwner string, result *ResultGroupChatTransfer) wx.Action

TransferGroupChat 分配离职成员的客户群

func TransferResignedCustomer

func TransferResignedCustomer(handoverUserID, takeoverUserID string, externalUserIDs []string, result *ResultResignedCustomerTransfer) wx.Action

TransferResignedCustomer 分配离职成员的客户

func UpdateContactWay

func UpdateContactWay(params *ParamsContactWayUpdate) wx.Action

UpdateContactWay 更新企业已配置的「联系我」方式

func UpdateInterceptRule

func UpdateInterceptRule(params *ParamsInterceptRuleUpdate) wx.Action

UpdateInterceptRule 修改敏感词规则

func UpdateProductAlbum

func UpdateProductAlbum(params *ParamsProductAlbumUpdate) wx.Action

UpdateProductAlbum 编辑商品图册

func UploadAttachment

func UploadAttachment(mediaType MediaType, attachmentType AttachmentType, attachmentPath string, result *ResultAttachmentUpload) wx.Action

UploadAttachment 上传附件资源

func UploadAttachmentByURL

func UploadAttachmentByURL(mediaType MediaType, attachmentType AttachmentType, filename, url string, result *ResultAttachmentUpload) wx.Action

UploadAttachmentByURL 上传附件资源

Types

type AttachmentType

type AttachmentType int
const (
	AttachmentMoment       AttachmentType = 1 // 朋友圈
	AttachmentProductAlbum AttachmentType = 2 // 商品相册
)

type Attr

type Attr struct {
	Type        int        `json:"type"`
	Name        string     `json:"name"`
	Text        *AttrText  `json:"text,omitempty"`
	Web         *AttrWeb   `json:"web,omitempty"`
	Miniprogram *AttrMinip `json:"miniprogram,omitempty"`
}

type AttrMinip

type AttrMinip struct {
	Title    string `json:"title"`
	AppID    string `json:"appid"`
	PagePath string `json:"pagepath"`
}

type AttrText

type AttrText struct {
	Value string `json:"value"`
}

type AttrWeb

type AttrWeb struct {
	Title string `json:"title"`
	URL   string `json:"url"`
}

type ChatType

type ChatType string

ChatType 群发任务的类型

const (
	ChatSingle ChatType = "single" // 发送给客户
	ChatGroup  ChatType = "group"  // 发送给客户群
)

type Conclusions

type Conclusions struct {
	Text  *TextConclusion  `json:"text,omitempty"`
	Image *ImageConclusion `json:"image,omitempty"`
	Link  *LinkConclusion  `json:"link,omitempty"`
	Minip *MinipConclusion `json:"miniprogram,omitempty"`
}

type ContactScene

type ContactScene int
const (
	ContactMinip  ContactScene = 1
	ContactQRCode ContactScene = 2
)

type ContactType

type ContactType int
const (
	ContactSingle ContactType = 1
	ContactMulti  ContactType = 2
)

type ContactWay

type ContactWay struct {
	ConfigID      string       `json:"config_id"`
	Type          ContactType  `json:"type"`
	Scene         ContactScene `json:"scene"`
	Style         int          `json:"style"`
	Remark        string       `json:"remark"`
	SkipVerify    bool         `json:"skip_verify"`
	State         string       `json:"state"`
	QRCode        string       `json:"qr_code"`
	User          []string     `json:"user"`
	Party         []int64      `json:"party"`
	IsTemp        bool         `json:"is_temp"`
	ExpiresIn     int          `json:"expires_in"`
	ChatExpiresIn int          `json:"chat_expires_in"`
	UnionID       string       `json:"unionid"`
	Conclusions   *Conclusions `json:"conclusions"`
}

type ContactWayListData

type ContactWayListData struct {
	ConfigID string `json:"config_id"`
}

type CorpTag

type CorpTag struct {
	ID         string `json:"id"`
	Name       string `json:"name"`
	CreateTime int64  `json:"create_time"`
	Order      int    `json:"order"`
	Deleted    bool   `json:"deleted"`
}

type CorpTagGroup

type CorpTagGroup struct {
	GroupID    string     `json:"group_id"`
	GroupName  string     `json:"group_name"`
	CreateTime int64      `json:"create_time"`
	Order      int        `json:"order"`
	Deleted    bool       `json:"deleted"`
	Tag        []*CorpTag `json:"tag"`
}

type CustomerBatchGetData

type CustomerBatchGetData struct {
	ExternalContact *ExternalContact `json:"external_contact"`
	FollowInfo      *FollowInfo      `json:"follow_info"`
}

type CustomerStrategy

type CustomerStrategy struct {
	StrategyID   int64                      `json:"strategy_id"`
	ParentID     int64                      `json:"parent_id"`
	StrategyName string                     `json:"strategy_name"`
	CreateTime   int64                      `json:"create_time"`
	AdminList    []string                   `json:"admin_list"`
	Privilege    *CustomerStrategyPrivilege `json:"privilege"`
}

type CustomerStrategyListData

type CustomerStrategyListData struct {
	StrategyID int64 `json:"strategy_id"`
}

type CustomerStrategyPrivilege

type CustomerStrategyPrivilege struct {
	ViewCustomerList        bool `json:"view_customer_list"`
	ViewCustomerData        bool `json:"view_customer_data"`
	ViewRoomList            bool `json:"view_room_list"`
	ContactMe               bool `json:"contact_me"`
	JoinRoom                bool `json:"join_room"`
	ShareCustomer           bool `json:"share_customer"`
	OperResignCustomer      bool `json:"oper_resign_customer"`
	OperResignGroup         bool `json:"oper_resign_group"`
	SendCustomerMsg         bool `json:"send_customer_msg"`
	EditWelcomeMsg          bool `json:"edit_welcome_msg"`
	ViewBehaviorData        bool `json:"view_behavior_data"`
	ViewRoomData            bool `json:"view_room_data"`
	SendGroupMsg            bool `json:"send_group_msg"`
	RoomDeduplication       bool `json:"room_deduplication"`
	RapidReply              bool `json:"rapid_reply"`
	OnjobCustomerTransfer   bool `json:"onjob_customer_transfer"`
	EditAntiSpamRule        bool `json:"edit_anti_spam_rule"`
	ExportCustomerList      bool `json:"export_customer_list"`
	ExportCustomerData      bool `json:"export_customer_data"`
	ExportCustomerGroupList bool `json:"export_customer_group_list"`
	ManageCustomerTag       bool `json:"manage_customer_tag"`
}

type CustomerStrategyRange

type CustomerStrategyRange struct {
	Type    int    `json:"type"`
	UserID  string `json:"userid,omitempty"`
	PartyID int64  `json:"partyid,omitempty"`
}

type ErrCustomerTransfer

type ErrCustomerTransfer struct {
	ExternalUserID string `json:"external_userid"`
	ErrCode        int    `json:"errcode"`
}

type ErrGroupChatTransfer

type ErrGroupChatTransfer struct {
	ChatID  string `json:"chat_id"`
	ErrCode int    `json:"errcode"`
	ErrMsg  string `json:"errmsg"`
}

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 *ExternalProfile `json:"external_profile"`
}

type ExternalProfile

type ExternalProfile struct {
	ExternalCorpName string          `json:"external_corp_name"`
	WechatChannels   *WechatChannels `json:"wechat_channels"`
	ExternalAttr     []*Attr         `json:"external_attr"`
}

type ExtraRule

type ExtraRule struct {
	SemanticsList []int `json:"semantics_list,omitempty"`
}

type FollowInfo

type FollowInfo struct {
	UserID         string   `json:"userid"`
	Remark         string   `json:"remark"`
	Description    string   `json:"description"`
	CreateTime     int64    `json:"createtime"`
	TagID          []string `json:"tag_id"`
	RemarkCorpName string   `json:"remark_corp_name"`
	RemarkMobiles  []string `json:"remark_mobiles"`
	State          string   `json:"state"`
	OperUserID     string   `json:"oper_userid"`
	AddWay         int      `json:"add_way"`
}

type FollowTag

type FollowTag struct {
	GroupName string `json:"group_name"`
	TagName   string `json:"tag_name"`
	TagID     string `json:"tag_id"`
	Type      int    `json:"type"`
}

type FollowUser

type FollowUser struct {
	UserID         string       `json:"userid"`
	Remark         string       `json:"remark"`
	Description    string       `json:"description"`
	CreateTime     int64        `json:"createtime"`
	RemarkCorpName string       `json:"remark_corp_name"`
	RemarkMobiles  []string     `json:"remark_mobiles"`
	OperUserID     string       `json:"oper_userid"`
	AddWay         int          `json:"add_way"`
	State          string       `json:"state"`
	Tags           []*FollowTag `json:"tags"`
}

type GroupChat

type GroupChat struct {
	ChatID     string             `json:"chat_id"`
	Name       string             `json:"name"`
	Owner      string             `json:"owner"`
	CreateTime int64              `json:"create_time"`
	Notice     string             `json:"notice"`
	MemberList []*GroupChatMember `json:"member_list"`
	AdminList  []*GroupChatAdmin  `json:"admin_list"`
}

type GroupChatAdmin

type GroupChatAdmin struct {
	UserID string `json:"userid"`
}

type GroupChatInvitor

type GroupChatInvitor struct {
	UserID string `json:"userid"`
}

type GroupChatListData

type GroupChatListData struct {
	ChatID string `json:"chat_id"`
	Status int    `json:"status"`
}

type GroupChatMember

type GroupChatMember struct {
	UserID        string            `json:"userid"`
	Type          int64             `json:"type"`
	Unionid       string            `json:"unionid"`
	JoinTime      int64             `json:"join_time"`
	JoinScene     int64             `json:"join_scene"`
	Invitor       *GroupChatInvitor `json:"invitor"`
	GroupNickname string            `json:"group_nickname"`
	Name          string            `json:"name"`
}

type GroupChatOwnerFilter

type GroupChatOwnerFilter struct {
	UserIDList []string `json:"userid_list"`
}

type GroupChatStatisticByDayItem

type GroupChatStatisticByDayItem struct {
	StatTime int64                   `json:"stat_time"`
	Data     *GroupChatStatisticData `json:"data"`
}

type GroupChatStatisticData

type GroupChatStatisticData 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"`
}

type GroupChatStatisticItem

type GroupChatStatisticItem struct {
	Owner string                  `json:"owner"`
	Data  *GroupChatStatisticData `json:"data"`
}

type GroupFile

type GroupFile struct {
	MediaID string `json:"media_id"`
}

type GroupImage

type GroupImage struct {
	MediaID string `json:"media_id,omitempty"`
	PicURL  string `json:"pic_url,omitempty"`
}
type GroupLink struct {
	Title  string `json:"title"`
	PicURL string `json:"picurl,omitempty"`
	Desc   string `json:"desc,omitempty"`
	URL    string `json:"url"`
}

type GroupMinip

type GroupMinip struct {
	Title      string `json:"title"`
	PicMediaID string `json:"pic_media_id"`
	AppID      string `json:"appid"`
	Page       string `json:"page"`
}

type GroupMsg

type GroupMsg struct {
	MsgID       string           `json:"msgid"`
	Creator     string           `json:"creator"`
	CreateTime  string           `json:"create_time"`
	CreateType  int              `json:"create_type"`
	Text        *GroupText       `json:"text,omitempty"`
	Attachments []*MsgAttachment `json:"attachments,omitempty"`
}

type GroupMsgSendResult

type GroupMsgSendResult struct {
	ExternalUserID string `json:"external_userid"`
	ChatID         string `json:"chat_id"`
	UserID         string `json:"userid"`
	Status         int    `json:"status"`
	SendTime       int64  `json:"send_time"`
}

type GroupMsgTask

type GroupMsgTask struct {
	UserID   string `json:"userid"`
	Status   int    `json:"status"`
	SendTime int64  `json:"send_time"`
}

type GroupText

type GroupText struct {
	Content string `json:"content,omitempty"`
}

type GroupVideo

type GroupVideo struct {
	MediaID string `json:"media_id"`
}

type ImageConclusion

type ImageConclusion struct {
	MediaID string `json:"media_id"`
	PicURL  string `json:"pic_url,omitempty"`
}

type InterceptRule

type InterceptRule struct {
	RuleID          string               `json:"rule_id"`
	RuleName        string               `json:"rule_name"`
	WordList        []string             `json:"word_list"`
	ExtraRule       *ExtraRule           `json:"extra_rule"`
	InterceptType   int                  `json:"intercept_type"`
	ApplicableRange *RuleApplicableRange `json:"applicable_range"`
}

type LinkConclusion

type LinkConclusion struct {
	Title  string `json:"title"`
	PicURL string `json:"picurl"`
	Desc   string `json:"desc"`
	URL    string `json:"url"`
}

type MediaType

type MediaType string
const (
	MediaImage MediaType = "image"
	MediaVideo MediaType = "video"
	MediaFile  MediaType = "file"
)

type MinipConclusion

type MinipConclusion struct {
	Title      string `json:"title"`
	PicMediaID string `json:"pic_media_id"`
	AppID      string `json:"appid"`
	Page       string `json:"page"`
}

type MomentAttachment

type MomentAttachment struct {
	MsgType event.MsgType `json:"msgtype"`
	Image   *MomentImage  `json:"image,omitempty"`
	Video   *MomentVideo  `json:"video,omitempty"`
	Link    *MomentLink   `json:"link,omitempty"`
}

type MomentCommentData

type MomentCommentData struct {
	UserID         string `json:"userid"`
	ExternalUserID string `json:"external_userid"`
	CreateTime     int64  `json:"create_time"`
}

type MomentCustomer

type MomentCustomer struct {
	UserID         string `json:"userid"`
	ExternalUserID string `json:"external_userid"`
}

type MomentExternalContactList

type MomentExternalContactList struct {
	TagList []string `json:"tag_list,omitempty"`
}

type MomentImage

type MomentImage struct {
	MediaID string `json:"media_id"`
}

type MomentInvalidExternalContactList

type MomentInvalidExternalContactList struct {
	TagList []string `json:"tag_list"`
}

type MomentInvalidSenderList

type MomentInvalidSenderList struct {
	UserList       []string `json:"user_list"`
	DepartmentList []int64  `json:"department_list"`
}

type MomentLikeData

type MomentLikeData struct {
	UserID         string `json:"userid"`
	ExternalUserID string `json:"external_userid"`
	CreateTime     int64  `json:"create_time"`
}
type MomentLink struct {
	Title   string `json:"title,omitempty"`
	URL     string `json:"url"`
	MediaID string `json:"media_id"`
}

type MomentListData

type MomentListData 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        *MomentText     `json:"text"`
	Image       []*MomentImage  `json:"image"`
	Video       *MomentVideo    `json:"video"`
	Link        *MomentLink     `json:"link"`
	Location    *MomentLocation `json:"location"`
}

type MomentLocation

type MomentLocation struct {
	Latitude  string `json:"latitude"`
	Longitude string `json:"longitude"`
	Name      string `json:"name"`
}

type MomentSenderList

type MomentSenderList struct {
	UserList       []string `json:"user_list,omitempty"`
	DepartmentList []int64  `json:"department_list,omitempty"`
}

type MomentStrategy

type MomentStrategy struct {
	StrategyID   int64                    `json:"strategy_id"`
	ParentID     int64                    `json:"parent_id"`
	StrategyName string                   `json:"strategy_name"`
	CreateTime   int64                    `json:"create_time"`
	AdminList    []string                 `json:"admin_list"`
	Privilege    *MomentStrategyPrivilege `json:"privilege"`
}

type MomentStrategyListData

type MomentStrategyListData struct {
	StrategyID int64 `json:"strategy_id"`
}

type MomentStrategyPrivilege

type MomentStrategyPrivilege struct {
	SendMoment               bool `json:"send_moment"`
	ViewMomentList           bool `json:"view_moment_list"`
	ManageMomentCoverAndSign bool `json:"manage_moment_cover_and_sign"`
}

type MomentStrategyRange

type MomentStrategyRange struct {
	Type    int    `json:"type"`
	UserID  string `json:"userid,omitempty"`
	PartyID int64  `json:"partyid,omitempty"`
}

type MomentTask

type MomentTask struct {
	UserID        string `json:"userid"`
	PublishStatus int    `json:"publish_status"`
}

type MomentTaskResult

type MomentTaskResult struct {
	ErrCode                    int                               `json:"errcode"`
	ErrMsg                     string                            `json:"errmsg"`
	MomentID                   string                            `json:"moment_id"`
	InvalidSenderList          *MomentInvalidSenderList          `json:"invalid_sender_list"`
	InvalidExternalContactList *MomentInvalidExternalContactList `json:"invalid_external_contact_list"`
}

type MomentText

type MomentText struct {
	Content string `json:"content,omitempty"`
}

type MomentVideo

type MomentVideo struct {
	MediaID      string `json:"media_id"`
	ThumbMediaID string `json:"thumb_media_id,omitempty"`
}

type MomentVisibleRange

type MomentVisibleRange struct {
	SenderList          *MomentSenderList          `json:"sender_list,omitempty"`
	ExternalContactList *MomentExternalContactList `json:"external_contact_list,omitempty"`
}

type MsgAttachment

type MsgAttachment struct {
	MsgType event.MsgType `json:"msgtype"`
	Image   *GroupImage   `json:"image,omitempty"`
	Link    *GroupLink    `json:"link,omitempty"`
	Minip   *GroupMinip   `json:"miniprogram,omitempty"`
	Video   *GroupVideo   `json:"video,omitempty"`
	File    *GroupFile    `json:"file,omitempty"`
}

type ParamsBatchGetByUser

type ParamsBatchGetByUser struct {
	UserIDList []string `json:"userid_list"`
	Cursor     string   `json:"cursor,omitempty"`
	Limit      int      `json:"limit,omitempty"`
}

type ParamsContactWayAdd

type ParamsContactWayAdd struct {
	Type          ContactType  `json:"type,omitempty"`
	Scene         ContactScene `json:"scene,omitempty"`
	Style         int          `json:"style,omitempty"`
	Remark        string       `json:"remark,omitempty"`
	SkipVerify    bool         `json:"skip_verify,omitempty"`
	State         string       `json:"state,omitempty"`
	User          []string     `json:"user,omitempty"`
	Party         []int64      `json:"party,omitempty"`
	IsTemp        bool         `json:"is_temp,omitempty"`
	ExpiresIn     int          `json:"expires_in,omitempty"`
	ChatExpiresIn int          `json:"chat_expires_in,omitempty"`
	UnionID       string       `json:"unionid,omitempty"`
	Conclusions   *Conclusions `json:"conclusions,omitempty"`
}

type ParamsContactWayDelete

type ParamsContactWayDelete struct {
	ConfigID string `json:"config_id"`
}

type ParamsContactWayGet

type ParamsContactWayGet struct {
	ConfigID string `json:"config_id"`
}

type ParamsContactWayList

type ParamsContactWayList struct {
	StartTime int64  `json:"start_time,omitempty"`
	EndTime   int64  `json:"end_time,omitempty"`
	Cursor    string `json:"cursor,omitempty"`
	Limit     int    `json:"limit,omitempty"`
}

type ParamsContactWayUpdate

type ParamsContactWayUpdate struct {
	ConfigID      string       `json:"config_id"`
	Remark        string       `json:"remark,omitempty"`
	SkipVerify    bool         `json:"skip_verify,omitempty"`
	Style         int          `json:"style,omitempty"`
	State         string       `json:"state,omitempty"`
	User          []string     `json:"user,omitempty"`
	Party         []int64      `json:"party,omitempty"`
	ExpiresIn     int          `json:"expires_in,omitempty"`
	ChatExpiresIn int          `json:"chat_expires_in,omitempty"`
	UnionID       string       `json:"unionid,omitempty"`
	Conclusions   *Conclusions `json:"conclusions,omitempty"`
}

type ParamsCorpTag

type ParamsCorpTag struct {
	Name  string `json:"name"`
	Order int    `json:"order,omitempty"`
}

type ParamsCorpTagAdd

type ParamsCorpTagAdd struct {
	GroupID   string           `json:"group_id,omitempty"`
	GroupName string           `json:"group_name,omitempty"`
	Order     int              `json:"order,omitempty"`
	Tag       []*ParamsCorpTag `json:"tag"`
	AgentID   int64            `json:"agentid,omitempty"`
}

type ParamsCorpTagDelete

type ParamsCorpTagDelete struct {
	TagID   []string `json:"tag_id"`
	GroupID []string `json:"group_id"`
	AgentID int64    `json:"agentid"`
}

type ParamsCorpTagEdit

type ParamsCorpTagEdit struct {
	ID      string `json:"id"`
	Name    string `json:"name,omitempty"`
	Order   int    `json:"order,omitempty"`
	AgentID int64  `json:"agentid,omitempty"`
}

type ParamsCorpTagList

type ParamsCorpTagList struct {
	TagID   []string `json:"tag_id,omitempty"`
	GroupID []string `json:"group_id,omitempty"`
}

type ParamsCustomerStrategyCreate

type ParamsCustomerStrategyCreate struct {
	ParentID     int64                      `json:"parent_id,omitempty"`
	StrategyName string                     `json:"strategy_name"`
	AdminList    []string                   `json:"admin_list"`
	Privilege    *CustomerStrategyPrivilege `json:"privilege"`
	Range        []*CustomerStrategyRange   `json:"range"`
}

type ParamsCustomerStrategyDelete

type ParamsCustomerStrategyDelete struct {
	StrategyID int64 `json:"strategy_id"`
}

type ParamsCustomerStrategyEdit

type ParamsCustomerStrategyEdit struct {
	StrategyID   int64                      `json:"strategy_id"`
	StrategyName string                     `json:"strategy_name,omitempty"`
	AdminList    []string                   `json:"admin_list,omitempty"`
	Privilege    *CustomerStrategyPrivilege `json:"privilege,omitempty"`
	RangeAdd     []*CustomerStrategyRange   `json:"range_add,omitempty"`
	RangeDel     []*CustomerStrategyRange   `json:"range_del,omitempty"`
}

type ParamsCustomerStrategyGet

type ParamsCustomerStrategyGet struct {
	StrategyID int64 `json:"strategy_id"`
}

type ParamsCustomerStrategyList

type ParamsCustomerStrategyList struct {
	Cursor string `json:"cursor,omitempty"`
	Limit  int    `json:"limit,omitempty"`
}

type ParamsCustomerStrategyRange

type ParamsCustomerStrategyRange struct {
	StrategyID int64  `json:"strategy_id"`
	Cursor     string `json:"cursor,omitempty"`
	Limit      int    `json:"limit,omitempty"`
}

type ParamsCustomerTranster

type ParamsCustomerTranster struct {
	HandoverUserID     string   `json:"handover_userid"`
	TakeoverUserID     string   `json:"takeover_userid"`
	ExternalUserID     []string `json:"external_userid"`
	TransferSuccessMsg string   `json:"transfer_success_msg,omitempty"`
}

type ParamsGroupChatGet

type ParamsGroupChatGet struct {
	ChatID   string `json:"chat_id"`
	NeedName int    `json:"need_name,omitempty"`
}

type ParamsGroupChatList

type ParamsGroupChatList struct {
	StatusFilter int                   `json:"status_filter,omitempty"`
	OwnerFilter  *GroupChatOwnerFilter `json:"owner_filter,omitempty"`
	Cursor       string                `json:"cursor,omitempty"`
	Limit        int                   `json:"limit"`
}

type ParamsGroupChatStatistic

type ParamsGroupChatStatistic struct {
	DayBeginTime int64                 `json:"day_begin_time"`
	DayEndTime   int64                 `json:"day_end_time,omitempty"`
	OwnerFilter  *GroupChatOwnerFilter `json:"owner_filter"`
	OrderBy      int                   `json:"order_by,omitempty"`
	OrderAsc     int                   `json:"order_asc,omitempty"`
	Offset       int                   `json:"offset,omitempty"`
	Limit        int                   `json:"limit,omitempty"`
}

type ParamsGroupChatStatisticByDay

type ParamsGroupChatStatisticByDay struct {
	DayBeginTime int64                 `json:"day_begin_time"`
	DayEndTime   int64                 `json:"day_end_time,omitempty"`
	OwnerFilter  *GroupChatOwnerFilter `json:"owner_filter"`
}

type ParamsGroupChatTransfer

type ParamsGroupChatTransfer struct {
	ChatIDList []string `json:"chat_id_list"`
	NewOwner   string   `json:"new_owner"`
}

type ParamsGroupMsgList

type ParamsGroupMsgList struct {
	ChatType   ChatType `json:"chat_type"`
	StartTime  int64    `json:"start_time"`
	EndTime    int64    `json:"end_time"`
	Creator    string   `json:"creator,omitempty"`
	FilterType int      `json:"filter_type,omitempty"`
	Limit      int      `json:"limit,omitempty"`
	Cursor     string   `json:"cursor,omitempty"`
}

type ParamsGroupMsgSendResult

type ParamsGroupMsgSendResult struct {
	MsgID  string `json:"msgid"`
	UserID string `json:"userid"`
	Limit  int    `json:"limit,omitempty"`
	Cursor string `json:"cursor,omitempty"`
}

type ParamsGroupMsgTask

type ParamsGroupMsgTask struct {
	MsgID  string `json:"msgid"`
	Limit  int    `json:"limit,omitempty"`
	Cursor string `json:"cursor,omitempty"`
}

type ParamsGroupWelcomeTemplateAdd

type ParamsGroupWelcomeTemplateAdd struct {
	Text    *GroupText  `json:"text,omitempty"`
	Image   *GroupImage `json:"image,omitempty"`
	Link    *GroupLink  `json:"link,omitempty"`
	Minip   *GroupMinip `json:"miniprogram,omitempty"`
	File    *GroupFile  `json:"file,omitempty"`
	Video   *GroupVideo `json:"video,omitempty"`
	AgentID int64       `json:"agentid,omitempty"`
	Notify  int         `json:"notify,omitempty"`
}

type ParamsGroupWelcomeTemplateDelete

type ParamsGroupWelcomeTemplateDelete struct {
	TemplateID string `json:"template_id"`
	AgentID    int64  `json:"agentid,omitempty"`
}

type ParamsGroupWelcomeTemplateEdit

type ParamsGroupWelcomeTemplateEdit struct {
	TemplateID string      `json:"template_id"`
	Text       *GroupText  `json:"text,omitempty"`
	Image      *GroupImage `json:"image,omitempty"`
	Link       *GroupLink  `json:"link,omitempty"`
	Minip      *GroupMinip `json:"miniprogram,omitempty"`
	File       *GroupFile  `json:"file,omitempty"`
	Video      *GroupVideo `json:"video,omitempty"`
	AgentID    int64       `json:"agentid,omitempty"`
}

type ParamsGroupWelcomeTemplateGet

type ParamsGroupWelcomeTemplateGet struct {
	TemplateID string `json:"template_id"`
}

type ParamsInterceptRuleAdd

type ParamsInterceptRuleAdd struct {
	RuleName        string               `json:"rule_name"`
	WordList        []string             `json:"word_list"`
	SemanticsList   []int                `json:"semantics_list,omitempty"`
	InterceptType   int                  `json:"intercept_type"`
	ApplicableRange *RuleApplicableRange `json:"applicable_range"`
}

type ParamsInterceptRuleDelete

type ParamsInterceptRuleDelete struct {
	RuleID string `json:"rule_id"`
}

type ParamsInterceptRuleGet

type ParamsInterceptRuleGet struct {
	RuleID string `json:"rule_id"`
}

type ParamsInterceptRuleUpdate

type ParamsInterceptRuleUpdate struct {
	RuleID                string               `json:"rule_id"`
	RuleName              string               `json:"rule_name,omitempty"`
	WordList              []string             `json:"word_list,omitempty"`
	ExtraRule             *ExtraRule           `json:"extra_rule,omitempty"`
	InterceptType         int                  `json:"intercept_type,omitempty"`
	AddApplicableRange    *RuleApplicableRange `json:"add_applicable_range,omitempty"`
	RemoveApplicableRange *RuleApplicableRange `json:"remove_applicable_range,omitempty"`
}

type ParamsMomentComments

type ParamsMomentComments struct {
	MomentID string `json:"moment_id"`
	UserID   string `json:"userid"`
	Cursor   string `json:"cursor,omitempty"`
	Limit    int    `json:"limit,omitempty"`
}

type ParamsMomentCustomerList

type ParamsMomentCustomerList struct {
	MomentID string `json:"moment_id"`
	UserID   string `json:"userid"`
	Cursor   string `json:"cursor,omitempty"`
	Limit    int    `json:"limit,omitempty"`
}

type ParamsMomentList

type ParamsMomentList struct {
	StartTime  int64  `json:"start_time"`
	EndTime    int64  `json:"end_time"`
	Creator    string `json:"creator,omitempty"`
	FilterType int    `json:"filter_type,omitempty"`
	Cursor     string `json:"cursor,omitempty"`
	Limit      int    `json:"limit,omitempty"`
}

type ParamsMomentSendResult

type ParamsMomentSendResult struct {
	MomentID string `json:"moment_id"`
	UserID   string `json:"userid"`
	Cursor   string `json:"cursor,omitempty"`
	Limit    int    `json:"limit,omitempty"`
}

type ParamsMomentStrategyCreate

type ParamsMomentStrategyCreate struct {
	ParentID     int64                    `json:"parent_id,omitempty"`
	StrategyName string                   `json:"strategy_name"`
	AdminList    []string                 `json:"admin_list"`
	Privilege    *MomentStrategyPrivilege `json:"privilege"`
	Range        []*MomentStrategyRange   `json:"range"`
}

type ParamsMomentStrategyDelete

type ParamsMomentStrategyDelete struct {
	StrategyID int64 `json:"strategy_id"`
}

type ParamsMomentStrategyEdit

type ParamsMomentStrategyEdit struct {
	StrategyID   int64                    `json:"strategy_id"`
	StrategyName string                   `json:"strategy_name,omitempty"`
	AdminList    []string                 `json:"admin_list,omitempty"`
	Privilege    *MomentStrategyPrivilege `json:"privilege,omitempty"`
	RangeAdd     []*MomentStrategyRange   `json:"range_add,omitempty"`
	RangeDel     []*MomentStrategyRange   `json:"range_del,omitempty"`
}

type ParamsMomentStrategyGet

type ParamsMomentStrategyGet struct {
	StrategyID int64 `json:"strategy_id"`
}

type ParamsMomentStrategyList

type ParamsMomentStrategyList struct {
	Cursor string `json:"cursor,omitempty"`
	Limit  int    `json:"limit,omitempty"`
}

type ParamsMomentStrategyRange

type ParamsMomentStrategyRange struct {
	StrategyID int64  `json:"strategy_id"`
	Cursor     string `json:"cursor,omitempty"`
	Limit      int    `json:"limit,omitempty"`
}

type ParamsMomentTaskAdd

type ParamsMomentTaskAdd struct {
	Text         *MomentText         `json:"text,omitempty"`
	Attachments  []*MomentAttachment `json:"attachments,omitempty"`
	VisibleRange *MomentVisibleRange `json:"visible_range,omitempty"`
}

type ParamsMomentTaskGet

type ParamsMomentTaskGet struct {
	MomentID string `json:"moment_id"`
	Cursor   string `json:"cursor,omitempty"`
	Limit    int    `json:"limit,omitempty"`
}

type ParamsMsgTemplateAdd

type ParamsMsgTemplateAdd struct {
	ChatType       ChatType         `json:"chat_type,omitempty"`
	ExternalUserID []string         `json:"external_userid,omitempty"`
	Sender         string           `json:"sender,omitempty"`
	Text           *GroupText       `json:"text,omitempty"`
	Attachments    []*MsgAttachment `json:"attachments,omitempty"`
}

type ParamsOpenGIDToChatID

type ParamsOpenGIDToChatID struct {
	OpenGID string `json:"opengid"`
}

type ParamsProductAlbumAdd

type ParamsProductAlbumAdd struct {
	Description string                    `json:"description"`
	Price       int                       `json:"price"`
	ProductSN   string                    `json:"product_sn,omitempty"`
	Attachments []*ProductAlbumAttachment `json:"attachments"`
}

type ParamsProductAlbumDelete

type ParamsProductAlbumDelete struct {
	ProductID string `json:"product_id"`
}

type ParamsProductAlbumGet

type ParamsProductAlbumGet struct {
	ProductID string `json:"product_id"`
}

type ParamsProductAlbumList

type ParamsProductAlbumList struct {
	Limit  int    `json:"limit,omitempty"`
	Cursor string `json:"cursor,omitempty"`
}

type ParamsProductAlbumUpdate

type ParamsProductAlbumUpdate struct {
	ProductID   string                    `json:"product_id"`
	Description string                    `json:"description"`
	Price       int                       `json:"price"`
	ProductSN   string                    `json:"product_sn,omitempty"`
	Attachments []*ProductAlbumAttachment `json:"attachments,omitempty"`
}

type ParamsRemark

type ParamsRemark struct {
	UserID           string   `json:"userid"`
	ExternalUserID   string   `json:"external_userid"`
	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 ParamsResignedCustomerTransfer

type ParamsResignedCustomerTransfer struct {
	HandoverUserID string   `json:"handover_userid"`
	TakeoverUserID string   `json:"takeover_userid"`
	ExternalUserID []string `json:"external_userid"`
}

type ParamsResignedTransferResult

type ParamsResignedTransferResult struct {
	HandoverUserID string `json:"handover_userid"`
	TakeoverUserID string `json:"takeover_userid"`
	Cursor         string `json:"cursor,omitempty"`
}

type ParamsStrategyTag

type ParamsStrategyTag struct {
	Name  string `json:"name"`
	Order uint32 `json:"order,omitempty"`
}

type ParamsStrategyTagAdd

type ParamsStrategyTagAdd struct {
	StrategyID int64                `json:"strategy_id,omitempty"`
	GroupID    string               `json:"group_id"`
	GroupName  string               `json:"group_name"`
	Order      uint32               `json:"order"`
	Tag        []*ParamsStrategyTag `json:"tag"`
}

type ParamsStrategyTagDelete

type ParamsStrategyTagDelete struct {
	TagID   []string `json:"tag_id,omitempty"`
	GroupID []string `json:"group_id,omitempty"`
}

type ParamsStrategyTagEdit

type ParamsStrategyTagEdit struct {
	ID    string `json:"id"`
	Name  string `json:"name,omitempty"`
	Order uint32 `json:"order,omitempty"`
}

type ParamsStrategyTagList

type ParamsStrategyTagList struct {
	StrategyID int64    `json:"strategy_id,omitempty"`
	TagID      []string `json:"tag_id,omitempty"`
	GroupID    []string `json:"group_id,omitempty"`
}

type ParamsTagMark

type ParamsTagMark struct {
	UserID         string   `json:"userid"`
	ExternalUserID string   `json:"external_userid"`
	AddTag         []string `json:"add_tag,omitempty"`
	RemoveTag      []string `json:"remove_tag,omitempty"`
}

type ParamsTempChatClose

type ParamsTempChatClose struct {
	UserID         string `json:"userid"`
	ExternalUserID string `json:"external_userid"`
}

type ParamsTransferResult

type ParamsTransferResult struct {
	HandoverUserID string `json:"handover_userid"`
	TakeoverUserID string `json:"takeover_userid"`
	Cursor         string `json:"cursor,omitempty"`
}

type ParamsUnassignedList

type ParamsUnassignedList struct {
	PageID   int    `json:"page_id,omitempty"`
	Cursor   string `json:"cursor,omitempty"`
	PageSize int    `json:"page_size,omitempty"`
}

type ParamsUserBehaviorData

type ParamsUserBehaviorData struct {
	UserID    []string `json:"userid,omitempty"`
	PartyID   []int64  `json:"partyid,omitempty"`
	StartTime int64    `json:"start_time"`
	EndTime   int64    `json:"end_time"`
}

type ParamsWelcomeMsgSend

type ParamsWelcomeMsgSend struct {
	WelcomeCode string           `json:"welcome_code"`
	Text        *GroupText       `json:"text,omitempty"`
	Attachments []*MsgAttachment `json:"attachments,omitempty"`
}

type ProductAlbum

type ProductAlbum struct {
	ProductID   string                    `json:"product_id"`
	Description string                    `json:"description"`
	Price       int                       `json:"price"`
	CreateTime  int64                     `json:"create_time"`
	ProductSN   string                    `json:"product_sn"`
	Attachments []*ProductAlbumAttachment `json:"attachments"`
}

type ProductAlbumAttachment

type ProductAlbumAttachment struct {
	Type  MediaType          `json:"type"` // 附件类型,目前仅支持image
	Image *ProductAlbumImage `json:"image"`
}

type ProductAlbumImage

type ProductAlbumImage struct {
	MediaID string `json:"media_id,omitempty"`
}

type ResignedTransferResult

type ResignedTransferResult struct {
	ExternalUserID string `json:"external_userid"`
	Status         int    `json:"status"`
	TakeoverTime   int64  `json:"takeover_time"`
}

type ResultAttachmentUpload

type ResultAttachmentUpload struct {
	Type      MediaType `json:"type"`
	MediaID   string    `json:"media_id"`
	CreatedAt int64     `json:"created_at"`
}

type ResultBatchGetByUser

type ResultBatchGetByUser struct {
	ExternalContactList []*CustomerBatchGetData `json:"external_contact_list"`
	NextCursor          string                  `json:"next_cursor"`
}

type ResultContactWayAdd

type ResultContactWayAdd struct {
	ConfigID string `json:"config_id"`
	QRCode   string `json:"qr_code"`
}

type ResultContactWayGet

type ResultContactWayGet struct {
	ContactWay *ContactWay `json:"contact_way"`
}

type ResultContactWayList

type ResultContactWayList struct {
	ContactWay []*ContactWayListData `json:"contact_way"`
	NextCursor string                `json:"next_cursor"`
}

type ResultCorpTagAdd

type ResultCorpTagAdd struct {
	TagGroup *CorpTagGroup `json:"tag_group"`
}

type ResultCorpTagList

type ResultCorpTagList struct {
	TagGroup []*CorpTagGroup `json:"tag_group"`
}

type ResultCustomerStrategyCreate

type ResultCustomerStrategyCreate struct {
	StrategyID int64 `json:"strategy_id"`
}

type ResultCustomerStrategyGet

type ResultCustomerStrategyGet struct {
	Strategy *CustomerStrategy `json:"strategy"`
}

type ResultCustomerStrategyList

type ResultCustomerStrategyList struct {
	Strategy   []*CustomerStrategyListData `json:"strategy"`
	NextCursor string                      `json:"next_cursor"`
}

type ResultCustomerStrategyRange

type ResultCustomerStrategyRange struct {
	Range []*CustomerStrategyRange `json:"range"`
}

type ResultCustomerTransfer

type ResultCustomerTransfer struct {
	Customer []*ErrCustomerTransfer `json:"customer"`
}

type ResultFollowUserList

type ResultFollowUserList struct {
	FollowUser []string `json:"follow_user"`
}

type ResultGet

type ResultGet struct {
	ExternalContact *ExternalContact `json:"external_contact"`
	FollowUser      []*FollowUser    `json:"follow_user"`
	NextCursor      string           `json:"next_cursor"`
}

type ResultGroupChatGet

type ResultGroupChatGet struct {
	GroupChat *GroupChat `json:"group_chat"`
}

type ResultGroupChatList

type ResultGroupChatList struct {
	GroupChatList []*GroupChatListData `json:"group_chat_list"`
	NextCursor    string               `json:"next_cursor"`
}

type ResultGroupChatStatistic

type ResultGroupChatStatistic struct {
	Total      int                       `json:"total"`
	NextOffset int                       `json:"next_offset"`
	Items      []*GroupChatStatisticItem `json:"items"`
}

type ResultGroupChatStatisticByDay

type ResultGroupChatStatisticByDay struct {
	Items []*GroupChatStatisticByDayItem `json:"items"`
}

type ResultGroupChatTransfer

type ResultGroupChatTransfer struct {
	FailedChatList []*ErrGroupChatTransfer `json:"failed_chat_list"`
}

type ResultGroupMsgList

type ResultGroupMsgList struct {
	NextCursor   string      `json:"next_cursor"`
	GroupMsgList []*GroupMsg `json:"group_msg_list"`
}

type ResultGroupMsgSendResult

type ResultGroupMsgSendResult struct {
	NextCursor string                `json:"next_cursor"`
	SendList   []*GroupMsgSendResult `json:"send_list"`
}

type ResultGroupMsgTask

type ResultGroupMsgTask struct {
	NextCursor string          `json:"next_cursor"`
	TaskList   []*GroupMsgTask `json:"task_list"`
}

type ResultGroupWelcomeTemplateAdd

type ResultGroupWelcomeTemplateAdd struct {
	TemplateID string `json:"template_id"`
}

type ResultGroupWelcomeTemplateGet

type ResultGroupWelcomeTemplateGet struct {
	Text  *GroupText  `json:"text"`
	Image *GroupImage `json:"image"`
	Link  *GroupLink  `json:"link"`
	Minip *GroupMinip `json:"miniprogram"`
	File  *GroupFile  `json:"file"`
	Video *GroupVideo `json:"video"`
}

type ResultInterceptRuleAdd

type ResultInterceptRuleAdd struct {
	RuleID string `json:"rule_id"`
}

type ResultInterceptRuleGet

type ResultInterceptRuleGet struct {
	Rule *InterceptRule `json:"rule"`
}

type ResultInterceptRuleList

type ResultInterceptRuleList struct {
	RuleList []*RuleListData `json:"rule_list"`
}

type ResultList

type ResultList struct {
	ExternalUserID []string `json:"external_userid"`
}

type ResultMomentComments

type ResultMomentComments struct {
	CommentList []*MomentCommentData `json:"comment_list"`
	LikeList    []*MomentLikeData    `json:"like_list"`
}

type ResultMomentCustomerList

type ResultMomentCustomerList struct {
	NextCursor   string            `json:"next_cursor"`
	CustomerList []*MomentCustomer `json:"customer_list"`
}

type ResultMomentList

type ResultMomentList struct {
	NextCursor string            `json:"next_cursor"`
	MomentList []*MomentListData `json:"moment_list"`
}

type ResultMomentSendResult

type ResultMomentSendResult struct {
	NextCursor   string            `json:"next_cursor"`
	CustomerList []*MomentCustomer `json:"customer_list"`
}

type ResultMomentStrategyCreate

type ResultMomentStrategyCreate struct {
	StrategyID int64 `json:"strategy_id"`
}

type ResultMomentStrategyGet

type ResultMomentStrategyGet struct {
	Strategy *MomentStrategy `json:"strategy"`
}

type ResultMomentStrategyList

type ResultMomentStrategyList struct {
	Strategy   []*MomentStrategyListData `json:"strategy"`
	NextCursor string                    `json:"next_cursor"`
}

type ResultMomentStrategyRange

type ResultMomentStrategyRange struct {
	Range []*MomentStrategyRange `json:"range"`
}

type ResultMomentTaskAdd

type ResultMomentTaskAdd struct {
	JobID string `json:"jobid"`
}

type ResultMomentTaskGet

type ResultMomentTaskGet struct {
	NextCursor string        `json:"next_cursor"`
	TaskList   []*MomentTask `json:"task_list"`
}

type ResultMomentTaskResult

type ResultMomentTaskResult struct {
	Status int               `json:"status"`
	Type   string            `json:"type"`
	Result *MomentTaskResult `json:"result"`
}

type ResultMsgTemplateAdd

type ResultMsgTemplateAdd struct {
	FailList []string `json:"fail_list"`
	MsgID    string   `json:"msgid"`
}

type ResultOpenGIDToChatID

type ResultOpenGIDToChatID struct {
	ChatID string `json:"chat_id"`
}

type ResultProductAlbumAdd

type ResultProductAlbumAdd struct {
	ProductID string `json:"product_id"`
}

type ResultProductAlbumGet

type ResultProductAlbumGet struct {
	Product *ProductAlbum `json:"product"`
}

type ResultProductAlbumList

type ResultProductAlbumList struct {
	NextCursor  string          `json:"next_cursor"`
	ProductList []*ProductAlbum `json:"product_list"`
}

type ResultResignedCustomerTransfer

type ResultResignedCustomerTransfer struct {
	Customer []*ErrCustomerTransfer `json:"customer"`
}

type ResultResignedTransferResult

type ResultResignedTransferResult struct {
	Customer   []*ResignedTransferResult `json:"customer"`
	NextCursor string                    `json:"next_cursor"`
}

type ResultStrategyTagAdd

type ResultStrategyTagAdd struct {
	TagGroup *StrategyTagGroup `json:"tag_group"`
}

type ResultStrategyTagList

type ResultStrategyTagList struct {
	TagGroup []*StrategyTagGroup `json:"tag_group"`
}

type ResultTransferResult

type ResultTransferResult struct {
	Customer   []*TransferResult `json:"customer"`
	NextCursor string            `json:"next_cursor"`
}

type ResultUnassignedList

type ResultUnassignedList struct {
	Info       []*UnassignedInfo `json:"info"`
	IsLast     bool              `json:"is_last"`
	NextCursor string            `json:"next_cursor"`
}

type ResultUserBehaviorData

type ResultUserBehaviorData struct {
	BehaviorData []*UserBehaviorData `json:"behavior_data"`
}

type RuleApplicableRange

type RuleApplicableRange struct {
	UserList       []string `json:"user_list,omitempty"`
	DepartmentList []int64  `json:"department_list,omitempty"`
}

type RuleListData

type RuleListData struct {
	RuleID     string `json:"rule_id"`
	RuleName   string `json:"rule_name"`
	CreateTime int64  `json:"create_time"`
}

type StrategyTag

type StrategyTag struct {
	ID         string `json:"id"`
	Name       string `json:"name"`
	CreateTime int64  `json:"create_time"`
	Order      uint32 `json:"order"`
}

type StrategyTagGroup

type StrategyTagGroup struct {
	GroupID    string         `json:"group_id"`
	GroupName  string         `json:"group_name"`
	CreateTime int64          `json:"create_time"`
	Order      uint32         `json:"order"`
	StrategyID int64          `json:"strategy_id"`
	Tag        []*StrategyTag `json:"tag"`
}

type TextConclusion

type TextConclusion struct {
	Content string `json:"content"`
}

type TransferResult

type TransferResult struct {
	ExternalUserID string `json:"external_userid"`
	Status         int    `json:"status"`
	TakeoverTime   int64  `json:"takeover_time"`
}

type UnassignedInfo

type UnassignedInfo struct {
	HandoverUserID string `json:"handover_userid"`
	ExternalUserID string `json:"external_userid"`
	DimissionTime  int64  `json:"dimission_time"`
}

type UserBehaviorData

type UserBehaviorData struct {
	StatTime            int64   `json:"stat_time"`
	ChatCnt             int     `json:"chat_cnt"`
	MessageCnt          int     `json:"message_cnt"`
	ReplyPercentage     float64 `json:"reply_percentage"`
	AvgReplyTime        int     `json:"avg_reply_time"`
	NegativeFeedbackCnt int     `json:"negative_feedback_cnt"`
	NewApplyCnt         int     `json:"new_apply_cnt"`
	NewContactCnt       int     `json:"new_contact_cnt"`
}

type WechatChannels

type WechatChannels struct {
	Nickname string `json:"nickname"`
	Status   int    `json:"status"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL