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