@be-link/ecommerce-promotion-service-node-sdk 0.0.26 → 0.0.28
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 = "https://promotion-service-196345-5-1304510571.sh.run.tcloudbase.com";
|
|
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 = 'https://promotion-service-196345-5-1304510571.sh.run.tcloudbase.com';
|
|
16
16
|
this.natProdHost = '';
|
|
17
17
|
}
|
|
18
18
|
/** 获取API URL */
|
package/modules/award/types.d.ts
CHANGED
|
@@ -1,6 +1,17 @@
|
|
|
1
1
|
import { ENUM } from '../../enum';
|
|
2
2
|
export declare namespace Service {
|
|
3
3
|
namespace Entity {
|
|
4
|
+
/** 券基础信息 */
|
|
5
|
+
interface CouponBasicInfo {
|
|
6
|
+
id: string;
|
|
7
|
+
name: string;
|
|
8
|
+
couponType: ENUM.COUPON_ENUM.COUPON_TYPE;
|
|
9
|
+
status: ENUM.COUPON_ENUM.COUPON_STATUS;
|
|
10
|
+
originalQty: number;
|
|
11
|
+
instructions: string;
|
|
12
|
+
lifeCycle: CouponLifeCycle;
|
|
13
|
+
usageLimit: CouponUsageLimit;
|
|
14
|
+
}
|
|
4
15
|
/** 券生命周期 */
|
|
5
16
|
interface CouponLifeCycle {
|
|
6
17
|
/** 固定生效时间(时间戳) */
|
|
@@ -34,25 +45,15 @@ export declare namespace Service {
|
|
|
34
45
|
}
|
|
35
46
|
/** 券领取限制 */
|
|
36
47
|
interface CouponReceiveLimit {
|
|
37
|
-
/** 自增主键 */
|
|
38
|
-
id?: number;
|
|
39
48
|
/** 券ID */
|
|
40
49
|
couponId: string;
|
|
41
50
|
/** 限制维度 */
|
|
42
51
|
type: ENUM.COUPON_ENUM.RECEIVE_LIMIT_TYPE;
|
|
43
52
|
/** 限制值 */
|
|
44
53
|
limitValue: number;
|
|
45
|
-
/** 创建时间 */
|
|
46
|
-
createdAt?: number;
|
|
47
|
-
/** 更新时间 */
|
|
48
|
-
updatedAt?: number;
|
|
49
|
-
/** 删除时间 */
|
|
50
|
-
deletedAt?: number;
|
|
51
54
|
}
|
|
52
55
|
/** 券优惠规则 */
|
|
53
56
|
interface CouponDiscountRule {
|
|
54
|
-
/** 自增主键 */
|
|
55
|
-
id?: number;
|
|
56
57
|
/** 券ID */
|
|
57
58
|
couponId: string;
|
|
58
59
|
/** 优惠类型 */
|
|
@@ -65,29 +66,17 @@ export declare namespace Service {
|
|
|
65
66
|
priority: number;
|
|
66
67
|
/** 规则信息 */
|
|
67
68
|
extra?: Entity.DiscountRuleExtra;
|
|
68
|
-
/** 创建时间 */
|
|
69
|
-
createdAt?: number;
|
|
70
|
-
/** 更新时间 */
|
|
71
|
-
updatedAt?: number;
|
|
72
|
-
/** 删除时间 */
|
|
73
|
-
deletedAt?: number;
|
|
74
69
|
}
|
|
75
70
|
/** 券适用范围 */
|
|
76
71
|
interface CouponScope {
|
|
77
|
-
/** ID */
|
|
78
|
-
id?: string;
|
|
79
|
-
/** 创建时间 */
|
|
80
|
-
createdAt?: number;
|
|
81
|
-
/** 更新时间 */
|
|
82
|
-
updatedAt?: number;
|
|
83
|
-
/** 删除时间 */
|
|
84
|
-
deletedAt?: number;
|
|
85
72
|
/** 券ID */
|
|
86
73
|
couponId: string;
|
|
87
74
|
/** 是否可用 */
|
|
88
75
|
available: boolean;
|
|
89
|
-
/**
|
|
90
|
-
|
|
76
|
+
/** */
|
|
77
|
+
scopeValue: string;
|
|
78
|
+
/** 范围类型 */
|
|
79
|
+
scopeType: ENUM.COUPON_ENUM.SCOPE_TYPE;
|
|
91
80
|
}
|
|
92
81
|
/** 券操作记录 */
|
|
93
82
|
interface CouponOperateLog {
|