lq 8cca42bc2d fix: 安全加固(封堵操作员提权、操作日志脱敏、模拟道闸告警) 2 weeks ago
..
api 8cca42bc2d fix: 安全加固(封堵操作员提权、操作日志脱敏、模拟道闸告警) 2 weeks ago
config 4040523c7a feat: 票机按钮接入统一通行入口,新增停车场容量与安全测试 3 weeks ago
core ba6369eab9 fix: correct import paths for system service in core/server.go 1 month ago
dao 6df86a0505 feat: 计费引擎重构与缴费后免费离场时限 2 weeks ago
docs 2661ab0dc6 refactor: restructure project — server/ → internal/, utils → pkg/, preserve package structure 1 month ago
global 53f7c169b0 refactor: restructure code by modules — system/parking/vehicle under internal/modules/ 1 month ago
initialize 8cca42bc2d fix: 安全加固(封堵操作员提权、操作日志脱敏、模拟道闸告警) 2 weeks ago
log 2661ab0dc6 refactor: restructure project — server/ → internal/, utils → pkg/, preserve package structure 1 month ago
middleware 8cca42bc2d fix: 安全加固(封堵操作员提权、操作日志脱敏、模拟道闸告警) 2 weeks ago
model 6df86a0505 feat: 计费引擎重构与缴费后免费离场时限 2 weeks ago
modules 6df86a0505 feat: 计费引擎重构与缴费后免费离场时限 2 weeks ago
packfile 2661ab0dc6 refactor: restructure project — server/ → internal/, utils → pkg/, preserve package structure 1 month ago
pkg 0a21397919 feat: 新增闸机控制与停车会话模块,清理ast死代码 3 weeks ago
plugin 2661ab0dc6 refactor: restructure project — server/ → internal/, utils → pkg/, preserve package structure 1 month ago
resource 0a21397919 feat: 新增闸机控制与停车会话模块,清理ast死代码 3 weeks ago
router 4040523c7a feat: 票机按钮接入统一通行入口,新增停车场容量与安全测试 3 weeks ago
service 6df86a0505 feat: 计费引擎重构与缴费后免费离场时限 2 weeks ago
task 2661ab0dc6 refactor: restructure project — server/ → internal/, utils → pkg/, preserve package structure 1 month ago
test 2661ab0dc6 refactor: restructure project — server/ → internal/, utils → pkg/, preserve package structure 1 month ago
uploads 2661ab0dc6 refactor: restructure project — server/ → internal/, utils → pkg/, preserve package structure 1 month ago
utils 0a21397919 feat: 新增闸机控制与停车会话模块,清理ast死代码 3 weeks ago
Dockerfile 2661ab0dc6 refactor: restructure project — server/ → internal/, utils → pkg/, preserve package structure 1 month ago
README.md 2661ab0dc6 refactor: restructure project — server/ → internal/, utils → pkg/, preserve package structure 1 month ago
config.docker.yaml 0a21397919 feat: 新增闸机控制与停车会话模块,清理ast死代码 3 weeks ago
config.yaml 0a21397919 feat: 新增闸机控制与停车会话模块,清理ast死代码 3 weeks ago
lc_garage.sql 2661ab0dc6 refactor: restructure project — server/ → internal/, utils → pkg/, preserve package structure 1 month ago
main.go 0a21397919 feat: 新增闸机控制与停车会话模块,清理ast死代码 3 weeks ago

README.md

server项目结构

├── api
│   └── v1
├── config
├── core
├── docs
├── global
├── initialize
│   └── internal
├── middleware
├── model
│   ├── request
│   └── response
├── packfile
├── resource
│   ├── excel
│   ├── page
│   └── template
├── router
├── service
├── source
└── utils
    ├── timer
    └── upload
文件夹 说明 描述
api api层 api层
--v1 v1版本接口 v1版本接口
config 配置包 config.yaml对应的配置结构体
core 核心文件 核心组件(zap, viper, server)的初始化
docs swagger文档目录 swagger文档目录
global 全局对象 全局对象
initialize 初始化 router,redis,gorm,validator, timer的初始化
--internal 初始化内部函数 gorm 的 longger 自定义,在此文件夹的函数只能由 initialize 层进行调用
middleware 中间件层 用于存放 gin 中间件代码
model 模型层 模型对应数据表
--request 入参结构体 接收前端发送到后端的数据。
--response 出参结构体 返回给前端的数据结构体
packfile 静态文件打包 静态文件打包
resource 静态资源文件夹 负责存放静态文件
--excel excel导入导出默认路径 excel导入导出默认路径
--page 表单生成器 表单生成器 打包后的dist
--template 模板 模板文件夹,存放的是代码生成器的模板
router 路由层 路由层
service service层 存放业务逻辑问题
source source层 存放初始化数据的函数
utils 工具包 工具函数封装
--timer timer 定时器接口封装
--upload oss oss接口封装