add fast create api demo service (#59)

* rebase upstream

* rebase

* trim no need line

* trim no need line

* trim no need line

* add fast create api demo: goctl api new

* refactor

* refactor

Co-authored-by: kingxt <dream4kingxt@163.com>
This commit is contained in:
kingxt
2020-09-11 15:27:35 +08:00
committed by GitHub
parent 17e6cfb7a9
commit 1c3c8f4bbc
3 changed files with 68 additions and 0 deletions

View File

@@ -14,6 +14,7 @@ import (
"github.com/tal-tech/go-zero/tools/goctl/api/gogen"
"github.com/tal-tech/go-zero/tools/goctl/api/javagen"
"github.com/tal-tech/go-zero/tools/goctl/api/ktgen"
"github.com/tal-tech/go-zero/tools/goctl/api/new"
"github.com/tal-tech/go-zero/tools/goctl/api/tsgen"
"github.com/tal-tech/go-zero/tools/goctl/api/validate"
"github.com/tal-tech/go-zero/tools/goctl/configgen"
@@ -37,6 +38,11 @@ var (
},
Action: apigen.ApiCommand,
Subcommands: []cli.Command{
{
Name: "new",
Usage: "fast create api service",
Action: new.NewService,
},
{
Name: "format",
Usage: "format api files",