1 Star 0 Fork 0

wuxiaotao / goframe-demo

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

GoFrame 工程结构

参考链接:https://gfcdn.johng.cn/pages/viewpage.action?pageId=30740166

/
├── api 对外接口,考虑到版本管理需要,往往以api/v1...存在
├── hack 工具脚本,例如,CLI工具的配置,各种 shell / bat 脚本等文件
├── internal 内部逻辑,业务逻辑存放目录
│   ├── cmd 入口指令
│   ├── consts 常量定义
│   ├── controller 控制器,接口处理,接收/解析用户输入参数的入口层
│   ├── dao 数据访问,用于和底层数据库交互,仅包含最基础的 CURD 方法
│   ├── logic 业务封装,特定的业务逻辑封装
│   ├── model 结构模型,数据结构管理模块,数据实体对象,输入输出数据结构
│   │  ├── do 用于dao数据操作中业务模型与实例模型转换,由工具维护,用户不能修改
│   │  └── entity 数据模型是模型与数据集合的一对一关系,由工具维护,用户不能修改
│   └── service 用于业务模块解耦的接口定义层。具体的接口实现在logic中进行注入
├── manifest 包含程序编译、部署、运行、配置的文件。常见内容如下:
│   ├── config 配置文件存放目录
│   ├── docker Docker 镜像相关依赖文件,脚本文件等等
│   └── deploy 部署相关的文件,默认提供了 Kubernetes 集群化部署的 Yaml 模板├── resource 静态资源文件
├── utility 自定义的三方库
├── go.mod 使用 Go module 包管理的依赖描述文件
└── main.go 程序入口文件
MIT License Copyright (c) 2022 wuxiaotao Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

goframe的框架的使用demo 展开 收起
Go
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
Go
1
https://gitee.com/wdiviner/goframe-demo.git
git@gitee.com:wdiviner/goframe-demo.git
wdiviner
goframe-demo
goframe-demo
master

搜索帮助