models

package
v2.0.13 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2022 License: MIT Imports: 2 Imported by: 3

Documentation

Index

Constants

View Source
const (
	CALLBACK_EVENT_SUBSCRIBE                = "subscribe"
	CALLBACK_EVENT_ENTER_AGENT              = "enter_agent"
	CALLBACK_EVENT_LOCATION                 = "LOCATION"
	CALLBACK_EVENT_BATCH_JOB_RESULT         = "batch_job_result"
	CALLBACK_EVENT_CLICK                    = "click"
	CALLBACK_EVENT_VIEW                     = "view"
	CALLBACK_EVENT_SCANCODE_PUSH            = "scancode_push"
	CALLBACK_EVENT_SCANCODE_WAITMSG         = "scancode_waitmsg"
	CALLBACK_EVENT_PIC_SYSPHOTO             = "pic_sysphoto"
	CALLBACK_EVENT_PIC_PHOTO_OR_ALBUM       = "pic_photo_or_album"
	CALLBACK_EVENT_PIC_WEIXIN               = "pic_weixin"
	CALLBACK_EVENT_LOCATION_SELECT          = "location_select"
	CALLBACK_EVENT_OPEN_APPROVAL_CHANGE     = "open_approval_change"
	CALLBACK_EVENT_SHARE_AGENT_CHANGE       = "share_agent_change"
	CALLBACK_EVENT_TEMPLATE_CARD_MENU_EVENT = "template_card_menu_event"
	CALLBACK_EVENT_SYS_APPROVAL_CHANGE      = "sys_approval_change"
)
View Source
const (
	CALLBACK_EVENT_CHANGE_EXTERNAL_CONTACT               = "change_external_contact"   // 变更外部联系人事件
	CALLBACK_EVENT_CHANGE_TYPE_ADD_EXTERNAL_CONTACT      = "add_external_contact"      // 新增外部联系人事件
	CALLBACK_EVENT_CHANGE_TYPE_EDIT_EXTERNAL_CONTACT     = "edit_external_contact"     // 编辑外部联系人事件
	CALLBACK_EVENT_CHANGE_TYPE_ADD_HALF_EXTERNAL_CONTACT = "add_half_external_contact" // 外部联系人免验证添加成员事件
	CALLBACK_EVENT_CHANGE_TYPE_DEL_EXTERNAL_CONTACT      = "del_external_contact"      // 删除企业客户事件
	CALLBACK_EVENT_CHANGE_TYPE_DEL_FOLLOW_USER           = "del_follow_user"           // 删除跟进成员事件
	CALLBACK_EVENT_CHANGE_TYPE_TRANSFER_FAIL             = "transfer_fail"             // 客户接替失败事件

	CALLBACK_EVENT_CHANGE_EXTERNAL_CHAT        = "change_external_chat" // 客户群创建事件
	CALLBACK_EVENT_UPDATE_DETAIL_ADD_MEMBER    = "add_member"           // 成员入群事件
	CALLBACK_EVENT_UPDATE_DETAIL_DEL_MEMBER    = "del_member"           // 成员退群事件
	CALLBACK_EVENT_UPDATE_DETAIL_CHANGE_OWNER  = "change_owner"         // 群主变更事件
	CALLBACK_EVENT_UPDATE_DETAIL_CHANGE_NAME   = "change_name"          // 群名变更事件
	CALLBACK_EVENT_UPDATE_DETAIL_CHANGE_NOTICE = "change_notice"        // 群公告变更事件

	CALLBACK_EVENT_CHANGE_EXTERNAL_TAG = "change_external_tag" // 企业客户标签变更事件
	CALLBACK_EVENT_CHANGE_TYPE_CREATE  = "create"              // 创建标签事件
	CALLBACK_EVENT_CHANGE_TYPE_UPDATE  = "update"              // 更新标签名称事件
	CALLBACK_EVENT_CHANGE_TYPE_DELETE  = "delete"              // 删除标签事件
	CALLBACK_EVENT_CHANGE_TYPE_DISMISS = "dismiss"             // 解散群事件
	CALLBACK_EVENT_CHANGE_TYPE_SHUFFLE = "shuffle"             // 标签重排事件
	CALLBACK_EVENT_TAG_TYPE            = "tag"                 // 标签事件
	CALLBACK_EVENT_TAG_TYPE_GROUP      = "tag_group"           // 标签组事件
)
View Source
const (
	CALLBACK_EVENT_CHANGE_TYPE_CREATE_PARTY = "create_party"
	CALLBACK_EVENT_CHANGE_TYPE_UPDATE_PARTY = "update_party"
	CALLBACK_EVENT_CHANGE_TYPE_DELETE_PARTY = "delete_party"
)
View Source
const (
	CALLBACK_EVENT_CHANGE_CONTACT = "change_contact"

	CALLBACK_EVENT_CHANGE_TYPE_CREATE_USER = "create_user"
	CALLBACK_EVENT_CHANGE_TYPE_UPDATE_USER = "update_user"
	CALLBACK_EVENT_CHANGE_TYPE_DELETE_USER = "delete_user"
)
View Source
const CALLBACK_EVENT_CHANGE_TYPE_UPDATE_TAG = "update_tag"
View Source
const CALLBACK_EVENT_LIVING_STATUS_CHANGE = "living_status_change"
View Source
const CALLBACK_EVENT_MSGAUDIT_NOTIFY = "msgaudit_notify"

