@itutoring/itutoring_application_js_api 1.5.5 → 1.5.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/modules/LectorDatabase.js +18 -0
- package/package.json +1 -1
|
@@ -16,7 +16,25 @@ class LectorDatabase
|
|
|
16
16
|
static #RESET_PASSWORD = "ResetPassword";
|
|
17
17
|
static #ADD_MODULE_ACCESS = "AddModuleAccess";
|
|
18
18
|
static #REMOVE_MODULE_ACCESS = "RemoveModuleAccess";
|
|
19
|
+
static #GET_COUNT_OF_LECTORS = "GetCountOfLectors";
|
|
19
20
|
|
|
21
|
+
/**
|
|
22
|
+
* desc: Get count of lectors
|
|
23
|
+
*
|
|
24
|
+
* @returns {int} count of lectors
|
|
25
|
+
*/
|
|
26
|
+
static async getCountOfLectors()
|
|
27
|
+
{
|
|
28
|
+
var count = await APIController.Get(this.#MODULE, this.#GET_COUNT_OF_LECTORS);
|
|
29
|
+
|
|
30
|
+
return count;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* desc: Remove module access
|
|
35
|
+
* @param {string} lectorId
|
|
36
|
+
* @param {string} moduleId
|
|
37
|
+
*/
|
|
20
38
|
static async removeModuleAccess(lectorId, moduleId)
|
|
21
39
|
{
|
|
22
40
|
await APIController.Post(this.#MODULE, this.#REMOVE_MODULE_ACCESS, {
|