Documentation
¶
Index ¶
- type FeedRichMsgBotInfoModel
- type FeedRichMsgChatInfoModel
- type FeedRichMsgFormInfoModel
- type FeedRichMsgImageModel
- type FeedRichMsgResponse
- type FeedRichMsgTextModel
- type FeedRichMsgVideoModel
- type KeyworldHistoryInfoItem
- type KeyworldHistoryInfoListResponse
- type KeyworldHistoryInfoResponse
- type ListResponse
- type Response
- type ResultResponse
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 FeedRichMsgImageModel ¶
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 FeedRichMsgVideoModel ¶
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 ResultResponse ¶
type ResultResponse struct {
Result interface{} `json:"result"`
}
Click to show internal directories.
Click to hide internal directories.