mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-15 23:47:33 +08:00
modify method name
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user