初始化本地仓库

This commit is contained in:
2026-08-31 11:33:59 +08:00
commit 663f74b633
2390 changed files with 402918 additions and 0 deletions
+38
View File
@@ -0,0 +1,38 @@
---
name: backend-process
description: 自定义进程规范,基于 Workerman Worker 的自定义进程
globs:
- "app/process/**/*.php"
---
## 进程类型
| 进程 | 说明 |
|------|------|
| Http | HTTP 服务进程 |
| Monitor | 文件监控进程 |
| PushNotification | 推送通知进程 |
## 代码模板
```php
<?php
namespace app\process;
use Workerman\Worker;
class {Name}Process
{
public function onWorkerStart(Worker $worker): void
{
// 进程启动逻辑
}
}
```
## 检查清单
- [ ] 进程是否注册到 config/process.php
- [ ] 是否有内存泄漏风险
- [ ] 进程间通信是否正确