request

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddContactReq

type AddContactReq struct {
	Type          int32       `json:"type"`
	Scene         int32       `json:"scene"`
	Style         int32       `json:"style"`
	Remark        string      `json:"remark"`
	SkipVerify    bool        `json:"skip_verify"`
	State         string      `json:"state"`
	User          []string    `json:"user"`
	Party         []int32     `json:"party"`
	IsTemp        bool        `json:"is_temp"`
	ExpiresIn     int32       `json:"expires_in"`
	ChatExpiresIn int32       `json:"chat_expires_in"`
	UnionId       string      `json:"union_id"`
	Conclusions   Conclusions `json:"conclusions"`
}

type AddCorpTagReq

type AddCorpTagReq struct {
	GroupId   string     `json:"group_id"`
	GroupName string     `json:"group_name"`
	Order     int        `json:"order"`
	Tag       []*TagItem `json:"tag"`
	AgentId   int        `json:"agent_id"`
}

func (*AddCorpTagReq) Validate

func (a *AddCorpTagReq) Validate() error

type AddGroupWelcomeTemplateReq

type AddGroupWelcomeTemplateReq struct {
	Text        *Text        `json:"text"`
	Image       *Image       `json:"image"`
	Link        *Link        `json:"link"`
	Miniprogram *Miniprogram `json:"miniprogram"`
	Agentid     int64        `json:"agentid"`
	Notify      int          `json:"notify"`
}

type AddMsgTemplateReq

type AddMsgTemplateReq struct {
	ChatType       string   `json:"chat_type"`
	ExternalUserid []string `json:"external_userid"`
	Sender         string   `json:"sender"`
	Text           *struct {
		Content string `json:"content"`
	} `json:"text"`
	Image *struct {
		MediaId string `json:"media_id"`
		PicUrl  string `json:"pic_url"`
	} `json:"image"`
	Link *struct {
		Title  string `json:"title"`
		Picurl string `json:"picurl"`
		Desc   string `json:"desc"`
		Url    string `json:"url"`
	} `json:"link"`
	Miniprogram *Miniprogram `json:"miniprogram"`
}

type BatchGetExtContactDetailReq

type BatchGetExtContactDetailReq struct {
	UserId string `json:"user_id" validate:"required"`
	Cursor string `json:"cursor"`
	Limit  int    `json:"limit"`
}

func (*BatchGetExtContactDetailReq) Validate

func (b *BatchGetExtContactDetailReq) Validate() error

type CommonConfig

type CommonConfig struct {
	Token          string
	EncodingAESKey string
	ReceiverId     string
}

type Conclusions

type Conclusions struct {
	Text        *Text        `json:"text"`
	Image       *Image       `json:"image"`
	Link        *Link        `json:"link"`
	Miniprogram *Miniprogram `json:"miniprogram"`
}

type DecryptReq

type DecryptReq struct {
	MsgSignature string `json:"msg_signature"`
	Timestamp    int64  `json:"timestamp"`
	Nonce        string `json:"nonce"`
	EchoStr      string `json:"echostr"`
}

type DelContactWay

type DelContactWay struct {
	ConfigId string `json:"config_id"`
}

type DelCorpTagReq

type DelCorpTagReq struct {
	TagId   []string `json:"tag_id"`
	GroupId []string `json:"group_id"`
	Agent   int      `json:"agent"`
}

func (*DelCorpTagReq) Validate

func (c *DelCorpTagReq) Validate() error

type DelGroupWelcomeTemplateReq

type DelGroupWelcomeTemplateReq struct {
	TemplateId string `json:"template_id"`
	Agentid    int64  `json:"agentid"`
}

type EditGroupWelcomeTemplateReq

type EditGroupWelcomeTemplateReq struct {
	TemplateId  string       `json:"template_id"`
	Text        *Text        `json:"text"`
	Image       *Image       `json:"image"`
	Link        *Link        `json:"link"`
	Miniprogram *Miniprogram `json:"miniprogram"`
	Agentid     int64        `json:"agentid"`
}

type GetAccessTokenReq

type GetAccessTokenReq struct {
	CorpId     string
	CorpSecret string
}

type GetContact

type GetContact struct {
	ConfigId string `json:"config_id"`
}

type GetCorpTagListReq

type GetCorpTagListReq struct {
	TagId   []string `json:"tag_id"`
	GroupId []string `json:"group_id"`
}

type GetFollowUserListReq

type GetFollowUserListReq struct {
}

type GetGroupChatDetailReq

type GetGroupChatDetailReq struct {
	ChatId string
}

type GetGroupChatListReq

type GetGroupChatListReq struct {
	StatusFilter int `json:"status_filter"`
	OwnerFilter  struct {
		UseridList []string `json:"userid_list"`
	} `json:"owner_filter"`
	Cursor string `json:"cursor"`
	Limit  int    `json:"limit"`
}

type GetGroupWelcomeTemplateReq

type GetGroupWelcomeTemplateReq struct {
	TemplateId string `json:"template_id"`
}

type GetGroupmsgListReq

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

type GetGroupmsgSendResultReq

type GetGroupmsgSendResultReq struct {
	MsgId  string `json:"msg_id"`
	Userid string `json:"userid"`
	Limit  int    `json:"limit"`
	Cursor string `json:"cursor"`
}

