fix generate const

This commit is contained in:
yanweidong 2025-04-17 09:00:20 +08:00
parent 26d183f4c9
commit 146747cece
1 changed files with 2 additions and 0 deletions

View File

@ -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"
}