1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-17 07:41:26 +00:00

sysadmin reconstruct user page (#4030)

* sysadmin reconstruct user page

* [system admin] users: refactored it
This commit is contained in:
Leo
2019-10-28 10:29:20 +08:00
committed by Daniel Pan
parent 344f50cbda
commit 852fe1b8ee
35 changed files with 3254 additions and 40 deletions

View File

@@ -0,0 +1,19 @@
class SysAdminAdminUser {
constructor(object) {
this.email = object.email;
this.name = object.name;
this.contact_email = object.contact_email;
this.login_id = object.login_id;
this.last_login = object.last_login;
this.create_time = object.create_time;
this.is_active = object.is_active;
this.is_staff = object.is_staff;
this.quota_total = object.quota_total;
this.quota_usage = object.quota_usage;
this.admin_role = object.admin_role;
this.isSelected = false;
}
}
export default SysAdminAdminUser;

View File

@@ -0,0 +1,27 @@
class SysAdminUser {
constructor(object) {
this.email = object.email;
this.name = object.name;
this.contact_email = object.contact_email;
this.login_id = object.login_id;
this.last_login = object.last_login;
this.create_time = object.create_time;
this.is_active = object.is_active;
this.is_staff = object.is_staff;
this.reference_id = object.reference_id;
this.department = object.department;
this.quota_total = object.quota_total;
this.quota_usage = object.quota_usage;
this.role = object.role;
this.institution = object.institution;
if (object.org_id) {
this.org_id = object.org_id;
}
if (object.org_name) {
this.org_name = object.org_name;
}
this.isSelected = false;
}
}
export default SysAdminUser;