初始化

This commit is contained in:
2026-03-26 20:18:20 +08:00
commit 120a5b4dfd
368 changed files with 35926 additions and 0 deletions

13
src/service/api/shared.ts Normal file
View File

@@ -0,0 +1,13 @@
import type { AxiosError, AxiosResponse } from 'axios';
export type ServiceRequestResult<T> =
| {
data: T;
error: null;
response: AxiosResponse<App.Service.Response<unknown>>;
}
| {
data: null;
error: AxiosError<App.Service.Response<unknown>>;
response: AxiosResponse<App.Service.Response<unknown>> | undefined;
};