You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
760 B
22 lines
760 B
6 months ago
|
package router
|
||
|
|
||
|
import (
|
||
|
"bkb-seller/api/sys"
|
||
|
"bkb-seller/middleware"
|
||
|
|
||
|
"github.com/gin-gonic/gin"
|
||
|
)
|
||
|
|
||
|
func InitApiRouter(Router *gin.RouterGroup) {
|
||
|
ApiRouter := Router.Group("api").Use(middleware.OperationRecord())
|
||
|
{
|
||
|
ApiRouter.POST("createApi", sys.CreateApi) // 创建Api
|
||
|
ApiRouter.POST("deleteApi", sys.DeleteApi) // 删除Api
|
||
|
ApiRouter.POST("getApiList", sys.GetApiList) // 获取Api列表
|
||
|
ApiRouter.POST("getApiById", sys.GetApiById) // 获取单条Api消息
|
||
|
ApiRouter.POST("updateApi", sys.UpdateApi) // 更新api
|
||
|
ApiRouter.POST("getAllApis", sys.GetAllApis) // 获取所有api
|
||
|
ApiRouter.DELETE("deleteApisByIds", sys.DeleteApisByIds) // 删除选中api
|
||
|
}
|
||
|
}
|