Variables

This section is empty.

Functions

This section is empty.

Types

type Applier

type Applier struct {
	Text   string `xml:",chardata"`
	UserID string `xml:"UserId"`
	Party  string `xml:"Party"`
}

type ApprovalInfo

type ApprovalInfo struct {
	Text              string      `xml:",chardata"`
	SpNO              string      `xml:"SpNo"`
	SpName            string      `xml:"SpName"`
	SpStatus          string      `xml:"SpStatus"`
	TemplateID        string      `xml:"TemplateId"`
	ApplyTime         string      `xml:"ApplyTime"`
	Applier           *Applier    `xml:"Applyer"`
	SpRecord          []*SPRecord `xml:"SpRecord"`
	Notifier          *Notifier   `xml:"Notifyer"`
	Comments          *Comments   `xml:"Comments"`
	StatusChangeEvent string      `xml:"StatuChangeEvent"`
}

type Approver

type Approver struct {
	Text   string `xml:",chardata"`
	UserID string `xml:"UserId"`
}

type BatchJob

type BatchJob struct {
	Text    string `xml:",chardata"`
	JobID   string `xml:"JobId"`
	JobType string `xml:"JobType"`
	ErrCode string `xml:"ErrCode"`
	ErrMsg  string `xml:"ErrMsg"`
}

type CommentUserInfo

type CommentUserInfo struct {
	Text   string `xml:",chardata"`
	UserID string `xml:"UserId"`
}

type Comments

type Comments struct {
	Text            string           `xml:",chardata"`
	CommentUserInfo *CommentUserInfo `xml:"CommentUserInfo"`
	CommentTime     string           `xml:"CommentTime"`
	CommentContent  string           `xml:"CommentContent"`
	CommentID       string           `xml:"CommentId"`
}

type Detail

type Detail struct {
	Text     string    `xml:",chardata"`
	Approver *Approver `xml:"Approver"`
	Speech   string    `xml:"Speech"`
	SpStatus string    `xml:"SpStatus"`
	SpTime   string    `xml:"SpTime"`
}

type EventBatchJobResult

type EventBatchJobResult struct {
	contract.EventInterface
	models.CallbackMessageHeader
	BatchJob *BatchJob `xml:"BatchJob"`
}

type EventClick

type EventClick struct {
	contract.EventInterface
	models.CallbackMessageHeader
	EventKey string `xml:"EventKey"`
	AgentID  string `xml:"AgentID"`
}

type EventEnterAgent

