feat:完善信息

This commit is contained in:
henry
2021-10-13 14:35:24 +08:00
parent 21dc62ba8e
commit 8866b83cfb
16 changed files with 4728 additions and 46 deletions

View File

@ -2,11 +2,12 @@ package router
import (
api2 "SciencesServer/app/api/api"
api3 "SciencesServer/app/enterprise/api"
"github.com/gin-gonic/gin"
)
func register(app *gin.Engine) {
func registerAPi(app *gin.Engine) {
apiPrefix := "/api"
g := app.Group(apiPrefix)
// 登录验证
@ -112,3 +113,14 @@ func register(app *gin.Engine) {
log.POST("/login", _api.Login)
}
}
func registerEnterprise(app *gin.Engine) {
apiPrefix := "/enterprise"
g := app.Group(apiPrefix)
// Config 配置管理
config := g.Group("/config")
{
_api := new(api3.Config)
config.GET("/area", _api.Area)
}
}