1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-14 22:33:17 +00:00

add_close_face_recognition (#6998)

* add_close_face_recognition

* update

* update

* update

---------

Co-authored-by: zheng.shen <zheng.shen@seafile.com>
This commit is contained in:
shenzheng-1
2024-11-07 13:58:18 +08:00
committed by GitHub
parent d823a02caf
commit 59f24cb2b6
5 changed files with 116 additions and 21 deletions

View File

@@ -267,6 +267,11 @@ class MetadataManagerAPI {
return this.req.post(url);
};
closeFaceRecognition = (repoID) => {
const url = this.server + '/api/v2.1/repos/' + repoID + '/metadata/face-recognition/';
return this.req.delete(url);
};
getFaceData = (repoID, start = 0, limit = 1000) => {
const url = this.server + '/api/v2.1/repos/' + repoID + '/metadata/face-records/?start=' + start + '&limit=' + limit;
return this.req.get(url);