go-wxhelper/router/admin/robot.go

16 lines
371 B
Go
Raw Normal View History

package admin
import (
"github.com/gin-gonic/gin"
robotApi "wechat-robot/api/admin/robot"
)
// robot
// @description: 机器人相关接口
// @param g
func robot(g *gin.RouterGroup) {
g.GET("", robotApi.GetAll) // 获取所有机器人
g.POST("", robotApi.Save) // 保存机器人
g.DELETE("/:id", robotApi.DeleteById) // 删除机器人
}