@be-link/pos-cli-nodejs 0.0.29 → 0.0.31
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/Makefile +2 -0
- package/{index.d.ts → dist/index.d.ts} +2 -1
- package/{index.js → dist/index.js} +3 -1
- package/{pos → dist/pos}/modules/service.d.ts +2 -2
- package/{pos → dist/pos}/modules/service.js +2 -2
- package/docs/.nojekyll +1 -0
- package/docs/assets/highlight.css +71 -0
- package/docs/assets/main.js +59 -0
- package/docs/assets/navigation.js +1 -0
- package/docs/assets/search.js +1 -0
- package/docs/assets/style.css +1383 -0
- package/docs/classes/_internal_.OrderCoreService.html +351 -0
- package/docs/classes/_internal_.OrderFulfillService.html +489 -0
- package/docs/classes/_internal_.OrderJobService.html +229 -0
- package/docs/classes/_internal_.OrderNoteService.html +177 -0
- package/docs/classes/_internal_.QueryByCommodityService.html +311 -0
- package/docs/classes/_internal_.QueryByStoreService.html +133 -0
- package/docs/classes/_internal_.QueryByUserService.html +283 -0
- package/docs/classes/_internal_.QueryByWebService.html +133 -0
- package/docs/classes/_internal_.default.html +82 -0
- package/docs/enums/_internal_.Constants.ApplicablePeopleEnum.html +90 -0
- package/docs/enums/_internal_.Constants.ItineraryTypeEnum.html +82 -0
- package/docs/enums/_internal_.Constants.ModifyOperatorRoleEnum.html +114 -0
- package/docs/enums/_internal_.Constants.NoteStatusEnum.html +82 -0
- package/docs/enums/_internal_.Constants.NoteTypeEnum.html +106 -0
- package/docs/enums/_internal_.Constants.OperatorRoleEnum.html +114 -0
- package/docs/enums/_internal_.Constants.PayToolEnum.html +82 -0
- package/docs/enums/_internal_.Constants.PaymentTypeEnum.html +98 -0
- package/docs/enums/_internal_.Constants.PromotionTypeEnum.html +82 -0
- package/docs/enums/_internal_.Constants.PurchaseSkuStatusEnum.html +82 -0
- package/docs/enums/_internal_.Constants.ShuttleTypeEnum.html +82 -0
- package/docs/enums/_internal_.Constants.TradeOperatorRoleEnum.html +98 -0
- package/docs/enums/_internal_.Constants.TradeOrderStatusEnum.html +146 -0
- package/docs/enums/_internal_.Constants.TransportationTypeEnum.html +114 -0
- package/docs/enums/_internal_.QueryDataBlock.html +121 -0
- package/docs/index.html +68 -0
- package/docs/interfaces/_internal_.Content.html +81 -0
- package/docs/interfaces/_internal_.CostInclusionJson.html +81 -0
- package/docs/interfaces/_internal_.CouponSnapShotInfo.html +133 -0
- package/docs/interfaces/_internal_.CreditInfo.html +73 -0
- package/docs/interfaces/_internal_.IPositiveAttributes.html +161 -0
- package/docs/interfaces/_internal_.IPositiveChangeSkuRecord.html +145 -0
- package/docs/interfaces/_internal_.IPositiveItemInfo.html +413 -0
- package/docs/interfaces/_internal_.IPositiveOrder.html +263 -0
- package/docs/interfaces/_internal_.IPositivePaymentInfo.html +153 -0
- package/docs/interfaces/_internal_.IPositivePromotionInfo.html +129 -0
- package/docs/interfaces/_internal_.IPositiveSkuInfo.html +332 -0
- package/docs/interfaces/_internal_.IWxPaymentInfo.html +95 -0
- package/docs/interfaces/_internal_.ItinerarySchedule.html +89 -0
- package/docs/interfaces/_internal_.OrderCoreController.html +321 -0
- package/docs/interfaces/_internal_.OrderJobController.html +201 -0
- package/docs/interfaces/_internal_.OrderNoteController.html +156 -0
- package/docs/interfaces/_internal_.ProductDetail.html +81 -0
- package/docs/interfaces/_internal_.PurchasingInstruction.html +81 -0
- package/docs/interfaces/_internal_.QueryByCommodityController.html +284 -0
- package/docs/interfaces/_internal_.QueryByStoreController.html +115 -0
- package/docs/interfaces/_internal_.QueryByUserController.html +258 -0
- package/docs/interfaces/_internal_.QueryByWebController.html +115 -0
- package/docs/interfaces/_internal_.QueryDataBlockTypeMap.html +125 -0
- package/docs/interfaces/_internal_.SubContent.html +81 -0
- package/docs/interfaces/_internal_.addShuttleInfo.html +129 -0
- package/docs/interfaces/_internal_.aiBuildNoteInfo.html +73 -0
- package/docs/interfaces/_internal_.batchUpsertItineraryInfo.html +202 -0
- package/docs/interfaces/_internal_.bindTouristToOrder.html +97 -0
- package/docs/interfaces/_internal_.calculateUserConsumeInfo.html +89 -0
- package/docs/interfaces/_internal_.changeNoteStatus.html +97 -0
- package/docs/interfaces/_internal_.changeOrderContactInfo.html +97 -0
- package/docs/interfaces/_internal_.changeOrderSku.html +105 -0
- package/docs/interfaces/_internal_.confirmMealInfo.html +81 -0
- package/docs/interfaces/_internal_.createNote.html +105 -0
- package/docs/interfaces/_internal_.createScheduleNotice.html +89 -0
- package/docs/interfaces/_internal_.getItineraryCount.html +73 -0
- package/docs/interfaces/_internal_.getOrderById.html +86 -0
- package/docs/interfaces/_internal_.getOrderCount.html +193 -0
- package/docs/interfaces/_internal_.getPartyOrderCount.html +97 -0
- package/docs/interfaces/_internal_.getStoreOrderCount.html +121 -0
- package/docs/interfaces/_internal_.getTourismInfoByOrderId-1.html +229 -0
- package/docs/interfaces/_internal_.getTourismInfoByOrderId.html +73 -0
- package/docs/interfaces/_internal_.getUserOrderCount.html +97 -0
- package/docs/interfaces/_internal_.importPreCheck.html +112 -0
- package/docs/interfaces/_internal_.isOrderCanAddTourists.html +73 -0
- package/docs/interfaces/_internal_.markItineraryRead.html +81 -0
- package/docs/interfaces/_internal_.markOrderPurchaseInsurance.html +73 -0
- package/docs/interfaces/_internal_.markServiceNoticeAuth.html +73 -0
- package/docs/interfaces/_internal_.markServiceNoticeRead.html +81 -0
- package/docs/interfaces/_internal_.mgetUserOrderCountList-1.html +54 -0
- package/docs/interfaces/_internal_.mgetUserOrderCountList.html +81 -0
- package/docs/interfaces/_internal_.modifyOrderMealInfo.html +81 -0
- package/docs/interfaces/_internal_.multiSendSmsToTourist.html +81 -0
- package/docs/interfaces/_internal_.multiSendVoiceToTourist.html +81 -0
- package/docs/interfaces/_internal_.orderCreate-1.html +122 -0
- package/docs/interfaces/_internal_.orderCreate.html +208 -0
- package/docs/interfaces/_internal_.orderFulfillController.html +452 -0
- package/docs/interfaces/_internal_.orderPaid.html +97 -0
- package/docs/interfaces/_internal_.orderSettled.html +89 -0
- package/docs/interfaces/_internal_.platformReject.html +97 -0
- package/docs/interfaces/_internal_.preCheckTourists.html +89 -0
- package/docs/interfaces/_internal_.queryItineraryInfoByOrderIdList-1.html +54 -0
- package/docs/interfaces/_internal_.queryItineraryInfoByOrderIdList.html +65 -0
- package/docs/interfaces/_internal_.queryItineraryList-1.html +81 -0
- package/docs/interfaces/_internal_.queryItineraryList.html +89 -0
- package/docs/interfaces/_internal_.queryNoteByOrderIdList.html +73 -0
- package/docs/interfaces/_internal_.queryOrder.html +102 -0
- package/docs/interfaces/_internal_.queryOrderByIdList.html +86 -0
- package/docs/interfaces/_internal_.queryOrderBySkuIdList.html +94 -0
- package/docs/interfaces/_internal_.queryOrderChangeSkuRecords.html +73 -0
- package/docs/interfaces/_internal_.queryOrderList.html +210 -0
- package/docs/interfaces/_internal_.queryOrderMergeRecordByOrderId-1.html +123 -0
- package/docs/interfaces/_internal_.queryOrderMergeRecordByOrderId.html +73 -0
- package/docs/interfaces/_internal_.queryPartyOrderInfo-1.html +81 -0
- package/docs/interfaces/_internal_.queryPartyOrderInfo.html +113 -0
- package/docs/interfaces/_internal_.queryPeriodTradeOrderList-1.html +89 -0
- package/docs/interfaces/_internal_.queryPeriodTradeOrderList.html +51 -0
- package/docs/interfaces/_internal_.queryPeriodTradeOrderOperatorList-1.html +137 -0
- package/docs/interfaces/_internal_.queryPeriodTradeOrderOperatorList.html +89 -0
- package/docs/interfaces/_internal_.queryRollingSalesStatistics-1.html +113 -0
- package/docs/interfaces/_internal_.queryRollingSalesStatistics.html +129 -0
- package/docs/interfaces/_internal_.querySaleItem-1.html +81 -0
- package/docs/interfaces/_internal_.querySaleItem.html +105 -0
- package/docs/interfaces/_internal_.queryShuttleInfoByOrderId-1.html +169 -0
- package/docs/interfaces/_internal_.queryShuttleInfoByOrderId.html +73 -0
- package/docs/interfaces/_internal_.queryStoreOrderList.html +165 -0
- package/docs/interfaces/_internal_.querySubOrderListByRootOrderId.html +94 -0
- package/docs/interfaces/_internal_.queryTopSaleItem-1.html +81 -0
- package/docs/interfaces/_internal_.queryTopSaleItem.html +97 -0
- package/docs/interfaces/_internal_.queryTourismInfoInOrderIdList.html +73 -0
- package/docs/interfaces/_internal_.queryUnionIdListByTimeRange.html +89 -0
- package/docs/interfaces/_internal_.queryUserOrder.html +153 -0
- package/docs/interfaces/_internal_.sendOrderPaidNotification.html +73 -0
- package/docs/interfaces/_internal_.submittedToSupplier.html +89 -0
- package/docs/interfaces/_internal_.supplierConfirmed.html +89 -0
- package/docs/interfaces/_internal_.supplierRejected.html +97 -0
- package/docs/interfaces/_internal_.thirdOrderInfoConfirmed.html +105 -0
- package/docs/interfaces/_internal_.updateShuttleInfo.html +129 -0
- package/docs/interfaces/_internal_.updateTradeOrderRoomCount.html +94 -0
- package/docs/interfaces/_internal_.updateTradeOrderTouristsInfo.html +139 -0
- package/docs/modules/_internal_.Constants.html +71 -0
- package/docs/modules/_internal_.html +180 -0
- package/docs/modules.html +62 -0
- package/docs/types/_internal_.QueryDataRes.html +56 -0
- package/docs/types/_internal_.Record.html +58 -0
- package/docs/types/_internal_.importPreCheck-1.html +66 -0
- package/docs/types/_internal_.queryNoteByOrderIdList-1.html +106 -0
- package/docs/types/_internal_.queryTourismInfoInOrderIdList-1.html +48 -0
- package/docs/variables/PosConstants.html +50 -0
- package/docs/variables/orderCoreService.html +47 -0
- package/docs/variables/orderFulfillService.html +47 -0
- package/docs/variables/orderJobService.html +47 -0
- package/docs/variables/orderNoteService.html +47 -0
- package/docs/variables/queryByCommodityService.html +47 -0
- package/docs/variables/queryByStoreService.html +47 -0
- package/docs/variables/queryByUserService.html +47 -0
- package/docs/variables/queryByWebService.html +47 -0
- package/jest.config.js +194 -0
- package/package.json +1 -1
- package/src/errors/PosError.ts +6 -0
- package/src/index.ts +28 -0
- package/src/pos/http.ts +26 -0
- package/src/pos/modules/dataMigrate/service.ts +18 -0
- package/src/pos/modules/dataMigrate/types.ts +11 -0
- package/src/pos/modules/orderCore/service.ts +39 -0
- package/src/pos/modules/orderCore/types.ts +240 -0
- package/src/pos/modules/orderFulfill/service.ts +96 -0
- package/src/pos/modules/orderFulfill/types.ts +428 -0
- package/src/pos/modules/orderJob/service.ts +50 -0
- package/src/pos/modules/orderJob/types.ts +28 -0
- package/src/pos/modules/orderNote/service.ts +29 -0
- package/src/pos/modules/orderNote/types.ts +76 -0
- package/src/pos/modules/orderQuery/commodity.ts +47 -0
- package/src/pos/modules/orderQuery/store.ts +24 -0
- package/src/pos/modules/orderQuery/types.ts +624 -0
- package/src/pos/modules/orderQuery/user.ts +42 -0
- package/src/pos/modules/orderQuery/web.ts +22 -0
- package/src/pos/modules/service.ts +31 -0
- package/src/types.ts +807 -0
- package/src/utils/env.ts +14 -0
- package/src/utils/string.ts +6 -0
- package/tsconfig.json +114 -0
- package/typedoc.json +15 -0
- /package/{errors → dist/errors}/PosError.d.ts +0 -0
- /package/{errors → dist/errors}/PosError.js +0 -0
- /package/{pos → dist/pos}/http.d.ts +0 -0
- /package/{pos → dist/pos}/http.js +0 -0
- /package/{pos → dist/pos}/modules/dataMigrate/service.d.ts +0 -0
- /package/{pos → dist/pos}/modules/dataMigrate/service.js +0 -0
- /package/{pos → dist/pos}/modules/dataMigrate/types.d.ts +0 -0
- /package/{pos → dist/pos}/modules/dataMigrate/types.js +0 -0
- /package/{pos → dist/pos}/modules/orderCore/service.d.ts +0 -0
- /package/{pos → dist/pos}/modules/orderCore/service.js +0 -0
- /package/{pos → dist/pos}/modules/orderCore/types.d.ts +0 -0
- /package/{pos → dist/pos}/modules/orderCore/types.js +0 -0
- /package/{pos → dist/pos}/modules/orderFulfill/service.d.ts +0 -0
- /package/{pos → dist/pos}/modules/orderFulfill/service.js +0 -0
- /package/{pos → dist/pos}/modules/orderFulfill/types.d.ts +0 -0
- /package/{pos → dist/pos}/modules/orderFulfill/types.js +0 -0
- /package/{pos → dist/pos}/modules/orderJob/service.d.ts +0 -0
- /package/{pos → dist/pos}/modules/orderJob/service.js +0 -0
- /package/{pos → dist/pos}/modules/orderJob/types.d.ts +0 -0
- /package/{pos → dist/pos}/modules/orderJob/types.js +0 -0
- /package/{pos → dist/pos}/modules/orderNote/service.d.ts +0 -0
- /package/{pos → dist/pos}/modules/orderNote/service.js +0 -0
- /package/{pos → dist/pos}/modules/orderNote/types.d.ts +0 -0
- /package/{pos → dist/pos}/modules/orderNote/types.js +0 -0
- /package/{pos → dist/pos}/modules/orderQuery/commodity.d.ts +0 -0
- /package/{pos → dist/pos}/modules/orderQuery/commodity.js +0 -0
- /package/{pos → dist/pos}/modules/orderQuery/store.d.ts +0 -0
- /package/{pos → dist/pos}/modules/orderQuery/store.js +0 -0
- /package/{pos → dist/pos}/modules/orderQuery/types.d.ts +0 -0
- /package/{pos → dist/pos}/modules/orderQuery/types.js +0 -0
- /package/{pos → dist/pos}/modules/orderQuery/user.d.ts +0 -0
- /package/{pos → dist/pos}/modules/orderQuery/user.js +0 -0
- /package/{pos → dist/pos}/modules/orderQuery/web.d.ts +0 -0
- /package/{pos → dist/pos}/modules/orderQuery/web.js +0 -0
- /package/{types.d.ts → dist/types.d.ts} +0 -0
- /package/{types.js → dist/types.js} +0 -0
- /package/{utils → dist/utils}/env.d.ts +0 -0
- /package/{utils → dist/utils}/env.js +0 -0
- /package/{utils → dist/utils}/string.d.ts +0 -0
- /package/{utils → dist/utils}/string.js +0 -0
|
@@ -0,0 +1,428 @@
|
|
|
1
|
+
import * as PosConstants from 'vitality-meta/enums/pos'
|
|
2
|
+
import * as DTO from "../../../types"
|
|
3
|
+
|
|
4
|
+
export namespace Service {
|
|
5
|
+
export namespace Request {
|
|
6
|
+
export interface markOrderPurchaseInsurance {
|
|
7
|
+
/** 订单id */
|
|
8
|
+
orderIdList: string[]
|
|
9
|
+
}
|
|
10
|
+
export interface getTourismInfoByOrderId {
|
|
11
|
+
/** 订单id */
|
|
12
|
+
tradeOrderId: string
|
|
13
|
+
}
|
|
14
|
+
export interface queryTourismInfoInOrderIdList {
|
|
15
|
+
/** 订单id列表 */
|
|
16
|
+
tradeOrderIdList: string[]
|
|
17
|
+
}
|
|
18
|
+
export interface batchUpsertItineraryInfo {
|
|
19
|
+
/** 商品Id */
|
|
20
|
+
itemId: string
|
|
21
|
+
/** skuId */
|
|
22
|
+
skuId: string
|
|
23
|
+
/** 出行信息更新范围, touristId[]*/
|
|
24
|
+
upsertScope: {
|
|
25
|
+
[tradeOrderId: string]: string[] //touristId[]
|
|
26
|
+
}
|
|
27
|
+
/** 出行信息更新参数 */
|
|
28
|
+
upsertParam: {
|
|
29
|
+
/** 返程 */
|
|
30
|
+
RETURN?: {
|
|
31
|
+
/** 交通方式 */
|
|
32
|
+
transportationType: PosConstants.TransportationTypeEnum
|
|
33
|
+
/** 始发点 */
|
|
34
|
+
departureStation?: string
|
|
35
|
+
/** 集合时间 */
|
|
36
|
+
assemblyTime?: number
|
|
37
|
+
/** 交通工具发车时间 */
|
|
38
|
+
transportationDepartureTime?: number
|
|
39
|
+
/** 车次 | 航班信息 | 车牌号 */
|
|
40
|
+
serialNumber?: string
|
|
41
|
+
/** 行程备注 */
|
|
42
|
+
remark?: string
|
|
43
|
+
/** 座位号 */
|
|
44
|
+
seatNumber?: string
|
|
45
|
+
/** 司机电话 */
|
|
46
|
+
driverPhone?: string
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
/** 去程 */
|
|
50
|
+
DEPARTURE?: batchUpsertItineraryInfo['upsertParam']['RETURN']
|
|
51
|
+
}
|
|
52
|
+
export interface importPreCheck {
|
|
53
|
+
/** 商品id */
|
|
54
|
+
itemId: string
|
|
55
|
+
/** skuId */
|
|
56
|
+
skuId: string
|
|
57
|
+
/** 导入数据 */
|
|
58
|
+
importDataList: {
|
|
59
|
+
/** 姓名 */
|
|
60
|
+
name: string
|
|
61
|
+
/** 身份证 */
|
|
62
|
+
idCard: string
|
|
63
|
+
/** 去程座位号 */
|
|
64
|
+
departureSeatNumber: string
|
|
65
|
+
/** 返程座位号 */
|
|
66
|
+
returnSeatNumber: string
|
|
67
|
+
}[]
|
|
68
|
+
}
|
|
69
|
+
export type importSeatNumber = importPreCheck
|
|
70
|
+
export interface queryItineraryInfoByOrderIdList {
|
|
71
|
+
[tradeOrderId: string]: {
|
|
72
|
+
/** skuId*/
|
|
73
|
+
skuId: string
|
|
74
|
+
/** 出行人Id列表 */
|
|
75
|
+
touristIdList: string[]
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
export interface queryShuttleInfoByOrderId {
|
|
79
|
+
/** 订单id */
|
|
80
|
+
tradeOrderId: string
|
|
81
|
+
}
|
|
82
|
+
export interface modifyOrderMealInfo {
|
|
83
|
+
/** 餐食信息,bitmap */
|
|
84
|
+
mealInfo: string
|
|
85
|
+
/** 订单Id */
|
|
86
|
+
tradeOrderId: string
|
|
87
|
+
}
|
|
88
|
+
export interface bindTouristToOrder {
|
|
89
|
+
/** 订单Id */
|
|
90
|
+
tradeOrderId: string
|
|
91
|
+
/** 出行人id列表 */
|
|
92
|
+
touristIdList: string[]
|
|
93
|
+
/** 是否覆盖 */
|
|
94
|
+
isCover: boolean
|
|
95
|
+
/** 填写人Id */
|
|
96
|
+
fillerUserId: string
|
|
97
|
+
}
|
|
98
|
+
export interface multiSendVoiceToTourist {
|
|
99
|
+
/** 出行人Id列表 */
|
|
100
|
+
touristIdList?: string[]
|
|
101
|
+
/** skuId */
|
|
102
|
+
skuId: string
|
|
103
|
+
}
|
|
104
|
+
export interface multiSendSmsToTourist {
|
|
105
|
+
/** 出行人Id列表 */
|
|
106
|
+
touristIdList: string[]
|
|
107
|
+
/** skuId */
|
|
108
|
+
skuId: string
|
|
109
|
+
}
|
|
110
|
+
export interface isOrderCanAddTourists {
|
|
111
|
+
/** 主订单id */
|
|
112
|
+
mainOrderId: string
|
|
113
|
+
}
|
|
114
|
+
export interface preCheckTourists {
|
|
115
|
+
/** 商品id */
|
|
116
|
+
itemId: string
|
|
117
|
+
/** skuId */
|
|
118
|
+
skuId: string
|
|
119
|
+
/** 出行人id列表 */
|
|
120
|
+
touristIdList: string[]
|
|
121
|
+
}
|
|
122
|
+
export interface addShuttleInfo {
|
|
123
|
+
/** 班车类型 */
|
|
124
|
+
type: PosConstants.ShuttleTypeEnum
|
|
125
|
+
/** 车牌号 */
|
|
126
|
+
carNo: string
|
|
127
|
+
/** 上车点/下车点 */
|
|
128
|
+
station: string
|
|
129
|
+
/** 上车时间,例: 04月07日 12:00,下车时间 12:00 */
|
|
130
|
+
pickupTime: string
|
|
131
|
+
/** 司机电话 */
|
|
132
|
+
driverPhone: string
|
|
133
|
+
/** 座位号 */
|
|
134
|
+
seatNumbers: number[]
|
|
135
|
+
/** 关联订单号 */
|
|
136
|
+
tradeOrderId: string
|
|
137
|
+
/** 班车供应商id */
|
|
138
|
+
shuttleBusId?: string
|
|
139
|
+
}
|
|
140
|
+
export interface changeOrderSku {
|
|
141
|
+
/** 订单Id */
|
|
142
|
+
tradeOrderId: string
|
|
143
|
+
/** 新sku */
|
|
144
|
+
newSkuId: string
|
|
145
|
+
/** 原因类型 */
|
|
146
|
+
reasonType: string
|
|
147
|
+
/** 原因描述 */
|
|
148
|
+
reasonDesc: string
|
|
149
|
+
/** 附件列表 */
|
|
150
|
+
attachment: string[]
|
|
151
|
+
}
|
|
152
|
+
export interface queryOrderChangeSkuRecords {
|
|
153
|
+
/** 订单Id */
|
|
154
|
+
tradeOrderId: string
|
|
155
|
+
}
|
|
156
|
+
export interface updateShuttleInfo {
|
|
157
|
+
/** 班车信息ID */
|
|
158
|
+
_id: string
|
|
159
|
+
/** 班车车牌号 */
|
|
160
|
+
carNo: string
|
|
161
|
+
/** 上车站点 */
|
|
162
|
+
station: string
|
|
163
|
+
/** 出发时间 */
|
|
164
|
+
pickupTime: string
|
|
165
|
+
/** 司机电话 */
|
|
166
|
+
driverPhone: string
|
|
167
|
+
/** 班车ID */
|
|
168
|
+
shuttleBusId: string
|
|
169
|
+
/** 座位号 */
|
|
170
|
+
seatNumbers: number[]
|
|
171
|
+
/** 关联订单ID */
|
|
172
|
+
tradeOrderId: string
|
|
173
|
+
}
|
|
174
|
+
export interface updateTradeOrderRoomCount {
|
|
175
|
+
/** 订单号 */
|
|
176
|
+
orderId: string
|
|
177
|
+
/** 房间信息 */
|
|
178
|
+
roomInfo: {
|
|
179
|
+
/** 大床房数量 */
|
|
180
|
+
singleCount: number
|
|
181
|
+
/** 标间数量 */
|
|
182
|
+
doubleCount: number
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
export interface updateTradeOrderTouristsInfo {
|
|
186
|
+
/** 订单号 */
|
|
187
|
+
tradeOrderId: string
|
|
188
|
+
/** 出行人信息 */
|
|
189
|
+
touristsInfo: DTO.TouristInfo[]
|
|
190
|
+
}
|
|
191
|
+
export interface confirmMealInfo {
|
|
192
|
+
/** 订单号 */
|
|
193
|
+
tradeOrderId: string
|
|
194
|
+
/** 餐食信息 */
|
|
195
|
+
mealInfo: string
|
|
196
|
+
}
|
|
197
|
+
export interface createScheduleNotice {
|
|
198
|
+
/** 订单id */
|
|
199
|
+
tradeOrderId: string
|
|
200
|
+
/** unionId */
|
|
201
|
+
unionId: string
|
|
202
|
+
/** openId */
|
|
203
|
+
openId: string
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
export interface markServiceNoticeRead {
|
|
207
|
+
/** 订单id */
|
|
208
|
+
tradeOrderId: string
|
|
209
|
+
/**
|
|
210
|
+
* 是否是微信渠道
|
|
211
|
+
* @deprecated
|
|
212
|
+
*/
|
|
213
|
+
channel: boolean
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
export interface markItineraryRead {
|
|
217
|
+
/** 订单id */
|
|
218
|
+
tradeOrderId: string
|
|
219
|
+
/** 是否是微信渠道 */
|
|
220
|
+
mobile: string
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
export interface markServiceNoticeAuth {
|
|
224
|
+
/** 订单id */
|
|
225
|
+
tradeOrderId: string
|
|
226
|
+
}
|
|
227
|
+
export interface queryOrderFulfillInfoByOrderIdList {
|
|
228
|
+
orderIdList: string[]
|
|
229
|
+
}
|
|
230
|
+
export interface getOrderFulfillInfoByOrderId {
|
|
231
|
+
orderId: string
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
}
|
|
235
|
+
export namespace Response {
|
|
236
|
+
export interface queryItineraryInfoByOrderIdList {
|
|
237
|
+
[tradeOrderIdList: string]: {
|
|
238
|
+
/** 类型 */
|
|
239
|
+
type: PosConstants.ItineraryTypeEnum
|
|
240
|
+
/** 交通方式 */
|
|
241
|
+
transportationType: PosConstants.TransportationTypeEnum
|
|
242
|
+
/** 始发点 */
|
|
243
|
+
departureStation: string
|
|
244
|
+
/** 集合时间 */
|
|
245
|
+
assemblyTime: number
|
|
246
|
+
/** 交通工具发车时间 */
|
|
247
|
+
transportationDepartureTime: number
|
|
248
|
+
/** 座位号 */
|
|
249
|
+
seatNumber: string
|
|
250
|
+
/** 车次 | 航班信息 | 车牌号 */
|
|
251
|
+
serialNumber: string
|
|
252
|
+
/** 司机电话 */
|
|
253
|
+
driverPhone: string
|
|
254
|
+
/** 行程备注 */
|
|
255
|
+
remark: string
|
|
256
|
+
/** 订单Id */
|
|
257
|
+
tradeOrderId: string
|
|
258
|
+
/** 出行人Id */
|
|
259
|
+
touristId: string
|
|
260
|
+
/** 姓名 */
|
|
261
|
+
name: string
|
|
262
|
+
}[]
|
|
263
|
+
}
|
|
264
|
+
export type importPreCheck = {
|
|
265
|
+
/** 更新的参数 */
|
|
266
|
+
updateParamList: {
|
|
267
|
+
/** 行程id */
|
|
268
|
+
_id: string
|
|
269
|
+
/** 座位号 */
|
|
270
|
+
seatNumber: string
|
|
271
|
+
}[]
|
|
272
|
+
/** 无效身份证数组 */
|
|
273
|
+
invalidIdCardList: string[]
|
|
274
|
+
/** 有效身份证数组 */
|
|
275
|
+
validIdCardList: string[]
|
|
276
|
+
}
|
|
277
|
+
export interface queryShuttleInfoByOrderId {
|
|
278
|
+
DEPARTURE?: DTO.IShuttleInfo
|
|
279
|
+
RETURN?: DTO.IShuttleInfo
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
export type queryOrderChangeSkuRecords = DTO.IPositiveChangeSkuRecord[]
|
|
283
|
+
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
|
|
287
|
+
/** 订单履约服务 */
|
|
288
|
+
export interface orderFulfillController {
|
|
289
|
+
/**
|
|
290
|
+
* 获取订单行程单信息
|
|
291
|
+
* @path /fulfill/get-tourism-info-by-order-id
|
|
292
|
+
*/
|
|
293
|
+
getTourismInfoByOrderId(request: Request.getTourismInfoByOrderId): Promise<DTO.ITradeTourismInfo>
|
|
294
|
+
/**
|
|
295
|
+
* 批量获取订单行程单信息
|
|
296
|
+
* @path /fulfill/query-tourism-info-in-order-id-list
|
|
297
|
+
*/
|
|
298
|
+
queryTourismInfoInOrderIdList(request: Request.queryTourismInfoInOrderIdList): Promise<DTO.ITradeTourismInfo[]>
|
|
299
|
+
/**
|
|
300
|
+
* 绑定出行人到订单
|
|
301
|
+
* @path /fulfill/bind-tourist-to-order
|
|
302
|
+
*/
|
|
303
|
+
bindTouristToOrder(request: Request.bindTouristToOrder): Promise<void>
|
|
304
|
+
/**
|
|
305
|
+
* 批量语音消息触达
|
|
306
|
+
* @path /fulfill/multi-send-voice-to-tourist
|
|
307
|
+
*/
|
|
308
|
+
multiSendVoiceToTourist(request: Request.multiSendVoiceToTourist): Promise<void>
|
|
309
|
+
/**
|
|
310
|
+
* 批量短信消息触达
|
|
311
|
+
* @path /fulfill/multi-send-sms-to-tourist
|
|
312
|
+
*/
|
|
313
|
+
multiSendSmsToTourist(request: Request.multiSendSmsToTourist): Promise<void>
|
|
314
|
+
/**
|
|
315
|
+
* 修改餐食
|
|
316
|
+
* @path /fulfill/modify-order-meal-info
|
|
317
|
+
*/
|
|
318
|
+
modifyOrderMealInfo(request: Request.modifyOrderMealInfo): Promise<void>
|
|
319
|
+
/**
|
|
320
|
+
* 根据订单Id查询班车信息
|
|
321
|
+
* @path /fulfill/query-shuttle-info-by-order-id
|
|
322
|
+
*/
|
|
323
|
+
queryShuttleInfoByOrderId(request: Request.queryShuttleInfoByOrderId): Promise<Response.queryShuttleInfoByOrderId>
|
|
324
|
+
/**
|
|
325
|
+
* 批量添加出行信息
|
|
326
|
+
* @path /fulfill/batch-upsert-itinerary-info
|
|
327
|
+
*/
|
|
328
|
+
batchUpsertItineraryInfo(request: Request.batchUpsertItineraryInfo): Promise<void>
|
|
329
|
+
/**
|
|
330
|
+
* 导入前置校验
|
|
331
|
+
* @path /fulfill/import-pre-check
|
|
332
|
+
*/
|
|
333
|
+
importPreCheck(request: Request.importPreCheck): Promise<Response.importPreCheck>
|
|
334
|
+
/**
|
|
335
|
+
* 导入座位号
|
|
336
|
+
* @path /fulfill/import-seat-number
|
|
337
|
+
*/
|
|
338
|
+
importSeatNumber(request: Request.importSeatNumber): Promise<void>
|
|
339
|
+
/**
|
|
340
|
+
* 查询旅游出行信息
|
|
341
|
+
* @path /fulfill/query-itinerary-info-by-order-id-list
|
|
342
|
+
*/
|
|
343
|
+
queryItineraryInfoByOrderIdList(request: Request.queryItineraryInfoByOrderIdList): Promise<Response.queryItineraryInfoByOrderIdList>
|
|
344
|
+
/**
|
|
345
|
+
* 查询订单是否可以添加出行人
|
|
346
|
+
* @returns 是否可以添加出行人
|
|
347
|
+
* @path /fulfill/is-order-can-add-tourists
|
|
348
|
+
*/
|
|
349
|
+
isOrderCanAddTourists(request: Request.isOrderCanAddTourists): Promise<boolean>
|
|
350
|
+
/**
|
|
351
|
+
* 下单前对出行人进行校验
|
|
352
|
+
* @path /fulfill/pre-check-tourists
|
|
353
|
+
*/
|
|
354
|
+
preCheckTourists(request: Request.preCheckTourists): Promise<void>
|
|
355
|
+
/**
|
|
356
|
+
* 添加班车信息
|
|
357
|
+
* @path /fulfill/add-shuttle-info
|
|
358
|
+
*/
|
|
359
|
+
addShuttleInfo(request: Request.addShuttleInfo): Promise<void>
|
|
360
|
+
|
|
361
|
+
/**
|
|
362
|
+
* 修改团期
|
|
363
|
+
* @path /fulfill/change-order-sku
|
|
364
|
+
*/
|
|
365
|
+
changeOrderSku(request: Request.changeOrderSku): Promise<void>
|
|
366
|
+
/**
|
|
367
|
+
* 确认餐食
|
|
368
|
+
* @path /fulfill/confirm-meal-info
|
|
369
|
+
*/
|
|
370
|
+
confirmMealInfo(request: Request.confirmMealInfo): Promise<void>
|
|
371
|
+
/**
|
|
372
|
+
* 查询订单改期记录
|
|
373
|
+
* @path /fulfill/query-order-change-sku-records
|
|
374
|
+
*/
|
|
375
|
+
queryOrderChangeSkuRecords(request: Request.queryOrderChangeSkuRecords): Promise<Response.queryOrderChangeSkuRecords>
|
|
376
|
+
/**
|
|
377
|
+
* 更新班车信息
|
|
378
|
+
* @path /fulfill/update-shuttle-info
|
|
379
|
+
*/
|
|
380
|
+
updateShuttleInfo(request: Request.updateShuttleInfo): Promise<void>
|
|
381
|
+
/**
|
|
382
|
+
* 更新订单房间数
|
|
383
|
+
* @path /fulfill/update-trade-order-room-count
|
|
384
|
+
*/
|
|
385
|
+
updateTradeOrderRoomCount(request: Request.updateTradeOrderRoomCount): Promise<void>
|
|
386
|
+
/**
|
|
387
|
+
* 更新订单出行人信息,并可能推动订单状态到待履约
|
|
388
|
+
* @path /fulfill/update-trade-order-tourists-info
|
|
389
|
+
*/
|
|
390
|
+
updateTradeOrderTouristsInfo(request: Request.updateTradeOrderTouristsInfo): Promise<void>
|
|
391
|
+
/**
|
|
392
|
+
* 创建日程提醒服务通知
|
|
393
|
+
* @path /fulfill/create-schedule-notice
|
|
394
|
+
*/
|
|
395
|
+
createScheduleNotice(request: Request.createScheduleNotice): Promise<void>
|
|
396
|
+
/**
|
|
397
|
+
* 标记服务通知已读
|
|
398
|
+
* @path /fulfill/mark-service-notice-read
|
|
399
|
+
*/
|
|
400
|
+
markServiceNoticeRead(request: Request.markServiceNoticeRead): Promise<void>
|
|
401
|
+
/**
|
|
402
|
+
* 标记行程单已读
|
|
403
|
+
* @path /fulfill/mark-itinerary-read
|
|
404
|
+
*/
|
|
405
|
+
markItineraryRead(request: Request.markItineraryRead): Promise<void>
|
|
406
|
+
/**
|
|
407
|
+
* 标记服务通知授权
|
|
408
|
+
* @path /fulfill/mark-service-notice-auth
|
|
409
|
+
*/
|
|
410
|
+
markServiceNoticeAuth(request: Request.markServiceNoticeAuth): Promise<void>
|
|
411
|
+
/**
|
|
412
|
+
* 获取订单履约信息
|
|
413
|
+
* @path /fulfill/get-tourism-info-by-order-id
|
|
414
|
+
*/
|
|
415
|
+
getOrderFulfillInfoByOrderId(request: Request.getOrderFulfillInfoByOrderId): Promise<DTO.IPositiveFulfillmentInfo>
|
|
416
|
+
/**
|
|
417
|
+
* 批量获取订单履约信息
|
|
418
|
+
* @path /fulfill/query-tourism-info-in-order-id-list
|
|
419
|
+
*/
|
|
420
|
+
queryOrderFulfillInfoByOrderIdList(request: Request.queryOrderFulfillInfoByOrderIdList): Promise<DTO.IPositiveFulfillmentInfo[]>
|
|
421
|
+
/**
|
|
422
|
+
* 标记订单创建了保单记录
|
|
423
|
+
* @path /fulfill/mark-order-purchase-insurance
|
|
424
|
+
*/
|
|
425
|
+
markOrderPurchaseInsurance(request: Request.markOrderPurchaseInsurance): Promise<void>
|
|
426
|
+
}
|
|
427
|
+
|
|
428
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import BaseService from '../service'
|
|
2
|
+
import { Service } from './types'
|
|
3
|
+
import { callApi } from '../../http'
|
|
4
|
+
|
|
5
|
+
class OrderJobService extends BaseService implements Service.OrderJobController {
|
|
6
|
+
|
|
7
|
+
protected prefixUrl: string = '/job'
|
|
8
|
+
|
|
9
|
+
jobAutoCompleteOrder() {
|
|
10
|
+
return callApi<Service.OrderJobController['jobAutoCompleteOrder']>(this.getApiUrl(this.jobAutoCompleteOrder))
|
|
11
|
+
}
|
|
12
|
+
jobAutoCloseUnpaidOrder() {
|
|
13
|
+
return callApi<Service.OrderJobController['jobAutoCloseUnpaidOrder']>(this.getApiUrl(this.jobAutoCloseUnpaidOrder))
|
|
14
|
+
}
|
|
15
|
+
jobCreateHotelNotifyTask() {
|
|
16
|
+
return callApi<Service.OrderJobController['jobCreateHotelNotifyTask']>(this.getApiUrl(this.jobCreateHotelNotifyTask))
|
|
17
|
+
}
|
|
18
|
+
jobCreateOneSecondPartyNotifyTask() {
|
|
19
|
+
return callApi<Service.OrderJobController['jobCreateOneSecondPartyNotifyTask']>(this.getApiUrl(this.jobCreateOneSecondPartyNotifyTask))
|
|
20
|
+
}
|
|
21
|
+
jobSendCommentRemindSms() {
|
|
22
|
+
return callApi<Service.OrderJobController['jobSendCommentRemindSms']>(this.getApiUrl(this.jobSendCommentRemindSms))
|
|
23
|
+
}
|
|
24
|
+
jobSmsNoticeForInsurance() {
|
|
25
|
+
return callApi<Service.OrderJobController['jobSmsNoticeForInsurance']>(this.getApiUrl(this.jobSmsNoticeForInsurance))
|
|
26
|
+
}
|
|
27
|
+
jobSmsNoticeForDepartureSecurity() {
|
|
28
|
+
return callApi<Service.OrderJobController['jobSmsNoticeForDepartureSecurity']>(this.getApiUrl(this.jobSmsNoticeForDepartureSecurity))
|
|
29
|
+
}
|
|
30
|
+
jobSendSubscribeNoticeForInsurance() {
|
|
31
|
+
return callApi<Service.OrderJobController['jobSendSubscribeNoticeForInsurance']>(this.getApiUrl(this.jobSendSubscribeNoticeForInsurance))
|
|
32
|
+
}
|
|
33
|
+
jobNotifyFeiShuOfNotReceivedInsurance() {
|
|
34
|
+
return callApi<Service.OrderJobController['jobNotifyFeiShuOfNotReceivedInsurance']>(this.getApiUrl(this.jobNotifyFeiShuOfNotReceivedInsurance))
|
|
35
|
+
}
|
|
36
|
+
jobNotifyFeishuOfMissingTourItineraryInfo() {
|
|
37
|
+
return callApi<Service.OrderJobController['jobNotifyFeishuOfMissingTourItineraryInfo']>(this.getApiUrl(this.jobNotifyFeishuOfMissingTourItineraryInfo))
|
|
38
|
+
}
|
|
39
|
+
jobNotifySupplierPendingOrder() {
|
|
40
|
+
return callApi<Service.OrderJobController['jobNotifySupplierPendingOrder']>(this.getApiUrl(this.jobNotifySupplierPendingOrder))
|
|
41
|
+
}
|
|
42
|
+
jobNotifySupplierTomorrowOrder() {
|
|
43
|
+
return callApi<Service.OrderJobController['jobNotifySupplierTomorrowOrder']>(this.getApiUrl(this.jobNotifySupplierTomorrowOrder))
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
const orderJobService = new OrderJobService()
|
|
49
|
+
|
|
50
|
+
export default orderJobService
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export namespace Service {
|
|
2
|
+
export interface OrderJobController {
|
|
3
|
+
/** 自动完结订单 */
|
|
4
|
+
jobAutoCompleteOrder(): Promise<void>
|
|
5
|
+
/** 自动关闭未支付订单 */
|
|
6
|
+
jobAutoCloseUnpaidOrder(): Promise<void>
|
|
7
|
+
/** 每天两点创建企微群发任务(酒店订单) */
|
|
8
|
+
jobCreateHotelNotifyTask(): Promise<void>
|
|
9
|
+
/** 每天两点创建企微群发任务(一日聚订单) */
|
|
10
|
+
jobCreateOneSecondPartyNotifyTask(): Promise<void>
|
|
11
|
+
/** 每天下午两点发送昨天出团商品评论提醒短信 */
|
|
12
|
+
jobSendCommentRemindSms(): Promise<void>
|
|
13
|
+
/** 发送保险提醒统计 */
|
|
14
|
+
jobSmsNoticeForInsurance(): Promise<void>
|
|
15
|
+
/** 发送保障服务通知 */
|
|
16
|
+
jobSmsNoticeForDepartureSecurity(): Promise<void>
|
|
17
|
+
/** 发送提醒同行人领取保险服务通知 */
|
|
18
|
+
jobSendSubscribeNoticeForInsurance(): Promise<void>
|
|
19
|
+
/** 飞书通知未领保险 */
|
|
20
|
+
jobNotifyFeiShuOfNotReceivedInsurance(): Promise<void>
|
|
21
|
+
/** 对缺漏出行信息的团,进行飞书通知 */
|
|
22
|
+
jobNotifyFeishuOfMissingTourItineraryInfo(): Promise<void>
|
|
23
|
+
/** 每天15点通知酒店和一日聚门店处理待处理的订单 */
|
|
24
|
+
jobNotifySupplierPendingOrder(): Promise<void>
|
|
25
|
+
/** 每天20点通知酒店和一日聚门店查看明日到店的订单 */
|
|
26
|
+
jobNotifySupplierTomorrowOrder(): Promise<void>
|
|
27
|
+
}
|
|
28
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import BaseService from "../service"
|
|
2
|
+
import { callApi } from "../../http"
|
|
3
|
+
import { Service } from './types'
|
|
4
|
+
|
|
5
|
+
class OrderNoteService extends BaseService implements Service.OrderNoteController {
|
|
6
|
+
|
|
7
|
+
protected prefixUrl = '/note'
|
|
8
|
+
|
|
9
|
+
createNote(request: Service.Request.createNote): Promise<string> {
|
|
10
|
+
return callApi<Service.OrderNoteController['createNote']>(this.getApiUrl(this.createNote), request)
|
|
11
|
+
}
|
|
12
|
+
queryNoteByOrderIdList(request: Service.Request.queryNoteByOrderIdList): Promise<Service.Response.queryNoteByOrderIdList> {
|
|
13
|
+
return callApi<Service.OrderNoteController['queryNoteByOrderIdList']>(this.getApiUrl(this.queryNoteByOrderIdList), request)
|
|
14
|
+
}
|
|
15
|
+
queryUnFinishedNoteOrderIdList(): Promise<string[]> {
|
|
16
|
+
return callApi<Service.OrderNoteController['queryUnFinishedNoteOrderIdList']>(this.getApiUrl(this.queryUnFinishedNoteOrderIdList))
|
|
17
|
+
}
|
|
18
|
+
aiBuildNoteInfo(request: Service.Request.aiBuildNoteInfo): Promise<string> {
|
|
19
|
+
return callApi<Service.OrderNoteController['aiBuildNoteInfo']>(this.getApiUrl(this.aiBuildNoteInfo), request)
|
|
20
|
+
}
|
|
21
|
+
changeNoteStatus(request: Service.Request.changeNoteStatus): Promise<void> {
|
|
22
|
+
return callApi<Service.OrderNoteController['changeNoteStatus']>(this.getApiUrl(this.changeNoteStatus), request)
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
const orderNoteService = new OrderNoteService()
|
|
28
|
+
|
|
29
|
+
export default orderNoteService
|
|
@@ -0,0 +1,76 @@
|
|
|
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 createNote {
|
|
8
|
+
/** 备注内容 */
|
|
9
|
+
content: string,
|
|
10
|
+
/** 操作人角色 */
|
|
11
|
+
operatorRole: PosConstants.OperatorRoleEnum,
|
|
12
|
+
/** 操作人 */
|
|
13
|
+
operatorUser: string,
|
|
14
|
+
/** 订单id */
|
|
15
|
+
tradeOrderId: string,
|
|
16
|
+
/** 备注类型 */
|
|
17
|
+
type: PosConstants.NoteTypeEnum
|
|
18
|
+
}
|
|
19
|
+
export interface queryNoteByOrderIdList {
|
|
20
|
+
/** 订单Id列表 */
|
|
21
|
+
orderIdList: string[]
|
|
22
|
+
/** 备注类型列表 */
|
|
23
|
+
typeList?: PosConstants.NoteTypeEnum[]
|
|
24
|
+
/** 备注来源列表 */
|
|
25
|
+
operatorRoleList?: PosConstants.OperatorRoleEnum[]
|
|
26
|
+
}
|
|
27
|
+
export interface aiBuildNoteInfo {
|
|
28
|
+
/** 内容 */
|
|
29
|
+
content: string
|
|
30
|
+
}
|
|
31
|
+
export interface changeNoteStatus {
|
|
32
|
+
/** 备注Id */
|
|
33
|
+
noteId: string
|
|
34
|
+
/** 状态 */
|
|
35
|
+
status: PosConstants.NoteStatusEnum
|
|
36
|
+
/** 修改人 */
|
|
37
|
+
modifyOperatorUser: string
|
|
38
|
+
/** 修改人类型 */
|
|
39
|
+
modifyOperatorRole: PosConstants.ModifyOperatorRoleEnum
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export namespace Response {
|
|
44
|
+
export type queryNoteByOrderIdList = DTO.IPositiveNoteInfo[]
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export interface OrderNoteController {
|
|
48
|
+
/**
|
|
49
|
+
* 创建订单备注
|
|
50
|
+
* @returns 备注id
|
|
51
|
+
* @path /note/create-note
|
|
52
|
+
*/
|
|
53
|
+
createNote(request: Request.createNote): Promise<string>
|
|
54
|
+
/**
|
|
55
|
+
* 根据订单id列表查询备注
|
|
56
|
+
* @path /note/query-note-by-order-id-list
|
|
57
|
+
*/
|
|
58
|
+
queryNoteByOrderIdList(request: Request.queryNoteByOrderIdList): Promise<Response.queryNoteByOrderIdList>
|
|
59
|
+
/**
|
|
60
|
+
* 查询未完成备注的订单Id
|
|
61
|
+
* @returns 订单Id列表
|
|
62
|
+
* @path /note/query-unfinished-note-order-id-list
|
|
63
|
+
*/
|
|
64
|
+
queryUnFinishedNoteOrderIdList(): Promise<string[]>
|
|
65
|
+
/**
|
|
66
|
+
* ai构建备注信息
|
|
67
|
+
* @path /note/ai-build-note-info
|
|
68
|
+
*/
|
|
69
|
+
aiBuildNoteInfo(request: Request.aiBuildNoteInfo): Promise<string>
|
|
70
|
+
/**
|
|
71
|
+
* 修改备注状态
|
|
72
|
+
* @path /note/change-note-status
|
|
73
|
+
*/
|
|
74
|
+
changeNoteStatus(request: Request.changeNoteStatus): Promise<void>
|
|
75
|
+
}
|
|
76
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import BaseService from '../service'
|
|
2
|
+
import { Service } from './types'
|
|
3
|
+
import { callApi } from '../../http'
|
|
4
|
+
import * as DTO from '../../../types'
|
|
5
|
+
|
|
6
|
+
class QueryByCommodityService extends BaseService implements Service.QueryByCommodityController {
|
|
7
|
+
|
|
8
|
+
protected prefixUrl = '/query/commodity'
|
|
9
|
+
|
|
10
|
+
queryTopSaleItem(request: Service.Request.queryTopSaleItem): Promise<Service.Response.queryTopSaleItem[]> {
|
|
11
|
+
return callApi<Service.QueryByCommodityController['queryTopSaleItem']>(this.getApiUrl(this.queryTopSaleItem), request)
|
|
12
|
+
}
|
|
13
|
+
querySaleItem(request: Service.Request.querySaleItem): Promise<Service.Response.querySaleItem[]> {
|
|
14
|
+
return callApi<Service.QueryByCommodityController['querySaleItem']>(this.getApiUrl(this.querySaleItem), request)
|
|
15
|
+
}
|
|
16
|
+
queryOrderInDepartureDate<K extends (keyof DTO.QueryDataBlockTypeMap)[]>(request: Service.Request.queryOrderInDepartureDate<K>): Promise<DTO.QueryDataRes<K>[]> {
|
|
17
|
+
return callApi<Service.QueryByCommodityController['queryOrderInDepartureDate']>(this.getApiUrl(this.queryOrderInDepartureDate), request)
|
|
18
|
+
}
|
|
19
|
+
queryOrderBySkuIdList<K extends (keyof DTO.QueryDataBlockTypeMap)[]>(request: Service.Request.queryOrderBySkuIdList<K>): Promise<DTO.QueryDataRes<K>[]> {
|
|
20
|
+
return callApi<Service.QueryByCommodityController['queryOrderBySkuIdList']>(this.getApiUrl(this.queryOrderBySkuIdList), request)
|
|
21
|
+
}
|
|
22
|
+
queryItineraryList(request: Service.Request.queryItineraryList): Promise<Service.Response.queryItineraryList[]> {
|
|
23
|
+
return callApi<Service.QueryByCommodityController['queryItineraryList']>(this.getApiUrl(this.queryItineraryList), request)
|
|
24
|
+
}
|
|
25
|
+
getItineraryCount(request: Service.Request.getItineraryCount): Promise<number> {
|
|
26
|
+
return callApi<Service.QueryByCommodityController['getItineraryCount']>(this.getApiUrl(this.getItineraryCount), request)
|
|
27
|
+
}
|
|
28
|
+
queryPartyOrderInfo(request: Service.Request.queryPartyOrderInfo): Promise<Service.Response.queryPartyOrderInfo[]> {
|
|
29
|
+
return callApi<Service.QueryByCommodityController['queryPartyOrderInfo']>(this.getApiUrl(this.queryPartyOrderInfo), request)
|
|
30
|
+
}
|
|
31
|
+
getPartyOrderCount(request: Service.Request.getPartyOrderCount): Promise<number> {
|
|
32
|
+
return callApi<Service.QueryByCommodityController['getPartyOrderCount']>(this.getApiUrl(this.getPartyOrderCount), request)
|
|
33
|
+
}
|
|
34
|
+
queryPeriodTradeOrderList(request: Service.Request.queryPeriodTradeOrderList): Promise<Service.Response.queryPeriodTradeOrderList[]> {
|
|
35
|
+
return callApi<Service.QueryByCommodityController['queryPeriodTradeOrderList']>(this.getApiUrl(this.queryPeriodTradeOrderList), request)
|
|
36
|
+
}
|
|
37
|
+
queryPeriodTradeOrderOperatorList(request: Service.Request.queryPeriodTradeOrderOperatorList): Promise<Service.Response.queryPeriodTradeOrderOperatorList[]> {
|
|
38
|
+
return callApi<Service.QueryByCommodityController['queryPeriodTradeOrderOperatorList']>(this.getApiUrl(this.queryPeriodTradeOrderOperatorList), request)
|
|
39
|
+
}
|
|
40
|
+
queryRollingSalesStatistics(request: Service.Request.queryRollingSalesStatistics): Promise<Service.Response.queryRollingSalesStatistics[]> {
|
|
41
|
+
return callApi<Service.QueryByCommodityController['queryRollingSalesStatistics']>(this.getApiUrl(this.queryRollingSalesStatistics), request)
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
const queryByCommodityService = new QueryByCommodityService()
|
|
46
|
+
|
|
47
|
+
export default queryByCommodityService
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import BaseService from '../service'
|
|
2
|
+
import { Service } from './types'
|
|
3
|
+
import { callApi } from '../../http'
|
|
4
|
+
import * as DTO from '../../../types'
|
|
5
|
+
|
|
6
|
+
class QueryByStoreService extends BaseService implements Service.QueryByStoreController {
|
|
7
|
+
|
|
8
|
+
protected prefixUrl = '/query/store'
|
|
9
|
+
|
|
10
|
+
queryRejectReasons(request: Service.Request.queryRejectReasons): Promise<Service.Response.queryRejectReasons> {
|
|
11
|
+
return callApi<Service.QueryByStoreController['queryRejectReasons']>(this.getApiUrl(this.queryRejectReasons), request)
|
|
12
|
+
}
|
|
13
|
+
queryOrderList<K extends (keyof DTO.QueryDataBlockTypeMap)[]>(request: Service.Request.queryStoreOrderList<K>): Promise<DTO.QueryDataRes<K>[]> {
|
|
14
|
+
return callApi<Service.QueryByStoreController['queryOrderList']>(this.getApiUrl(this.queryOrderList), request)
|
|
15
|
+
}
|
|
16
|
+
getOrderCount(request: Service.Request.getStoreOrderCount): Promise<number> {
|
|
17
|
+
return callApi<Service.QueryByStoreController['getOrderCount']>(this.getApiUrl(this.getOrderCount), request)
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
const queryByStoreService = new QueryByStoreService()
|
|
23
|
+
|
|
24
|
+
export default queryByStoreService
|