Files
huangguo_server/web/router/chatrobot.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

24 lines
617 B
Go

package router
import (
"91porn-server/web/api/chatrobotctrl"
"91porn-server/web/api/contentlibctrl"
"github.com/gin-gonic/gin"
)
func chatRobotRouter(router *gin.RouterGroup) {
group := router.Group("/robot")
{
// 机器人配置
group.GET("/conf/list", chatrobotctrl.RobotConfList)
group.POST("/conf/add", chatrobotctrl.AddRobotConf)
group.POST("/conf/update", chatrobotctrl.UpdateRobotConf)
// 机器人聊天内容库
group.GET("/content/list", contentlibctrl.ContentList)
group.POST("/content/add", contentlibctrl.ContentAdd)
group.DELETE("/content/del", contentlibctrl.ContentDel)
}
}