npm_microservice 1.0.22 → 1.0.24
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/dist/service.js
CHANGED
|
@@ -472,6 +472,10 @@ var require_SettingService = __commonJS({
|
|
|
472
472
|
this.timeCache = 24 * 60 * 60;
|
|
473
473
|
return this.request("get", url, { params: filter });
|
|
474
474
|
}
|
|
475
|
+
async getVideo(filter = {}) {
|
|
476
|
+
let url = CONFIG_ROUTER_SERVICE.BASE_URL + "/app/video";
|
|
477
|
+
return this.request("get", url, { params: filter });
|
|
478
|
+
}
|
|
475
479
|
// có thể thêm method riêng cho user nếu cần
|
|
476
480
|
};
|
|
477
481
|
module2.exports = SettingService;
|
|
@@ -2497,6 +2501,11 @@ var require_EduTestService = __commonJS({
|
|
|
2497
2501
|
this.service = "tests_logs";
|
|
2498
2502
|
return this.request("get", url, { params: filter });
|
|
2499
2503
|
}
|
|
2504
|
+
async countTestLog(filter = {}) {
|
|
2505
|
+
let url = CONFIG_ROUTER_SERVICE.BASE_URL + "/tests/test-logs/count";
|
|
2506
|
+
this.service = "tests_logs";
|
|
2507
|
+
return this.request("get", url, { params: filter });
|
|
2508
|
+
}
|
|
2500
2509
|
async createLog(data) {
|
|
2501
2510
|
let url = CONFIG_ROUTER_SERVICE.BASE_URL + "/tests/test-logs/create-log";
|
|
2502
2511
|
return this.request("post", url, { data });
|
|
@@ -470,6 +470,10 @@ var SettingService = class extends BaseService {
|
|
|
470
470
|
this.timeCache = 24 * 60 * 60;
|
|
471
471
|
return this.request("get", url, { params: filter });
|
|
472
472
|
}
|
|
473
|
+
async getVideo(filter = {}) {
|
|
474
|
+
let url = CONFIG_ROUTER_SERVICE.BASE_URL + "/app/video";
|
|
475
|
+
return this.request("get", url, { params: filter });
|
|
476
|
+
}
|
|
473
477
|
// có thể thêm method riêng cho user nếu cần
|
|
474
478
|
};
|
|
475
479
|
module.exports = SettingService;
|
|
@@ -447,6 +447,11 @@ var EduTestService = class extends BaseService {
|
|
|
447
447
|
this.service = "tests_logs";
|
|
448
448
|
return this.request("get", url, { params: filter });
|
|
449
449
|
}
|
|
450
|
+
async countTestLog(filter = {}) {
|
|
451
|
+
let url = CONFIG_ROUTER_SERVICE.BASE_URL + "/tests/test-logs/count";
|
|
452
|
+
this.service = "tests_logs";
|
|
453
|
+
return this.request("get", url, { params: filter });
|
|
454
|
+
}
|
|
450
455
|
async createLog(data) {
|
|
451
456
|
let url = CONFIG_ROUTER_SERVICE.BASE_URL + "/tests/test-logs/create-log";
|
|
452
457
|
return this.request("post", url, { data });
|