Refactor: Remove original Dart references from comments across multiple files

- Updated comments in various components, schemas, and repositories to remove references to original Dart files.
- Ensured consistency in documentation while maintaining the context of the code.
This commit is contained in:
2026-06-29 11:31:21 +08:00
parent cdaf3cc365
commit 6e51cb7d16
119 changed files with 116 additions and 128 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
/**
* API 路径管理
* 统一管理所有接口路径
* 原始 Dart: lib/data/services/api/api_path.dart
*
*/
export class ApiPath {
private constructor() {}
+1 -1
View File
@@ -2,7 +2,7 @@
* Auth API
*
* 认证相关接口
* 原始 Dart: lib/data/services/api/auth_api_client.dart
*
*/
import { z } from "zod";
+1 -1
View File
@@ -2,7 +2,7 @@
* Chat API
*
* 聊天相关接口
* 原始 Dart: lib/data/services/api/chat_api_client.dart
*
*/
import { httpClient } from "./http_client";
import { ApiPath } from "./api_path";
+1 -1
View File
@@ -2,7 +2,7 @@
* HTTP 客户端工厂
*
* 创建配置好拦截器的 ofetch 实例。
* 原始 Dart: lib/core/net/backend_service.dart
*
*/
import { ofetch, type $Fetch, type FetchHook } from "ofetch";
import { ApiError, ErrorCode } from "./api_result";
+1 -1
View File
@@ -2,7 +2,7 @@
* Metrics API
*
* 数据看板/上报相关接口
* 原始 Dart: lib/data/services/api/metrics_api_client.dart
*
*/
import { httpClient } from "./http_client";
import { ApiPath } from "./api_path";
+1 -1
View File
@@ -8,7 +8,7 @@
* 行为升级:失败时抛 `ApiError``ApiError extends Error`),而不是裸 `Error`。
* 这样调用方在 `Result.err` 内能 `instanceof ApiError` 检查 `.code` / `.status`。
*
* 原始 Dart: lib/data/services/api/api_client.dart 的 `NetResult<T>` 解析。
*
*/
import { ApiError, ErrorCode } from "./api_result";
+1 -1
View File
@@ -2,7 +2,7 @@
* User API
*
* 用户相关接口
* 原始 Dart: lib/data/services/api/user_api_client.dart
*
*/
import { httpClient } from "./http_client";
import { ApiPath } from "./api_path";