frontend-api
Installation
SKILL.md
前端 API 对接规范
API 组织结构
API 按照功能模块分组收敛于 apps/web-antd/src/api/ 目录结构下:
api/
├── core/ # 核心鉴权相关API
├── request.ts # requestClient 的网络请求实例配置与拦截器
└── {模块}/ # 跟随业务划分的模块 (如 system, bpm, member 等)
├── {业务域}/
│ └── index.ts # 该域下的具体网络请求定义
示例:用户模块的 API 文件应存放在 apps/web-antd/src/api/system/user/index.ts。
请求封装与使用
所有 HTTP 请求均必须使用基于 @vben/request 封装提供的 requestClient(在 #/api/request 中定义)。