2019-08-20 12:00:58 +08:00
|
|
|
class ShareLink {
|
2018-12-27 10:24:34 +08:00
|
|
|
|
|
|
|
constructor(object) {
|
|
|
|
this.repo_id = object.repo_id;
|
|
|
|
this.repo_name = object.repo_name;
|
|
|
|
this.path = object.path;
|
|
|
|
this.obj_name = object.obj_name;
|
|
|
|
this.is_dir = object.is_dir;
|
2019-12-03 13:52:52 +08:00
|
|
|
this.can_edit = object.can_edit;
|
|
|
|
this.repo_folder_permission = object.repo_folder_permission;
|
2018-12-27 10:24:34 +08:00
|
|
|
this.permissions = object.permissions;
|
|
|
|
this.username = object.username;
|
|
|
|
this.is_expired = object.is_expired;
|
|
|
|
this.expire_date = object.expire_date;
|
|
|
|
this.token = object.token;
|
|
|
|
this.link = object.link;
|
|
|
|
this.view_cnt = object.view_cnt;
|
|
|
|
this.ctime = object.ctime;
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2019-08-20 12:00:58 +08:00
|
|
|
export default ShareLink;
|