info model
This commit is contained in:
parent
0b6cd50a1f
commit
4abdaec91a
|
@ -11,7 +11,7 @@ import {
|
|||
import { Subject } from 'rxjs';
|
||||
import { fuseAnimations } from 'src/@fuse/animations';
|
||||
import { BankInfoListDataSource } from './bank-info-list.data-source';
|
||||
import { BankInfoService } from 'src/modules/sites/bank-info/service/bank-info.service';
|
||||
import { BankInfoService } from 'src/modules/sites/service/bank-info.service';
|
||||
import {
|
||||
FormGroup,
|
||||
FormBuilder,
|
||||
|
|
|
@ -5,8 +5,8 @@ import { map } from 'rxjs/operators';
|
|||
|
||||
import { CollectionViewer } from '@angular/cdk/collections';
|
||||
|
||||
import { BankInfo } from 'src/modules/sites/bank-info/model/bank-info.model';
|
||||
import { BankInfoService } from 'src/modules/sites/bank-info/service/bank-info.service';
|
||||
import { BankInfo } from 'src/modules/sites/model/bank-info.model';
|
||||
import { BankInfoService } from 'src/modules/sites/service/bank-info.service';
|
||||
|
||||
import { FormControl, FormGroup, Validators, FormArray } from '@angular/forms';
|
||||
|
||||
|
|
24
src/modules/moneys/infos.module.ts
Normal file
24
src/modules/moneys/infos.module.ts
Normal file
|
@ -0,0 +1,24 @@
|
|||
import { NgModule, ModuleWithProviders } from '@angular/core';
|
||||
import { CommonModule } from '@angular/common';
|
||||
|
||||
import { SERVICES } from './service/index';
|
||||
|
||||
@NgModule({
|
||||
imports: [],
|
||||
exports: []
|
||||
})
|
||||
export class MoneysRootModule {}
|
||||
|
||||
@NgModule({
|
||||
declarations: [],
|
||||
imports: [CommonModule],
|
||||
exports: []
|
||||
})
|
||||
export class MoneysModule {
|
||||
public static forRoot(): ModuleWithProviders<MoneysRootModule> {
|
||||
return {
|
||||
ngModule: MoneysRootModule,
|
||||
providers: [SERVICES]
|
||||
};
|
||||
}
|
||||
}
|
11
src/modules/moneys/model/bank.model.ts
Normal file
11
src/modules/moneys/model/bank.model.ts
Normal file
|
@ -0,0 +1,11 @@
|
|||
import { UserDateAuditEntity } from 'src/modules/common/data/model/audit';
|
||||
import { BankStateName } from '../type/bank-state.type';
|
||||
|
||||
export interface Bank extends UserDateAuditEntity {
|
||||
id?: number;
|
||||
password?: string;
|
||||
name?: string;
|
||||
accountNumber?: string;
|
||||
holder?: string;
|
||||
status?: BankStateName;
|
||||
}
|
11
src/modules/moneys/model/deposit.model.ts
Normal file
11
src/modules/moneys/model/deposit.model.ts
Normal file
|
@ -0,0 +1,11 @@
|
|||
import { UserDateAuditEntity } from 'src/modules/common/data/model/audit';
|
||||
import { BankingStateName } from '../type/banking-state.type';
|
||||
|
||||
export interface Deposit extends UserDateAuditEntity {
|
||||
id?: number;
|
||||
price?: number;
|
||||
bonus?: number;
|
||||
bank?: number;
|
||||
bankAccounts?: number;
|
||||
status?: BankingStateName;
|
||||
}
|
9
src/modules/moneys/model/pay-done.model.ts
Normal file
9
src/modules/moneys/model/pay-done.model.ts
Normal file
|
@ -0,0 +1,9 @@
|
|||
import { UserDateAuditEntity } from 'src/modules/common/data/model/audit';
|
||||
|
||||
export interface PayDone extends UserDateAuditEntity {
|
||||
id?: number;
|
||||
settleUser?: number;
|
||||
price?: number;
|
||||
startDate?: Date;
|
||||
endDate?: Date;
|
||||
}
|
10
src/modules/moneys/model/pay.model.ts
Normal file
10
src/modules/moneys/model/pay.model.ts
Normal file
|
@ -0,0 +1,10 @@
|
|||
import { UserDateAuditEntity } from 'src/modules/common/data/model/audit';
|
||||
import { BankingStateName } from '../type/banking-state.type';
|
||||
|
||||
export interface Pay extends UserDateAuditEntity {
|
||||
id?: number;
|
||||
belongUser?: number;
|
||||
bankingUser?: number;
|
||||
price?: number;
|
||||
status?: BankingStateName;
|
||||
}
|
9
src/modules/moneys/model/withdraw.model.ts
Normal file
9
src/modules/moneys/model/withdraw.model.ts
Normal file
|
@ -0,0 +1,9 @@
|
|||
import { UserDateAuditEntity } from 'src/modules/common/data/model/audit';
|
||||
import { BankingStateName } from '../type/banking-state.type';
|
||||
|
||||
export interface Withdraw extends UserDateAuditEntity {
|
||||
id?: number;
|
||||
price?: number;
|
||||
bank?: number;
|
||||
status?: BankingStateName;
|
||||
}
|
1
src/modules/moneys/service/index.ts
Normal file
1
src/modules/moneys/service/index.ts
Normal file
|
@ -0,0 +1 @@
|
|||
export const SERVICES = [];
|
4
src/modules/moneys/type/bank-state.type.ts
Normal file
4
src/modules/moneys/type/bank-state.type.ts
Normal file
|
@ -0,0 +1,4 @@
|
|||
export enum BankStateName {
|
||||
CONFIRM = 'CONFIRM',
|
||||
NOT_CONFIRM = 'NOT_CONFIRM'
|
||||
}
|
7
src/modules/moneys/type/banking-state.type.ts
Normal file
7
src/modules/moneys/type/banking-state.type.ts
Normal file
|
@ -0,0 +1,7 @@
|
|||
export enum BankingStateName {
|
||||
WAITING = 'WAITING',
|
||||
HOLD = 'HOLD',
|
||||
COMPLETE = 'COMPLETE',
|
||||
DEPOSIT = 'DEPOSIT',
|
||||
WITHDRAW = 'WITHDRAW'
|
||||
}
|
|
@ -1,3 +1,3 @@
|
|||
import { BankInfoService } from './bank-info.service';
|
||||
|
||||
export const BANK_INFO_SERVICES = [BankInfoService];
|
||||
export const SERVICES = [BankInfoService];
|
|
@ -1,6 +1,6 @@
|
|||
import { NgModule, ModuleWithProviders } from '@angular/core';
|
||||
import { CommonModule } from '@angular/common';
|
||||
import { BANK_INFO_SERVICES } from './bank-info/service';
|
||||
import { SERVICES } from './service';
|
||||
|
||||
@NgModule({
|
||||
imports: [],
|
||||
|
@ -17,7 +17,7 @@ export class SitesModule {
|
|||
public static forRoot(): ModuleWithProviders<SitesRootModule> {
|
||||
return {
|
||||
ngModule: SitesRootModule,
|
||||
providers: [BANK_INFO_SERVICES]
|
||||
providers: [SERVICES]
|
||||
};
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,6 +1,12 @@
|
|||
import { Role } from './role.model';
|
||||
import { DateAudit } from 'src/modules/common/data/model/audit';
|
||||
|
||||
export enum StatusName {
|
||||
USER_BLOCK = 'USER_BLOCK',
|
||||
USER_NORMAL = 'USER_NORMAL',
|
||||
USER_WITHDRAW = 'USER_WITHDRAW'
|
||||
}
|
||||
|
||||
export interface User extends DateAudit {
|
||||
id?: number;
|
||||
username?: string;
|
||||
|
|
Loading…
Reference in New Issue
Block a user