info model

This commit is contained in:
byung eun park 2019-10-27 19:14:06 +09:00
parent 0b6cd50a1f
commit 4abdaec91a
16 changed files with 98 additions and 6 deletions

View File

@ -11,7 +11,7 @@ import {
import { Subject } from 'rxjs'; import { Subject } from 'rxjs';
import { fuseAnimations } from 'src/@fuse/animations'; import { fuseAnimations } from 'src/@fuse/animations';
import { BankInfoListDataSource } from './bank-info-list.data-source'; 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 { import {
FormGroup, FormGroup,
FormBuilder, FormBuilder,

View File

@ -5,8 +5,8 @@ import { map } from 'rxjs/operators';
import { CollectionViewer } from '@angular/cdk/collections'; import { CollectionViewer } from '@angular/cdk/collections';
import { BankInfo } from 'src/modules/sites/bank-info/model/bank-info.model'; import { BankInfo } from 'src/modules/sites/model/bank-info.model';
import { BankInfoService } from 'src/modules/sites/bank-info/service/bank-info.service'; import { BankInfoService } from 'src/modules/sites/service/bank-info.service';
import { FormControl, FormGroup, Validators, FormArray } from '@angular/forms'; import { FormControl, FormGroup, Validators, FormArray } from '@angular/forms';

View 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]
};
}
}

View 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;
}

View 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;
}

View 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;
}

View 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;
}

View 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;
}

View File

@ -0,0 +1 @@
export const SERVICES = [];

View File

@ -0,0 +1,4 @@
export enum BankStateName {
CONFIRM = 'CONFIRM',
NOT_CONFIRM = 'NOT_CONFIRM'
}

View File

@ -0,0 +1,7 @@
export enum BankingStateName {
WAITING = 'WAITING',
HOLD = 'HOLD',
COMPLETE = 'COMPLETE',
DEPOSIT = 'DEPOSIT',
WITHDRAW = 'WITHDRAW'
}

View File

@ -1,3 +1,3 @@
import { BankInfoService } from './bank-info.service'; import { BankInfoService } from './bank-info.service';
export const BANK_INFO_SERVICES = [BankInfoService]; export const SERVICES = [BankInfoService];

View File

@ -1,6 +1,6 @@
import { NgModule, ModuleWithProviders } from '@angular/core'; import { NgModule, ModuleWithProviders } from '@angular/core';
import { CommonModule } from '@angular/common'; import { CommonModule } from '@angular/common';
import { BANK_INFO_SERVICES } from './bank-info/service'; import { SERVICES } from './service';
@NgModule({ @NgModule({
imports: [], imports: [],
@ -17,7 +17,7 @@ export class SitesModule {
public static forRoot(): ModuleWithProviders<SitesRootModule> { public static forRoot(): ModuleWithProviders<SitesRootModule> {
return { return {
ngModule: SitesRootModule, ngModule: SitesRootModule,
providers: [BANK_INFO_SERVICES] providers: [SERVICES]
}; };
} }
} }

View File

@ -1,6 +1,12 @@
import { Role } from './role.model'; import { Role } from './role.model';
import { DateAudit } from 'src/modules/common/data/model/audit'; 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 { export interface User extends DateAudit {
id?: number; id?: number;
username?: string; username?: string;