mirror of
https://github.com/xuthus83/pigallery2.git
synced 2024-11-03 21:04:03 +08:00
12 lines
240 B
TypeScript
12 lines
240 B
TypeScript
export enum UserRoles{
|
|
Guest = 1,
|
|
User = 2,
|
|
Admin = 3,
|
|
Developer = 4,
|
|
|
|
}
|
|
|
|
export class User {
|
|
constructor(public id?:number, public name?:string, public password?:string, public role:UserRoles = UserRoles.User) {
|
|
}
|
|
} |