@be-link/ecommerce-promotion-service-node-sdk 0.0.22 → 0.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/modules/BaseService.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ export default abstract class BaseService {
|
|
|
6
6
|
/** URL一级路径 */
|
|
7
7
|
protected abstract prefixUrl: string;
|
|
8
8
|
/** 子网域名 */
|
|
9
|
-
protected readonly natDevHost = "";
|
|
9
|
+
protected readonly natDevHost = "http://yayvmsbg.promotion-service.07vmo6rk.by26x7u9.com:8090";
|
|
10
10
|
protected readonly natProdHost = "";
|
|
11
11
|
/** 获取API URL */
|
|
12
12
|
protected getApiUrl(func: Function): string;
|
package/modules/BaseService.js
CHANGED
|
@@ -12,7 +12,7 @@ const string_1 = require("../utils/string");
|
|
|
12
12
|
class BaseService {
|
|
13
13
|
constructor() {
|
|
14
14
|
/** 子网域名 */
|
|
15
|
-
this.natDevHost = '';
|
|
15
|
+
this.natDevHost = 'http://yayvmsbg.promotion-service.07vmo6rk.by26x7u9.com:8090';
|
|
16
16
|
this.natProdHost = '';
|
|
17
17
|
}
|
|
18
18
|
/** 获取API URL */
|
|
@@ -8,6 +8,7 @@ declare class PointsMallService extends BaseService implements Service.PointsMal
|
|
|
8
8
|
queryProducts(request: Service.Request.queryProducts): Promise<Service.Response.queryProducts>;
|
|
9
9
|
getProductDetail(request: Service.Request.getProductDetail): Promise<Service.Response.getProductDetail>;
|
|
10
10
|
queryEnabledAndOnlineProducts(request: Service.Request.queryEnabledAndOnlineProducts): Promise<Service.Response.queryEnabledAndOnlineProducts>;
|
|
11
|
+
getAvailableCouponCountForProduct(request: Service.Request.getAvailableCouponCountForProduct): Promise<Service.Response.getAvailableCouponCountForProduct>;
|
|
11
12
|
}
|
|
12
13
|
export declare const pointsMallService: PointsMallService;
|
|
13
14
|
export default pointsMallService;
|
|
@@ -39,6 +39,9 @@ let PointsMallService = class PointsMallService extends BaseService_1.default {
|
|
|
39
39
|
queryEnabledAndOnlineProducts(request) {
|
|
40
40
|
return (0, http_1.callApi)(this.getApiUrl(this.queryEnabledAndOnlineProducts), request);
|
|
41
41
|
}
|
|
42
|
+
getAvailableCouponCountForProduct(request) {
|
|
43
|
+
return (0, http_1.callApi)(this.getApiUrl(this.getAvailableCouponCountForProduct), request);
|
|
44
|
+
}
|
|
42
45
|
};
|
|
43
46
|
__decorate([
|
|
44
47
|
(0, tsoa_1.OperationId)('批量创建积分商城商品'),
|
|
@@ -70,6 +73,11 @@ __decorate([
|
|
|
70
73
|
(0, tsoa_1.Post)('query-enabled-and-online-products'),
|
|
71
74
|
__param(0, (0, tsoa_1.Body)())
|
|
72
75
|
], PointsMallService.prototype, "queryEnabledAndOnlineProducts", null);
|
|
76
|
+
__decorate([
|
|
77
|
+
(0, tsoa_1.OperationId)('查询指定商品用户可用优惠券的数量'),
|
|
78
|
+
(0, tsoa_1.Post)('get-available-coupon-count-for-product'),
|
|
79
|
+
__param(0, (0, tsoa_1.Body)())
|
|
80
|
+
], PointsMallService.prototype, "getAvailableCouponCountForProduct", null);
|
|
73
81
|
PointsMallService = __decorate([
|
|
74
82
|
(0, tsoa_1.Route)('points-mall'),
|
|
75
83
|
(0, tsoa_1.Tags)('PointsMall')
|
|
@@ -102,6 +102,13 @@ export declare namespace Service {
|
|
|
102
102
|
/** 每页数量 */
|
|
103
103
|
pageSize?: number;
|
|
104
104
|
}
|
|
105
|
+
/** 查询指定商品用户可用优惠券的数量 */
|
|
106
|
+
export interface getAvailableCouponCountForProduct {
|
|
107
|
+
/** 用户ID */
|
|
108
|
+
userId: string;
|
|
109
|
+
/** 商品ID */
|
|
110
|
+
productId: string;
|
|
111
|
+
}
|
|
105
112
|
/** 根据商品ID查询商品详情 */
|
|
106
113
|
export interface getProductDetail {
|
|
107
114
|
/** 商品ID */
|
|
@@ -151,6 +158,11 @@ export declare namespace Service {
|
|
|
151
158
|
/** 每页数量 */
|
|
152
159
|
pageSize: number;
|
|
153
160
|
}
|
|
161
|
+
/** 查询指定商品用户可用优惠券的数量响应 */
|
|
162
|
+
interface getAvailableCouponCountForProduct {
|
|
163
|
+
/** 可用优惠券数量 */
|
|
164
|
+
count: number;
|
|
165
|
+
}
|
|
154
166
|
}
|
|
155
167
|
interface PointsMallController {
|
|
156
168
|
/** 批量创建积分商城商品 */
|
|
@@ -165,5 +177,7 @@ export declare namespace Service {
|
|
|
165
177
|
getProductDetail(request: Service.Request.getProductDetail): Promise<Service.Response.getProductDetail>;
|
|
166
178
|
/** 查询开启且上架的积分商城列表 */
|
|
167
179
|
queryEnabledAndOnlineProducts(request: Service.Request.queryEnabledAndOnlineProducts): Promise<Service.Response.queryEnabledAndOnlineProducts>;
|
|
180
|
+
/** 查询指定商品用户可用优惠券的数量 */
|
|
181
|
+
getAvailableCouponCountForProduct(request: Service.Request.getAvailableCouponCountForProduct): Promise<Service.Response.getAvailableCouponCountForProduct>;
|
|
168
182
|
}
|
|
169
183
|
}
|