webui: fix bugs. adjust api model.

This commit is contained in:
EstrellaXD
2023-08-22 16:28:30 +08:00
parent e2afb5cb63
commit da937d46f6
15 changed files with 73 additions and 83 deletions

View File

@@ -14,16 +14,11 @@ export type StatusCode = 401 | 404 | 406 | 500;
export interface ApiError {
status: StatusCode;
detail: ApiErrorMessage;
msg: string;
msg_en: string;
msg_zh: string;
}
export interface ApiSuccess {
msg: string;
}
export interface ApiResponse {
status: boolean;
msg_en: string;
msg_zh: string;
}