standard/README.md
2026-03-28 19:31:44 +08:00

39 lines
1.5 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# standard
## 目录结构
```
standard
├── conf // 配置文件包
│ ├── dev // 开发环境配置
│ ├── online // 线上环境配置
│ ├── test // 测试环境配置
│ ├── conf.go
│ └── ……
├── generate // 自动生成包
│ └── mysql
│ └── gorm.go // gorm 生成bean、query的代码
├── gosafe // 对go的一些方法的封装方便调用减少重复代码
├── idl // thrift存放的地方
├── initialize // 初始化项目汇总
├── internal // 内部逻辑
│ ├── dal // 数据库相关逻辑
│ │ ├── model // mysql对应的bean struct
│ │ ├── mysql // mysql
│ │ ├── query // service相关逻辑
│ │ └── init.go // service相关逻辑
│ ├── service // service相关逻辑
│ │ └── xxx // service相关逻辑
│ └── ……
├── pkg // 对外部的库的封装
│ ├── json
│ ├── log
│ ├── toml
│ ├── yaml
│ └── ……
├── router // 对外部的库的封装
├── template // hertz的自定义模版
├── go.mod
├── go.sum
├── ……
└── README.md
```