保誠-保戶業務員媒合平台
wayne
2022-03-11 27d109b5792305d849f578627f98e1cb55a330f4
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import { Role } from "../models/enum/Role";
 
class AuthService {
 
  isAdminLogin(): boolean {
    return localStorage.getItem('current_role') === Role.ADMIN;
  }
 
  isUserLogin(): boolean {
    return localStorage.getItem('current_role') === Role.USER;
  }
}
 
export default new AuthService();