Files
huangguo_server/models/v/contentlibmod/web.go
T
rootandClaude Opus 5 8679200f41 Initial commit
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-15 13:57:10 +08:00

32 lines
723 B
Go

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"`
}