Files
ulthon_admin/.agents/rules/ulthon-naming-convention.md
augushong 65e2d35821 docs: 将在线文档规范落地为本地零散规则文件
- 新增 ulthon-naming-convention.md(命名规范)
- 新增 ulthon-database-design.md(表结构设计规范)
- AGENTS.md 通用基础规范章节改为引用本地规则文件
- 代码风格直接指向项目根目录 .php-cs-fixer.php
2026-06-01 23:14:41 +08:00

14 lines
517 B
Markdown
Raw Permalink 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.

# 命名规范
## 目录命名
- 一个单词的目录用小写,例如 `service/`
- 多个单词的目录用大驼峰,例如 `AdminService/``UserService/`
## PHP 文件命名
- `app/common` 目录下已有单独的规范说明(见 `ulthon-source-directory.md`
- 其他各应用目录下:
- **service 模块**需要写后缀,例如 `AdminService`,而不是 `admin`
- **除了 service 模块**,其他文件不需要写后缀,不论是 controller、model、traits、config、middleware 等