Fetch the repository succeeded.
Go Generate是一个基于Go"html/template" 的代码自动生成项目,只需要简单的配置即可根据模板自动生成CURD 模板文件在/resource目录下 配置文件 gen_config.yaml
- golang version >= v1.11
- IDE recommendation: Goland
gorm
对数据库的基本操作。fsnotify
和viper
实现yaml
格式的配置文件。go-logging
实现日志记录。 ├─server (backend)
├─config (config file)
├─core (core code)
├─global (global objet)
├─handler (handler)
├─initialiaze (initialiazation)
├─model (model and services)
├─service (services)
└─utils (common utilities)
project: "GoGenerate"
tableName: "t_campaigns,t_delearship_enrolls"
gotpl:
- {package: autoCode/api/,tplpath: ./resource/template/te/api.go.tpl}
- {package: autoCode/model/,tplpath: ./resource/template/te/model.go.tpl}
- {package: autoCode/router/,tplpath: ./resource/template/te/router.go.tpl}
- {package: autoCode/service/,tplpath: ./resource/template/te/service.go.tpl}
- {package: autoCode/fe/,tplpath: ./resource/template/fe/api.js.tpl}
- {package: autoCode/fe/,tplpath: ./resource/template/fe/table.vue.tpl}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。