modify method name

This commit is contained in:
MaysWind
2025-03-23 14:59:06 +08:00
parent fc2c5a8e6c
commit ab4fc8faf5
11 changed files with 18 additions and 18 deletions
+1 -1
View File
@@ -81,7 +81,7 @@ export class Account implements AccountInfoResponse {
return !this.visible;
}
public from(other: Account): void {
public fillFrom(other: Account): void {
this.id = other.id;
this.category = other.category;
this.type = other.type;
+1 -1
View File
@@ -37,7 +37,7 @@ export class TransactionCategory implements TransactionCategoryInfoResponse {
return !this.visible;
}
public from(other: TransactionCategory): void {
public fillFrom(other: TransactionCategory): void {
this.id = other.id;
this.name = other.name;
this.parentId = other.parentId;
+1 -1
View File
@@ -27,7 +27,7 @@ export class TransactionTemplate extends Transaction implements TransactionTempl
this.hidden = hidden;
}
public from(other: TransactionTemplate): void {
public fillFrom(other: TransactionTemplate): void {
this.templateType = other.templateType;
this.name = other.name;
+1 -1
View File
@@ -34,7 +34,7 @@ export class User {
this.firstDayOfWeek = firstDayOfWeek;
}
public from(user: User | UserBasicInfo | UserProfileResponse): void {
public fillFrom(user: User | UserBasicInfo | UserProfileResponse): void {
this.username = user.username;
this.email = user.email;
this.nickname = user.nickname;