type EventEnterAgent struct {
	contract.EventInterface
	models.CallbackMessageHeader
	EventKey string `xml:"EventKey"`
	AgentID  string `xml:"AgentID"`
}

type EventExternalTransferFail added in v2.0.6

type EventExternalTransferFail struct {
	contract.EventInterface
	models.CallbackMessageHeader
	FailReason     string `xml:"FailReason"`
	UserID         string `xml:"UserID"`
	ExternalUserID string `xml:"ExternalUserID"`
}

type EventExternalUserAdd

type EventExternalUserAdd struct {
	contract.EventInterface
	models.CallbackMessageHeader
	UserID         string `xml:"UserID"`
	ExternalUserID string `xml:"ExternalUserID"`
	State          string `xml:"State"`
	WelcomeCode    string `xml:"WelcomeCode"`
}

type EventExternalUserAddHalf

type EventExternalUserAddHalf struct {
	contract.EventInterface
	models.CallbackMessageHeader
	UserID         string `xml:"UserID"`
	ExternalUserID string `xml:"ExternalUserID"`
	State          string `xml:"State"`
	WelcomeCode    string `xml:"WelcomeCode"`
}

type EventExternalUserDel

type EventExternalUserDel struct {
	contract.EventInterface
	models.CallbackMessageHeader
	UserID         string `xml:"UserID"`
	ExternalUserID string `xml:"ExternalUserID"`
	Source         string `xml:"Source"`
}

type EventExternalUserDelFollowUser

type EventExternalUserDelFollowUser struct {
	contract.EventInterface
	models.CallbackMessageHeader
	UserID         string `xml:"UserID"`
	ExternalUserID string `xml:"ExternalUserID"`
}

type EventExternalUserDismiss

type EventExternalUserDismiss struct {
	contract.EventInterface
	models.CallbackMessageHeader
	ChatID string `xml:"ChatId"`
}

type EventExternalUserEdit

type EventExternalUserEdit struct {
	contract.EventInterface
	models.CallbackMessageHeader
	UserID         string `xml:"UserID"`
	ExternalUserID string `xml:"ExternalUserID"`
}

type EventExternalUserTagCreate

type EventExternalUserTagCreate struct {
	contract.EventInterface
	models.CallbackMessageHeader
	ID         string `xml:"Id"`
	TagType    string `xml:"TagType"`
	StrategyID string `xml:"StrategyId"`
}

type EventExternalUserTagDelete

type EventExternalUserTagDelete struct {
	contract.EventInterface
	models.CallbackMessageHeader
	ID         string `xml:"Id"`
	TagType    string `xml:"TagType"`
	StrategyID string `xml:"StrategyId"`
}

type EventExternalUserTagShuffle

type EventExternalUserTagShuffle struct {
	contract.EventInterface
	models.CallbackMessageHeader
	ID         string `xml:"Id"`
	StrategyID string `xml:"StrategyId"`
	ChangeType string `xml:"ChangeType"`
}

type EventExternalUserTagUpdate

type EventExternalUserTagUpdate struct {
	contract.EventInterface
	models.CallbackMessageHeader
	ID         string `xml:"Id"`
	TagType    string `xml:"TagType"`
	StrategyID string `xml:"StrategyId"`
}

type EventExternalUserUpdateAddMember

type EventExternalUserUpdateAddMember struct {
	contract.EventInterface
	models.CallbackMessageHeader
	ChatID       string `xml:"ChatId"`
	ChangeType   string `xml:"ChangeType"`
	UpdateDetail string `xml:"UpdateDetail"`
	JoinScene    string `xml:"JoinScene"`
	QuitScene    string `xml:"QuitScene"`
	MemChangeCnt string `xml:"MemChangeCnt"`
}

type EventLivingStatusChange

type EventLivingStatusChange struct {
	contract.EventInterface
	models.CallbackMessageHeader
	LivingID string `xml:"LivingId"`
	Status   string `xml:"Status"`
	AgentID  string `xml:"AgentID"`
}

type EventLocation

