From 146747ceced7951c6f091c713844482d2623ad51 Mon Sep 17 00:00:00 2001 From: yanweidong Date: Thu, 17 Apr 2025 09:00:20 +0800 Subject: [PATCH] fix generate const --- main.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/main.go b/main.go index 129a6ae..1152d87 100644 --- a/main.go +++ b/main.go @@ -35,6 +35,8 @@ func genConst() { var code string for _, row := range item { code += "/** " + strings.TrimSpace(row.Comment) + " */\n" + code += "/** Request: " + row.In + " */\n" + code += "/** Response: " + row.Out + " */\n" code += fmt.Sprintf("export const URL_%s_%s = \"/%s.%s/%s\"\n", row.ServiceName, row.MethodName, name, row.ServiceName, row.MethodName) code += "\n" }