19 lines
513 B
Go
19 lines
513 B
Go
package req
|
|
|
|
// KeywordReplyPair 关键词回复对
|
|
type KeywordReplyPair struct {
|
|
Keyword string `json:"keyword"`
|
|
Reply string `json:"reply"`
|
|
}
|
|
|
|
// SetKeywordReplyModel 设置关键词回复请求
|
|
type SetKeywordReplyModel struct {
|
|
Enable bool `json:"enable"` // 是否启用关键词回复
|
|
Pairs []KeywordReplyPair `json:"pairs"` // 关键词回复对列表
|
|
}
|
|
|
|
// GetKeywordReplyModel 获取关键词回复请求
|
|
type GetKeywordReplyModel struct {
|
|
// 空结构体,不需要请求参数
|
|
}
|