This commit is contained in:
yanweidong 2025-04-17 09:12:45 +08:00
parent 146747cece
commit 169cc8f056
1 changed files with 4 additions and 3 deletions

View File

@ -34,9 +34,10 @@ 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 += "/** " + strings.TrimSpace(row.Comment) + " \n"
code += "* - Request: " + row.In + "\n"
code += "* - Response: " + row.Out + "\n"
code += "*/\n"
code += fmt.Sprintf("export const URL_%s_%s = \"/%s.%s/%s\"\n", row.ServiceName, row.MethodName, name, row.ServiceName, row.MethodName)
code += "\n"
}