- 更新 MySQL配置,增加端口变量- 初始化 MySQL 在 gorm_gen工具中 - 更新 go.mod 依赖版本: - mysql驱动从 1.7.0 到 1.8.1 - gorm相关包从多个版本统一到 1.25.7 - 其他依赖也进行了升级 - 更新 go.sum 文件以反映新的依赖版本
*** Project
introduce
- Use the Kitex framework
- Generating the base code for unit tests.
- Provides basic config functions
- Provides the most basic MVC code hierarchy.
Directory structure
catalog | introduce |
---|---|
conf | Configuration files |
main.go | Startup file |
handler.go | Used for request processing return of response. |
kitex_gen | kitex generated code |
biz/service | The actual business logic. |
biz/dal | Logic for operating the storage layer |
How to run
sh build.sh
sh output/bootstrap.sh