npm_microservice 1.0.20 → 1.0.21
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
|
@@ -2422,6 +2422,10 @@ var require_StudentService2 = __commonJS({
|
|
|
2422
2422
|
let url = CONFIG_ROUTER_SERVICE.BASE_URL + "/course/students/update-progress";
|
|
2423
2423
|
return this.request("post", url, { data });
|
|
2424
2424
|
}
|
|
2425
|
+
async count(filter = {}) {
|
|
2426
|
+
let url = CONFIG_ROUTER_SERVICE.BASE_URL + "/course/student/count";
|
|
2427
|
+
return this.request("get", url, { params: filter });
|
|
2428
|
+
}
|
|
2425
2429
|
// có thể thêm method riêng cho user nếu cần
|
|
2426
2430
|
};
|
|
2427
2431
|
module2.exports = StudentService;
|
|
@@ -445,6 +445,10 @@ var StudentService = class extends BaseService {
|
|
|
445
445
|
let url = CONFIG_ROUTER_SERVICE.BASE_URL + "/course/students/update-progress";
|
|
446
446
|
return this.request("post", url, { data });
|
|
447
447
|
}
|
|
448
|
+
async count(filter = {}) {
|
|
449
|
+
let url = CONFIG_ROUTER_SERVICE.BASE_URL + "/course/student/count";
|
|
450
|
+
return this.request("get", url, { params: filter });
|
|
451
|
+
}
|
|
448
452
|
// có thể thêm method riêng cho user nếu cần
|
|
449
453
|
};
|
|
450
454
|
module.exports = StudentService;
|