@@ -0,0 +1,31 @@
|
||||
package contentlibmod
|
||||
|
||||
import (
|
||||
"time"
|
||||
|
||||
"91porn-server/models/commod"
|
||||
)
|
||||
|
||||
type RespList struct {
|
||||
ID ObjectID `json:"id"`
|
||||
RobotType string `json:"robotType"` // 机器人类型
|
||||
Content string `json:"content"` // 聊天内容
|
||||
CreatedAt time.Time `json:"createdAt"` // 创建时间
|
||||
}
|
||||
|
||||
// 内容库列表请求信息
|
||||
type ReqContentList struct {
|
||||
RobotType *string `form:"robotType" json:"robotType"`
|
||||
commod.Page
|
||||
}
|
||||
|
||||
// 内容库增加内容请求参数
|
||||
type ReqContentAdd struct {
|
||||
RobotType string `json:"robotType" binding:"required"`
|
||||
Content string `json:"content" binding:"required"`
|
||||
}
|
||||
|
||||
// 内容库删除请求参数
|
||||
type ReqContentDel struct {
|
||||
IDS []ObjectID `json:"ids" binding:"required"`
|
||||
}
|
||||
Reference in New Issue
Block a user