feat: 增强管理员 API 鉴权,新增 token 有效天数配置,更新相关异常处理与错误码引用

This commit is contained in:
2026-05-09 11:26:39 +08:00
parent 8a70c029f6
commit f1b38ef421
13 changed files with 124 additions and 42 deletions

View File

@@ -7,7 +7,7 @@ use Illuminate\Http\JsonResponse;
/**
* 对外 API 统一 JSON 结构:{ code, msg, data }
*
* - code=0 表示成功;非 0 为业务码(见 docs/04-领域字典与编码规范.md
* - `code=0` {@see \App\Lottery\ErrorCode::Success};非 0 `ErrorCode` docs/04 §10
* - error() HTTP 状态可与 code 独立(如鉴权失败 401 + code 8001)。
*/
final class ApiResponse