@be-link/ecommerce-promotion-service-node-sdk 0.1.7 → 0.1.8
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/job/service.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ import BaseService from '../BaseService';
|
|
|
3
3
|
declare class JobService extends BaseService implements Service.JobController {
|
|
4
4
|
protected prefixUrl: string;
|
|
5
5
|
expireCouponTemplateTask(): Promise<void>;
|
|
6
|
+
cleanupCouponCacheTask(): Promise<void>;
|
|
6
7
|
}
|
|
7
8
|
export declare const jobService: JobService;
|
|
8
9
|
export default jobService;
|
package/modules/job/service.js
CHANGED
|
@@ -21,11 +21,18 @@ let JobService = class JobService extends BaseService_1.default {
|
|
|
21
21
|
expireCouponTemplateTask() {
|
|
22
22
|
return (0, http_1.callApi)(this.getApiUrl(this.expireCouponTemplateTask));
|
|
23
23
|
}
|
|
24
|
+
cleanupCouponCacheTask() {
|
|
25
|
+
return (0, http_1.callApi)(this.getApiUrl(this.cleanupCouponCacheTask));
|
|
26
|
+
}
|
|
24
27
|
};
|
|
25
28
|
__decorate([
|
|
26
29
|
(0, tsoa_1.OperationId)('过期券模版清理任务'),
|
|
27
30
|
(0, tsoa_1.Post)('expire-coupon-template-task')
|
|
28
31
|
], JobService.prototype, "expireCouponTemplateTask", null);
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, tsoa_1.OperationId)('定时清理券缓存任务'),
|
|
34
|
+
(0, tsoa_1.Post)('cleanup-coupon-cache-task')
|
|
35
|
+
], JobService.prototype, "cleanupCouponCacheTask", null);
|
|
29
36
|
JobService = __decorate([
|
|
30
37
|
(0, tsoa_1.Route)('job'),
|
|
31
38
|
(0, tsoa_1.Tags)('Job')
|
package/modules/job/types.d.ts
CHANGED