소스 검색

feat: add admin constants

BaiLuoYan 3 일 전
부모
커밋
8500353783
2개의 변경된 파일22개의 추가작업 그리고 0개의 파일을 삭제
  1. 21 0
      src/defines/admin.ts
  2. 1 0
      src/defines/index.ts

+ 21 - 0
src/defines/admin.ts

@@ -0,0 +1,21 @@
+export const DEPT_TYPE_OPTIONS = [
+  { label: '普通部门', value: 'NORMAL' },
+  { label: '开发部门', value: 'DEV' },
+];
+
+export const MEMBER_TYPE_OPTIONS = [
+  { label: '管理员', value: 'ADMIN' },
+  { label: '开发者', value: 'DEVELOPER' },
+  { label: '成员', value: 'MEMBER' },
+];
+
+export const STATUS_OPTIONS = [
+  { label: '启用', value: 1 },
+  { label: '禁用', value: 0 },
+];
+
+export const MEMBER_TYPE_LABELS: Record<string, string> = {
+  ADMIN: '管理员',
+  DEVELOPER: '开发者',
+  MEMBER: '成员',
+};

+ 1 - 0
src/defines/index.ts

@@ -1,3 +1,4 @@
+export * from './admin';
 export * from './errorCodes';
 export * from './errorShowType';
 export * from './patterns';