models

package
v3.0.45 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CALLBACK_EVENT_SUBSCRIBE                = "subscribe"
	CALLBACK_EVENT_UNSUBSCRIBE              = "unsubscribe"
	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_SCAN                     = "SCAN"
	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_TEMPLATE_SEND_JOB_FINISH = "TEMPLATESENDJOBFINISH"
	CALLBACK_EVENT_VIEW_MINIPROGRAM         = "view_miniprogram"
	CALLBACK_EVENT_MASS_SEND_JOB_FINISH     = "MASSSENDJOBFINISH"
)
View Source
const (
	CALLBACK_EVENT_CHANGE_EXTERNAL_CONTACT = "change_external_contact"
	CALLBACK_EVENT_CHANGE_EXTERNAL_TAG     = "change_external_tag"

	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_TYPE_CREATE                    = "create"
	CALLBACK_EVENT_CHANGE_TYPE_UPDATE                    = "update"
	CALLBACK_EVENT_CHANGE_TYPE_DISMISS                   = "dismiss"
	CALLBACK_EVENT_CHANGE_TYPE_DELETE                    = "delete"
	CALLBACK_EVENT_CHANGE_TYPE_SHUFFLE                   = "shuffle"

	CALLBACK_EVENT_UPDATE_DETAIL = "add_member"
	CALLBACK_EVENT_TAG_TYPE      = "tag"
)
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"
View Source
const (
	CALLBACK_EVENT_PUBLISH = "PUBLISHJOBFINISH"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ArticleDetail added in v3.0.25

type ArticleDetail struct {
	Count string `json:"count"`
	Item  Item   `json:"item"`
}

type EventBatchJobResult

type EventBatchJobResult struct {
	contract.EventInterface
	models.CallbackMessageHeader
	BatchJob struct {
		Text    string `xml:",chardata"`
		JobID   string `xml:"JobId"`
		JobType string `xml:"JobType"`
		ErrCode string `xml:"ErrCode"`
		ErrMsg  string `xml:"ErrMsg"`
	} `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 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 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"`
	} `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 struct {
		Text           string `xml:",chardata"`
		ThirdNo        string `xml:"ThirdNo"`
		OpenSpName     string `xml:"OpenSpName"`
		OpenTemplateID string `xml:"OpenTemplateId"`
		OpenSpStatus   string `xml:"OpenSpStatus"`
		ApplyTime      string `xml:"ApplyTime"`
		ApplyUserName  string `xml:"ApplyUserName"`
		ApplyUserID    string `xml:"ApplyUserId"`
		ApplyUserParty string `xml:"ApplyUserParty"`
		ApplyUserImage string `xml:"ApplyUserImage"`
		ApprovalNodes  struct {
			Text         string `xml:",chardata"`
			ApprovalNode struct {
				Text       string `xml:",chardata"`
				NodeStatus string `xml:"NodeStatus"`
				NodeAttr   string `xml:"NodeAttr"`
				NodeType   string `xml:"NodeType"`
				Items      struct {
					Text string `xml:",chardata"`
					Item struct {
						Text       string `xml:",chardata"`
						ItemName   string `xml:"ItemName"`
						ItemUserID string `xml:"ItemUserId"`
						ItemImage  string `xml:"ItemImage"`
						ItemStatus string `xml:"ItemStatus"`
						ItemSpeech string `xml:"ItemSpeech"`
						ItemOpTime string `xml:"ItemOpTime"`
					} `xml:"Item"`
				} `xml:"Items"`
			} `xml:"ApprovalNode"`
		} `xml:"ApprovalNodes"`
		NotifyNodes struct {
			Text       string `xml:",chardata"`
			NotifyNode struct {
				Text       string `xml:",chardata"`
				ItemName   string `xml:"ItemName"`
				ItemUserID string `xml:"ItemUserId"`
				ItemImage  string `xml:"ItemImage"`
			} `xml:"NotifyNode"`
		} `xml:"NotifyNodes"`
		Approverstep string `xml:"approverstep"`
	} `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 struct {
		Text    string `xml:",chardata"`
		Count   string `xml:"Count"`
		PicList struct {
			Text string `xml:",chardata"`
			Item struct {
				Text      string `xml:",chardata"`
				PicMd5Sum string `xml:"PicMd5Sum"`
			} `xml:"item"`
		} `xml:"PicList"`
	} `xml:"SendPicsInfo"`
	AgentID string `xml:"AgentID"`
}

type EventPicSysPhoto

type EventPicSysPhoto struct {
	contract.EventInterface
	models.CallbackMessageHeader
	EventKey     string `xml:"EventKey"`
	SendPicsInfo struct {
		Text    string `xml:",chardata"`
		Count   string `xml:"Count"`
		PicList struct {
			Text string `xml:",chardata"`
			Item struct {
				Text      string `xml:",chardata"`
				PicMd5Sum string `xml:"PicMd5Sum"`
			} `xml:"item"`
		} `xml:"PicList"`
	} `xml:"SendPicsInfo"`
	AgentID string `xml:"AgentID"`
}

type EventPicWeixin

type EventPicWeixin struct {
	contract.EventInterface
	models.CallbackMessageHeader
	EventKey     string `xml:"EventKey"`
	SendPicsInfo struct {
		Text    string `xml:",chardata"`
		Count   string `xml:"Count"`
		PicList struct {
			Text string `xml:",chardata"`
			Item struct {
				Text      string `xml:",chardata"`
				PicMd5Sum string `xml:"PicMd5Sum"`
			} `xml:"item"`
		} `xml:"PicList"`
	} `xml:"SendPicsInfo"`
	AgentID string `xml:"AgentID"`
}

type EventPublish added in v3.0.25

type EventPublish struct {
	contract.EventInterface
	models.CallbackMessageHeader

	PublishEventInfo PublishEventInfo `json:"PublishEventInfo"`
}

type EventScanCodePush

type EventScanCodePush struct {
	contract.EventInterface
	models.CallbackMessageHeader
	EventKey     string `xml:"EventKey"`
	ScanCodeInfo struct {
		Text       string `xml:",chardata"`
		ScanType   string `xml:"ScanType"`
		ScanResult string `xml:"ScanResult"`
	} `xml:"ScanCodeInfo"`
	AgentID string `xml:"AgentID"`
}

type EventScancodeWaitMsg

type EventScancodeWaitMsg struct {
	contract.EventInterface
	models.CallbackMessageHeader
	EventKey     string `xml:"EventKey"`
	ScanCodeInfo struct {
		Text       string `xml:",chardata"`
		ScanType   string `xml:"ScanType"`
		ScanResult string `xml:"ScanResult"`
	} `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 struct {
		Text         string `xml:",chardata"`
		SelectedItem []struct {
			Text        string `xml:",chardata"`
			QuestionKey string `xml:"QuestionKey"`
			OptionIds   struct {
				Text     string   `xml:",chardata"`
				OptionID []string `xml:"OptionId"`
			} `xml:"OptionIds"`
		} `xml:"SelectedItem"`
	} `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 EventUnSubscribe

type EventUnSubscribe struct {
	contract.EventInterface
	models.CallbackMessageHeader
	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 added in v3.0.25

type Item struct {
	Idx        string `json:"idx"`
	ArticleURL string `json:"article_url"`
}

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 PublishEventInfo added in v3.0.25

type PublishEventInfo struct {
	PublishID     string        `json:"publish_id"`
	PublishStatus string        `json:"publish_status"`
	ArticleID     string        `json:"article_id"`
	ArticleDetail ArticleDetail `json:"article_detail"`
}

Jump to

Keyboard shortcuts

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