add command gen service for cli

This commit is contained in:
John Guo
2022-04-24 22:52:29 +08:00
parent 65077a224c
commit 0fc193faa3

View File

@ -24,7 +24,7 @@ type (
cGenServiceOutput struct{}
)
func (c cGen) Service(ctx context.Context, in cGenServiceInput) (out *cGenPbOutput, err error) {
func (c cGen) Service(ctx context.Context, in cGenServiceInput) (out *cGenServiceOutput, err error) {
in.Logic = gstr.Trim(in.Logic, `\/`)
in.WatchFile = gstr.Trim(in.WatchFile, `\/`)
if !gfile.Exists(in.Logic) {