Project Makefile Commands:
make cli
: Install or Update to the latest GoFrame CLI tool.make dao
: Generate go files forEntity/DAO/DO
according to the configuration file fromhack
folder.make service
: Parselogic
folder to generate interface go files intoservice
folder.make image TAG=xxx
: Rundocker build
to build image accordingmanifest/docker
.make image.push TAG=xxx
: Rundocker build
anddocker push
to build and push image accordingmanifest/docker
.make deploy TAG=xxx
: Runkustomize build
to build and deploy deployment to kubernetes server group accordingmanifest/deploy
.
这里新项目是通过
https://github.com/SupenBysz/gf-admin-community
https://github.com/SupenBysz/gf-admin-company-modules
- 引入这两个git库的骨架
原数据库文件位置:
db/latest.sql
新增数据库文件位置: dept: 部门、post: 岗位
db/co_company_dept_post.sql
进行vendor的命令:
go mod vendor
运行位置:
internal/cmd/cmd.go