@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,786 @@
|
|
|
1
|
+
import { StandardResponse } from '../../../../types';
|
|
2
|
+
import { STORE_SERVICE_ENUM } from '../../../../enums';
|
|
3
|
+
/**
|
|
4
|
+
* Store Service 的类型定义
|
|
5
|
+
* 使用命名空间组织类型,与后端 SDK 保持一致
|
|
6
|
+
*/
|
|
7
|
+
export declare namespace StoreService {
|
|
8
|
+
/**
|
|
9
|
+
* 实体定义
|
|
10
|
+
*/
|
|
11
|
+
namespace Entity {
|
|
12
|
+
/**
|
|
13
|
+
* 门店基础信息
|
|
14
|
+
*/
|
|
15
|
+
interface StoreBasicInfo {
|
|
16
|
+
/** 门店id */
|
|
17
|
+
id: number;
|
|
18
|
+
/** 创建时间 */
|
|
19
|
+
createdAt: number;
|
|
20
|
+
/** 更新时间 */
|
|
21
|
+
updatedAt: number;
|
|
22
|
+
/** 删除时间 */
|
|
23
|
+
deletedAt: number;
|
|
24
|
+
/** 门店名称 */
|
|
25
|
+
storeName: string;
|
|
26
|
+
/** 省 */
|
|
27
|
+
province: string;
|
|
28
|
+
/** 市 */
|
|
29
|
+
city: string;
|
|
30
|
+
/** 区 */
|
|
31
|
+
area: string;
|
|
32
|
+
/** 详细地址 */
|
|
33
|
+
address: string;
|
|
34
|
+
/** 纬度 */
|
|
35
|
+
latitude: number;
|
|
36
|
+
/** 经度 */
|
|
37
|
+
longitude: number;
|
|
38
|
+
/** 联系电话 */
|
|
39
|
+
telephone: string;
|
|
40
|
+
/** 加盟商id */
|
|
41
|
+
franchiseeId: string;
|
|
42
|
+
/** BD 负责人 Pandora ID */
|
|
43
|
+
bdPandoraId: string;
|
|
44
|
+
/** BD 负责人姓名 */
|
|
45
|
+
bdName?: string;
|
|
46
|
+
/** BDM 负责人 Pandora ID */
|
|
47
|
+
bdmPandoraId?: string;
|
|
48
|
+
/** BDM 负责人姓名 */
|
|
49
|
+
bdmName?: string;
|
|
50
|
+
/** 店长 Pandora ID */
|
|
51
|
+
storeManagerPandoraId: string;
|
|
52
|
+
/** 店长姓名 */
|
|
53
|
+
storeManagerName?: string;
|
|
54
|
+
/** 店员姓名列表 */
|
|
55
|
+
staffNames?: string[];
|
|
56
|
+
/** 门店二维码 */
|
|
57
|
+
qrCodeState?: any;
|
|
58
|
+
/** 经营状态,0未绑定负责人,1营业中,2已打烊 */
|
|
59
|
+
businessStatus: number;
|
|
60
|
+
/** 商家合作类型:0, 未配置;1, 独立店;2, 店中店 */
|
|
61
|
+
merchantCooperationType: number;
|
|
62
|
+
/** 门店类型:0, 未配置;1, 自营;2, 加盟 */
|
|
63
|
+
storeType: number;
|
|
64
|
+
/** 门店承接类型:0-未配置,1-老店期承接,2-拉新期承接,3-开播后承接 */
|
|
65
|
+
storeUndertakingType: number;
|
|
66
|
+
/** 是否需要平台拉新:0, 未配置;1, 是;2, 否 */
|
|
67
|
+
isPlatformNewCustomerOperation: number;
|
|
68
|
+
/** 拉新时间 毫秒级时间戳 */
|
|
69
|
+
newCustomerTime: number;
|
|
70
|
+
/** 最新活动时间 毫秒级时间戳 */
|
|
71
|
+
latestActiveTime: number;
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* 门店结算信息
|
|
75
|
+
*/
|
|
76
|
+
interface StoreSettlement {
|
|
77
|
+
/** 结算信息id */
|
|
78
|
+
id: string;
|
|
79
|
+
/** 门店ID */
|
|
80
|
+
storeId: number;
|
|
81
|
+
/** 工作机 uid,工作机手机号和授权手机号做系统匹配 */
|
|
82
|
+
workPhoneUid: string;
|
|
83
|
+
/** 结算分佣比例 */
|
|
84
|
+
settlementCommissionRate?: any;
|
|
85
|
+
/** 直播时间 毫秒级时间戳 */
|
|
86
|
+
liveTime: number;
|
|
87
|
+
/** 免润期(天) */
|
|
88
|
+
gracePeriod: number;
|
|
89
|
+
/** 工作机企微 id,系统匹配 */
|
|
90
|
+
workPhoneWxCorpId: string;
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* 门店仓配信息
|
|
94
|
+
*/
|
|
95
|
+
interface StoreWarehouseDelivery {
|
|
96
|
+
/** 仓配信息id */
|
|
97
|
+
id: string;
|
|
98
|
+
/** 门店ID */
|
|
99
|
+
storeId: number;
|
|
100
|
+
/** 收货紧急联系人姓名 */
|
|
101
|
+
emergencyContactName: string;
|
|
102
|
+
/** 收货紧急联系人手机号 */
|
|
103
|
+
emergencyContactPhone: string;
|
|
104
|
+
/** 仓配时间:白配、夜配 */
|
|
105
|
+
warehouseDeliveryTime: number;
|
|
106
|
+
/** 须知 */
|
|
107
|
+
remark: string;
|
|
108
|
+
/** 营业时间,时间格式,手动录入 */
|
|
109
|
+
businessHours?: any;
|
|
110
|
+
/** 门店打烊时间;{loop: [mon,tue,wed,thu,fri,sat,sun]},{once: [[1758556800000, 1758643200000]]} */
|
|
111
|
+
closingHour?: any;
|
|
112
|
+
}
|
|
113
|
+
/**
|
|
114
|
+
* 门店分组信息
|
|
115
|
+
*/
|
|
116
|
+
interface StoreGroup {
|
|
117
|
+
/** 标签列表 */
|
|
118
|
+
tags: Array<{
|
|
119
|
+
/** 标签名称 */
|
|
120
|
+
tagName: string;
|
|
121
|
+
}>;
|
|
122
|
+
}
|
|
123
|
+
/**
|
|
124
|
+
* 完整门店信息(包含基础、结算、仓配信息)
|
|
125
|
+
*/
|
|
126
|
+
interface StoreFullInfo extends StoreBasicInfo {
|
|
127
|
+
settlement?: StoreSettlement;
|
|
128
|
+
warehouseDelivery?: StoreWarehouseDelivery;
|
|
129
|
+
storeGroup?: StoreGroup;
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
/**
|
|
133
|
+
* 查询块定义
|
|
134
|
+
*/
|
|
135
|
+
namespace QueryBlock {
|
|
136
|
+
/**
|
|
137
|
+
* 门店基础信息查询块
|
|
138
|
+
*/
|
|
139
|
+
interface BasicInfo {
|
|
140
|
+
/** 门店名称(模糊搜索) */
|
|
141
|
+
storeName?: string;
|
|
142
|
+
/** 门店微赞ID */
|
|
143
|
+
storeId?: number;
|
|
144
|
+
/** 省 */
|
|
145
|
+
province?: string;
|
|
146
|
+
/** 市 */
|
|
147
|
+
city?: string;
|
|
148
|
+
/** 区 */
|
|
149
|
+
area?: string;
|
|
150
|
+
/** 加盟商ID列表 */
|
|
151
|
+
franchiseeIds?: string[];
|
|
152
|
+
/** 是否绑定加盟商 */
|
|
153
|
+
hasFranchisee?: boolean;
|
|
154
|
+
/** BD 负责人 Pandora ID 列表 */
|
|
155
|
+
bdPandoraIds?: string[];
|
|
156
|
+
/** 店长 Pandora ID */
|
|
157
|
+
storeManagerPandoraId?: string;
|
|
158
|
+
/** 经营状态:0-未绑定负责人,1-营业中,2-已打烊 */
|
|
159
|
+
businessStatus?: number;
|
|
160
|
+
/** 商家合作类型:0-未配置,1-独立店,2-店中店 */
|
|
161
|
+
merchantCooperationType?: number;
|
|
162
|
+
/** 门店类型:0-未配置,1-自营,2-加盟 */
|
|
163
|
+
storeType?: number;
|
|
164
|
+
/** 门店承接类型:0-未配置,1-老店期承接,2-拉新期承接,3-开播后承接 */
|
|
165
|
+
storeUndertakingType?: number;
|
|
166
|
+
/** 是否需要平台拉新:0-未配置,1-是,2-否 */
|
|
167
|
+
isPlatformNewCustomerOperation?: number;
|
|
168
|
+
/** 是否拉新(根据拉新时间是否大于0判断) */
|
|
169
|
+
isNewCustomer?: number;
|
|
170
|
+
/** 门店ID列表 */
|
|
171
|
+
storeIds?: number[];
|
|
172
|
+
}
|
|
173
|
+
/**
|
|
174
|
+
* 门店结算信息查询块
|
|
175
|
+
*/
|
|
176
|
+
interface Settlement {
|
|
177
|
+
/** 直播时间(开始时间,毫秒级时间戳) */
|
|
178
|
+
liveTimeStart?: number;
|
|
179
|
+
/** 直播时间(结束时间,毫秒级时间戳) */
|
|
180
|
+
liveTimeEnd?: number;
|
|
181
|
+
}
|
|
182
|
+
/**
|
|
183
|
+
* 门店仓配信息查询块
|
|
184
|
+
*/
|
|
185
|
+
interface WarehouseDelivery {
|
|
186
|
+
/** 仓配时间:白配、夜配 */
|
|
187
|
+
warehouseDeliveryTime?: number;
|
|
188
|
+
}
|
|
189
|
+
/**
|
|
190
|
+
* 门店分组查询块
|
|
191
|
+
*/
|
|
192
|
+
interface StoreGroup {
|
|
193
|
+
/** 门店分组ID列表 */
|
|
194
|
+
storeGroupIds?: string[];
|
|
195
|
+
/** 门店分组名称(模糊搜索) */
|
|
196
|
+
storeGroupName?: string;
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
/**
|
|
200
|
+
* 请求参数定义
|
|
201
|
+
*/
|
|
202
|
+
namespace Request {
|
|
203
|
+
/**
|
|
204
|
+
* 创建门店请求(创建时填写)
|
|
205
|
+
*/
|
|
206
|
+
interface createStore {
|
|
207
|
+
/** 门店基础信息 */
|
|
208
|
+
basicInfo: {
|
|
209
|
+
/** 门店名称 */
|
|
210
|
+
storeName: string;
|
|
211
|
+
/** 省 */
|
|
212
|
+
province: string;
|
|
213
|
+
/** 市 */
|
|
214
|
+
city: string;
|
|
215
|
+
/** 区 */
|
|
216
|
+
area: string;
|
|
217
|
+
/** 详细地址 */
|
|
218
|
+
address: string;
|
|
219
|
+
/** 纬度(地图选点) */
|
|
220
|
+
latitude: number;
|
|
221
|
+
/** 经度(地图选点) */
|
|
222
|
+
longitude: number;
|
|
223
|
+
};
|
|
224
|
+
/** 门店结算信息 */
|
|
225
|
+
settlementInfo?: {
|
|
226
|
+
/** 工作机 uid */
|
|
227
|
+
workPhoneUid?: string;
|
|
228
|
+
/** 工作机企微 id */
|
|
229
|
+
workPhoneWxCorpId?: string;
|
|
230
|
+
/** 结算分佣比例 */
|
|
231
|
+
settlementCommissionRate?: any;
|
|
232
|
+
/** 直播时间 毫秒级时间戳 */
|
|
233
|
+
liveTime?: number;
|
|
234
|
+
/** 免润期(天) */
|
|
235
|
+
gracePeriod?: number;
|
|
236
|
+
};
|
|
237
|
+
/** 门店仓配信息 */
|
|
238
|
+
warehouseDeliveryInfo?: {
|
|
239
|
+
/** 收货紧急联系人姓名 */
|
|
240
|
+
emergencyContactName?: string;
|
|
241
|
+
/** 收货紧急联系人手机号 */
|
|
242
|
+
emergencyContactPhone?: string;
|
|
243
|
+
/** 仓配时间:白配、夜配 */
|
|
244
|
+
warehouseDeliveryTime?: number;
|
|
245
|
+
/** 须知 */
|
|
246
|
+
remark?: string;
|
|
247
|
+
/** 营业时间 */
|
|
248
|
+
businessHours?: any;
|
|
249
|
+
/** 门店打烊时间 */
|
|
250
|
+
closingHour?: any;
|
|
251
|
+
};
|
|
252
|
+
}
|
|
253
|
+
/**
|
|
254
|
+
* 绑定店长请求(自动同步店长相关信息)
|
|
255
|
+
*/
|
|
256
|
+
interface bindStoreManager {
|
|
257
|
+
/** 门店ID */
|
|
258
|
+
storeId: number;
|
|
259
|
+
/** 店长 Pandora ID */
|
|
260
|
+
storeManagerPandoraId: string;
|
|
261
|
+
}
|
|
262
|
+
/**
|
|
263
|
+
* 解绑店长请求
|
|
264
|
+
*/
|
|
265
|
+
interface unbindStoreManager {
|
|
266
|
+
/** 门店ID */
|
|
267
|
+
storeId: number;
|
|
268
|
+
}
|
|
269
|
+
/**
|
|
270
|
+
* 绑定BD请求
|
|
271
|
+
*/
|
|
272
|
+
interface bindBD {
|
|
273
|
+
/** 门店ID */
|
|
274
|
+
storeId: number;
|
|
275
|
+
/** BD 负责人 Pandora ID */
|
|
276
|
+
bdPandoraId: string;
|
|
277
|
+
}
|
|
278
|
+
/**
|
|
279
|
+
* 解绑BD请求
|
|
280
|
+
*/
|
|
281
|
+
interface unbindBD {
|
|
282
|
+
/** 门店ID */
|
|
283
|
+
storeId: number;
|
|
284
|
+
}
|
|
285
|
+
/**
|
|
286
|
+
* 绑定加盟商请求
|
|
287
|
+
*/
|
|
288
|
+
interface bindFranchisee {
|
|
289
|
+
/** 门店ID */
|
|
290
|
+
storeId: number;
|
|
291
|
+
/** 加盟商ID */
|
|
292
|
+
franchiseeId: string;
|
|
293
|
+
}
|
|
294
|
+
/**
|
|
295
|
+
* 解绑加盟商请求
|
|
296
|
+
*/
|
|
297
|
+
interface unbindFranchisee {
|
|
298
|
+
/** 门店ID */
|
|
299
|
+
storeId: number;
|
|
300
|
+
}
|
|
301
|
+
/**
|
|
302
|
+
* 编辑门店信息请求(手工录入字段)
|
|
303
|
+
*/
|
|
304
|
+
interface updateStoreInfo {
|
|
305
|
+
/** 门店id */
|
|
306
|
+
storeId: number;
|
|
307
|
+
/** 门店基础信息 */
|
|
308
|
+
basicInfo?: {
|
|
309
|
+
/** 经营状态 */
|
|
310
|
+
businessStatus?: number;
|
|
311
|
+
/** 商家合作类型 */
|
|
312
|
+
merchantCooperationType?: number;
|
|
313
|
+
/** 门店类型 */
|
|
314
|
+
storeType?: number;
|
|
315
|
+
/** 是否需要平台拉新 */
|
|
316
|
+
isPlatformNewCustomerOperation?: number;
|
|
317
|
+
};
|
|
318
|
+
/** 门店地址信息 */
|
|
319
|
+
addressInfo?: {
|
|
320
|
+
/** 省 */
|
|
321
|
+
province?: string;
|
|
322
|
+
/** 市 */
|
|
323
|
+
city?: string;
|
|
324
|
+
/** 区 */
|
|
325
|
+
area?: string;
|
|
326
|
+
/** 详细地址 */
|
|
327
|
+
address?: string;
|
|
328
|
+
/** 纬度(地图选点) */
|
|
329
|
+
latitude?: number;
|
|
330
|
+
/** 经度(地图选点) */
|
|
331
|
+
longitude?: number;
|
|
332
|
+
};
|
|
333
|
+
/** 门店结算信息 */
|
|
334
|
+
settlementInfo?: {
|
|
335
|
+
/** 工作机 uid */
|
|
336
|
+
workPhoneUid?: string;
|
|
337
|
+
/** 工作机企微 id */
|
|
338
|
+
workPhoneWxCorpId?: string;
|
|
339
|
+
/** 结算分佣比例 */
|
|
340
|
+
settlementCommissionRate?: any;
|
|
341
|
+
/** 直播时间 毫秒级时间戳 */
|
|
342
|
+
liveTime?: number;
|
|
343
|
+
/** 免润期(天) */
|
|
344
|
+
gracePeriod?: number;
|
|
345
|
+
};
|
|
346
|
+
/** 门店仓配信息 */
|
|
347
|
+
warehouseDeliveryInfo?: {
|
|
348
|
+
/** 收货紧急联系人姓名 */
|
|
349
|
+
emergencyContactName?: string;
|
|
350
|
+
/** 收货紧急联系人手机号 */
|
|
351
|
+
emergencyContactPhone?: string;
|
|
352
|
+
/** 仓配时间:白配、夜配 */
|
|
353
|
+
warehouseDeliveryTime?: number;
|
|
354
|
+
/** 须知 */
|
|
355
|
+
remark?: string;
|
|
356
|
+
/** 营业时间 */
|
|
357
|
+
businessHours?: any;
|
|
358
|
+
/** 门店打烊时间 */
|
|
359
|
+
closingHour?: any;
|
|
360
|
+
};
|
|
361
|
+
}
|
|
362
|
+
/**
|
|
363
|
+
* 更新群直播时间请求(系统同步)
|
|
364
|
+
*/
|
|
365
|
+
interface updateLiveTime {
|
|
366
|
+
/** 门店ID */
|
|
367
|
+
storeId: number;
|
|
368
|
+
/** 直播时间 毫秒级时间戳 */
|
|
369
|
+
liveTime: number;
|
|
370
|
+
}
|
|
371
|
+
/**
|
|
372
|
+
* 门店继承请求(系统同步门店承接类型)
|
|
373
|
+
*/
|
|
374
|
+
interface inheritStore {
|
|
375
|
+
/** 门店ID */
|
|
376
|
+
storeId: number;
|
|
377
|
+
/** 门店承接类型:1-老店期承接,2-拉新期承接,3-开播后承接 */
|
|
378
|
+
storeUndertakingType: number;
|
|
379
|
+
}
|
|
380
|
+
/**
|
|
381
|
+
* 获取门店详情请求
|
|
382
|
+
*/
|
|
383
|
+
interface getStoreDetail {
|
|
384
|
+
/** 门店id */
|
|
385
|
+
storeId: number;
|
|
386
|
+
}
|
|
387
|
+
/**
|
|
388
|
+
* 批量获取门店信息请求
|
|
389
|
+
*/
|
|
390
|
+
interface batchGetStoreInfo {
|
|
391
|
+
/** 门店ID列表 */
|
|
392
|
+
storeIds: number[];
|
|
393
|
+
/** 需要返回的响应块(数据表)列表 */
|
|
394
|
+
responseBlocks: STORE_SERVICE_ENUM.STORE_ENUM.RESPONSE_BLOCK_TYPE[];
|
|
395
|
+
}
|
|
396
|
+
/**
|
|
397
|
+
* 获取门店列表请求
|
|
398
|
+
*/
|
|
399
|
+
interface getStoreList {
|
|
400
|
+
/** 页码 */
|
|
401
|
+
page?: number;
|
|
402
|
+
/** 每页数量 */
|
|
403
|
+
pageSize?: number;
|
|
404
|
+
/** 门店基础信息查询块 */
|
|
405
|
+
basicInfoQuery?: QueryBlock.BasicInfo;
|
|
406
|
+
/** 门店结算信息查询块 */
|
|
407
|
+
settlementQuery?: QueryBlock.Settlement;
|
|
408
|
+
/** 门店仓配信息查询块 */
|
|
409
|
+
warehouseDeliveryQuery?: QueryBlock.WarehouseDelivery;
|
|
410
|
+
/** 门店分组查询块 */
|
|
411
|
+
storeGroupQuery?: QueryBlock.StoreGroup;
|
|
412
|
+
/** 需要返回的响应块(数据表)列表 */
|
|
413
|
+
responseBlocks?: STORE_SERVICE_ENUM.STORE_ENUM.RESPONSE_BLOCK_TYPE[];
|
|
414
|
+
}
|
|
415
|
+
/**
|
|
416
|
+
* 批量修改门店经营状态请求
|
|
417
|
+
*/
|
|
418
|
+
interface batchUpdateBusinessStatus {
|
|
419
|
+
/** 门店ID列表 */
|
|
420
|
+
storeIds: number[];
|
|
421
|
+
/** 经营状态:0-未绑定负责人,1-营业中,2-已打烊 */
|
|
422
|
+
businessStatus: number;
|
|
423
|
+
}
|
|
424
|
+
/**
|
|
425
|
+
* 创建门店分组请求
|
|
426
|
+
*/
|
|
427
|
+
interface createStoreGroup {
|
|
428
|
+
/** 标签名称 */
|
|
429
|
+
name: string;
|
|
430
|
+
/** 门店ID列表 */
|
|
431
|
+
storeIds?: string[];
|
|
432
|
+
/** 状态 */
|
|
433
|
+
status?: number;
|
|
434
|
+
/** 备注 */
|
|
435
|
+
remark?: string;
|
|
436
|
+
}
|
|
437
|
+
/**
|
|
438
|
+
* 编辑门店分组请求
|
|
439
|
+
*/
|
|
440
|
+
interface editStoreGroup {
|
|
441
|
+
/** 标签ID */
|
|
442
|
+
tagId?: string;
|
|
443
|
+
/** 分组名称 */
|
|
444
|
+
tagName?: string;
|
|
445
|
+
/** 门店ID列表 */
|
|
446
|
+
storeIds: string[];
|
|
447
|
+
}
|
|
448
|
+
/**
|
|
449
|
+
* 删除门店分组请求
|
|
450
|
+
*/
|
|
451
|
+
interface deleteStoreGroup {
|
|
452
|
+
/** 分组ID */
|
|
453
|
+
groupId: string;
|
|
454
|
+
}
|
|
455
|
+
/**
|
|
456
|
+
* 查询门店分组列表请求
|
|
457
|
+
*/
|
|
458
|
+
interface getStoreGroupList {
|
|
459
|
+
tagName?: string;
|
|
460
|
+
/** 分页:页码 */
|
|
461
|
+
page?: number;
|
|
462
|
+
/** 分页:每页数量 */
|
|
463
|
+
pageSize?: number;
|
|
464
|
+
}
|
|
465
|
+
/**
|
|
466
|
+
* 查询门店分组标签列表请求
|
|
467
|
+
*/
|
|
468
|
+
interface queryTagsByGroup {
|
|
469
|
+
}
|
|
470
|
+
}
|
|
471
|
+
/**
|
|
472
|
+
* 响应数据定义
|
|
473
|
+
*/
|
|
474
|
+
namespace Response {
|
|
475
|
+
/**
|
|
476
|
+
* 创建门店响应
|
|
477
|
+
*/
|
|
478
|
+
interface createStore {
|
|
479
|
+
/** 门店id */
|
|
480
|
+
storeId: number;
|
|
481
|
+
/** 门店信息 */
|
|
482
|
+
store: Entity.StoreBasicInfo;
|
|
483
|
+
/** 门店二维码(系统生成) */
|
|
484
|
+
qrCodeState: any;
|
|
485
|
+
}
|
|
486
|
+
/**
|
|
487
|
+
* 绑定店长响应
|
|
488
|
+
*/
|
|
489
|
+
interface bindStoreManager {
|
|
490
|
+
/** 是否成功 */
|
|
491
|
+
success: boolean;
|
|
492
|
+
/** 同步的信息 */
|
|
493
|
+
syncedInfo: {
|
|
494
|
+
/** 联系电话(店长手机号) */
|
|
495
|
+
telephone: string;
|
|
496
|
+
/** 店长 Pandora ID */
|
|
497
|
+
storeManagerPandoraId: string;
|
|
498
|
+
/** 工作机 UID */
|
|
499
|
+
workPhoneUid: string;
|
|
500
|
+
/** 工作机企微 ID */
|
|
501
|
+
workPhoneWxCorpId: string;
|
|
502
|
+
};
|
|
503
|
+
}
|
|
504
|
+
/**
|
|
505
|
+
* 解绑店长响应
|
|
506
|
+
*/
|
|
507
|
+
interface unbindStoreManager {
|
|
508
|
+
/** 是否成功 */
|
|
509
|
+
success: boolean;
|
|
510
|
+
}
|
|
511
|
+
/**
|
|
512
|
+
* 绑定BD响应
|
|
513
|
+
*/
|
|
514
|
+
interface bindBD {
|
|
515
|
+
/** 是否成功 */
|
|
516
|
+
success: boolean;
|
|
517
|
+
/** BD 负责人 Pandora ID */
|
|
518
|
+
bdPandoraId: string;
|
|
519
|
+
}
|
|
520
|
+
/**
|
|
521
|
+
* 解绑BD响应
|
|
522
|
+
*/
|
|
523
|
+
interface unbindBD {
|
|
524
|
+
/** 是否成功 */
|
|
525
|
+
success: boolean;
|
|
526
|
+
}
|
|
527
|
+
/**
|
|
528
|
+
* 绑定加盟商响应
|
|
529
|
+
*/
|
|
530
|
+
interface bindFranchisee {
|
|
531
|
+
/** 是否成功 */
|
|
532
|
+
success: boolean;
|
|
533
|
+
/** 加盟商ID */
|
|
534
|
+
franchiseeId: string;
|
|
535
|
+
}
|
|
536
|
+
/**
|
|
537
|
+
* 解绑加盟商响应
|
|
538
|
+
*/
|
|
539
|
+
interface unbindFranchisee {
|
|
540
|
+
/** 是否成功 */
|
|
541
|
+
success: boolean;
|
|
542
|
+
}
|
|
543
|
+
/**
|
|
544
|
+
* 编辑门店信息响应
|
|
545
|
+
*/
|
|
546
|
+
interface updateStoreInfo {
|
|
547
|
+
/** 是否成功 */
|
|
548
|
+
success: boolean;
|
|
549
|
+
/** 更新后的门店完整信息 */
|
|
550
|
+
store?: Entity.StoreFullInfo;
|
|
551
|
+
}
|
|
552
|
+
/**
|
|
553
|
+
* 更新群直播时间响应
|
|
554
|
+
*/
|
|
555
|
+
interface updateLiveTime {
|
|
556
|
+
/** 是否成功 */
|
|
557
|
+
success: boolean;
|
|
558
|
+
/** 直播时间 */
|
|
559
|
+
liveTime: number;
|
|
560
|
+
}
|
|
561
|
+
/**
|
|
562
|
+
* 门店继承响应
|
|
563
|
+
*/
|
|
564
|
+
interface inheritStore {
|
|
565
|
+
/** 是否成功 */
|
|
566
|
+
success: boolean;
|
|
567
|
+
/** 门店承接类型 */
|
|
568
|
+
storeUndertakingType: number;
|
|
569
|
+
}
|
|
570
|
+
/**
|
|
571
|
+
* 获取门店详情响应
|
|
572
|
+
*/
|
|
573
|
+
interface getStoreDetail {
|
|
574
|
+
/** 门店完整信息 */
|
|
575
|
+
store: Entity.StoreFullInfo;
|
|
576
|
+
}
|
|
577
|
+
/**
|
|
578
|
+
* 批量获取门店信息响应
|
|
579
|
+
*/
|
|
580
|
+
interface batchGetStoreInfo {
|
|
581
|
+
/** 门店信息列表 */
|
|
582
|
+
stores: Array<{
|
|
583
|
+
/** 门店ID */
|
|
584
|
+
storeId: number;
|
|
585
|
+
/** 门店基础信息(如果请求了该块) */
|
|
586
|
+
basicInfo?: Entity.StoreBasicInfo;
|
|
587
|
+
/** 门店结算信息(如果请求了该块) */
|
|
588
|
+
settlement?: Entity.StoreSettlement;
|
|
589
|
+
/** 门店仓配信息(如果请求了该块) */
|
|
590
|
+
warehouseDelivery?: Entity.StoreWarehouseDelivery;
|
|
591
|
+
/** 门店分组信息(如果请求了该块) */
|
|
592
|
+
storeGroup?: Entity.StoreGroup;
|
|
593
|
+
}>;
|
|
594
|
+
/** 未找到的门店ID列表 */
|
|
595
|
+
notFoundStoreIds?: number[];
|
|
596
|
+
}
|
|
597
|
+
/**
|
|
598
|
+
* 获取门店列表响应
|
|
599
|
+
*/
|
|
600
|
+
interface getStoreList {
|
|
601
|
+
/** 门店列表 */
|
|
602
|
+
stores: Array<{
|
|
603
|
+
/** 门店ID */
|
|
604
|
+
storeId: number;
|
|
605
|
+
/** 门店基础信息(如果请求了该块) */
|
|
606
|
+
basicInfo?: Entity.StoreBasicInfo;
|
|
607
|
+
/** 门店结算信息(如果请求了该块) */
|
|
608
|
+
settlement?: Entity.StoreSettlement;
|
|
609
|
+
/** 门店仓配信息(如果请求了该块) */
|
|
610
|
+
warehouseDelivery?: Entity.StoreWarehouseDelivery;
|
|
611
|
+
/** 门店分组信息(如果请求了该块) */
|
|
612
|
+
storeGroup?: Entity.StoreGroup;
|
|
613
|
+
}>;
|
|
614
|
+
/** 总数 */
|
|
615
|
+
total: number;
|
|
616
|
+
/** 当前页 */
|
|
617
|
+
page: number;
|
|
618
|
+
/** 每页数量 */
|
|
619
|
+
pageSize: number;
|
|
620
|
+
}
|
|
621
|
+
/**
|
|
622
|
+
* 批量修改门店经营状态响应
|
|
623
|
+
*/
|
|
624
|
+
interface batchUpdateBusinessStatus {
|
|
625
|
+
/** 是否成功 */
|
|
626
|
+
success: boolean;
|
|
627
|
+
/** 成功更新的门店ID列表 */
|
|
628
|
+
updatedStoreIds: number[];
|
|
629
|
+
/** 失败的门店列表 */
|
|
630
|
+
failedStores?: Array<{
|
|
631
|
+
/** 门店ID */
|
|
632
|
+
storeId: number;
|
|
633
|
+
/** 失败原因 */
|
|
634
|
+
reason: string;
|
|
635
|
+
}>;
|
|
636
|
+
}
|
|
637
|
+
/**
|
|
638
|
+
* 创建门店分组响应
|
|
639
|
+
*/
|
|
640
|
+
interface createStoreGroup {
|
|
641
|
+
/** 分组ID */
|
|
642
|
+
tagId: string;
|
|
643
|
+
}
|
|
644
|
+
/**
|
|
645
|
+
* 编辑门店分组响应
|
|
646
|
+
*/
|
|
647
|
+
interface editStoreGroup {
|
|
648
|
+
/** 是否成功 */
|
|
649
|
+
successCount: number;
|
|
650
|
+
}
|
|
651
|
+
/**
|
|
652
|
+
* 删除门店分组响应
|
|
653
|
+
*/
|
|
654
|
+
interface deleteStoreGroup {
|
|
655
|
+
/** 是否成功 */
|
|
656
|
+
success: boolean;
|
|
657
|
+
}
|
|
658
|
+
/**
|
|
659
|
+
* 查询门店分组列表响应
|
|
660
|
+
*/
|
|
661
|
+
interface getStoreGroupList {
|
|
662
|
+
/** 标签列表 */
|
|
663
|
+
tags: Array<{
|
|
664
|
+
/** 标签ID */
|
|
665
|
+
tagId: string;
|
|
666
|
+
/** 标签名称 */
|
|
667
|
+
tagName: string;
|
|
668
|
+
/** 标签分组ID */
|
|
669
|
+
groupId: string;
|
|
670
|
+
/** 标签状态 */
|
|
671
|
+
status: number;
|
|
672
|
+
/** 标签备注 */
|
|
673
|
+
remark?: string;
|
|
674
|
+
/** 创建时间 */
|
|
675
|
+
createdAt: number;
|
|
676
|
+
/** 标签绑定对象的数量 */
|
|
677
|
+
bindCount: number;
|
|
678
|
+
}>;
|
|
679
|
+
/** 总数 */
|
|
680
|
+
total: number;
|
|
681
|
+
/** 当前页 */
|
|
682
|
+
page: number;
|
|
683
|
+
/** 每页数量 */
|
|
684
|
+
pageSize: number;
|
|
685
|
+
}
|
|
686
|
+
/**
|
|
687
|
+
* 查询门店分组标签列表响应
|
|
688
|
+
*/
|
|
689
|
+
interface queryTagsByGroup {
|
|
690
|
+
/** 标签列表 */
|
|
691
|
+
tags: Array<{
|
|
692
|
+
/** 标签ID */
|
|
693
|
+
tagId: string;
|
|
694
|
+
/** 标签名称 */
|
|
695
|
+
tagName: string;
|
|
696
|
+
/** 标签状态 */
|
|
697
|
+
status: number;
|
|
698
|
+
/** 创建时间 */
|
|
699
|
+
createdAt: number;
|
|
700
|
+
}>;
|
|
701
|
+
}
|
|
702
|
+
}
|
|
703
|
+
/**
|
|
704
|
+
* Store Controller 接口定义
|
|
705
|
+
*/
|
|
706
|
+
namespace Controller {
|
|
707
|
+
interface StoreController {
|
|
708
|
+
/**
|
|
709
|
+
* 创建门店
|
|
710
|
+
*/
|
|
711
|
+
createStore(request: StoreService.Request.createStore): Promise<StandardResponse<StoreService.Response.createStore>>;
|
|
712
|
+
/**
|
|
713
|
+
* 绑定店长
|
|
714
|
+
*/
|
|
715
|
+
bindStoreManager(request: StoreService.Request.bindStoreManager): Promise<StandardResponse<StoreService.Response.bindStoreManager>>;
|
|
716
|
+
/**
|
|
717
|
+
* 解绑店长
|
|
718
|
+
*/
|
|
719
|
+
unbindStoreManager(request: StoreService.Request.unbindStoreManager): Promise<StandardResponse<StoreService.Response.unbindStoreManager>>;
|
|
720
|
+
/**
|
|
721
|
+
* 绑定BD
|
|
722
|
+
*/
|
|
723
|
+
bindBD(request: StoreService.Request.bindBD): Promise<StandardResponse<StoreService.Response.bindBD>>;
|
|
724
|
+
/**
|
|
725
|
+
* 解绑BD
|
|
726
|
+
*/
|
|
727
|
+
unbindBD(request: StoreService.Request.unbindBD): Promise<StandardResponse<StoreService.Response.unbindBD>>;
|
|
728
|
+
/**
|
|
729
|
+
* 绑定加盟商
|
|
730
|
+
*/
|
|
731
|
+
bindFranchisee(request: StoreService.Request.bindFranchisee): Promise<StandardResponse<StoreService.Response.bindFranchisee>>;
|
|
732
|
+
/**
|
|
733
|
+
* 解绑加盟商
|
|
734
|
+
*/
|
|
735
|
+
unbindFranchisee(request: StoreService.Request.unbindFranchisee): Promise<StandardResponse<StoreService.Response.unbindFranchisee>>;
|
|
736
|
+
/**
|
|
737
|
+
* 编辑门店信息
|
|
738
|
+
*/
|
|
739
|
+
updateStoreInfo(request: StoreService.Request.updateStoreInfo): Promise<StandardResponse<StoreService.Response.updateStoreInfo>>;
|
|
740
|
+
/**
|
|
741
|
+
* 批量修改门店经营状态
|
|
742
|
+
*/
|
|
743
|
+
batchUpdateBusinessStatus(request: StoreService.Request.batchUpdateBusinessStatus): Promise<StandardResponse<StoreService.Response.batchUpdateBusinessStatus>>;
|
|
744
|
+
/**
|
|
745
|
+
* 更新群直播时间
|
|
746
|
+
*/
|
|
747
|
+
updateLiveTime(request: StoreService.Request.updateLiveTime): Promise<StandardResponse<StoreService.Response.updateLiveTime>>;
|
|
748
|
+
/**
|
|
749
|
+
* 门店继承
|
|
750
|
+
*/
|
|
751
|
+
inheritStore(request: StoreService.Request.inheritStore): Promise<StandardResponse<StoreService.Response.inheritStore>>;
|
|
752
|
+
/**
|
|
753
|
+
* 获取门店详情
|
|
754
|
+
*/
|
|
755
|
+
getStoreDetail(request: StoreService.Request.getStoreDetail): Promise<StandardResponse<StoreService.Response.getStoreDetail>>;
|
|
756
|
+
/**
|
|
757
|
+
* 批量获取门店信息
|
|
758
|
+
*/
|
|
759
|
+
batchGetStoreInfo(request: StoreService.Request.batchGetStoreInfo): Promise<StandardResponse<StoreService.Response.batchGetStoreInfo>>;
|
|
760
|
+
/**
|
|
761
|
+
* 获取门店列表
|
|
762
|
+
*/
|
|
763
|
+
getStoreList(request: StoreService.Request.getStoreList): Promise<StandardResponse<StoreService.Response.getStoreList>>;
|
|
764
|
+
/**
|
|
765
|
+
* 创建门店分组
|
|
766
|
+
*/
|
|
767
|
+
createStoreGroup(request: StoreService.Request.createStoreGroup): Promise<StandardResponse<StoreService.Response.createStoreGroup>>;
|
|
768
|
+
/**
|
|
769
|
+
* 编辑门店分组
|
|
770
|
+
*/
|
|
771
|
+
editStoreGroup(request: StoreService.Request.editStoreGroup): Promise<StandardResponse<StoreService.Response.editStoreGroup>>;
|
|
772
|
+
/**
|
|
773
|
+
* 删除门店分组
|
|
774
|
+
*/
|
|
775
|
+
deleteStoreGroup(request: StoreService.Request.deleteStoreGroup): Promise<StandardResponse<StoreService.Response.deleteStoreGroup>>;
|
|
776
|
+
/**
|
|
777
|
+
* 查询门店分组列表
|
|
778
|
+
*/
|
|
779
|
+
getStoreGroupList(request: StoreService.Request.getStoreGroupList): Promise<StandardResponse<StoreService.Response.getStoreGroupList>>;
|
|
780
|
+
/**
|
|
781
|
+
* 查询门店分组标签列表
|
|
782
|
+
*/
|
|
783
|
+
queryTagsByGroup(request: StoreService.Request.queryTagsByGroup): Promise<StandardResponse<StoreService.Response.queryTagsByGroup>>;
|
|
784
|
+
}
|
|
785
|
+
}
|
|
786
|
+
}
|