24 lines
617 B
Go
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)
|
|
}
|
|
|
|
}
|