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:
19
frontend/src/models/sysadmin-admin-user.js
Normal file
19
frontend/src/models/sysadmin-admin-user.js
Normal 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;
|
27
frontend/src/models/sysadmin-user.js
Normal file
27
frontend/src/models/sysadmin-user.js
Normal 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;
|
Reference in New Issue
Block a user