type EventLocation struct {
	contract.EventInterface
	models.CallbackMessageHeader
	Latitude  string `xml:"Latitude"`
	Longitude string `xml:"Longitude"`
	Precision string `xml:"Precision"`
	AgentID   string `xml:"AgentID"`
	AppType   string `xml:"AppType"`
}

type EventLocationSelect

type EventLocationSelect struct {
	contract.EventInterface
	models.CallbackMessageHeader
	EventKey         string            `xml:"EventKey"`
	SendLocationInfo *SendLocationInfo `xml:"SendLocationInfo"`
	AgentID          string            `xml:"AgentID"`
	AppType          string            `xml:"AppType"`
}

type EventMsgAuditNotify

type EventMsgAuditNotify struct {
	contract.EventInterface
	models.CallbackMessageHeader
	AgentID string `xml:"AgentID"`
}

type EventOpenApprovalChange

type EventOpenApprovalChange struct {
	contract.EventInterface
	models.CallbackMessageHeader
	AgentID      string        `xml:"AgentID"`
	ApprovalInfo *ApprovalInfo `xml:"ApprovalInfo"`
}

type EventPartyCreate

type EventPartyCreate struct {
	contract.EventInterface
	models.CallbackMessageHeader
	ID       string `xml:"Id"`
	Name     string `xml:"Name"`
	ParentID string `xml:"ParentId"`
	Order    string `xml:"Order"`
}

type EventPartyDelete

type EventPartyDelete struct {
	contract.EventInterface
	models.CallbackMessageHeader
	ID string `xml:"Id"`
}

type EventPartyUpdate

type EventPartyUpdate struct {
	contract.EventInterface
	models.CallbackMessageHeader
	ID       string `xml:"Id"`
	Name     string `xml:"Name"`
	ParentID string `xml:"ParentId"`
}

type EventPicPhotoOrAlbum

type EventPicPhotoOrAlbum struct {
	contract.EventInterface
	models.CallbackMessageHeader
	EventKey     string        `xml:"EventKey"`
	SendPicsInfo *SendPicsInfo `xml:"SendPicsInfo"`
	AgentID      string        `xml:"AgentID"`
}

type EventPicSysPhoto

type EventPicSysPhoto struct {
	contract.EventInterface
	models.CallbackMessageHeader
	EventKey     string        `xml:"EventKey"`
	SendPicsInfo *SendPicsInfo `xml:"SendPicsInfo"`
	AgentID      string        `xml:"AgentID"`
}

type EventPicWeixin

type EventPicWeixin struct {
	contract.EventInterface
	models.CallbackMessageHeader
	EventKey     string       `xml:"EventKey"`
	SendPicsInfo SendPicsInfo `xml:"SendPicsInfo"`
	AgentID      string       `xml:"AgentID"`
}

type EventScanCodePush

type EventScanCodePush struct {
	contract.EventInterface
	models.CallbackMessageHeader
	EventKey     string        `xml:"EventKey"`
	ScanCodeInfo *ScanCodeInfo `xml:"ScanCodeInfo"`
	AgentID      string        `xml:"AgentID"`
}

type EventScancodeWaitMsg

type EventScancodeWaitMsg struct {
	contract.EventInterface
	models.CallbackMessageHeader
	EventKey     string        `xml:"EventKey"`
	ScanCodeInfo *ScanCodeInfo `xml:"ScanCodeInfo"`
	AgentID      string        `xml:"AgentID"`
}

type EventShareAgentChange

type EventShareAgentChange struct {
	contract.EventInterface
	models.CallbackMessageHeader
	AgentID string `xml:"AgentID"`
}

type EventSubscribe

type EventSubscribe struct {
	contract.EventInterface
	models.CallbackMessageHeader
	AgentID string `xml:"AgentID"`
}

type EventTagUpdate

type EventTagUpdate struct {
	contract.EventInterface
	models.CallbackMessageHeader
	TagID         string `xml:"TagId"`
	AddUserItems  string `xml:"AddUserItems"`
	DelUserItems  string `xml:"DelUserItems"`
	AddPartyItems string `xml:"AddPartyItems"`
	DelPartyItems string `xml:"DelPartyItems"`
}

