Files
hjsq_server/models/v/contentlibmod/web.go
T
2026-10-08 16:50:13 +08:00

32 lines
721 B
Go

package contentlibmod
import (
"time"
"91jd-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"`
}