feat: 重构 memory 系统,支持 user memory 和 work memory 分离

This commit is contained in:
qzl
2026-03-23 14:25:47 +08:00
parent 3aacc756db
commit 6be616f108
70 changed files with 7031 additions and 431 deletions
+13
View File
@@ -98,6 +98,19 @@ class ApiClient implements IApiClient {
}
}
@override
Future<Response<T>> put<T>(
String path, {
dynamic data,
Options? options,
}) async {
try {
return await _dio.put<T>(path, data: data, options: options);
} on DioException catch (e) {
throw ApiException.fromDioError(e);
}
}
@override
Future<Response<T>> delete<T>(
String path, {
+1
View File
@@ -3,6 +3,7 @@ import 'package:dio/dio.dart';
abstract class IApiClient {
Future<Response<T>> get<T>(String path, {Options? options});
Future<Response<T>> post<T>(String path, {dynamic data, Options? options});
Future<Response<T>> put<T>(String path, {dynamic data, Options? options});
Future<Response<T>> patch<T>(String path, {dynamic data, Options? options});
Future<Response<T>> delete<T>(String path, {dynamic data, Options? options});
Future<Stream<String>> getSseLines(