optimized (#392)

This commit is contained in:
kingxt
2021-01-15 11:36:37 +08:00
committed by GitHub
parent 6887fb22de
commit 4db20677f7
6 changed files with 21 additions and 2 deletions

View File

@@ -339,5 +339,6 @@ func formatSource(source string) string {
if err := scanner.Err(); err != nil {
fmt.Println(err)
}
return builder.String()
}

View File

@@ -128,6 +128,7 @@ func getImports(api *spec.ApiSpec, packetName string) string {
if len(allTypes) > 0 {
fmt.Fprintf(&builder, "import com.xhb.logic.http.packet.%s.model.*;\n", packetName)
}
return builder.String()
}