@be-link/ecommerce-backend-bff-service-node-sdk 0.0.63 → 0.0.65
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/cjs/bff/modules/pandora/orderCore/service.d.ts +23 -0
- package/cjs/bff/modules/pandora/orderCore/service.js +35 -0
- package/cjs/bff/modules/pandora/orderCore/types.d.ts +15 -0
- package/cjs/bff/modules/pandora/orderQuery/service.d.ts +35 -0
- package/cjs/bff/modules/pandora/orderQuery/service.js +51 -0
- package/cjs/bff/modules/pandora/orderQuery/types.d.ts +21 -0
- package/cjs/bff/modules/pandora/product/service.d.ts +1 -13
- package/cjs/bff/modules/pandora/product/service.js +0 -16
- package/cjs/bff/modules/pandora/product/types.d.ts +11 -197
- package/cjs/bff/modules/pandora/productExp/service.d.ts +5 -17
- package/cjs/bff/modules/pandora/productExp/service.js +7 -23
- package/cjs/bff/modules/pandora/productExp/types.d.ts +16 -84
- package/cjs/bff/modules/pandora/productLive/service.d.ts +1 -1
- package/cjs/bff/modules/pandora/productLive/types.d.ts +1 -11
- package/cjs/bff/modules/pandora/room/service.d.ts +0 -6
- package/cjs/bff/modules/pandora/room/service.js +0 -8
- package/cjs/bff/modules/pandora/room/types.d.ts +2 -21
- package/cjs/enums.d.ts +0 -2
- package/cjs/enums.js +1 -6
- package/cjs/index.d.ts +6 -20
- package/cjs/index.js +12 -16
- package/esm/bff/modules/pandora/orderCore/service.d.ts +23 -0
- package/esm/bff/modules/pandora/orderCore/service.mjs +28 -0
- package/esm/bff/modules/pandora/orderCore/types.d.ts +15 -0
- package/esm/bff/modules/pandora/orderQuery/service.d.ts +35 -0
- package/esm/bff/modules/pandora/orderQuery/service.mjs +44 -0
- package/esm/bff/modules/pandora/orderQuery/types.d.ts +21 -0
- package/esm/bff/modules/pandora/product/service.d.ts +1 -13
- package/esm/bff/modules/pandora/product/service.mjs +0 -16
- package/esm/bff/modules/pandora/product/types.d.ts +11 -197
- package/esm/bff/modules/pandora/productExp/service.d.ts +5 -17
- package/esm/bff/modules/pandora/productExp/service.mjs +7 -23
- package/esm/bff/modules/pandora/productExp/types.d.ts +16 -84
- package/esm/bff/modules/pandora/productLive/service.d.ts +1 -1
- package/esm/bff/modules/pandora/productLive/types.d.ts +1 -11
- package/esm/bff/modules/pandora/room/service.d.ts +0 -6
- package/esm/bff/modules/pandora/room/service.mjs +0 -8
- package/esm/bff/modules/pandora/room/types.d.ts +2 -21
- package/esm/enums.d.ts +0 -2
- package/esm/enums.mjs +0 -3
- package/esm/index.d.ts +6 -20
- package/esm/index.mjs +4 -8
- package/package.json +5 -8
- package/cjs/bff/modules/pandora/coupon/service.d.ts +0 -59
- package/cjs/bff/modules/pandora/coupon/service.js +0 -83
- package/cjs/bff/modules/pandora/coupon/types.d.ts +0 -401
- package/cjs/bff/modules/pandora/store/service.d.ts +0 -125
- package/cjs/bff/modules/pandora/store/service.js +0 -171
- package/cjs/bff/modules/pandora/store/types.d.ts +0 -786
- package/cjs/bff/modules/pandora/storeUserRelation/service.d.ts +0 -41
- package/cjs/bff/modules/pandora/storeUserRelation/service.js +0 -59
- package/cjs/bff/modules/pandora/storeUserRelation/types.d.ts +0 -221
- package/cjs/bff/modules/pandora/storeUserRelation/types.js +0 -2
- package/esm/bff/modules/pandora/coupon/service.d.ts +0 -59
- package/esm/bff/modules/pandora/coupon/service.mjs +0 -76
- package/esm/bff/modules/pandora/coupon/types.d.ts +0 -401
- package/esm/bff/modules/pandora/store/service.d.ts +0 -125
- package/esm/bff/modules/pandora/store/service.mjs +0 -164
- package/esm/bff/modules/pandora/store/types.d.ts +0 -786
- package/esm/bff/modules/pandora/storeUserRelation/service.d.ts +0 -41
- package/esm/bff/modules/pandora/storeUserRelation/service.mjs +0 -52
- package/esm/bff/modules/pandora/storeUserRelation/types.d.ts +0 -221
- package/esm/bff/modules/pandora/storeUserRelation/types.mjs +0 -1
- /package/cjs/bff/modules/pandora/{coupon → orderCore}/types.js +0 -0
- /package/cjs/bff/modules/pandora/{store → orderQuery}/types.js +0 -0
- /package/esm/bff/modules/pandora/{coupon → orderCore}/types.mjs +0 -0
- /package/esm/bff/modules/pandora/{store → orderQuery}/types.mjs +0 -0
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import BaseService from '../../BaseService.mjs';
|
|
2
|
+
/**
|
|
3
|
+
* PandoraOrderQueryService - Pandora 订单查询服务模块
|
|
4
|
+
* 提供订单查询相关的 API 方法
|
|
5
|
+
* 平台: pandora
|
|
6
|
+
*/
|
|
7
|
+
export class PandoraOrderQueryService extends BaseService {
|
|
8
|
+
constructor() {
|
|
9
|
+
super(...arguments);
|
|
10
|
+
this.prefixUrl = '/pandora/order-query';
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* 订单列表(简化数据)
|
|
14
|
+
* @param request - 请求参数
|
|
15
|
+
* @returns Promise,解析为标准响应格式
|
|
16
|
+
*/
|
|
17
|
+
list(request) {
|
|
18
|
+
return this.request(this.list, request);
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* 订单详情
|
|
22
|
+
* @param request - 请求参数
|
|
23
|
+
* @returns Promise,解析为标准响应格式
|
|
24
|
+
*/
|
|
25
|
+
orderDetail(request) {
|
|
26
|
+
return this.request(this.orderDetail, request);
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* 获取订单地址
|
|
30
|
+
* @param request - 请求参数
|
|
31
|
+
* @returns Promise,解析为标准响应格式
|
|
32
|
+
*/
|
|
33
|
+
getOrderAddress(request) {
|
|
34
|
+
return this.request(this.getOrderAddress, request);
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* 逆向订单列表(退款订单)
|
|
38
|
+
* @param request - 请求参数
|
|
39
|
+
* @returns Promise,解析为标准响应格式
|
|
40
|
+
*/
|
|
41
|
+
reverseOrderList(request) {
|
|
42
|
+
return this.request(this.reverseOrderList, request);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { POS, ROS, DTO } from '@be-link/ecommerce-trade-service-node-sdk';
|
|
2
|
+
export declare namespace PandoraOrderQueryService {
|
|
3
|
+
namespace Request {
|
|
4
|
+
type list = POS.PosOrderQueryTypes.ByWeb.Request.IOrderList;
|
|
5
|
+
type orderDetail = POS.PosOrderQueryTypes.ByWeb.Request.IOrderDetail;
|
|
6
|
+
type getOrderAddress = POS.PosOrderQueryTypes.ByWeb.Request.IGetOrderAddress;
|
|
7
|
+
type reverseOrderList = ROS.RosOrderQueryByWebTypes.RosOrderQueryService.Request.IOrderList;
|
|
8
|
+
}
|
|
9
|
+
namespace Response {
|
|
10
|
+
type list = POS.PosOrderQueryTypes.ByWeb.Response.IList;
|
|
11
|
+
type orderDetail = POS.PosOrderQueryTypes.ByWeb.Response.IOrderDetail;
|
|
12
|
+
type getOrderAddress = POS.PosOrderQueryTypes.ByWeb.Response.IGetOrderAddress;
|
|
13
|
+
type reverseOrderList = DTO.ReverseQueryResult[];
|
|
14
|
+
}
|
|
15
|
+
interface OrderQueryController {
|
|
16
|
+
list(request: Request.list): any;
|
|
17
|
+
orderDetail(request: Request.orderDetail): any;
|
|
18
|
+
getOrderAddress(request: Request.getOrderAddress): any;
|
|
19
|
+
reverseOrderList(request: Request.reverseOrderList): any;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
@@ -55,7 +55,7 @@ export declare class PandoraProductService extends BaseService implements Servic
|
|
|
55
55
|
* @param request - 请求参数
|
|
56
56
|
* @returns Promise,解析为标准响应格式
|
|
57
57
|
*/
|
|
58
|
-
export(request: Service.Request.list): Promise<StandardResponse<
|
|
58
|
+
export(request: Service.Request.list): Promise<StandardResponse<void>>;
|
|
59
59
|
/**
|
|
60
60
|
* 获取商品信息(不含规格信息)
|
|
61
61
|
* @param request - 请求参数
|
|
@@ -74,16 +74,4 @@ export declare class PandoraProductService extends BaseService implements Servic
|
|
|
74
74
|
* @returns Promise,解析为标准响应格式
|
|
75
75
|
*/
|
|
76
76
|
productQrCode(request: Service.Request.productQrCode): Promise<StandardResponse<Service.Response.productQrCode>>;
|
|
77
|
-
/**
|
|
78
|
-
* 删除定时任务
|
|
79
|
-
* @param request - 请求参数
|
|
80
|
-
* @returns Promise,解析为标准响应格式
|
|
81
|
-
*/
|
|
82
|
-
deleteScheduledTask(request: Service.Request.deleteScheduledTask): Promise<StandardResponse<void>>;
|
|
83
|
-
/**
|
|
84
|
-
* 根据商品名获取商品id列表
|
|
85
|
-
* @param request - 请求参数
|
|
86
|
-
* @returns Promise,解析为标准响应格式
|
|
87
|
-
*/
|
|
88
|
-
searchProductByName(request: Service.Request.searchProductByName): Promise<StandardResponse<Service.Response.searchProductByName[]>>;
|
|
89
77
|
}
|
|
@@ -97,20 +97,4 @@ export class PandoraProductService extends BaseService {
|
|
|
97
97
|
productQrCode(request) {
|
|
98
98
|
return this.request(this.productQrCode, request);
|
|
99
99
|
}
|
|
100
|
-
/**
|
|
101
|
-
* 删除定时任务
|
|
102
|
-
* @param request - 请求参数
|
|
103
|
-
* @returns Promise,解析为标准响应格式
|
|
104
|
-
*/
|
|
105
|
-
deleteScheduledTask(request) {
|
|
106
|
-
return this.request(this.deleteScheduledTask, request);
|
|
107
|
-
}
|
|
108
|
-
/**
|
|
109
|
-
* 根据商品名获取商品id列表
|
|
110
|
-
* @param request - 请求参数
|
|
111
|
-
* @returns Promise,解析为标准响应格式
|
|
112
|
-
*/
|
|
113
|
-
searchProductByName(request) {
|
|
114
|
-
return this.request(this.searchProductByName, request);
|
|
115
|
-
}
|
|
116
100
|
}
|
|
@@ -1,377 +1,199 @@
|
|
|
1
1
|
import { StandardResponse } from '../../../../types';
|
|
2
2
|
export declare namespace PandoraProductService {
|
|
3
|
-
/** 商品明细项 */
|
|
4
|
-
interface ProductDetailItem {
|
|
5
|
-
商品ID: string;
|
|
6
|
-
商品名称: string;
|
|
7
|
-
一级类目: string;
|
|
8
|
-
二级类目: string;
|
|
9
|
-
三级类目: string;
|
|
10
|
-
商品分类: string;
|
|
11
|
-
储存方式: string;
|
|
12
|
-
取货方式: string;
|
|
13
|
-
配送方式: string;
|
|
14
|
-
供应商: string;
|
|
15
|
-
产品经理: string;
|
|
16
|
-
直播分组: string;
|
|
17
|
-
上下架状态: string;
|
|
18
|
-
起售数量: number;
|
|
19
|
-
限购数量: number | string;
|
|
20
|
-
商品类型: string;
|
|
21
|
-
售卖类型: string;
|
|
22
|
-
规格明细: string;
|
|
23
|
-
规格编码: string;
|
|
24
|
-
库存: number;
|
|
25
|
-
划线价: number;
|
|
26
|
-
售价: number;
|
|
27
|
-
采购价: number;
|
|
28
|
-
}
|
|
29
3
|
/**
|
|
30
4
|
* 核销期限接口
|
|
31
5
|
*/
|
|
32
6
|
interface VerifyPeriod {
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
/** 付款后天数 */
|
|
38
|
-
payAfterDay?: number;
|
|
39
|
-
/** 类型 1: 时间范围 2: 付款后天数 */
|
|
40
|
-
type?: number;
|
|
7
|
+
startDate: number;
|
|
8
|
+
endDate: number;
|
|
9
|
+
payAfterDay: number;
|
|
10
|
+
type: number;
|
|
41
11
|
}
|
|
42
12
|
/**
|
|
43
13
|
* 属性接口
|
|
44
14
|
*/
|
|
45
15
|
interface Attr {
|
|
46
|
-
/** 属性名称 */
|
|
47
16
|
attrName: string;
|
|
48
|
-
/** 属性值 */
|
|
49
17
|
attrValue: string;
|
|
50
18
|
}
|
|
51
19
|
/**
|
|
52
20
|
* 绑定的SKU接口
|
|
53
21
|
*/
|
|
54
22
|
interface BindSku {
|
|
55
|
-
/** 商品ID */
|
|
56
23
|
productId: string;
|
|
57
|
-
/** 绑定的子SKUID */
|
|
58
24
|
skuId: string;
|
|
59
|
-
/** 数量 */
|
|
60
25
|
quantity: number;
|
|
61
26
|
}
|
|
62
27
|
/**
|
|
63
28
|
* 定时任务接口
|
|
64
29
|
*/
|
|
65
30
|
interface ScheduledTask {
|
|
66
|
-
/** 任务ID */
|
|
67
|
-
id?: string;
|
|
68
|
-
/** 定时任务时间戳 */
|
|
69
31
|
scheduledTime: number;
|
|
70
|
-
/** 上下状态 */
|
|
71
32
|
status: string;
|
|
72
33
|
}
|
|
73
34
|
/**
|
|
74
35
|
* SKU项接口
|
|
75
36
|
*/
|
|
76
37
|
interface SkuItem {
|
|
77
|
-
/** SKU ID(编辑/更新时传入) */
|
|
78
38
|
skuId?: string;
|
|
79
|
-
/** 属性列表 */
|
|
80
39
|
attrs: Attr[];
|
|
81
|
-
/** 价格(分) */
|
|
82
40
|
price: number;
|
|
83
|
-
/** 划线价(分) */
|
|
84
41
|
strikethroughPrice: number;
|
|
85
|
-
/** 采购价(分) */
|
|
86
42
|
purchasePrice: number;
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
multiSkuCodes?: string[];
|
|
91
|
-
/** 绑定的SKU列表 */
|
|
92
|
-
bindSkus?: BindSku[];
|
|
93
|
-
/** 库存 */
|
|
43
|
+
skuCode: string;
|
|
44
|
+
multiSkuCodes: string[];
|
|
45
|
+
bindSkus: BindSku[];
|
|
94
46
|
stock: number;
|
|
95
|
-
/** 是否展示绑定子商品 1展示,0不展示 */
|
|
96
|
-
showBindSkus?: number;
|
|
97
47
|
}
|
|
98
48
|
/**
|
|
99
49
|
* 产品信息接口
|
|
100
50
|
*/
|
|
101
51
|
interface ProductInfo {
|
|
102
|
-
/** 商品ID(编辑/更新时传入) */
|
|
103
52
|
productId?: string;
|
|
104
|
-
/** 产品类型 */
|
|
105
53
|
productType: string;
|
|
106
|
-
/** 是否组合商品 */
|
|
107
54
|
isCombo: number;
|
|
108
|
-
/** 商品名称 */
|
|
109
55
|
productName: string;
|
|
110
|
-
/** 主图URL */
|
|
111
56
|
mainImg: string;
|
|
112
|
-
/** 图片列表 */
|
|
113
57
|
imgList: string[];
|
|
114
|
-
/** 商品描述 */
|
|
115
58
|
productDesc?: string;
|
|
116
|
-
/** 一级分类ID */
|
|
117
59
|
categoryId: string;
|
|
118
|
-
/** 二级分类ID */
|
|
119
60
|
twoCategoryId: string;
|
|
120
|
-
/** 三级分类ID */
|
|
121
61
|
threeCategoryId: string;
|
|
122
|
-
/** 提货方式 */
|
|
123
62
|
pickType: string;
|
|
124
|
-
/** 发货方式 */
|
|
125
63
|
dispatchType: string;
|
|
126
|
-
/** 存储方式 */
|
|
127
64
|
storageMethod: string;
|
|
128
|
-
/** 商品分类 */
|
|
129
65
|
classification: string;
|
|
130
|
-
|
|
131
|
-
stockUnit?: string;
|
|
132
|
-
/** 产品经理ID */
|
|
66
|
+
stockUnit: string;
|
|
133
67
|
productManagerId?: string;
|
|
134
|
-
/** 供应商ID */
|
|
135
68
|
supplierId?: string;
|
|
136
|
-
/** 直播分组ID */
|
|
137
69
|
liveGroupId?: string;
|
|
138
|
-
/** 上下架状态 */
|
|
139
70
|
status?: string;
|
|
140
|
-
|
|
71
|
+
scheduledTasks?: ScheduledTask[];
|
|
141
72
|
needVerify?: number;
|
|
142
|
-
/** 核销期限 */
|
|
143
73
|
verifyPeriod?: VerifyPeriod;
|
|
144
|
-
/** 起售数量 */
|
|
145
74
|
miniSaleQuantity?: number;
|
|
146
|
-
/** 限购 */
|
|
147
75
|
purchaseLimit?: number;
|
|
148
|
-
/** 运费模板版本类型 */
|
|
149
76
|
freightType?: string;
|
|
150
77
|
}
|
|
151
78
|
interface ProductData {
|
|
152
|
-
/** 产品信息 */
|
|
153
79
|
productInfo: ProductInfo;
|
|
154
|
-
/** SKU列表 */
|
|
155
80
|
skuList: SkuItem[];
|
|
81
|
+
creatorId: string;
|
|
156
82
|
}
|
|
157
83
|
namespace Request {
|
|
158
84
|
interface detail {
|
|
159
|
-
/** 商品Id */
|
|
160
85
|
productId: string;
|
|
161
86
|
}
|
|
162
87
|
interface list {
|
|
163
|
-
/** 0 开始 */
|
|
164
88
|
pageIndex: number;
|
|
165
|
-
/** 每页数量 */
|
|
166
89
|
pageSize: number;
|
|
167
|
-
/** 商品Id */
|
|
168
90
|
productIds?: string[];
|
|
169
|
-
/** 商品名称 */
|
|
170
91
|
productNames?: string[];
|
|
171
|
-
/** 商品分类 */
|
|
172
92
|
classifications?: string[];
|
|
173
|
-
/** 存储方式 */
|
|
174
93
|
storageMethods?: string[];
|
|
175
|
-
/** 配货方式 */
|
|
176
94
|
dispatchTypes?: string[];
|
|
177
|
-
/** 供应商Id */
|
|
178
95
|
supplierIds?: string[];
|
|
179
|
-
/** 直播分组ID */
|
|
180
96
|
liveGroupIds?: string[];
|
|
181
|
-
/** 产品经理ID */
|
|
182
97
|
productManagerIds?: string[];
|
|
183
|
-
/** 商品类型 */
|
|
184
98
|
productType?: string;
|
|
185
|
-
/** 上下架状态 */
|
|
186
99
|
status?: string;
|
|
187
|
-
/** 是否套餐 */
|
|
188
100
|
isCombo?: number;
|
|
189
|
-
/** 69码列表 */
|
|
190
101
|
skuCodes?: string[];
|
|
191
102
|
}
|
|
192
103
|
interface batchUpdate {
|
|
193
|
-
/** 商品Id列表 */
|
|
194
104
|
productIds: string[];
|
|
195
|
-
/** 上下架状态 */
|
|
196
105
|
status?: string;
|
|
197
|
-
/** 定时上下架任务 */
|
|
198
106
|
scheduledTasks?: ScheduledTask[];
|
|
199
|
-
/** 商品分类 */
|
|
200
107
|
classification?: string;
|
|
201
|
-
/** 存储方式 */
|
|
202
108
|
storageMethod?: string;
|
|
203
|
-
/** 配货方式 */
|
|
204
109
|
dispatchType?: string;
|
|
205
|
-
/** 直播分组ID */
|
|
206
110
|
liveGroupId?: string;
|
|
207
|
-
/** 是否删除 */
|
|
208
111
|
isDelete?: boolean;
|
|
209
112
|
}
|
|
210
113
|
interface queryScheduledTask {
|
|
211
|
-
/** 商品Id */
|
|
212
114
|
productId: string;
|
|
213
115
|
}
|
|
214
116
|
interface checkSkuCode {
|
|
215
|
-
/** 商品Id */
|
|
216
117
|
productId?: string;
|
|
217
|
-
/** SKU ID(更新已有SKU时传入,排除自身) */
|
|
218
118
|
skuId?: string;
|
|
219
|
-
/** SKU编码 */
|
|
220
119
|
skuCode: string;
|
|
221
120
|
}
|
|
222
121
|
interface queryProductList {
|
|
223
|
-
/** 0 开始 */
|
|
224
122
|
pageIndex: number;
|
|
225
|
-
/** 页码数量 */
|
|
226
123
|
pageSize: number;
|
|
227
|
-
/** 商品Id列表 */
|
|
228
124
|
productIds?: string[];
|
|
229
|
-
/** 商品名称列表 */
|
|
230
125
|
productNames?: string[];
|
|
231
|
-
/** 69码列表 */
|
|
232
126
|
skuCodes?: string[];
|
|
233
|
-
/** 是否套餐 */
|
|
234
127
|
isCombo?: number;
|
|
235
|
-
/** 提货方式 */
|
|
236
|
-
pickTypes?: string[];
|
|
237
|
-
/** 配货方式 */
|
|
238
|
-
dispatchTypes?: string[];
|
|
239
|
-
/** 存储方式 */
|
|
240
|
-
storageMethods?: string[];
|
|
241
|
-
/** 商品分类 */
|
|
242
|
-
classifications?: string[];
|
|
243
|
-
/** 上下架状态 */
|
|
244
|
-
status?: string;
|
|
245
128
|
}
|
|
246
129
|
interface productQrCode {
|
|
247
|
-
/** 路径 */
|
|
248
130
|
path: string;
|
|
249
131
|
}
|
|
250
|
-
interface deleteScheduledTask {
|
|
251
|
-
/** 任务ID */
|
|
252
|
-
taskId: string;
|
|
253
|
-
}
|
|
254
|
-
interface searchProductByName {
|
|
255
|
-
/** 商品名称 */
|
|
256
|
-
productName: string;
|
|
257
|
-
}
|
|
258
132
|
}
|
|
259
133
|
namespace Response {
|
|
260
134
|
interface create {
|
|
261
|
-
/** 商品Id */
|
|
262
135
|
productId: string;
|
|
263
136
|
}
|
|
264
137
|
interface queryScheduledTask {
|
|
265
|
-
/** 任务ID */
|
|
266
|
-
id: string;
|
|
267
|
-
/** 定时任务时间戳 */
|
|
268
138
|
scheduledTime: number;
|
|
269
|
-
/** 任务状态 */
|
|
270
139
|
status: string;
|
|
271
|
-
/** 操作类型 上下架 */
|
|
272
140
|
operationType: string;
|
|
273
141
|
}
|
|
274
142
|
interface list {
|
|
275
143
|
total: number;
|
|
276
144
|
list: {
|
|
277
|
-
/** 商品ID */
|
|
278
145
|
productId: string;
|
|
279
|
-
/** 商品名称 */
|
|
280
146
|
productName: string;
|
|
281
|
-
/** 商品图片 */
|
|
282
147
|
productImage: string;
|
|
283
|
-
/** 分类名称 */
|
|
284
148
|
cateName: string;
|
|
285
|
-
/** 商品分类 */
|
|
286
149
|
classification: string;
|
|
287
|
-
/** 存储方式 */
|
|
288
150
|
storageMethod: string;
|
|
289
|
-
/** 配货方式 */
|
|
290
151
|
dispatchType: string;
|
|
291
|
-
/** 销售数量 */
|
|
292
152
|
salesQuantity: number;
|
|
293
|
-
/** 退货数量 */
|
|
294
153
|
refundQuantity: number;
|
|
295
|
-
/** 价格 */
|
|
296
154
|
price: number;
|
|
297
|
-
/** 库存 */
|
|
298
155
|
stock: number;
|
|
299
|
-
/** 上下架状态 */
|
|
300
156
|
status: string;
|
|
301
|
-
/** 创建时间 */
|
|
302
157
|
createdAt: number;
|
|
303
158
|
}[];
|
|
304
159
|
}
|
|
305
160
|
interface checkSkuCode {
|
|
306
|
-
/** 是否可用 */
|
|
307
161
|
enable: boolean;
|
|
308
162
|
}
|
|
309
|
-
interface productDetail {
|
|
310
|
-
data: ProductDetailItem[];
|
|
311
|
-
headerMap: string[];
|
|
312
|
-
}
|
|
313
163
|
interface queryProductList {
|
|
314
164
|
total: number;
|
|
315
165
|
list: {
|
|
316
|
-
/** 商品ID */
|
|
317
166
|
productId: string;
|
|
318
|
-
/** 商品名称 */
|
|
319
167
|
productName: string;
|
|
320
|
-
/** 商品图片 */
|
|
321
168
|
productImage: string;
|
|
322
|
-
/** 商品分类 */
|
|
323
169
|
classification: string;
|
|
324
|
-
/** 存储方式 */
|
|
325
170
|
storageMethod: string;
|
|
326
|
-
/** 配货方式 */
|
|
327
171
|
dispatchType: string;
|
|
328
|
-
/** 价格 */
|
|
329
172
|
price: number;
|
|
330
|
-
/** 库存 */
|
|
331
173
|
stock: number;
|
|
332
|
-
/** 上下架状态 */
|
|
333
174
|
status: string;
|
|
334
175
|
}[];
|
|
335
176
|
}
|
|
336
177
|
interface queryProductSkuList {
|
|
337
178
|
total: number;
|
|
338
179
|
list: {
|
|
339
|
-
/** 商品ID */
|
|
340
180
|
productId: string;
|
|
341
|
-
/** 商品名称 */
|
|
342
181
|
productName: string;
|
|
343
|
-
/** 商品图片 */
|
|
344
182
|
productImage: string;
|
|
345
|
-
/** 商品分类 */
|
|
346
183
|
classification: string;
|
|
347
|
-
/** 存储方式 */
|
|
348
184
|
storageMethod: string;
|
|
349
|
-
/** 配货方式 */
|
|
350
185
|
dispatchType: string;
|
|
351
|
-
/** 价格 */
|
|
352
186
|
price: number;
|
|
353
|
-
/** 库存 */
|
|
354
187
|
stock: number;
|
|
355
|
-
/** 上下架状态 */
|
|
356
188
|
status: string;
|
|
357
|
-
/** SKU ID */
|
|
358
189
|
skuId: string;
|
|
359
|
-
/** 属性列表 */
|
|
360
190
|
attrs: Attr[];
|
|
361
|
-
/** SKU编码 */
|
|
362
191
|
skuCode: string;
|
|
363
192
|
}[];
|
|
364
193
|
}
|
|
365
194
|
interface productQrCode {
|
|
366
|
-
/** 二维码URL */
|
|
367
195
|
qrCodeUrl: string;
|
|
368
196
|
}
|
|
369
|
-
interface searchProductByName {
|
|
370
|
-
/** 商品名称 */
|
|
371
|
-
productName: string;
|
|
372
|
-
/** 商品ID */
|
|
373
|
-
productId: string;
|
|
374
|
-
}
|
|
375
197
|
}
|
|
376
198
|
/**
|
|
377
199
|
* ProductLive Controller 接口定义
|
|
@@ -408,7 +230,7 @@ export declare namespace PandoraProductService {
|
|
|
408
230
|
/**
|
|
409
231
|
* 商品导出
|
|
410
232
|
*/
|
|
411
|
-
export(request: PandoraProductService.Request.list): Promise<StandardResponse<
|
|
233
|
+
export(request: PandoraProductService.Request.list): Promise<StandardResponse<void>>;
|
|
412
234
|
/**
|
|
413
235
|
* 获取商品信息(不含规格信息)
|
|
414
236
|
*/
|
|
@@ -421,13 +243,5 @@ export declare namespace PandoraProductService {
|
|
|
421
243
|
* 商品二维码
|
|
422
244
|
*/
|
|
423
245
|
productQrCode(request: PandoraProductService.Request.productQrCode): Promise<StandardResponse<PandoraProductService.Response.productQrCode>>;
|
|
424
|
-
/**
|
|
425
|
-
* 删除定时任务
|
|
426
|
-
*/
|
|
427
|
-
deleteScheduledTask(request: PandoraProductService.Request.deleteScheduledTask): Promise<StandardResponse<void>>;
|
|
428
|
-
/**
|
|
429
|
-
* 根据商品名获取商品id列表
|
|
430
|
-
*/
|
|
431
|
-
searchProductByName(request: PandoraProductService.Request.searchProductByName): Promise<StandardResponse<PandoraProductService.Response.searchProductByName[]>>;
|
|
432
246
|
}
|
|
433
247
|
}
|
|
@@ -13,7 +13,7 @@ export declare class PandoraProductExpService extends BaseService implements Ser
|
|
|
13
13
|
* @param request - 请求参数
|
|
14
14
|
* @returns Promise,解析为标准响应格式
|
|
15
15
|
*/
|
|
16
|
-
getSupplierList(
|
|
16
|
+
getSupplierList(): Promise<StandardResponse<Service.Response.getSupplierList[]>>;
|
|
17
17
|
/**
|
|
18
18
|
* 新增供应商
|
|
19
19
|
* @param request - 请求参数
|
|
@@ -25,7 +25,7 @@ export declare class PandoraProductExpService extends BaseService implements Ser
|
|
|
25
25
|
* @param request - 请求参数
|
|
26
26
|
* @returns Promise,解析为标准响应格式
|
|
27
27
|
*/
|
|
28
|
-
getLiveGroupList(
|
|
28
|
+
getLiveGroupList(): Promise<StandardResponse<Service.Response.getLiveGroupList[]>>;
|
|
29
29
|
/**
|
|
30
30
|
* 新增直播分组
|
|
31
31
|
* @param request - 请求参数
|
|
@@ -33,27 +33,15 @@ export declare class PandoraProductExpService extends BaseService implements Ser
|
|
|
33
33
|
*/
|
|
34
34
|
addLiveGroup(request: Service.Request.addLiveGroup): Promise<StandardResponse<Service.Response.addLiveGroup>>;
|
|
35
35
|
/**
|
|
36
|
-
*
|
|
36
|
+
* 商品分类 树结构
|
|
37
37
|
* @param request - 请求参数
|
|
38
38
|
* @returns Promise,解析为标准响应格式
|
|
39
39
|
*/
|
|
40
|
-
|
|
40
|
+
productCategoryTree(): Promise<StandardResponse<Service.Response.ProductCategoryTree>>;
|
|
41
41
|
/**
|
|
42
42
|
* 获取产品经理列表
|
|
43
43
|
* @param request - 请求参数
|
|
44
44
|
* @returns Promise,解析为标准响应格式
|
|
45
45
|
*/
|
|
46
|
-
getProductManagerList(): Promise<StandardResponse<Service.Response.getProductManagerList
|
|
47
|
-
/**
|
|
48
|
-
* 设置门店范围
|
|
49
|
-
* @param request - 请求参数
|
|
50
|
-
* @returns Promise,解析为标准响应格式
|
|
51
|
-
*/
|
|
52
|
-
setStoreScope(request: Service.Request.setStoreScope): Promise<StandardResponse<void>>;
|
|
53
|
-
/**
|
|
54
|
-
* 获取门店范围
|
|
55
|
-
* @param request - 请求参数
|
|
56
|
-
* @returns Promise,解析为标准响应格式
|
|
57
|
-
*/
|
|
58
|
-
queryStoreScope(request: Service.Request.queryStoreScope): Promise<StandardResponse<Service.Response.queryStoreScope>>;
|
|
46
|
+
getProductManagerList(): Promise<StandardResponse<Service.Response.getProductManagerList>>;
|
|
59
47
|
}
|
|
@@ -14,8 +14,8 @@ export class PandoraProductExpService extends BaseService {
|
|
|
14
14
|
* @param request - 请求参数
|
|
15
15
|
* @returns Promise,解析为标准响应格式
|
|
16
16
|
*/
|
|
17
|
-
getSupplierList(
|
|
18
|
-
return this.request(this.getSupplierList
|
|
17
|
+
getSupplierList() {
|
|
18
|
+
return this.request(this.getSupplierList);
|
|
19
19
|
}
|
|
20
20
|
/**
|
|
21
21
|
* 新增供应商
|
|
@@ -30,8 +30,8 @@ export class PandoraProductExpService extends BaseService {
|
|
|
30
30
|
* @param request - 请求参数
|
|
31
31
|
* @returns Promise,解析为标准响应格式
|
|
32
32
|
*/
|
|
33
|
-
getLiveGroupList(
|
|
34
|
-
return this.request(this.getLiveGroupList
|
|
33
|
+
getLiveGroupList() {
|
|
34
|
+
return this.request(this.getLiveGroupList);
|
|
35
35
|
}
|
|
36
36
|
/**
|
|
37
37
|
* 新增直播分组
|
|
@@ -42,12 +42,12 @@ export class PandoraProductExpService extends BaseService {
|
|
|
42
42
|
return this.request(this.addLiveGroup, request);
|
|
43
43
|
}
|
|
44
44
|
/**
|
|
45
|
-
*
|
|
45
|
+
* 商品分类 树结构
|
|
46
46
|
* @param request - 请求参数
|
|
47
47
|
* @returns Promise,解析为标准响应格式
|
|
48
48
|
*/
|
|
49
|
-
|
|
50
|
-
return this.request(this.
|
|
49
|
+
productCategoryTree() {
|
|
50
|
+
return this.request(this.productCategoryTree);
|
|
51
51
|
}
|
|
52
52
|
/**
|
|
53
53
|
* 获取产品经理列表
|
|
@@ -57,20 +57,4 @@ export class PandoraProductExpService extends BaseService {
|
|
|
57
57
|
getProductManagerList() {
|
|
58
58
|
return this.request(this.getProductManagerList);
|
|
59
59
|
}
|
|
60
|
-
/**
|
|
61
|
-
* 设置门店范围
|
|
62
|
-
* @param request - 请求参数
|
|
63
|
-
* @returns Promise,解析为标准响应格式
|
|
64
|
-
*/
|
|
65
|
-
setStoreScope(request) {
|
|
66
|
-
return this.request(this.setStoreScope, request);
|
|
67
|
-
}
|
|
68
|
-
/**
|
|
69
|
-
* 获取门店范围
|
|
70
|
-
* @param request - 请求参数
|
|
71
|
-
* @returns Promise,解析为标准响应格式
|
|
72
|
-
*/
|
|
73
|
-
queryStoreScope(request) {
|
|
74
|
-
return this.request(this.queryStoreScope, request);
|
|
75
|
-
}
|
|
76
60
|
}
|