@be-link/pos-cli-nodejs 0.0.1 → 0.0.3

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.
@@ -0,0 +1,625 @@
1
+ import { POS } from '../../../types';
2
+ export declare namespace Service {
3
+ namespace DTO {
4
+ /** 查询块枚举 */
5
+ enum QueryDataBlock {
6
+ /** 订单id */
7
+ _id = "_id",
8
+ /** 主要信息 */
9
+ basicInfo = "basicInfo",
10
+ /** 标记信息 */
11
+ attributes = "attributes",
12
+ /** 商品快照信息 */
13
+ itemInfo = "itemInfo",
14
+ /** sku快照信息 */
15
+ skuInfo = "skuInfo",
16
+ /** 支付信息 */
17
+ paymentInfo = "paymentInfo",
18
+ /** 营销信息 */
19
+ promotionInfo = "promotionInfo"
20
+ }
21
+ /** 订单查询结果和查询块的映射 */
22
+ interface QueryDataBlockTypeMap {
23
+ /** 订单Id */
24
+ _id: string;
25
+ /** 主要信息 */
26
+ [QueryDataBlock.basicInfo]: POS.DTO.IPositiveOrder;
27
+ /** 标记信息 */
28
+ [QueryDataBlock.attributes]: POS.DTO.IPositiveAttributes;
29
+ /** 商品快照信息 */
30
+ [QueryDataBlock.itemInfo]: POS.DTO.IPositiveItemInfo;
31
+ /** sku快照信息 */
32
+ [QueryDataBlock.skuInfo]: POS.DTO.IPositiveSkuInfo;
33
+ /** 支付信息 */
34
+ [QueryDataBlock.paymentInfo]: POS.DTO.IPositivePaymentInfo;
35
+ /** 营销信息 */
36
+ [QueryDataBlock.promotionInfo]: POS.DTO.IPositivePromotionInfo;
37
+ }
38
+ /** 订单查询结果 */
39
+ type QueryDataRes<K extends DTO.QueryDataBlock[]> = {
40
+ [key in K[number]]: DTO.QueryDataBlockTypeMap[key];
41
+ };
42
+ }
43
+ namespace Request {
44
+ interface getOrderById<K extends DTO.QueryDataBlock[]> {
45
+ /** 订单id */
46
+ id: string;
47
+ /** 需要查询的块 */
48
+ needBlocks: K;
49
+ }
50
+ interface getUserOrderCount {
51
+ /** 用户id */
52
+ unionId: string;
53
+ /** 订单状态列表 */
54
+ statusList: POS.Constants.TradeOrderStatusEnum[];
55
+ /** 二级类目 */
56
+ categoryTwoList: string[];
57
+ /** 履约时间 */
58
+ fulfillAt: number;
59
+ }
60
+ interface queryOrderByIdList<K extends DTO.QueryDataBlock[]> {
61
+ /** 订单id列表 */
62
+ idList: string[];
63
+ /** 需要查询的块 */
64
+ needBlocks: K;
65
+ }
66
+ interface mgetUserOrderCountList {
67
+ /** 用户id列表 */
68
+ unionIdList: string[];
69
+ /** 订单状态列表 */
70
+ statusList: POS.Constants.TradeOrderStatusEnum[];
71
+ }
72
+ interface queryUserOrder<K extends DTO.QueryDataBlock[]> {
73
+ condition: {
74
+ /** 用户id */
75
+ unionId: string;
76
+ /** 订单状态列表 */
77
+ statusList: POS.Constants.TradeOrderStatusEnum[];
78
+ /** 二级类目 */
79
+ categoryTwoList: string[];
80
+ /** 是否是会员订单 */
81
+ isMemberOrder: boolean;
82
+ };
83
+ /** 排序规则 */
84
+ sort: {
85
+ /** 订单创建时间 */
86
+ createdAt: 'ASC' | 'DESC';
87
+ /** 订单支付时间 */
88
+ paidAt: 'ASC' | 'DESC';
89
+ /** 完结时间 */
90
+ completedAt: 'ASC' | 'DESC';
91
+ /** 履约时间 */
92
+ fulfillAt: 'ASC' | 'DESC';
93
+ };
94
+ /** 页面下标 */
95
+ pageIndex: number;
96
+ /** 页面条数,最大500 */
97
+ pageSize: number;
98
+ /** 需要查询的块 */
99
+ needBlocks: K;
100
+ }
101
+ interface queryMemberUserOrder<K extends DTO.QueryDataBlock[]> {
102
+ /** 用户id */
103
+ unionId: string;
104
+ /** 订单状态列表 */
105
+ statusList: POS.Constants.TradeOrderStatusEnum[];
106
+ /** 需要查询的块 */
107
+ needBlocks: K;
108
+ }
109
+ interface getUserResentCompleteOrder<K extends DTO.QueryDataBlock[]> {
110
+ /** unionId */
111
+ unionId: string;
112
+ /** 需要查询的块 */
113
+ needBlocks: K;
114
+ }
115
+ interface queryTopSaleItem {
116
+ /** 商品Id列表 */
117
+ itemIdList: string[];
118
+ /** 下单开始时间 */
119
+ startTime: number;
120
+ /** 下单结束时间 */
121
+ endTime: number;
122
+ /** 查询数量 */
123
+ limit: number;
124
+ }
125
+ interface querySaleItem {
126
+ /** 二级列表 */
127
+ categoryTwoList: string[];
128
+ /** 下单开始时间 */
129
+ startTime: number;
130
+ /** 下单结束时间 */
131
+ endTime: number;
132
+ /** 查询数量 */
133
+ pageIndex: number;
134
+ /** 查询数量 */
135
+ pageSize: number;
136
+ }
137
+ interface queryOrder<K extends DTO.QueryDataBlock[]> {
138
+ /** 开始出团日期 */
139
+ startTime: number;
140
+ /** 结束出团日期 */
141
+ endTime: number;
142
+ /** 订单状态列表 */
143
+ statusList: POS.Constants.TradeOrderStatusEnum[];
144
+ /** 二级类目列表 */
145
+ categoryTwoList: string[];
146
+ }
147
+ interface getNearestPaidOrder {
148
+ /** unionId */
149
+ unionId: string;
150
+ /** 二级类目列表 */
151
+ categoryTwoList: string[];
152
+ }
153
+ interface querySubOrderListByRootOrderId<K extends DTO.QueryDataBlock[]> {
154
+ /** 主单id */
155
+ rootOrderId: string;
156
+ /** 订单状态列表 */
157
+ statusList: POS.Constants.TradeOrderStatusEnum[];
158
+ /** 需要查询的块 */
159
+ needBlocks: K;
160
+ }
161
+ interface queryOrderBySkuIdList<K extends DTO.QueryDataBlock[]> {
162
+ /** skuId列表 */
163
+ skuIdList: string[];
164
+ /** 订单状态列表 */
165
+ statusList: POS.Constants.TradeOrderStatusEnum[];
166
+ /** 需要查询的块 */
167
+ needBlocks: K;
168
+ }
169
+ interface calculateUserConsumeInfo {
170
+ /** 用户id */
171
+ unionId: string;
172
+ /** 创建时间(开始) */
173
+ startTime: number;
174
+ /** 创建时间(结束) */
175
+ endTime: number;
176
+ }
177
+ interface queryUnionIdListByTimeRange {
178
+ /** 创建时间(开始) */
179
+ startTime: number;
180
+ /** 创建时间(结束) */
181
+ endTime: number;
182
+ /** 订单状态列表 */
183
+ statusList: POS.Constants.TradeOrderStatusEnum[];
184
+ }
185
+ interface queryItineraryList {
186
+ /** 商品id列表 */
187
+ itemIdList: string[];
188
+ /** 页面下标 */
189
+ pageIndex: number;
190
+ /** 页面条数 */
191
+ pageSize: number;
192
+ }
193
+ interface getItineraryCount {
194
+ /** 商品id列表 */
195
+ itemIdList: string[];
196
+ }
197
+ interface queryOrderMergeRecordByOrderId {
198
+ /** 订单id */
199
+ tradeOrderId: string;
200
+ }
201
+ interface queryPartyOrderInfo {
202
+ /** 类目 */
203
+ categoryTwo: string;
204
+ /** 履约时间 */
205
+ fulfillAt: number;
206
+ /** 商品名称 */
207
+ itemName: string;
208
+ /** 页面下标 */
209
+ pageIndex: number;
210
+ /** 页面条数 */
211
+ pageSize: number;
212
+ /** 订单状态 */
213
+ status: POS.Constants.TradeOrderStatusEnum;
214
+ }
215
+ interface getPartyOrderCount {
216
+ /** 类目 */
217
+ categoryTwo: string;
218
+ /** 履约时间 */
219
+ fulfillAt: number;
220
+ /** 商品名称 */
221
+ itemName: string;
222
+ /** 订单状态 */
223
+ status: POS.Constants.TradeOrderStatusEnum;
224
+ }
225
+ interface queryOrderList<K extends DTO.QueryDataBlock[]> {
226
+ /** 条件 */
227
+ conditions: {
228
+ /** 状态 */
229
+ status?: string;
230
+ /** 购买人姓名 */
231
+ contactName?: string;
232
+ /** 购买人手机号 */
233
+ contactMobile?: string;
234
+ /** 出行人姓名 */
235
+ tourismName?: string;
236
+ /** 出行人手机号 */
237
+ tourismMobile?: string;
238
+ /** 商品列表 */
239
+ itemIdList?: string[];
240
+ /** 来源人 */
241
+ fromUnionId?: string;
242
+ /** 二级类目 */
243
+ categoryTwoList?: string[];
244
+ /** 小队 */
245
+ groupIndex?: number;
246
+ /** 订单Id列表 */
247
+ tradeOrderIdList?: string[];
248
+ /** 出团日期范围 */
249
+ fulFillAtRange: [number, number];
250
+ /** 订单创建时间筛选 */
251
+ createdAtRange: [number, number];
252
+ /** 用户身份 */
253
+ userIdentity?: string;
254
+ /** 用户列表 */
255
+ unionIdList: string[];
256
+ /** 门店列表 */
257
+ storeIdList?: string[];
258
+ /** 班车供应商 */
259
+ shuttleBusSupplier?: string;
260
+ /** 页面条数 */
261
+ pageSize: number;
262
+ /** 页面下标 */
263
+ pageIndex: number;
264
+ };
265
+ /** 排序 */
266
+ sort: {
267
+ /** 订单创建时间 */
268
+ createdAt: 'ASC' | 'DESC';
269
+ /** 订单支付时间 */
270
+ paidAt: 'ASC' | 'DESC';
271
+ /** 完结时间 */
272
+ completedAt: 'ASC' | 'DESC';
273
+ /** 履约时间 */
274
+ fulfillAt: 'ASC' | 'DESC';
275
+ };
276
+ /** 查询块 */
277
+ needBlocks: K;
278
+ }
279
+ interface queryStoreOrderList<K extends DTO.QueryDataBlock[]> {
280
+ /** 条件 */
281
+ conditions: {
282
+ /** 状态 */
283
+ status?: string;
284
+ /** 购买人姓名 */
285
+ contactName?: string;
286
+ /** 购买人手机号 */
287
+ contactMobile?: string;
288
+ /** 二级类目 */
289
+ categoryTwoList?: string[];
290
+ /** 出团日期范围 */
291
+ fulFillAtRange: [number, number];
292
+ /** 订单创建时间筛选 */
293
+ createdAtRange: [number, number];
294
+ /** 门店列表 */
295
+ storeIdList?: string[];
296
+ /** 页面条数 */
297
+ pageSize: number;
298
+ /** 页面下标 */
299
+ pageIndex: number;
300
+ };
301
+ /** 排序 */
302
+ sort: {
303
+ /** 订单创建时间 */
304
+ createdAt: 'ASC' | 'DESC';
305
+ /** 订单支付时间 */
306
+ paidAt: 'ASC' | 'DESC';
307
+ /** 完结时间 */
308
+ completedAt: 'ASC' | 'DESC';
309
+ /** 履约时间 */
310
+ fulfillAt: 'ASC' | 'DESC';
311
+ };
312
+ /** 查询块 */
313
+ needBlocks: K;
314
+ }
315
+ interface queryPeriodTradeOrderList {
316
+ }
317
+ interface queryPeriodTradeOrderOperatorList {
318
+ /** 二级类目 */
319
+ categoryTwo: string;
320
+ /** 起始时间 */
321
+ startTime: number;
322
+ /** 结束时间 */
323
+ endTime: number;
324
+ }
325
+ interface queryRollingSalesStatistics {
326
+ /** 页码 */
327
+ pageIndex?: number;
328
+ /** 条目数 */
329
+ pageSize?: number;
330
+ /** 商品名称 */
331
+ commodityName?: string;
332
+ /** 下单起始时间 */
333
+ startTime?: number;
334
+ /** 下单结束时间 */
335
+ endTime?: number;
336
+ /** 履约开始时间 */
337
+ fulfillStartTime?: number;
338
+ /** 履约结束时间 */
339
+ fulfillEndTime?: number;
340
+ /** 商品类目列表 */
341
+ categoryList?: string[];
342
+ }
343
+ interface getStoreOrderCount {
344
+ /** 状态 */
345
+ status?: string;
346
+ /** 购买人姓名 */
347
+ contactName?: string;
348
+ /** 购买人手机号 */
349
+ contactMobile?: string;
350
+ /** 二级类目 */
351
+ categoryTwoList?: string[];
352
+ /** 出团日期范围 */
353
+ fulFillAtRange: [number, number];
354
+ /** 订单创建时间筛选 */
355
+ createdAtRange: [number, number];
356
+ /** 门店列表 */
357
+ storeIdList?: string[];
358
+ }
359
+ interface getOrderCount {
360
+ /** 状态 */
361
+ status?: string;
362
+ /** 购买人姓名 */
363
+ contactName?: string;
364
+ /** 购买人手机号 */
365
+ contactMobile?: string;
366
+ /** 出行人姓名 */
367
+ tourismName?: string;
368
+ /** 出行人手机号 */
369
+ tourismMobile?: string;
370
+ /** 商品列表 */
371
+ itemIdList?: string[];
372
+ /** 来源人 */
373
+ fromUnionId?: string;
374
+ /** 二级类目 */
375
+ categoryTwoList?: string[];
376
+ /** 小队 */
377
+ groupIndex?: number;
378
+ /** 订单Id列表 */
379
+ tradeOrderIdList?: string[];
380
+ /** 出团日期范围 */
381
+ fulFillAtRange: [number, number];
382
+ /** 订单创建时间筛选 */
383
+ createdAtRange: [number, number];
384
+ /** 用户身份 */
385
+ userIdentity?: string;
386
+ /** 用户列表 */
387
+ unionIdList: string[];
388
+ /** 门店列表 */
389
+ storeIdList?: string[];
390
+ /** 班车供应商 */
391
+ shuttleBusSupplier?: string;
392
+ }
393
+ }
394
+ namespace Response {
395
+ interface mgetUserOrderCountList {
396
+ /** 用户id: 数量 */
397
+ [unionId: string]: number;
398
+ }
399
+ interface queryTopSaleItem {
400
+ /** 商品Id */
401
+ itemId: string;
402
+ /** 销量 */
403
+ count: number;
404
+ }
405
+ interface querySaleItem {
406
+ /** 商品Id */
407
+ itemId: string;
408
+ /** 销量 */
409
+ count: number;
410
+ }
411
+ interface queryItineraryList {
412
+ /** skuId */
413
+ skuId: string;
414
+ /** 订单数量 */
415
+ count: number;
416
+ }
417
+ interface queryOrderMergeRecordByOrderId {
418
+ /** 合并记录Id */
419
+ _id: string;
420
+ /** 创建时间 */
421
+ _createTime: number;
422
+ /** 更新时间 */
423
+ _updateTime: number;
424
+ /** 目标订单Id */
425
+ targetId: string;
426
+ /** 资源变更 */
427
+ resources: {
428
+ /** 资源类型 */
429
+ type: string;
430
+ /** 变更前 */
431
+ before: Record<string, any>;
432
+ /** 变更后 */
433
+ after: Record<string, any>;
434
+ }[];
435
+ }
436
+ interface queryPartyOrderInfo {
437
+ /** skuId */
438
+ skuId: string;
439
+ /** 订单id列表 */
440
+ orderIdList: string[];
441
+ }
442
+ interface queryPeriodTradeOrderList {
443
+ /** 商品名称 */
444
+ itemName: string;
445
+ /** 酒店名称 */
446
+ storeName: string;
447
+ /** 销量 */
448
+ total: number;
449
+ }
450
+ interface queryPeriodTradeOrderOperatorList {
451
+ /** 商品名称 */
452
+ itemName: string;
453
+ /** 订单号 */
454
+ tradeOrderId: string;
455
+ /** 目标状态 */
456
+ toStatus: string;
457
+ /** 起始状态 */
458
+ fromStatus: string;
459
+ /** 操作人 */
460
+ operator: string;
461
+ /** 操作人角色 */
462
+ operatorRole: POS.Constants.OperatorRoleEnum;
463
+ /** 操作时间 */
464
+ _createTime: number;
465
+ /** 酒店名称 */
466
+ storeName: string;
467
+ /** 酒店供应商 */
468
+ hotelSupplier: string;
469
+ }
470
+ interface queryRollingSalesStatistics {
471
+ /** 商品ID */
472
+ itemId: string;
473
+ /** 套餐名称 */
474
+ comboName: string;
475
+ /** 适用人群 */
476
+ applicablePeople: string;
477
+ /** 份数 */
478
+ quantity: number;
479
+ /** gmv */
480
+ gmv: number;
481
+ /** 商品名称 */
482
+ itemName: string;
483
+ }
484
+ }
485
+ /** 用户维度查询 */
486
+ interface QueryByUserController {
487
+ /**
488
+ * 根据订单id查询订单
489
+ * @path /query/user/get-order-by-id
490
+ */
491
+ getOrderById<K extends DTO.QueryDataBlock[]>(request: Request.getOrderById<K>): Promise<DTO.QueryDataRes<K>>;
492
+ /**
493
+ * 根据订单id列表查询订单
494
+ * @path /query/user/query-order-by-id-list
495
+ */
496
+ queryOrderByIdList<K extends DTO.QueryDataBlock[]>(request: Request.queryOrderByIdList<K>): Promise<DTO.QueryDataRes<K>[]>;
497
+ /**
498
+ * 查询用户订单数量
499
+ * @returns 订单数量
500
+ * @path /query/user/get-user-order-count
501
+ */
502
+ getUserOrderCount(request: Request.getUserOrderCount): Promise<number>;
503
+ /**
504
+ * 查询用户列表订单数量
505
+ * @path /query/user/mget-user-order-count-list
506
+ */
507
+ mgetUserOrderCountList(request: Request.mgetUserOrderCountList): Promise<Response.mgetUserOrderCountList>;
508
+ /**
509
+ * 查询用户订单
510
+ * @path /query/user/query-user-order
511
+ */
512
+ queryUserOrder<K extends DTO.QueryDataBlock[]>(request: Request.queryUserOrder<K>): Promise<DTO.QueryDataRes<K>[]>;
513
+ /**
514
+ * 查询主单关联的子单列表
515
+ * @path /query/user/query-sub-order-list-by-root-order-id
516
+ */
517
+ querySubOrderListByRootOrderId<K extends DTO.QueryDataBlock[]>(request: Request.querySubOrderListByRootOrderId<K>): Promise<DTO.QueryDataRes<K>[]>;
518
+ /**
519
+ * 计算用户消费信息,查丛库
520
+ * @returns 消费金额
521
+ * @path /query/user/calculate-user-consume-info
522
+ */
523
+ calculateUserConsumeInfo(request: Request.calculateUserConsumeInfo): Promise<number>;
524
+ /**
525
+ * 查询时间范围内下过单的用户Id列表,查丛库
526
+ * @returns 用户Id列表
527
+ * @path /query/user/query-union-id-list-by-time-range
528
+ */
529
+ queryUnionIdListByTimeRange(request: Request.queryUnionIdListByTimeRange): Promise<string[]>;
530
+ /**
531
+ * 查询订单合并记录
532
+ * @path /query/user/query-order-merge-record-by-order-id
533
+ */
534
+ queryOrderMergeRecordByOrderId(request: Request.queryOrderMergeRecordByOrderId): Promise<Response.queryOrderMergeRecordByOrderId[]>;
535
+ }
536
+ /** 门店维度查询 */
537
+ interface QueryByStoreController {
538
+ /**
539
+ * 查询门店订单列表
540
+ * @path /query/store/query-order-list
541
+ */
542
+ queryOrderList<K extends DTO.QueryDataBlock[]>(request: Request.queryStoreOrderList<K>): Promise<DTO.QueryDataRes<K>[]>;
543
+ /**
544
+ * 查询订单数量
545
+ * @returns 订单数量
546
+ * @path /query/store/get-order-count
547
+ */
548
+ getOrderCount(request: Request.getStoreOrderCount): Promise<number>;
549
+ }
550
+ /** web查询 */
551
+ interface QueryByWebController {
552
+ /**
553
+ * 查询订单列表
554
+ * @path /query/web/query-order-list
555
+ */
556
+ queryOrderList<K extends DTO.QueryDataBlock[]>(request: Request.queryOrderList<K>): Promise<DTO.QueryDataRes<K>[]>;
557
+ /**
558
+ * 查询订单数量
559
+ * @returns 订单数量
560
+ * @path /query/web/get-order-count
561
+ */
562
+ getOrderCount(request: Request.getOrderCount): Promise<number>;
563
+ }
564
+ /** 商品维度查询 */
565
+ interface QueryByCommodityController {
566
+ /**
567
+ * 查询商品销量Top
568
+ * @path /query/commodity/query-top-sale-item
569
+ */
570
+ queryTopSaleItem(request: Request.queryTopSaleItem): Promise<Response.queryTopSaleItem[]>;
571
+ /**
572
+ * 查询有销量的商品
573
+ * @path /query/commodity/query-sale-item
574
+ */
575
+ querySaleItem(request: Request.querySaleItem): Promise<Response.querySaleItem[]>;
576
+ /**
577
+ * 查询出团日期内的订单Id
578
+ * @returns 订单Id列表
579
+ * @path /query/commodity/query-order
580
+ */
581
+ queryOrder<K extends DTO.QueryDataBlock[]>(request: Request.queryOrder<K>): Promise<DTO.QueryDataRes<K>[]>;
582
+ /**
583
+ * 根据skuId列表查询订单
584
+ * @path /query/commodity/query-order-by-sku-id-list
585
+ */
586
+ queryOrderBySkuIdList<K extends DTO.QueryDataBlock[]>(request: Request.queryOrderBySkuIdList<K>): Promise<DTO.QueryDataRes<K>[]>;
587
+ /**
588
+ * 获取行程单列表,按照履约时间升序
589
+ * @path /query/commodity/query-itinerary-list
590
+ */
591
+ queryItineraryList(request: Request.queryItineraryList): Promise<Response.queryItineraryList[]>;
592
+ /**
593
+ * 获取行程单总数
594
+ * @return 行程单总数
595
+ * @path /query/commodity/get-itinerary-count
596
+ */
597
+ getItineraryCount(request: Request.getItineraryCount): Promise<number>;
598
+ /**
599
+ * 聚会单查询,按照履约时间排序
600
+ * @path /query/commodity/query-party-order-info
601
+ */
602
+ queryPartyOrderInfo(request: Request.queryPartyOrderInfo): Promise<Response.queryPartyOrderInfo[]>;
603
+ /**
604
+ * 聚会单总数
605
+ * @return 聚会单总数
606
+ * @path /query/commodity/get-party-order-count
607
+ */
608
+ getPartyOrderCount(request: Request.getPartyOrderCount): Promise<number>;
609
+ /**
610
+ * 查询某个时间段内下单情况
611
+ * @path /query/commodity/query-order-by-time-range
612
+ */
613
+ queryPeriodTradeOrderList(request: Request.queryPeriodTradeOrderList): Promise<Response.queryPeriodTradeOrderList[]>;
614
+ /**
615
+ * 查询某个时间段内工作人员和酒店订单接单和拒单情况
616
+ * @path /query/commodity/query-period-trade-order-operator-list
617
+ */
618
+ queryPeriodTradeOrderOperatorList(request: Request.queryPeriodTradeOrderOperatorList): Promise<Response.queryPeriodTradeOrderOperatorList[]>;
619
+ /**
620
+ * 查询动销数据
621
+ * @path /query/commodity/query-rolling-sales-statistics
622
+ */
623
+ queryRollingSalesStatistics(request: Request.queryRollingSalesStatistics): Promise<Response.queryRollingSalesStatistics[]>;
624
+ }
625
+ }
@@ -0,0 +1,27 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Service = void 0;
4
+ var Service;
5
+ (function (Service) {
6
+ let DTO;
7
+ (function (DTO) {
8
+ /** 查询块枚举 */
9
+ let QueryDataBlock;
10
+ (function (QueryDataBlock) {
11
+ /** 订单id */
12
+ QueryDataBlock["_id"] = "_id";
13
+ /** 主要信息 */
14
+ QueryDataBlock["basicInfo"] = "basicInfo";
15
+ /** 标记信息 */
16
+ QueryDataBlock["attributes"] = "attributes";
17
+ /** 商品快照信息 */
18
+ QueryDataBlock["itemInfo"] = "itemInfo";
19
+ /** sku快照信息 */
20
+ QueryDataBlock["skuInfo"] = "skuInfo";
21
+ /** 支付信息 */
22
+ QueryDataBlock["paymentInfo"] = "paymentInfo";
23
+ /** 营销信息 */
24
+ QueryDataBlock["promotionInfo"] = "promotionInfo";
25
+ })(QueryDataBlock = DTO.QueryDataBlock || (DTO.QueryDataBlock = {}));
26
+ })(DTO = Service.DTO || (Service.DTO = {}));
27
+ })(Service || (exports.Service = Service = {}));
@@ -1,7 +1,7 @@
1
1
  import BaseService from '../service';
