Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions tools.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Create REST API service structure
{
"service_name": "user-api",
"output_dir": "./services/user",
"style": "goZero"
"style": "go_zero"
}
```

Expand All @@ -16,7 +16,7 @@ Create gRPC service structure
{
"service_name": "order-rpc",
"output_dir": "./services/order",
"style": "goZero"
"style": "go_zero"
}
```

Expand All @@ -26,7 +26,7 @@ Generate code from .api file
{
"api_file": "user.api",
"output_dir": "./",
"style": "goZero"
"style": "go_zero"
}
```
Safe to re-run, won't overwrite custom logic.
Expand All @@ -39,7 +39,7 @@ Generate database model
"source": "user:pass@tcp(host:3306)/db",
"table": "users",
"output_dir": "./model",
"style": "goZero"
"style": "go_zero"
}
```
Types: `mysql`, `postgres`, `mongo`
Expand All @@ -51,7 +51,7 @@ Generate .api from description
{
"description": "User CRUD with auth",
"service_name": "user-api",
"style": "goZero"
"style": "go_zero"
}
```

Expand Down