2022-06-30 00:03:02 +08:00
|
|
|
"use strict";
|
|
|
|
var _a;
|
|
|
|
exports.__esModule = true;
|
|
|
|
exports.AuthEnumArray = exports.AuthEnumTextMap = exports.AuthEnum = void 0;
|
|
|
|
var AuthEnum;
|
|
|
|
(function (AuthEnum) {
|
|
|
|
AuthEnum["creator"] = "creator";
|
|
|
|
AuthEnum["admin"] = "admin";
|
|
|
|
AuthEnum["member"] = "member";
|
|
|
|
AuthEnum["noAccess"] = "noAccess";
|
|
|
|
})(AuthEnum = exports.AuthEnum || (exports.AuthEnum = {}));
|
|
|
|
exports.AuthEnumTextMap = (_a = {},
|
2022-06-30 14:55:35 +08:00
|
|
|
_a[AuthEnum.creator] = '超级管理员',
|
2022-06-30 00:03:02 +08:00
|
|
|
_a[AuthEnum.admin] = '管理员',
|
|
|
|
_a[AuthEnum.member] = '成员',
|
|
|
|
_a[AuthEnum.noAccess] = '无权限',
|
|
|
|
_a);
|
|
|
|
exports.AuthEnumArray = Object.keys(exports.AuthEnumTextMap).map(function (value) { return ({
|
|
|
|
label: exports.AuthEnumTextMap[value],
|
|
|
|
value: value
|
|
|
|
}); });
|