code refactor

This commit is contained in:
MaysWind
2025-01-14 00:14:07 +08:00
parent 593e123610
commit f4ea9a85f0
11 changed files with 73 additions and 73 deletions
+6 -6
View File
@@ -1,13 +1,13 @@
import type { UserBasicInfo } from './user.ts';
export interface AuthResponse {
token: string;
need2FA: boolean;
user?: UserBasicInfo;
notificationContent?: string;
readonly token: string;
readonly need2FA: boolean;
readonly user?: UserBasicInfo;
readonly notificationContent?: string;
}
export interface RegisterResponse extends AuthResponse {
needVerifyEmail: boolean;
presetCategoriesSaved: boolean;
readonly needVerifyEmail: boolean;
readonly presetCategoriesSaved: boolean;
}
+11 -11
View File
@@ -227,18 +227,18 @@ export interface TransactionAmountsResponseItemAmountInfo {
export type TransactionOverviewResponse = PartialRecord<TransactionAmountsRequestType, TransactionOverviewResponseItem>;
export interface TransactionOverviewResponseItem {
valid: boolean;
incomeAmount: number;
expenseAmount: number;
incompleteIncomeAmount: boolean;
incompleteExpenseAmount: boolean;
amounts?: TransactionAmountsResponseItemAmountInfo[];
readonly valid: boolean;
readonly incomeAmount: number;
readonly expenseAmount: number;
readonly incompleteIncomeAmount: boolean;
readonly incompleteExpenseAmount: boolean;
readonly amounts?: TransactionAmountsResponseItemAmountInfo[];
}
export interface TransactionMonthlyIncomeAndExpenseData {
monthStartTime: number;
incomeAmount: number;
expenseAmount: number;
incompleteIncomeAmount: boolean;
incompleteExpenseAmount: boolean;
readonly monthStartTime: number;
readonly incomeAmount: number;
readonly expenseAmount: number;
readonly incompleteIncomeAmount: boolean;
readonly incompleteExpenseAmount: boolean;
}