type EventTemplateCardEvent

type EventTemplateCardEvent struct {
	contract.EventInterface
	models.CallbackMessageHeader
	EventKey      string       `xml:"EventKey"`
	TaskID        string       `xml:"TaskId"`
	CardType      string       `xml:"CardType"`
	ResponseCode  string       `xml:"ResponseCode"`
	AgentID       string       `xml:"AgentID"`
	SelectedItems *SelectItems `xml:"SelectedItems"`
}

type EventTemplateCardMenuEvent

type EventTemplateCardMenuEvent struct {
	contract.EventInterface
	models.CallbackMessageHeader
	EventKey     string `xml:"EventKey"`
	TaskID       string `xml:"TaskId"`
	CardType     string `xml:"CardType"`
	ResponseCode string `xml:"ResponseCode"`
	AgentID      string `xml:"AgentID"`
}

type EventUserCreate

type EventUserCreate struct {
	contract.EventInterface
	models.CallbackMessageHeader
	ChangeType     string `xml:"ChangeType"`
	UserID         string `xml:"UserID"`
	Name           string `xml:"Name"`
	Department     string `xml:"Department"`
	MainDepartment string `xml:"MainDepartment"`
	IsLeaderInDept string `xml:"IsLeaderInDept"`
	Position       string `xml:"Position"`
	Mobile         string `xml:"Mobile"`
	Gender         string `xml:"Gender"`
	Email          string `xml:"Email"`
	Status         string `xml:"Status"`
	Avatar         string `xml:"Avatar"`
	Alias          string `xml:"Alias"`
	Telephone      string `xml:"Telephone"`
	Address        string `xml:"Address"`
	ExtAttr        struct {
		Text string `xml:",chardata"`
		Item []struct {
			Chardata string `xml:",chardata"`
			Name     string `xml:"Name"`
			Type     string `xml:"Type"`
			Text     struct {
				Text  string `xml:",chardata"`
				Value string `xml:"Value"`
			} `xml:"Text"`
			Web struct {
				Text  string `xml:",chardata"`
				Title string `xml:"Title"`
				URL   string `xml:"Url"`
			} `xml:"Web"`
		} `xml:"Item"`
	} `xml:"ExtAttr"`
}

type EventUserDelete

type EventUserDelete struct {
	contract.EventInterface
	models.CallbackMessageHeader
	UserID string `xml:"UserID"`
}

type EventUserUpdate

type EventUserUpdate struct {
	contract.EventInterface
	models.CallbackMessageHeader
	ChangeType     string `xml:"ChangeType"`
	UserID         string `xml:"UserID"`
	NewUserID      string `xml:"NewUserID"`
	Name           string `xml:"Name"`
	Department     string `xml:"Department"`
	MainDepartment string `xml:"MainDepartment"`
	IsLeaderInDept string `xml:"IsLeaderInDept"`
	Position       string `xml:"Position"`
	Mobile         string `xml:"Mobile"`
	Gender         string `xml:"Gender"`
	Email          string `xml:"Email"`
	Status         string `xml:"Status"`
	Avatar         string `xml:"Avatar"`
	Alias          string `xml:"Alias"`
	Telephone      string `xml:"Telephone"`
	Address        string `xml:"Address"`
	ExtAttr        struct {
		Text string `xml:",chardata"`
		Item []struct {
			Chardata string `xml:",chardata"`
			Name     string `xml:"Name"`
			Type     string `xml:"Type"`
			Text     struct {
				Text  string `xml:",chardata"`
				Value string `xml:"Value"`
			} `xml:"Text"`
			Web struct {
				Text  string `xml:",chardata"`
				Title string `xml:"Title"`
				URL   string `xml:"Url"`
			} `xml:"Web"`
		} `xml:"Item"`
	} `xml:"ExtAttr"`
}

type EventView

