response

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2024 License: AGPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FeedRichMsgBotInfoModel

type FeedRichMsgBotInfoModel struct {
	BotToken string `json:"botToken" form:"botToken"`
}

type FeedRichMsgChatInfoModel

type FeedRichMsgChatInfoModel struct {
	ToChatID int64 `json:"toChatID" form:"toChatID"`
}

type FeedRichMsgFormInfoModel

type FeedRichMsgFormInfoModel struct {
	FormChatID   string `json:"formChatID" form:"formChatID"`
	FormSenderID string `json:"formSenderID" form:"formSenderID"`

	FormKeyworld string `json:"formKeyworld" form:"formKeyworld"`
}

type FeedRichMsgImageModel

type FeedRichMsgImageModel struct {
	PicURL   string `json:"picURL"  form:"picURL"`
	FilePath string `json:"filePath"  form:"filePath"`
	// (Optional)
	Caption string `json:"caption,omitempty"`
}

type FeedRichMsgResponse

type FeedRichMsgResponse struct {
	Msgtype      string                `json:"msgtype"  form:"msgtype"` //rich text image video
	MsgID        string                `json:"msgID"  form:"msgID"`
	MsgTime      string                `json:"msgTime"  form:"msgTime"`
	Text         FeedRichMsgTextModel  `json:"text"  form:"text"`
	Image        FeedRichMsgImageModel `json:"image"  form:"image"`
	Video        FeedRichMsgVideoModel `json:"video"  form:"video"`
	Link         string                `json:"link"  form:"link"`
	LinkIsPublic bool                  `json:"linkIsPublic"  form:"linkIsPublic"`

	BotInfo  FeedRichMsgBotInfoModel  `json:"botInfo"  form:"botInfo"`
	ChatInfo FeedRichMsgChatInfoModel `json:"chatInfo"  form:"chatInfo"`
	FormInfo FeedRichMsgFormInfoModel `json:"formInfo"  form:"formInfo"`
	NoButton bool                     `json:"noButton" form:"noButton"`
}

func (*FeedRichMsgResponse) ToString

func (msg *FeedRichMsgResponse) ToString() (res string)

type FeedRichMsgTextModel

type FeedRichMsgTextModel struct {
	Content         string `json:"content"  form:"content"`
	ContentEx       string `json:"contentEx"  form:"contentEx"`
	ContentExPic    string `json:"contentExPic"  form:"contentExPic"`
	ContentMarkdown string `json:"contentMarkdown"  form:"contentMarkdown"`
}

type FeedRichMsgVideoModel

type FeedRichMsgVideoModel struct {
	FileURL  string `json:"fileURL"  form:"fileURL"`
	FilePath string `json:"filePath"  form:"filePath"`
	// (Optional)
	Caption string `json:"caption,omitempty"`
}

type KeyworldHistoryInfoItem

type KeyworldHistoryInfoItem struct {
	ChatId             int64  `json:"chat_id" form:"chat_id" gorm:"column:chat_id;"`
	SenderId           int64  `json:"sender_id" form:"sender_id" gorm:"column:sender_id;"`
	SenderUsername     string `json:"sender_username" form:"sender_username" gorm:"column:sender_username;"`
	MessageId          int64  `json:"message_id" form:"message_id" gorm:"column:message_id;"`
	MessageLink        string `json:"message_link" form:"message_link" gorm:"column:message_link;"`
	MessageContentText string `json:"message_content_text" form:"message_content_text" gorm:"column:message_content_text;"`

	KeyWorld string `json:"key_world" form:"key_world" gorm:"column:key_world;"`
	Total    int64  `json:"total" form:"total" gorm:"column:total;"`
}

type KeyworldHistoryInfoListResponse

type KeyworldHistoryInfoListResponse struct {
	Total int64                     `json:"total" form:"total"`
	Items []KeyworldHistoryInfoItem `json:"items" form:"items"`
}

type KeyworldHistoryInfoResponse

type KeyworldHistoryInfoResponse struct {
	// Code    int         `json:"status"` //返回 0,表示当前接口正确返回,否则按错误请求处理;
	// Message string      `json:"msg"`    //返回接口处理信息,主要用于表单提交或请求失败时的 toast 显示;
	// Data    interface{} `json:"data"`   //必须返回一个具有 key-value 结构的对象。
	Code    int                             `json:"code"`
	Message string                          `json:"message"`
	Data    KeyworldHistoryInfoListResponse `json:"data"`
}

type ListResponse

type ListResponse struct {
	Total  int64       `json:"total" form:"total"`
	Items  interface{} `json:"items" form:"items"`
	AdList interface{} `json:"ad_list,omitempty" form:"ad_list"`
}

type Response

type Response struct {
	// Code    int         `json:"status"` //返回 0,表示当前接口正确返回,否则按错误请求处理;
	// Message string      `json:"msg"`    //返回接口处理信息,主要用于表单提交或请求失败时的 toast 显示;
	// Data    interface{} `json:"data"`   //必须返回一个具有 key-value 结构的对象。
	Code    int         `json:"code"`
	Message string      `json:"message"`
	Data    interface{} `json:"data"`
}

type ResultResponse

type ResultResponse struct {
	Result interface{} `json:"result"`
}

Jump to

Keyboard shortcuts

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