mirror of
https://gitee.com/ulthon/ulthon_admin.git
synced 2026-07-10 03:42:49 +08:00
docs: 将在线文档规范落地为本地零散规则文件
- 新增 ulthon-naming-convention.md(命名规范) - 新增 ulthon-database-design.md(表结构设计规范) - AGENTS.md 通用基础规范章节改为引用本地规则文件 - 代码风格直接指向项目根目录 .php-cs-fixer.php
This commit is contained in:
13
.agents/rules/ulthon-naming-convention.md
Normal file
13
.agents/rules/ulthon-naming-convention.md
Normal file
@@ -0,0 +1,13 @@
|
||||
# 命名规范
|
||||
|
||||
## 目录命名
|
||||
|
||||
- 一个单词的目录用小写,例如 `service/`
|
||||
- 多个单词的目录用大驼峰,例如 `AdminService/`、`UserService/`
|
||||
|
||||
## PHP 文件命名
|
||||
|
||||
- `app/common` 目录下已有单独的规范说明(见 `ulthon-source-directory.md`)
|
||||
- 其他各应用目录下:
|
||||
- **service 模块**需要写后缀,例如 `AdminService`,而不是 `admin`
|
||||
- **除了 service 模块**,其他文件不需要写后缀,不论是 controller、model、traits、config、middleware 等
|
||||
Reference in New Issue
Block a user