mirror of
https://github.com/bufanyun/hotgo.git
synced 2025-01-23 19:00:24 +08:00
33 lines
1.6 KiB
Go
33 lines
1.6 KiB
Go
# CLI tool, only in development environment.
|
||
# https://goframe.org/pages/viewpage.action?pageId=3673173
|
||
gfcli:
|
||
build:
|
||
name: "hotgo" # 编译后的可执行文件名称
|
||
# arch: "all" #不填默认当前系统架构,可选:386,amd64,arm,all
|
||
# system: "all" #不填默认当前系统平台,可选:linux,darwin,windows,all
|
||
mod: "none"
|
||
cgo: 0
|
||
packSrc: "resource" # 将resource目录打包进可执行文件,静态资源无需单独部署
|
||
packDst: "internal/packed/packed.go" # 打包后生成的Go文件路径,一般使用相对路径指定到本项目目录中
|
||
version: ""
|
||
output: "./temp/hotgo" # 可执行文件生成路径
|
||
extra: ""
|
||
|
||
gen:
|
||
dao:
|
||
- link: "mysql:hotgo:hg123456.@tcp(127.0.0.1:3306)/hotgo?loc=Local&parseTime=true"
|
||
group: "default" # 分组 使用hotgo代码生成功能时必须填
|
||
# tables: "" # 指定当前数据库中需要执行代码生成的数据表。如果为空,表示数据库的所有表都会生成。
|
||
tablesEx: "hg_sys_addons_install" # 指定当前数据库中需要排除代码生成的数据表。
|
||
removePrefix: "hg_"
|
||
descriptionTag: true
|
||
noModelComment: true
|
||
jsonCase: "CamelLower"
|
||
gJsonSupport: true
|
||
clear: false
|
||
|
||
# service: # 生成业务配置
|
||
# srcFolder: "internal/logic"
|
||
# dstFolder: "internal/service"
|
||
# dstFileNameCase: "CamelLower"
|
||
# clear: true |