创建公会

This commit is contained in:
luying
2021-01-18 21:05:25 +08:00
parent 97216647b2
commit 3c35852495
17 changed files with 281 additions and 37 deletions

View File

@@ -0,0 +1,23 @@
// 公会权限
import { readJsonFile, parseNumberList } from '../util'
import { FILENAME } from '../../consts'
export interface DicGuildAuth {
// id
readonly id: number;
// 权限 TODO 策划字段未定
readonly auths: number[];
}
const str = readJsonFile(FILENAME.DIC_GUILD_AUTH);
let arr = JSON.parse(str);
export const dicGuildAuth = new Map<number, number[]>();
arr.forEach(o => {
let auths = parseNumberList(o.auths)
dicGuildAuth.set(o.id, auths);
});
arr = undefined;