From bbaa4fa620b8a455afeae98a694defb9d35758ed Mon Sep 17 00:00:00 2001 From: Max Date: Tue, 15 Nov 2022 23:18:30 +0800 Subject: [PATCH] [_] --- cmd/start.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/start.go b/cmd/start.go index 3598b3b1..3eb504f3 100644 --- a/cmd/start.go +++ b/cmd/start.go @@ -300,7 +300,7 @@ func printApis(silent bool) { if len(api.HTTP.Paths) <= 0 { continue } - log.Info("[API] %s(%d)", api.Name, len(api.HTTP.Paths)) + log.Info("[API] %s(%d)", api.ID, len(api.HTTP.Paths)) for _, p := range api.HTTP.Paths { log.Info("%s %s %s", p.Method, filepath.Join("/api", api.HTTP.Group, p.Path), p.Process) } @@ -321,11 +321,11 @@ func printApis(silent bool) { } deprecated := "" - if strings.HasPrefix(api.Name, "xiang.") { + if strings.HasPrefix(api.ID, "xiang.") { deprecated = " WILL BE DEPRECATED" } - fmt.Printf("%s%s\n", color.CyanString("\n%s(%d)", api.Name, len(api.HTTP.Paths)), color.RedString(deprecated)) + fmt.Printf("%s%s\n", color.CyanString("\n%s(%d)", api.ID, len(api.HTTP.Paths)), color.RedString(deprecated)) for _, p := range api.HTTP.Paths { fmt.Println( colorMehtod(p.Method),