From c1f94a44992bd79167a838612808637074ed9570 Mon Sep 17 00:00:00 2001 From: MaysWind Date: Mon, 13 Jan 2025 21:40:17 +0800 Subject: [PATCH] code refactor --- src/models/user.ts | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/models/user.ts b/src/models/user.ts index 718baab6..087dfb7e 100644 --- a/src/models/user.ts +++ b/src/models/user.ts @@ -7,14 +7,14 @@ import { TransactionEditScopeType } from '@/core/transaction.ts'; import type { TransactionCategoryCreateBatchRequest } from './transaction_category.ts'; export class User { - username: string = ''; - password: string = ''; - confirmPassword: string = ''; - email: string = ''; - nickname: string = ''; - language: string; - defaultCurrency: string; - firstDayOfWeek: number; + public username: string = ''; + public password: string = ''; + public confirmPassword: string = ''; + public email: string = ''; + public nickname: string = ''; + public language: string; + public defaultCurrency: string; + public firstDayOfWeek: number; private constructor(language: string, defaultCurrency: string, firstDayOfWeek: number) { this.language = language;