更新统一使用 PHPDoc + PSR-19 标准注释

This commit is contained in:
技术老胡
2026-04-21 08:38:59 +08:00
parent dcd58e24ce
commit 9a16a88640
252 changed files with 9218 additions and 659 deletions

View File

@@ -10,14 +10,19 @@ use support\Request;
use support\Response;
/**
* 通知与回调记录控制器。
* 通知记录控制器。
*
* 负责渠道通知日志和商户通知任务的接入。
* 负责渠道通知日志和商户通知任务的接入,不承担真实业务回调处理
*
* @property NotifyService $notifyService 通知服务
*/
class NotifyController extends BaseController
{
/**
* 构造函数,注入通知服务
* 构造方法
*
* @param NotifyService $notifyService 通知服务
* @return void
*/
public function __construct(
protected NotifyService $notifyService
@@ -25,9 +30,12 @@ class NotifyController extends BaseController
}
/**
* POST /api/notify/channel
*
* 记录渠道通知日志。
*
* 用于保存外部渠道发来的通知原文,便于后续排查和审计。
*
* @param Request $request 请求对象
* @return Response 响应对象
*/
public function channel(Request $request): Response
{
@@ -37,9 +45,12 @@ class NotifyController extends BaseController
}
/**
* POST /api/notify/merchant
*
* 创建商户通知任务。
*
* 由支付或结算完成后触发,把通知任务交给异步通知链路处理。
*
* @param Request $request 请求对象
* @return Response 响应对象
*/
public function merchant(Request $request): Response
{
@@ -49,3 +60,8 @@ class NotifyController extends BaseController
}
}