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