Files
hjsq_server/web/router/chatrobot.go
T
2026-10-08 16:50:13 +08:00

24 lines
613 B
Go

package router
import (
"91jd-server/web/api/chatrobotctrl"
"91jd-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)
}
}