2
2
  import { Service } from './types';
3
3
  declare class QueryByUserService extends BaseService implements Service.QueryByUserController {
4
- prefixUrl: string;
4
+ protected prefixUrl: string;
5
5
  getOrderById<K extends Service.DTO.QueryDataBlock[]>(request: Service.Request.getOrderById<K>): Promise<Service.DTO.QueryDataRes<K>>;
6
6
  queryOrderByIdList<K extends Service.DTO.QueryDataBlock[]>(request: Service.Request.queryOrderByIdList<K>): Promise<Service.DTO.QueryDataRes<K>[]>;
7
7
  getUserOrderCount(request: Service.Request.getUserOrderCount): Promise<number>;
@@ -10,7 +10,7 @@ declare class QueryByUserService extends BaseService implements Service.QueryByU
10
10
  querySubOrderListByRootOrderId<K extends Service.DTO.QueryDataBlock[]>(request: Service.Request.querySubOrderListByRootOrderId<K>): Promise<Service.DTO.QueryDataRes<K>[]>;
11
11
  calculateUserConsumeInfo(request: Service.Request.calculateUserConsumeInfo): Promise<number>;
12
12
  queryUnionIdListByTimeRange(request: Service.Request.queryUnionIdListByTimeRange): Promise<string[]>;
13
- queryOrderMergeRecordByOrderId(request: Service.Request.queryOrderMergeRecordByOrderId): Promise<Service.Response.queryOrderMergeRecordByOrderId>;
13
+ queryOrderMergeRecordByOrderId(request: Service.Request.queryOrderMergeRecordByOrderId): Promise<Service.Response.queryOrderMergeRecordByOrderId[]>;
14
14
  }
15
15
  declare const queryByUserService: QueryByUserService;
16
16
  export default queryByUserService;
@@ -1,7 +1,7 @@
1
1
  import BaseService from '../service';
2
2
  import { Service } from './types';
3
3
  declare class QueryByWebService extends BaseService implements Service.QueryByWebController {
4
- prefixUrl: string;
4
+ protected prefixUrl: string;
5
5
  queryOrderList<K extends Service.DTO.QueryDataBlock[]>(request: Service.Request.queryOrderList<K>): Promise<Service.DTO.QueryDataRes<K>[]>;
6
6
  getOrderCount(request: Service.Request.getOrderCount): Promise<number>;
7
7
  }
@@ -1,7 +1,7 @@
1
1
  export default abstract class BaseService {
2
2
  private isPublicEnv;
3
3
  /** URL一级路径 */
4
- abstract prefixUrl: string;
4
+ protected abstract prefixUrl: string;
5
5
  /** 子网域名 */
6
6
  protected readonly natDevHost = "http://qgostaxv.pos-app.nmkh74o4.rlwzae9d.com";
7
7
  protected readonly natProdHost = "";