feat: statistics: finish dev

This commit is contained in:
fallen-angle
2022-01-23 18:28:01 +08:00
parent 582807ae10
commit d844711191
29 changed files with 1670 additions and 51 deletions

14
initialize/swagger.go Normal file
View File

@@ -0,0 +1,14 @@
package initialize
import (
"nCovTrack-Backend/docs"
"nCovTrack-Backend/global"
swaggerFile "github.com/swaggo/files"
swagger "github.com/swaggo/gin-swagger"
)
func initSwagger() {
docs.SwaggerInfo.BasePath = "/api" + global.ServerSettings.UrlPrefix
global.RootRouter.GET("/swagger/*any", swagger.WrapHandler(swaggerFile.Handler))
}