type EventView struct {
	contract.EventInterface
	models.CallbackMessageHeader
	EventKey string `xml:"EventKey"`
	AgentID  string `xml:"AgentID"`
}

type Item

type Item struct {
	Text      string `xml:",chardata"`
	PicMd5Sum string `xml:"PicMd5Sum"`
}

type MessageImage

type MessageImage struct {
	contract.EventInterface
	models.CallbackMessageHeader
	PicUrl  string `xml:"PicUrl"`
	MediaID string `xml:"MediaId"`
	MsgID   string `xml:"MsgId"`
	AgentID string `xml:"AgentID"`
}
type MessageLink struct {
	contract.EventInterface
	models.CallbackMessageHeader
	Title       string `xml:"Title"`
	Description string `xml:"Description"`
	URL         string `xml:"Url"`
	PicUrl      string `xml:"PicUrl"`
	MsgID       string `xml:"MsgId"`
	AgentID     string `xml:"AgentID"`
}

type MessageLocation

type MessageLocation struct {
	contract.EventInterface
	models.CallbackMessageHeader
	LocationX string `xml:"Location_X"`
	LocationY string `xml:"Location_Y"`
	Scale     string `xml:"Scale"`
	Label     string `xml:"Label"`
	MsgID     string `xml:"MsgId"`
	AgentID   string `xml:"AgentID"`
	AppType   string `xml:"AppType"`
}

type MessageText

type MessageText struct {
	contract.EventInterface
	models.CallbackMessageHeader
	Content string `xml:"Content"`
	MsgID   string `xml:"MsgId"`
	AgentID string `xml:"AgentID"`
}

type MessageVideo

type MessageVideo struct {
	contract.EventInterface
	models.CallbackMessageHeader
	MediaID      string `xml:"MediaId"`
	ThumbMediaID string `xml:"ThumbMediaId"`
	MsgID        string `xml:"MsgId"`
	AgentID      string `xml:"AgentID"`
}

type MessageVoice

type MessageVoice struct {
	contract.EventInterface
	models.CallbackMessageHeader
	MediaID string `xml:"MediaId"`
	Format  string `xml:"Format"`
	MsgID   string `xml:"MsgId"`
	AgentID string `xml:"AgentID"`
}

type Notifier

type Notifier struct {
	Text   string `xml:",chardata"`
	UserID string `xml:"UserId"`
}

type OptionID

type OptionID struct {
	Text     string   `xml:",chardata"`
	OptionID []string `xml:"OptionId"`
}

type PicList

type PicList struct {
	Text string `xml:",chardata"`
	Item *Item  `xml:"item"`
}

type SPRecord

type SPRecord struct {
	Text         string   `xml:",chardata"`
	SpStatus     string   `xml:"SpStatus"`
	ApproverAttr string   `xml:"ApproverAttr"`
	Details      []Detail `xml:"Details"`
}

type ScanCodeInfo

type ScanCodeInfo struct {
	Text       string `xml:",chardata"`
	ScanType   string `xml:"ScanType"`
	ScanResult string `xml:"ScanResult"`
}

type SelectItem

type SelectItem struct {
	Text        string    `xml:",chardata"`
	QuestionKey string    `xml:"QuestionKey"`
	OptionIDs   *OptionID `xml:"OptionIds"`
}

type SelectItems

type SelectItems struct {
	Text         string        `xml:",chardata"`
	SelectedItem []*SelectItem `xml:"SelectedItem"`
}

type SendLocationInfo

type SendLocationInfo struct {
	Text      string `xml:",chardata"`
	LocationX string `xml:"Location_X"`
	LocationY string `xml:"Location_Y"`
	Scale     string `xml:"Scale"`
	Label     string `xml:"Label"`
	PoiName   string `xml:"Poiname"`
}

type SendPicsInfo

type SendPicsInfo struct {
	Text    string   `xml:",chardata"`
	Count   string   `xml:"Count"`
	PicList *PicList `xml:"PicList"`
}

Jump to

Keyboard shortcuts

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