feat(api): 新增分类查询接口(列表+详情,支持树形结构)

This commit is contained in:
augushong
2026-04-28 21:01:27 +08:00
parent 004f4454f4
commit bb08dee91d
2 changed files with 93 additions and 2 deletions

View File

@@ -15,7 +15,7 @@ ulthon_information/
├── app/ # 应用核心(多应用模式)
│ ├── admin/controller/ # 后台管理(15个控制器)
│ ├── index/controller/ # 前台展示(5个控制器)
│ ├── api/controller/ # API接口(微信/文件/验证码)
│ ├── api/controller/ # API接口(文章/附件/分类/文件/验证码/密钥)
│ ├── model/ # 全局模型(17个非各应用内)
│ ├── common/ # 跨应用共享层(tools/traits/model)
│ └── middleware/ # 中间件(ConfigInit/AdminLog/PermissionRecord)
@@ -56,7 +56,7 @@ ulthon_information/
app\BaseController (abstract: validate/success/error/redirect)
+-- admin\controller\Common (Session鉴权) -> 15个子控制器
+-- index\controller\BaseController (域名跳转/HTTPS) -> Common -> 3个子控制器
+-- api\controller\* (直接继承 BaseController) -> 3个控制器
+-- api\controller\* (直接继承 BaseController, ApiKeyAuth中间件) -> 7个控制器(含分类查询)
```
### 响应格式