Browse Source

feat: add admin constants

BaiLuoYan 3 days ago
parent
commit
8500353783
2 changed files with 22 additions and 0 deletions
  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';