init: hgmj server initial commit

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
2026-10-08 16:50:13 +08:00
co-authored by Claude Opus 4.7
commit 625e89c15d
1870 changed files with 254090 additions and 0 deletions
+31
View File
@@ -0,0 +1,31 @@
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"`
}