gf-api-cli

command module
v1.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 28, 2021 License: MIT Imports: 5 Imported by: 0

README

api代码生成器

通过执行gali gen api即可生成api/service/dao/model等单表的所有操作

复制gf-cli项目,扩展增加支持创建api接口,从而快速生成api相关接口与文档,方便后续修改

通过gali gen api会创建的文档包括

  • dao 基于gf-cli的gen dao生成
  • model 基于gf-cli的gen dao生成
  • service 创建单表操作的service,包括CRUD的基本功能
  • api 接口文档与注释说明,方便后续维护增加

build

` gf pack ./templates commands/gen/gen_api_templates.go

go build -o gali.exe main.go

gf build main.go -a amd64 -s linux,windows,darwin -n gali -e "-ldflags "-s -w""

`

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
commands
gen

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL