user enum type crete

This commit is contained in:
byung eun park 2019-10-28 17:12:17 +09:00
parent 83f68d717c
commit ae9a1338e9
7 changed files with 42 additions and 11 deletions

View File

@ -1,8 +1,4 @@
export enum RoleName { import { RoleName } from '../type/role.type';
ROLE_SUPER_ADMIN = 'ROLE_SUPER_ADMIN',
ROLE_ADMIN = 'ROLE_ADMIN',
ROLE_USER = 'ROLE_USER'
}
export interface Role { export interface Role {
id: number; id: number;

View File

@ -1,11 +1,9 @@
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';
import { StatusName } from '../type/status.type';
export enum StatusName { import { RoleName } from '../type/role.type';
USER_BLOCK = 'USER_BLOCK', import { LevelName } from '../type/level.type';
USER_NORMAL = 'USER_NORMAL', import { GradeName } from '../type/grade.type';
USER_WITHDRAW = 'USER_WITHDRAW'
}
export interface User extends DateAudit { export interface User extends DateAudit {
id?: number; id?: number;
@ -27,4 +25,9 @@ export interface User extends DateAudit {
phone?: string; phone?: string;
descriptions?: string; descriptions?: string;
roles?: Role[];
grade?: number;
status?: StatusName;
level?: LevelName;
} }

View File

@ -0,0 +1,5 @@
export enum CommissionName {
BANKING = 'BANKING', // 충환 방식
BETTING = 'BETTING', // 베팅 방식
RAFFLE = 'RAFFLE' // 낙첨 방식
}

View File

@ -0,0 +1,7 @@
export enum GradeName {
BAD_USER = 'BAD_USER', // 불량유저 등급
NORMAL_USER = 'NORMAL_USER', // 일반유저 등급
REGULAR_USER = 'REGULAR_USER', // 정회원 등급
VIP_USER = 'VIP_USER', // VIP 등급
PLATINUM_USER = 'PLATINUM_USER' // 플레티넘 등급
}

View File

@ -0,0 +1,7 @@
export enum LevelName {
LEVEL_1 = 'LEVEL_1',
LEVEL_2 = 'LEVEL_2',
LEVEL_3 = 'LEVEL_3',
LEVEL_4 = 'LEVEL_4',
LEVEL_5 = 'LEVEL_5'
}

View File

@ -0,0 +1,8 @@
export enum RoleName {
ROLE_SUPER_ADMIN = 'ROLE_SUPER_ADMIN', // 본사 관리자 & 최고관리자
ROLE_ADMIN = 'ROLE_ADMIN', // 사이트 관리자
ROLE_TEAM = 'ROLE_TEAM', // 팀 단위 유저
ROLE_AGENCY = 'ROLE_AGENCY', // 총판
ROLE_DISTRIBUTOR = 'ROLE_DISTRIBUTOR', // 부본사
ROLE_USER = 'ROLE_USER' // 일반 유저
}

View File

@ -0,0 +1,5 @@
export enum StatusName {
USER_BLOCK = 'USER_BLOCK', // 정지
USER_NORMAL = 'USER_NORMAL', // 정상
USER_WITHDRAW = 'USER_WITHDRAW' // 탈퇴
}