mirror of
https://github.com/zeromicro/go-zero.git
synced 2026-05-13 09:50:00 +08:00
Code optimized (#493)
This commit is contained in:
@@ -39,6 +39,7 @@ service {{.serviceName}} {
|
||||
}
|
||||
`
|
||||
|
||||
// ApiCommand create api template file
|
||||
func ApiCommand(c *cli.Context) error {
|
||||
apiFile := c.String("o")
|
||||
if len(apiFile) == 0 {
|
||||
|
||||
Reference in New Issue
Block a user