feat(goctl): Add api parser (#2585)

This commit is contained in:
anqiansong
2023-03-28 23:45:26 +08:00
committed by GitHub
parent 455a6c8f97
commit 50bc361430
59 changed files with 11633 additions and 6 deletions

View File

@@ -21,9 +21,9 @@ type (
// ApiSpec describes an api file
ApiSpec struct {
Info Info
Syntax ApiSyntax
Imports []Import
Info Info // Deprecated: useless expression
Syntax ApiSyntax // Deprecated: useless expression
Imports []Import // Deprecated: useless expression
Types []Type
Service Service
}
@@ -70,6 +70,7 @@ type (
// Route describes api route
Route struct {
// Deprecated: Use Service AtServer instead.
AtServerAnnotation Annotation
Method string
Path string