type GetGroupmsgTaskReq

type GetGroupmsgTaskReq struct {
	MsgId  string `json:"msg_id"`
	Limit  int    `json:"limit"`
	Cursor string `json:"cursor"`
}

type GetResignedTransferResultReq

type GetResignedTransferResultReq struct {
	HandoverUserid string `json:"handover_userid"`
	TakeoverUserid string `json:"takeover_userid"`
	Cursor         string `json:"cursor"`
}

type GetUnassignedListReq

type GetUnassignedListReq struct {
	PageId   int    `json:"page_id"`
	Cursor   string `json:"cursor"`
	PageSize int    `json:"page_size"`
}

type GetUserBehaviorDataReq

type GetUserBehaviorDataReq struct {
}

type Image

type Image struct {
	MediaId string `json:"media_id"`
}
type Link struct {
	Title  string `json:"title"`
	Picurl string `json:"picurl"`
	Desc   string `json:"desc"`
	Url    string `json:"url"`
}

type Miniprogram

type Miniprogram struct {
	Title      string `json:"title"`
	PicMediaId string `json:"pic_media_id"`
	Appid      string `json:"appid"`
	Page       string `json:"page"`
}

type ReceiveMsg

type ReceiveMsg struct {
	ToUserName string `xml:"ToUserName"`
	AgentId    string `xml:"AgentId"`
	Encrypt    string `xml:"Encrypt"`
}

type ResignedTransferChatGroupReq

type ResignedTransferChatGroupReq struct {
	ChatIdList []string `json:"chat_id_list"`
	NewOwner   string   `json:"new_owner"`
}

type ResignedTransferCustomerReq

type ResignedTransferCustomerReq struct {
	HandoverUserid string   `json:"handover_userid"`
	TakeoverUserid string   `json:"takeover_userid"`
	ExternalUserid []string `json:"external_userid"`
}

type SendWelcomeMsgReq

type SendWelcomeMsgReq struct {
	WelcomeCode string       `json:"welcome_code"`
	Text        *Text        `json:"text"`
	Image       *Image       `json:"image"`
	Link        *Link        `json:"link"`
	Miniprogram *Miniprogram `json:"miniprogram"`
}

type SetExtContactTagReq

type SetExtContactTagReq struct {
	UserId         string   `json:"user_id" validate:"required"`
	ExternalUserId string   `json:"external_user_id" validate:"required"`
	AddTag         []string `json:"add_tag"`
	RemoveTag      []string `json:"remove_tag"`
}

func (*SetExtContactTagReq) Validate

func (c *SetExtContactTagReq) Validate() error

type TagItem

type TagItem struct {
	Name  string `json:"name" validate:"required"`
	Order int    `json:"order"`
}

type Text

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

type TransferCustomerReq

type TransferCustomerReq struct {
	HandoverUserid     string   `json:"handover_userid"`
	TakeoverUserid     string   `json:"takeover_userid"`
	ExternalUserid     []string `json:"external_userid"`
	TransferSuccessMsg string   `json:"transfer_success_msg"`
}

type TransferResultReq

type TransferResultReq struct {
	HandoverUserid string `json:"handover_userid"`
	TakeoverUserid string `json:"takeover_userid"`
	Cursor         string `json:"cursor"`
}

type UpdateContactWay

type UpdateContactWay struct {
	ConfigId      string      `json:"config_id"`
	Style         int32       `json:"style"`
	Remark        string      `json:"remark"`
	SkipVerify    bool        `json:"skip_verify"`
	State         string      `json:"state"`
	User          []string    `json:"user"`
	Party         []int32     `json:"party"`
	IsTemp        bool        `json:"is_temp"`
	ExpiresIn     int32       `json:"expires_in"`
	ChatExpiresIn int32       `json:"chat_expires_in"`
	UnionId       string      `json:"union_id"`
	Conclusions   Conclusions `json:"conclusions"`
}

type UpdateCorpTagReq

type UpdateCorpTagReq struct {
	Id    string `json:"id" validate:"required"`
	Name  string `json:"name"`
	Order int    `json:"order"`
	Agent int    `json:"agent"`
}

func (*UpdateCorpTagReq) Validate

func (c *UpdateCorpTagReq) Validate() error

type UpdateExtContactRemarkReq

type UpdateExtContactRemarkReq struct {
	UserId           string   `json:"user_id" validate:"required"`
	ExternalUserId   string   `json:"external_user_id" validate:"required"`
	Remark           string   `json:"remark"`
	Description      string   `json:"description"`
	RemarkCompany    string   `json:"remark_company"`
	RemarkMobiles    []string `json:"remark_mobiles"`
	RemarkPicMediaid string   `json:"remark_pic_mediaid"`
}

func (*UpdateExtContactRemarkReq) Validate

func (b *UpdateExtContactRemarkReq) Validate() error

type VerifyURLReq

type VerifyURLReq struct {
	MsgSignature string `json:"msg_signature"`
	Timestamp    int64  `json:"timestamp"`
	Nonce        string `json:"nonce"`
	Echostr      string `json:"echostr"`
}

Jump to

Keyboard shortcuts

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