hackthon-backend

时间:2021-04-12 23:39:26
【文件属性】:
文件名称:hackthon-backend
文件大小:24KB
文件格式:ZIP
更新时间:2021-04-12 23:39:26
Go 项目开发规范 (暂定) 项目结构 config 程序的配置项读取函数 constant 管理程序中出现的一些常量,各种响应码 database 持久层逻辑 service 业务层逻辑 handler 控制页面输出的处理器 docs 接口相关文档 middleware 中间件 model 各种模型建模 router 管理分路由 util 各种工具函数 static 放在api主页好玩的web页面罢了 .env 程序的配置项,比如数据库账号密码 main.go 程序的主入口 注:粗体是程序的重要组成部分 git flow规范 main分支谁都不能直接提交上去进行合并,只能通过PR进行更新,并且每次更新必须打tag dev是开发的主分支,也不能直接提交代码至该分支,需要通过各个feature分支对其提交PR进行合并 hotfix是打补丁的紧急分支,一般不会出现,一旦出
【文件预览】:
hackthon-backend-main
----router()
--------auth.go(198B)
--------base.go(331B)
--------user.go(241B)
----go.mod(300B)
----service()
--------auth.go(3KB)
----.env(138B)
----main.go(500B)
----go.sum(12KB)
----database()
--------redis()
--------mysql()
--------base.go(3KB)
----model()
--------auth_input.go(492B)
--------user.go(607B)
----constant()
--------response.go(1KB)
----middleware()
--------token_verify.go(1KB)
----util()
--------util.go(4KB)
--------mail.go(1KB)
----config()
--------config.go(219B)
----README.md(1KB)
----docs()
--------auth.md(1KB)
----handler()
--------auth.go(2KB)
--------base.go(1KB)
----.gitignore(9B)
----static()
--------index.html(610B)
--------js()
--------css()

网友评论