Skip to content

Commit 1f8babd

Browse files
committed
fix: fix sys_router && add swag commond
1 parent 8e8fe90 commit 1f8babd

File tree

6 files changed

+39
-1559
lines changed

6 files changed

+39
-1559
lines changed

app/admin/router/sys_router.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import (
1515

1616
"go-admin/common/middleware"
1717
"go-admin/common/middleware/handler"
18-
_ "go-admin/docs"
18+
_ "go-admin/docs/admin"
1919
)
2020

2121
func InitSysRouter(r *gin.Engine, authMiddleware *jwt.GinJWTMiddleware) *gin.RouterGroup {

cmd/api/server.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -134,8 +134,8 @@ func run() error {
134134
fmt.Printf("- Local: http://localhost:%d/ \r\n", config.ApplicationConfig.Port)
135135
fmt.Printf("- Network: http://%s:%d/ \r\n", pkg.GetLocaHonst(), config.ApplicationConfig.Port)
136136
fmt.Println(pkg.Green("Swagger run at:"))
137-
fmt.Printf("- Local: http://localhost:%d/swagger/index.html \r\n", config.ApplicationConfig.Port)
138-
fmt.Printf("- Network: http://%s:%d/swagger/index.html \r\n", pkg.GetLocaHonst(), config.ApplicationConfig.Port)
137+
fmt.Printf("- Local: http://localhost:%d/swagger/admin/index.html \r\n", config.ApplicationConfig.Port)
138+
fmt.Printf("- Network: http://%s:%d/swagger/admin/index.html \r\n", pkg.GetLocaHonst(), config.ApplicationConfig.Port)
139139
fmt.Printf("%s Enter Control + C Shutdown Server \r\n", pkg.GetCurrentTimeStr())
140140
// 等待中断信号以优雅地关闭服务器(设置 5 秒的超时时间)
141141
quit := make(chan os.Signal)

0 commit comments

Comments
 (0)