From b68260576223ac0e357f905e96f42a042b1f6653 Mon Sep 17 00:00:00 2001 From: icechen Date: Thu, 6 Jan 2022 23:37:09 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20service=20=E5=AE=8C=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- service.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/service.go b/service.go index a77cdba..412fadd 100644 --- a/service.go +++ b/service.go @@ -49,7 +49,7 @@ func ActionNewService(c *cli.Context) error { if len(appList) == 0 { appName := "" for { - appName = util.ReadLineWithMessage("请输入要创建的api名称: ") + appName = util.ReadLineWithMessage("请输入要创建的service名称: ") if appName != "" { break } else { @@ -59,11 +59,11 @@ func ActionNewService(c *cli.Context) error { appList = append(appList, appName) } for _, newApp := range appList { - color.Green("正在创建[%s]API应用...", newApp) + color.Green("正在创建[%s]Service应用...", newApp) app := config.Config.Service.GetApp(newApp) app = config.Service{ Name: newApp, - Root: "app/api/" + newApp, + Root: "app/service/" + newApp, } if util.ExistDir(app.Root) && !util.ReadBoolWithMessage(app.Root+"目录已存在,是否要覆盖app文件目录(y/n): ") { @@ -109,7 +109,7 @@ func ActionNewService(c *cli.Context) error { return err } - color.Green("[%s]API应用创建成功!!!\n\n", newApp) + color.Green("[%s]Service应用创建成功!!!\n\n", newApp) } return nil }