first commit
This commit is contained in:
3
myteamwallet_frontend/src/app/model/index.ts
Normal file
3
myteamwallet_frontend/src/app/model/index.ts
Normal file
@@ -0,0 +1,3 @@
|
||||
export * from './player';
|
||||
export * from './teamrole';
|
||||
export * from './transaction';
|
||||
16
myteamwallet_frontend/src/app/model/player.ts
Normal file
16
myteamwallet_frontend/src/app/model/player.ts
Normal file
@@ -0,0 +1,16 @@
|
||||
import { Team } from '../modules/teams/model/team';
|
||||
import { TeamRole } from './teamrole';
|
||||
|
||||
export interface Player {
|
||||
firstName: string;
|
||||
lastName: string;
|
||||
id: number;
|
||||
balance: number;
|
||||
team: Team;
|
||||
teamRole: TeamRole;
|
||||
active: boolean;
|
||||
|
||||
hide: boolean;
|
||||
|
||||
usersPlayer?: boolean;
|
||||
}
|
||||
4
myteamwallet_frontend/src/app/model/teamrole.ts
Normal file
4
myteamwallet_frontend/src/app/model/teamrole.ts
Normal file
@@ -0,0 +1,4 @@
|
||||
export interface TeamRole {
|
||||
id: number;
|
||||
name: string;
|
||||
}
|
||||
9
myteamwallet_frontend/src/app/model/transaction.ts
Normal file
9
myteamwallet_frontend/src/app/model/transaction.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
export interface Transaction {
|
||||
id: number;
|
||||
amount: number;
|
||||
playerName?: string;
|
||||
date: string;
|
||||
type: string;
|
||||
note: string;
|
||||
isTeamWalletTransaction: boolean;
|
||||
}
|
||||
17
myteamwallet_frontend/src/app/model/user.ts
Normal file
17
myteamwallet_frontend/src/app/model/user.ts
Normal file
@@ -0,0 +1,17 @@
|
||||
export interface User {
|
||||
createdAt: string;
|
||||
deletedAt: string;
|
||||
email: string;
|
||||
firstName: string;
|
||||
lastName: string;
|
||||
id: number;
|
||||
photo: string;
|
||||
role: Role;
|
||||
status: any;
|
||||
updatedAt: string;
|
||||
}
|
||||
|
||||
export interface Role {
|
||||
id: number;
|
||||
name: string;
|
||||
}
|
||||
Reference in New Issue
Block a user