commit

This commit is contained in:
2022-06-15 10:31:40 +08:00
parent ab116f2380
commit 0acb114bb8
14 changed files with 1720 additions and 0 deletions

18
router/router.go Normal file
View File

@@ -0,0 +1,18 @@
package router
import (
"docDemo/api"
"github.com/gin-gonic/gin"
)
// InitRouter 初始化路由
func InitRouter(app *gin.RouterGroup) {
// 开放接口
openRouter(app.Group("/open"))
}
// 内部开放接口
func openRouter(g *gin.RouterGroup) {
g.POST("/scale/upload", api.ScaleApi().AddScale) // 获取单个量表信息
g.GET("/test", api.ScaleApi().Test)
}