@@ -0,0 +1,23 @@
|
||||
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)
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user