add host and basepath config

This commit is contained in:
MaxToby
2021-07-30 14:33:10 +08:00
parent d658701630
commit 0e70444ab8
5 changed files with 32 additions and 21 deletions

View File

@ -9,9 +9,8 @@ import (
plugin2 "github.com/tal-tech/go-zero/tools/goctl/plugin"
)
func Do(filename string, in *plugin2.Plugin) error {
swagger, err := applyGenerate(in)
func Do(filename string, host string, basePath string, in *plugin2.Plugin) error {
swagger, err := applyGenerate(in, host, basePath)
if err != nil {
fmt.Println(err)
}