mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-01 23:20:51 +00:00
feat: metadata view part (#6289)
* feat: metadata view part * feat: optimize code --------- Co-authored-by: 杨国璇 <ygx@Hello-word.local>
This commit is contained in:
@@ -43,6 +43,11 @@ class MetadataManagerAPI {
|
||||
}
|
||||
}
|
||||
|
||||
getCollaborators = (repoID) => {
|
||||
const url = this.server + '/api/v2.1/repos/' + repoID + '/related-users/';
|
||||
return this.req.get(url);
|
||||
};
|
||||
|
||||
getMetadataStatus(repoID) {
|
||||
const url = this.server + '/api/v2.1/repos/' + repoID + '/metadata/';
|
||||
return this.req.get(url);
|
||||
@@ -60,7 +65,7 @@ class MetadataManagerAPI {
|
||||
|
||||
getMetadata(repoID, params) {
|
||||
const url = this.server + '/api/v2.1/repos/' + repoID + '/metadata/records/';
|
||||
return this.req.get(url, {params: params});
|
||||
return this.req.get(url, { params: params });
|
||||
}
|
||||
|
||||
addMetadataRecords(repoID, parentDir, name) {
|
||||
|
Reference in New Issue
Block a user