From 2074506acc5f1ff5b9b6a1d3769e4b6dd3071dfd Mon Sep 17 00:00:00 2001 From: skywalker Date: Thu, 20 Jan 2022 16:42:28 +0800 Subject: [PATCH 1/3] org verification --- src/dtable-web-api.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/dtable-web-api.js b/src/dtable-web-api.js index 94d1dffa..ae57666e 100644 --- a/src/dtable-web-api.js +++ b/src/dtable-web-api.js @@ -2357,6 +2357,20 @@ class DTableWebAPI { return this.req.delete(url) } + orgAdminGetVerification(orgID) { + const url = this.server + '/api/v2.1/org/' + orgID + '/admin/verification/'; + return this.req.get(url); + } + + orgAdminSetVerification(orgID, phone, code) { + let url = this.server + '/api/v2.1/org/' + orgID + '/admin/verification/'; + let data = { + phone: phone, + code: code + }; + return this.req.post(url, data); + } + // sys-admin sysAdminListAllDTables(page, perPage) { const url = this.server + '/api/v2.1/admin/dtables/'; From 92a427b5b9975e1d290afd4de38960a108880856 Mon Sep 17 00:00:00 2001 From: skywalker Date: Sat, 22 Jan 2022 15:19:17 +0800 Subject: [PATCH 2/3] sysAdminUpdateOrgVerification --- src/dtable-web-api.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/dtable-web-api.js b/src/dtable-web-api.js index ae57666e..2dcb0ee9 100644 --- a/src/dtable-web-api.js +++ b/src/dtable-web-api.js @@ -2362,7 +2362,7 @@ class DTableWebAPI { return this.req.get(url); } - orgAdminSetVerification(orgID, phone, code) { + orgAdminUpdateVerification(orgID, phone, code) { let url = this.server + '/api/v2.1/org/' + orgID + '/admin/verification/'; let data = { phone: phone, @@ -2575,6 +2575,11 @@ class DTableWebAPI { }); } + sysAdminUpdateOrgVerification(orgID, verification) { + const url = this.server + '/api/v2.1/admin/organizations/' + orgID + '/org-verification/'; + return this.req.post(url, {verification: verification}); + } + sysAdminSearchOrgs(query) { let url = this.server + '/api/v2.1/admin/search-organization/'; let params = { From 69708a2d1076c86547c266d94ae30e0e790ee2e2 Mon Sep 17 00:00:00 2001 From: skywalker Date: Tue, 8 Feb 2022 14:46:13 +0800 Subject: [PATCH 3/3] rename verified --- src/dtable-web-api.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/dtable-web-api.js b/src/dtable-web-api.js index 2dcb0ee9..64785b1a 100644 --- a/src/dtable-web-api.js +++ b/src/dtable-web-api.js @@ -2575,9 +2575,9 @@ class DTableWebAPI { }); } - sysAdminUpdateOrgVerification(orgID, verification) { + sysAdminUpdateOrgVerification(orgID, verified) { const url = this.server + '/api/v2.1/admin/organizations/' + orgID + '/org-verification/'; - return this.req.post(url, {verification: verification}); + return this.req.post(url, {verified: verified}); } sysAdminSearchOrgs(query) {