import { NAMESPACE } from "../constants/config/storage.config";
import store from "store";

/**
 * @description: 权限信息
 * @author ChenRui
 * @date 2020/12/18 19:05
 */
class AuthoritiesStore {
  private static readonly AUTHORITIES = NAMESPACE + "authorities";

  public set authorities(authorities: any) {
    store.set(AuthoritiesStore.AUTHORITIES, authorities);
  }

  public get authorities(): any {
    return store.get(AuthoritiesStore.AUTHORITIES);
  }
}
const authoritiesStore = new AuthoritiesStore();
export { authoritiesStore };
