@be-link/ecommerce-product-service-node-sdk 0.0.16 → 0.0.18
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/index.d.ts +2 -0
- package/index.js +3 -1
- package/modules/job/service.d.ts +8 -0
- package/modules/job/service.js +34 -0
- package/modules/job/types.d.ts +13 -0
- package/modules/job/types.js +2 -0
- package/modules/product/types.d.ts +206 -2
- package/modules/productExp/types.d.ts +31 -0
- package/modules/productLive/types.d.ts +10 -0
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -5,3 +5,5 @@ export { productExpService } from './modules/productExp/service';
|
|
|
5
5
|
export type { ProductExpService as ProductExpServiceTypes } from './modules/productExp/types';
|
|
6
6
|
export { productLiveService } from './modules/productLive/service';
|
|
7
7
|
export type { ProductLiveService as ProductLiveServiceTypes } from './modules/productLive/types';
|
|
8
|
+
export { jobService } from './modules/job/service';
|
|
9
|
+
export type { JobService as JobServiceTypes } from './modules/job/types';
|
package/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.productLiveService = exports.productExpService = exports.productService = exports.PRODUCT_SERVICE_ENUM = void 0;
|
|
3
|
+
exports.jobService = exports.productLiveService = exports.productExpService = exports.productService = exports.PRODUCT_SERVICE_ENUM = void 0;
|
|
4
4
|
var enum_1 = require("./enum");
|
|
5
5
|
Object.defineProperty(exports, "PRODUCT_SERVICE_ENUM", { enumerable: true, get: function () { return enum_1.ENUM; } });
|
|
6
6
|
var service_1 = require("./modules/product/service");
|
|
@@ -9,3 +9,5 @@ var service_2 = require("./modules/productExp/service");
|
|
|
9
9
|
Object.defineProperty(exports, "productExpService", { enumerable: true, get: function () { return service_2.productExpService; } });
|
|
10
10
|
var service_3 = require("./modules/productLive/service");
|
|
11
11
|
Object.defineProperty(exports, "productLiveService", { enumerable: true, get: function () { return service_3.productLiveService; } });
|
|
12
|
+
var service_4 = require("./modules/job/service");
|
|
13
|
+
Object.defineProperty(exports, "jobService", { enumerable: true, get: function () { return service_4.jobService; } });
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { JobService as Service } from './types';
|
|
2
|
+
import BaseService from '../BaseService';
|
|
3
|
+
declare class JobService extends BaseService implements Service.JobController {
|
|
4
|
+
protected prefixUrl: string;
|
|
5
|
+
handleScheduledTasks(): Promise<void>;
|
|
6
|
+
}
|
|
7
|
+
export declare const jobService: JobService;
|
|
8
|
+
export default jobService;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
9
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.jobService = void 0;
|
|
13
|
+
const tsoa_1 = require("tsoa");
|
|
14
|
+
const http_1 = require("../../utils/http");
|
|
15
|
+
const BaseService_1 = __importDefault(require("../BaseService"));
|
|
16
|
+
let JobService = class JobService extends BaseService_1.default {
|
|
17
|
+
constructor() {
|
|
18
|
+
super(...arguments);
|
|
19
|
+
this.prefixUrl = '/job';
|
|
20
|
+
}
|
|
21
|
+
handleScheduledTasks() {
|
|
22
|
+
return (0, http_1.callApi)(this.getApiUrl(this.handleScheduledTasks));
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, tsoa_1.OperationId)('处理定时任务'),
|
|
27
|
+
(0, tsoa_1.Post)('handle-scheduled-tasks')
|
|
28
|
+
], JobService.prototype, "handleScheduledTasks", null);
|
|
29
|
+
JobService = __decorate([
|
|
30
|
+
(0, tsoa_1.Route)('job'),
|
|
31
|
+
(0, tsoa_1.Tags)('Job')
|
|
32
|
+
], JobService);
|
|
33
|
+
exports.jobService = new JobService();
|
|
34
|
+
exports.default = exports.jobService;
|
|
@@ -1,297 +1,501 @@
|
|
|
1
1
|
export declare namespace ProductService {
|
|
2
2
|
interface SkuField {
|
|
3
|
+
/** 价格(分) */
|
|
3
4
|
price: number;
|
|
5
|
+
/** 库存 */
|
|
4
6
|
stock: number;
|
|
7
|
+
/** SKU编码 */
|
|
5
8
|
skuCode: string;
|
|
9
|
+
/** 属性列表 */
|
|
6
10
|
attrs: Attr[];
|
|
11
|
+
/** 绑定的SKU列表 */
|
|
7
12
|
bindSkus: BindSku[];
|
|
13
|
+
/** 多SKU编码 */
|
|
8
14
|
multiSkuCodes: string[];
|
|
9
15
|
}
|
|
10
16
|
/**
|
|
11
17
|
* 核销期限接口
|
|
12
18
|
*/
|
|
13
19
|
interface VerifyPeriod {
|
|
20
|
+
/** 开始时间戳 */
|
|
14
21
|
startDate: number;
|
|
22
|
+
/** 结束时间戳 */
|
|
15
23
|
endDate: number;
|
|
24
|
+
/** 付款后天数 */
|
|
16
25
|
payAfterDay: number;
|
|
26
|
+
/** 类型 1: 时间范围 2: 付款后天数 */
|
|
17
27
|
type: number;
|
|
18
28
|
}
|
|
19
29
|
/**
|
|
20
30
|
* 属性接口
|
|
21
31
|
*/
|
|
22
32
|
interface Attr {
|
|
33
|
+
/** 属性名称 */
|
|
23
34
|
attrName: string;
|
|
35
|
+
/** 属性值 */
|
|
24
36
|
attrValue: string;
|
|
25
37
|
}
|
|
26
38
|
/**
|
|
27
39
|
* 绑定的SKU接口
|
|
28
40
|
*/
|
|
29
41
|
interface BindSku {
|
|
42
|
+
/** 商品ID */
|
|
30
43
|
productId: string;
|
|
44
|
+
/** 绑定的子SKUID */
|
|
31
45
|
skuId: string;
|
|
46
|
+
/** 数量 */
|
|
32
47
|
quantity: number;
|
|
33
48
|
}
|
|
34
49
|
/**
|
|
35
50
|
* 定时任务接口
|
|
36
51
|
*/
|
|
37
52
|
interface ScheduledTask {
|
|
53
|
+
/** 任务ID */
|
|
38
54
|
id?: string;
|
|
55
|
+
/** 定时任务时间戳 */
|
|
39
56
|
scheduledTime: number;
|
|
57
|
+
/** 上下状态 */
|
|
40
58
|
status: string;
|
|
41
59
|
}
|
|
42
60
|
/**
|
|
43
61
|
* SKU项接口
|
|
44
62
|
*/
|
|
45
63
|
interface SkuItem {
|
|
64
|
+
/** SKU ID(编辑/更新时传入) */
|
|
46
65
|
skuId?: string;
|
|
66
|
+
/** 属性列表 */
|
|
47
67
|
attrs: Attr[];
|
|
68
|
+
/** 价格(分) */
|
|
48
69
|
price: number;
|
|
70
|
+
/** 划线价(分) */
|
|
49
71
|
strikethroughPrice: number;
|
|
72
|
+
/** 采购价(分) */
|
|
50
73
|
purchasePrice: number;
|
|
74
|
+
/** SKU编码 */
|
|
51
75
|
skuCode: string;
|
|
76
|
+
/** 多SKU编码 */
|
|
52
77
|
multiSkuCodes: string[];
|
|
78
|
+
/** 绑定的SKU列表 */
|
|
53
79
|
bindSkus: BindSku[];
|
|
80
|
+
/** 库存 */
|
|
54
81
|
stock: number;
|
|
82
|
+
/** 是否展示绑定子商品 1展示,0不展示 */
|
|
55
83
|
showBindSkus: number;
|
|
56
84
|
}
|
|
57
85
|
/**
|
|
58
86
|
* 产品信息接口
|
|
59
87
|
*/
|
|
60
88
|
interface ProductInfo {
|
|
89
|
+
/** 商品ID(编辑/更新时传入) */
|
|
61
90
|
productId?: string;
|
|
91
|
+
/** 产品类型 */
|
|
62
92
|
productType: string;
|
|
93
|
+
/** 是否组合商品 */
|
|
63
94
|
isCombo: number;
|
|
95
|
+
/** 商品名称 */
|
|
64
96
|
productName: string;
|
|
97
|
+
/** 主图URL */
|
|
65
98
|
mainImg: string;
|
|
99
|
+
/** 图片列表 */
|
|
66
100
|
imgList: string[];
|
|
101
|
+
/** 商品描述 */
|
|
67
102
|
productDesc?: string;
|
|
103
|
+
/** 一级分类ID */
|
|
68
104
|
categoryId: string;
|
|
105
|
+
/** 二级分类ID */
|
|
69
106
|
twoCategoryId: string;
|
|
107
|
+
/** 三级分类ID */
|
|
70
108
|
threeCategoryId: string;
|
|
109
|
+
/** 提货方式 */
|
|
71
110
|
pickType: string;
|
|
111
|
+
/** 发货方式 */
|
|
72
112
|
dispatchType: string;
|
|
113
|
+
/** 存储方式 */
|
|
73
114
|
storageMethod: string;
|
|
115
|
+
/** 商品分类 */
|
|
74
116
|
classification: string;
|
|
117
|
+
/** 库存单位 */
|
|
75
118
|
stockUnit: string;
|
|
119
|
+
/** 产品经理ID */
|
|
76
120
|
productManagerId?: string;
|
|
121
|
+
/** 供应商ID */
|
|
77
122
|
supplierId?: string;
|
|
123
|
+
/** 直播分组ID */
|
|
78
124
|
liveGroupId?: string;
|
|
125
|
+
/** 上下架状态 */
|
|
79
126
|
status?: string;
|
|
127
|
+
/** 是否需要核销 */
|
|
80
128
|
needVerify?: number;
|
|
129
|
+
/** 核销期限 */
|
|
81
130
|
verifyPeriod?: VerifyPeriod;
|
|
131
|
+
/** 起售数量 */
|
|
82
132
|
miniSaleQuantity?: number;
|
|
133
|
+
/** 限购 */
|
|
83
134
|
purchaseLimit?: number;
|
|
135
|
+
/** 运费模板版本类型 */
|
|
84
136
|
freightType?: string;
|
|
85
137
|
}
|
|
86
138
|
interface ProductData {
|
|
139
|
+
/** 产品信息 */
|
|
87
140
|
productInfo: ProductInfo;
|
|
141
|
+
/** SKU列表 */
|
|
88
142
|
skuList: SkuItem[];
|
|
89
143
|
}
|
|
90
144
|
namespace Request {
|
|
91
145
|
interface detail {
|
|
146
|
+
/** 商品Id */
|
|
92
147
|
productId: string;
|
|
93
148
|
}
|
|
94
149
|
interface list {
|
|
150
|
+
/** 0 开始 */
|
|
95
151
|
pageIndex: number;
|
|
152
|
+
/** 每页数量 */
|
|
96
153
|
pageSize: number;
|
|
154
|
+
/** 商品Id */
|
|
97
155
|
productIds?: string[];
|
|
156
|
+
/** 商品名称 */
|
|
98
157
|
productNames?: string[];
|
|
158
|
+
/** 商品分类 */
|
|
99
159
|
classifications?: string[];
|
|
160
|
+
/** 存储方式 */
|
|
100
161
|
storageMethods?: string[];
|
|
162
|
+
/** 配货方式 */
|
|
101
163
|
dispatchTypes?: string[];
|
|
164
|
+
/** 供应商Id */
|
|
102
165
|
supplierIds?: string[];
|
|
166
|
+
/** 直播分组ID */
|
|
103
167
|
liveGroupIds?: string[];
|
|
168
|
+
/** 产品经理ID */
|
|
104
169
|
productManagerIds?: string[];
|
|
170
|
+
/** 商品类型 */
|
|
105
171
|
productType?: string;
|
|
172
|
+
/** 上下架状态 */
|
|
106
173
|
status?: string;
|
|
174
|
+
/** 是否套餐 */
|
|
107
175
|
isCombo?: number;
|
|
176
|
+
/** 69码列表 */
|
|
108
177
|
skuCodes?: string[];
|
|
109
178
|
}
|
|
110
179
|
interface batchUpdate {
|
|
180
|
+
/** 商品Id列表 */
|
|
111
181
|
productIds: string[];
|
|
182
|
+
/** 上下架状态 */
|
|
112
183
|
status?: string;
|
|
184
|
+
/** 定时上下架任务 */
|
|
113
185
|
scheduledTasks?: ScheduledTask[];
|
|
186
|
+
/** 商品分类 */
|
|
114
187
|
classification?: string;
|
|
188
|
+
/** 存储方式 */
|
|
115
189
|
storageMethod?: string;
|
|
190
|
+
/** 配货方式 */
|
|
116
191
|
dispatchType?: string;
|
|
192
|
+
/** 直播分组ID */
|
|
117
193
|
liveGroupId?: string;
|
|
194
|
+
/** 是否删除 */
|
|
118
195
|
isDelete?: boolean;
|
|
119
196
|
}
|
|
120
197
|
interface queryScheduledTask {
|
|
198
|
+
/** 商品Id */
|
|
121
199
|
productId: string;
|
|
122
200
|
}
|
|
123
201
|
interface checkSkuCode {
|
|
202
|
+
/** 商品Id */
|
|
124
203
|
productId?: string;
|
|
204
|
+
/** SKU ID(更新已有SKU时传入,排除自身) */
|
|
125
205
|
skuId?: string;
|
|
206
|
+
/** SKU编码 */
|
|
126
207
|
skuCode: string;
|
|
127
208
|
}
|
|
128
209
|
interface queryProductList {
|
|
210
|
+
/** 0 开始 */
|
|
129
211
|
pageIndex: number;
|
|
212
|
+
/** 页码数量 */
|
|
130
213
|
pageSize: number;
|
|
214
|
+
/** 商品Id列表 */
|
|
131
215
|
productIds?: string[];
|
|
216
|
+
/** 商品名称列表 */
|
|
132
217
|
productNames?: string[];
|
|
218
|
+
/** 69码列表 */
|
|
133
219
|
skuCodes?: string[];
|
|
220
|
+
/** 是否套餐 */
|
|
134
221
|
isCombo?: number;
|
|
222
|
+
/** 提货方式 */
|
|
135
223
|
pickTypes?: string[];
|
|
224
|
+
/** 配货方式 */
|
|
136
225
|
dispatchTypes?: string[];
|
|
226
|
+
/** 存储方式 */
|
|
137
227
|
storageMethods?: string[];
|
|
228
|
+
/** 商品分类 */
|
|
138
229
|
classifications?: string[];
|
|
230
|
+
/** 上下架状态 */
|
|
139
231
|
status?: string;
|
|
140
232
|
}
|
|
141
233
|
interface querySkuBaseInfo {
|
|
234
|
+
/** skuId列表 */
|
|
142
235
|
skuIds?: string[];
|
|
236
|
+
/** productId列表 */
|
|
143
237
|
productIds?: string[];
|
|
238
|
+
/** 需要查询的SKU基础信息字段列表 */
|
|
144
239
|
fields: (keyof SkuField)[];
|
|
145
240
|
}
|
|
146
241
|
interface isSoldOut {
|
|
242
|
+
/** SKU ID */
|
|
147
243
|
skuId: string;
|
|
148
244
|
}
|
|
149
245
|
interface deleteScheduledTask {
|
|
246
|
+
/** 任务ID */
|
|
150
247
|
taskId: string;
|
|
151
248
|
}
|
|
152
249
|
interface getProductSkuInfo {
|
|
250
|
+
/** 商品Id */
|
|
153
251
|
productId: string;
|
|
154
|
-
|
|
155
|
-
|
|
252
|
+
/** SKU Id */
|
|
253
|
+
skuId: string;
|
|
156
254
|
}
|
|
157
255
|
}
|
|
158
256
|
namespace Response {
|
|
159
257
|
interface create {
|
|
258
|
+
/** 商品Id */
|
|
160
259
|
productId: string;
|
|
161
260
|
}
|
|
162
261
|
interface queryScheduledTask {
|
|
262
|
+
/** 任务ID */
|
|
163
263
|
id: string;
|
|
264
|
+
/** 定时任务时间戳 */
|
|
164
265
|
scheduledTime: number;
|
|
266
|
+
/** 任务状态 */
|
|
165
267
|
status: string;
|
|
268
|
+
/** 操作类型 上下架 */
|
|
166
269
|
operationType: string;
|
|
167
270
|
}
|
|
168
271
|
interface list {
|
|
169
272
|
total: number;
|
|
170
273
|
list: {
|
|
274
|
+
/** 商品ID */
|
|
171
275
|
productId: string;
|
|
276
|
+
/** 商品名称 */
|
|
172
277
|
productName: string;
|
|
278
|
+
/** 商品图片 */
|
|
173
279
|
productImage: string;
|
|
280
|
+
/** 分类名称 */
|
|
174
281
|
cateName: string;
|
|
282
|
+
/** 商品分类 */
|
|
175
283
|
classification: string;
|
|
284
|
+
/** 存储方式 */
|
|
176
285
|
storageMethod: string;
|
|
286
|
+
/** 配货方式 */
|
|
177
287
|
dispatchType: string;
|
|
288
|
+
/** 销售数量 */
|
|
178
289
|
salesQuantity: number;
|
|
290
|
+
/** 退货数量 */
|
|
179
291
|
refundQuantity: number;
|
|
292
|
+
/** 价格 */
|
|
180
293
|
price: number;
|
|
294
|
+
/** 库存 */
|
|
181
295
|
stock: number;
|
|
296
|
+
/** 上下架状态 */
|
|
182
297
|
status: string;
|
|
298
|
+
/** 创建时间 */
|
|
183
299
|
createdAt: number;
|
|
184
300
|
}[];
|
|
185
301
|
}
|
|
186
302
|
interface checkSkuCode {
|
|
303
|
+
/** 是否可用 */
|
|
187
304
|
enable: boolean;
|
|
188
305
|
}
|
|
189
306
|
interface queryProductList {
|
|
190
307
|
total: number;
|
|
191
308
|
list: {
|
|
309
|
+
/** 商品ID */
|
|
192
310
|
productId: string;
|
|
311
|
+
/** 商品名称 */
|
|
193
312
|
productName: string;
|
|
313
|
+
/** 商品图片 */
|
|
194
314
|
productImage: string;
|
|
315
|
+
/** 商品分类 */
|
|
195
316
|
classification: string;
|
|
317
|
+
/** 存储方式 */
|
|
196
318
|
storageMethod: string;
|
|
319
|
+
/** 配货方式 */
|
|
197
320
|
dispatchType: string;
|
|
321
|
+
/** 价格 */
|
|
198
322
|
price: number;
|
|
323
|
+
/** 库存 */
|
|
199
324
|
stock: number;
|
|
325
|
+
/** 上下架状态 */
|
|
200
326
|
status: string;
|
|
201
327
|
}[];
|
|
202
328
|
}
|
|
203
329
|
interface queryProductSkuList {
|
|
204
330
|
total: number;
|
|
205
331
|
list: {
|
|
332
|
+
/** 商品ID */
|
|
206
333
|
productId: string;
|
|
334
|
+
/** 商品名称 */
|
|
207
335
|
productName: string;
|
|
336
|
+
/** 商品图片 */
|
|
208
337
|
productImage: string;
|
|
338
|
+
/** 商品分类 */
|
|
209
339
|
classification: string;
|
|
340
|
+
/** 存储方式 */
|
|
210
341
|
storageMethod: string;
|
|
342
|
+
/** 配货方式 */
|
|
211
343
|
dispatchType: string;
|
|
344
|
+
/** 价格 */
|
|
212
345
|
price: number;
|
|
346
|
+
/** 库存 */
|
|
213
347
|
stock: number;
|
|
348
|
+
/** 上下架状态 */
|
|
214
349
|
status: string;
|
|
350
|
+
/** SKU ID */
|
|
215
351
|
skuId: string;
|
|
352
|
+
/** 属性列表 */
|
|
216
353
|
attrs: Attr[];
|
|
354
|
+
/** SKU编码 */
|
|
217
355
|
skuCode: string;
|
|
218
356
|
}[];
|
|
219
357
|
}
|
|
220
358
|
interface querySkuBaseInfo extends Partial<SkuField> {
|
|
359
|
+
/** 商品ID */
|
|
221
360
|
productId: string;
|
|
361
|
+
/** SKU ID */
|
|
222
362
|
skuId: string;
|
|
223
363
|
}
|
|
224
364
|
interface getProductDetail {
|
|
365
|
+
/** 商品信息 */
|
|
225
366
|
productInfo: {
|
|
367
|
+
/** 商品ID */
|
|
226
368
|
productId: string;
|
|
369
|
+
/** 产品类型 */
|
|
227
370
|
productType: string;
|
|
371
|
+
/** 商品名称 */
|
|
228
372
|
productName: string;
|
|
373
|
+
/** 是否组合商品 */
|
|
229
374
|
isCombo: number;
|
|
375
|
+
/** 主图URL */
|
|
230
376
|
mainImg: string;
|
|
377
|
+
/** 图片列表 */
|
|
231
378
|
imgList: string[];
|
|
379
|
+
/** 商品描述 */
|
|
232
380
|
productDesc: string;
|
|
381
|
+
/** 提货方式 */
|
|
233
382
|
pickType: string;
|
|
383
|
+
/** 发货方式 */
|
|
234
384
|
dispatchType: string;
|
|
385
|
+
/** 存储方式 */
|
|
235
386
|
storageMethod: string;
|
|
387
|
+
/** 商品分类 */
|
|
236
388
|
classification: string;
|
|
389
|
+
/** 库存单位 */
|
|
237
390
|
stockUnit: string;
|
|
391
|
+
/** 上下架状态 */
|
|
238
392
|
status: string;
|
|
393
|
+
/** 起售数量 */
|
|
239
394
|
miniSaleQuantity: number;
|
|
395
|
+
/** 限购 -1 表示不限购 */
|
|
240
396
|
purchaseLimit: number;
|
|
397
|
+
/** 运费JSON字符串 */
|
|
241
398
|
freightTemplate: string[] | null;
|
|
399
|
+
/** 门店可见范围 */
|
|
242
400
|
visibleStores: string[] | null;
|
|
401
|
+
/** 门店不可见范围和可见互斥 */
|
|
243
402
|
invisibleStores: string[] | null;
|
|
244
403
|
};
|
|
404
|
+
/** SKU列表 */
|
|
245
405
|
skuList: {
|
|
406
|
+
/** SKU ID */
|
|
246
407
|
skuId: string;
|
|
408
|
+
/** 属性列表 [颜色:白色; 尺寸:L] */
|
|
247
409
|
attrs: Attr[];
|
|
410
|
+
/** 价格(分) */
|
|
248
411
|
price: number;
|
|
412
|
+
/** 划线价(分) */
|
|
249
413
|
strikethroughPrice: number;
|
|
414
|
+
/** SKU编码 */
|
|
250
415
|
skuCode: string;
|
|
416
|
+
/** 库存 */
|
|
251
417
|
stock: number;
|
|
252
418
|
}[];
|
|
253
419
|
}
|
|
254
420
|
interface isSoldOut {
|
|
421
|
+
/** SKU ID */
|
|
255
422
|
skuId: string;
|
|
423
|
+
/** 是否售罄 */
|
|
256
424
|
soldOut: boolean;
|
|
257
425
|
}
|
|
258
426
|
interface getProductSkuInfo {
|
|
427
|
+
/** 商品信息 */
|
|
259
428
|
productInfo: {
|
|
429
|
+
/** 商品ID */
|
|
260
430
|
productId: string;
|
|
431
|
+
/** 产品类型 */
|
|
261
432
|
productType: string;
|
|
433
|
+
/** 商品名称 */
|
|
262
434
|
productName: string;
|
|
435
|
+
/** 是否组合商品 */
|
|
263
436
|
isCombo: number;
|
|
437
|
+
/** 主图URL */
|
|
264
438
|
mainImg: string;
|
|
439
|
+
/** 图片列表 */
|
|
265
440
|
imgList: string[];
|
|
441
|
+
/** 商品描述 */
|
|
266
442
|
productDesc: string;
|
|
443
|
+
/** 一级分类ID */
|
|
267
444
|
categoryId: string;
|
|
445
|
+
/** 二级分类ID */
|
|
268
446
|
twoCategoryId: string;
|
|
447
|
+
/** 三级分类ID */
|
|
269
448
|
threeCategoryId: string;
|
|
449
|
+
/** 提货方式 */
|
|
270
450
|
pickType: string;
|
|
451
|
+
/** 发货方式 */
|
|
271
452
|
dispatchType: string;
|
|
453
|
+
/** 存储方式 */
|
|
272
454
|
storageMethod: string;
|
|
455
|
+
/** 商品分类 */
|
|
273
456
|
classification: string;
|
|
457
|
+
/** 库存单位 */
|
|
274
458
|
stockUnit: string;
|
|
459
|
+
/** 上下架状态 */
|
|
275
460
|
status: string;
|
|
461
|
+
/** 是否需要核销 */
|
|
276
462
|
needVerify: number;
|
|
463
|
+
/** 核销期限 */
|
|
277
464
|
verifyPeriod: VerifyPeriod | null;
|
|
465
|
+
/** 起售数量 */
|
|
278
466
|
miniSaleQuantity: number;
|
|
467
|
+
/** 限购 -1 表示不限购 */
|
|
279
468
|
purchaseLimit: number;
|
|
469
|
+
/** 运费JSON字符串 */
|
|
280
470
|
freightTemplate: string[] | null;
|
|
471
|
+
/** 门店可见范围 */
|
|
281
472
|
visibleStores: string[] | null;
|
|
473
|
+
/** 门店不可见范围和可见互斥 */
|
|
282
474
|
invisibleStores: string[] | null;
|
|
283
475
|
};
|
|
476
|
+
/** SKU列表 */
|
|
284
477
|
skuList: {
|
|
478
|
+
/** SKU ID */
|
|
285
479
|
skuId: string;
|
|
480
|
+
/** 属性列表 [颜色:白色; 尺寸:L] */
|
|
286
481
|
attrs: Attr[];
|
|
482
|
+
/** 价格(分) */
|
|
287
483
|
price: number;
|
|
484
|
+
/** 划线价(分) */
|
|
288
485
|
strikethroughPrice: number;
|
|
486
|
+
/** 采购价(分) */
|
|
289
487
|
purchasePrice: number;
|
|
488
|
+
/** SKU编码 */
|
|
290
489
|
skuCode: string;
|
|
490
|
+
/** 多SKU编码 */
|
|
291
491
|
multiSkuCodes: string[];
|
|
492
|
+
/** 绑定的SKU列表 */
|
|
292
493
|
bindSkus: BindSku[];
|
|
494
|
+
/** 是否展示绑定子商品 1展示,0不展示 */
|
|
293
495
|
showBindSkus: number;
|
|
496
|
+
/** 是否有绑定子商品 1有,0无 */
|
|
294
497
|
hasBindSkus: number;
|
|
498
|
+
/** 是否有多码 1有,0无 */
|
|
295
499
|
hasMultiSkuCodes: number;
|
|
296
500
|
}[];
|
|
297
501
|
}
|
|
@@ -1,73 +1,104 @@
|
|
|
1
1
|
export declare namespace ProductExpService {
|
|
2
2
|
interface ProductCategory {
|
|
3
|
+
/** 分类ID */
|
|
3
4
|
id: string;
|
|
5
|
+
/** 父级ID */
|
|
4
6
|
parentId: string;
|
|
7
|
+
/** 层级 */
|
|
5
8
|
level: number;
|
|
9
|
+
/** 分类名称 */
|
|
6
10
|
categoryName: string;
|
|
7
11
|
}
|
|
8
12
|
namespace Request {
|
|
9
13
|
interface getSupplierList {
|
|
14
|
+
/** 页码,0开始 */
|
|
10
15
|
pageIndex: number;
|
|
16
|
+
/** 每页数量 */
|
|
11
17
|
pageSize: number;
|
|
18
|
+
/** 供应商名称,模糊匹配 */
|
|
12
19
|
supplierName?: string;
|
|
13
20
|
}
|
|
14
21
|
interface addSupplier {
|
|
22
|
+
/** 供应商名称 */
|
|
15
23
|
supplierName: string;
|
|
16
24
|
}
|
|
17
25
|
interface getLiveGroupList {
|
|
26
|
+
/** 页码,0开始 */
|
|
18
27
|
pageIndex: number;
|
|
28
|
+
/** 每页数量 */
|
|
19
29
|
pageSize: number;
|
|
30
|
+
/** 直播分组名称,模糊匹配 */
|
|
20
31
|
liveGroupName?: string;
|
|
21
32
|
}
|
|
22
33
|
interface addLiveGroup {
|
|
34
|
+
/** 直播分组名称 */
|
|
23
35
|
liveGroupName: string;
|
|
24
36
|
}
|
|
25
37
|
interface productCategoryList {
|
|
38
|
+
/** 分类层级 */
|
|
26
39
|
level: number;
|
|
40
|
+
/** 父分类ID */
|
|
27
41
|
parentId?: string;
|
|
28
42
|
}
|
|
29
43
|
interface setStoreScope {
|
|
44
|
+
/** 商品Id */
|
|
30
45
|
productId: string;
|
|
46
|
+
/** 类型 VISIBLE | INVISIBLE */
|
|
31
47
|
type: string;
|
|
48
|
+
/** 门店Id列表 */
|
|
32
49
|
storeIds: string[];
|
|
33
50
|
}
|
|
34
51
|
interface queryStoreScope {
|
|
52
|
+
/** 商品Id */
|
|
35
53
|
productId: string;
|
|
36
54
|
}
|
|
37
55
|
}
|
|
38
56
|
namespace Response {
|
|
39
57
|
interface addSupplier {
|
|
58
|
+
/** 供应商Id */
|
|
40
59
|
supplierId: string;
|
|
41
60
|
}
|
|
42
61
|
interface getSupplierList {
|
|
43
62
|
total: number;
|
|
44
63
|
list: {
|
|
64
|
+
/** 供应商Id */
|
|
45
65
|
supplierId: string;
|
|
66
|
+
/** 供应商名称 */
|
|
46
67
|
supplierName: string;
|
|
47
68
|
}[];
|
|
48
69
|
}
|
|
49
70
|
interface addLiveGroup {
|
|
71
|
+
/** 直播分组Id */
|
|
50
72
|
liveGroupId: string;
|
|
51
73
|
}
|
|
52
74
|
interface getLiveGroupList {
|
|
53
75
|
total: number;
|
|
54
76
|
list: {
|
|
77
|
+
/** 直播分组Id */
|
|
55
78
|
liveGroupId: string;
|
|
79
|
+
/** 直播分组名称 */
|
|
56
80
|
liveGroupName: string;
|
|
57
81
|
}[];
|
|
58
82
|
}
|
|
59
83
|
interface list {
|
|
60
84
|
total: number;
|
|
61
85
|
list: {
|
|
86
|
+
/** 商品ID */
|
|
62
87
|
productId: string;
|
|
88
|
+
/** 商品名称 */
|
|
63
89
|
productName: string;
|
|
90
|
+
/** 商品图片 */
|
|
64
91
|
productImage: string;
|
|
92
|
+
/** 价格 */
|
|
65
93
|
price: number;
|
|
94
|
+
/** 库存 */
|
|
66
95
|
stock: number;
|
|
67
96
|
}[];
|
|
68
97
|
}
|
|
69
98
|
interface queryStoreScope {
|
|
99
|
+
/** 类型 VISIBLE | INVISIBLE */
|
|
70
100
|
type: string;
|
|
101
|
+
/** 门店Id列表 */
|
|
71
102
|
storeIds: string[];
|
|
72
103
|
}
|
|
73
104
|
}
|
|
@@ -1,12 +1,17 @@
|
|
|
1
1
|
export declare namespace ProductLiveService {
|
|
2
2
|
namespace Request {
|
|
3
3
|
interface list {
|
|
4
|
+
/** 0 开始 */
|
|
4
5
|
pageIndex: number;
|
|
6
|
+
/** 每页数量 */
|
|
5
7
|
pageSize: number;
|
|
8
|
+
/** 直播间ID */
|
|
6
9
|
liveRoomId: string;
|
|
7
10
|
}
|
|
8
11
|
interface operate {
|
|
12
|
+
/** 商品ID */
|
|
9
13
|
productId: string;
|
|
14
|
+
/** 直播间ID */
|
|
10
15
|
liveRoomId: string;
|
|
11
16
|
}
|
|
12
17
|
}
|
|
@@ -14,10 +19,15 @@ export declare namespace ProductLiveService {
|
|
|
14
19
|
interface list {
|
|
15
20
|
total: number;
|
|
16
21
|
list: {
|
|
22
|
+
/** 商品ID */
|
|
17
23
|
productId: string;
|
|
24
|
+
/** 商品名称 */
|
|
18
25
|
productName: string;
|
|
26
|
+
/** 商品图片 */
|
|
19
27
|
productImage: string;
|
|
28
|
+
/** 价格 */
|
|
20
29
|
price: number;
|
|
30
|
+
/** 库存 */
|
|
21
31
|
stock: number;
|
|
22
32
|
}[];
|
|
23
33
|
}
|