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 {
ROLE_SUPER_ADMIN = 'ROLE_SUPER_ADMIN',
ROLE_ADMIN = 'ROLE_ADMIN',
ROLE_USER = 'ROLE_USER'
}
import { RoleName } from '../type/role.type';
export interface Role {
id: number;

View File

@ -1,11 +1,9 @@
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'
}
import { StatusName } from '../type/status.type';
import { RoleName } from '../type/role.type';
import { LevelName } from '../type/level.type';
import { GradeName } from '../type/grade.type';
export interface User extends DateAudit {
id?: number;
@ -27,4 +25,9 @@ export interface User extends DateAudit {
phone?: 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' // 탈퇴
}