@be-link/cs-cli-nodejs 0.0.61 → 0.0.62
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.
|
@@ -3,12 +3,12 @@ import { ShuttleBusSupplier } from './types';
|
|
|
3
3
|
declare class ShuttleBusSupplierService extends BaseService implements ShuttleBusSupplier.Controller {
|
|
4
4
|
prefixUrl: string;
|
|
5
5
|
queryShuttleBusSupplierList(request: ShuttleBusSupplier.Request.QueryShuttleBusSupplierList): Promise<ShuttleBusSupplier.Response.QueryShuttleBusSupplierList>;
|
|
6
|
-
queryShuttleBusSupplierWxGroup(): Promise<ShuttleBusSupplier.Response.QueryShuttleBusSupplierWxGroupArray>;
|
|
7
6
|
upsertShuttleBusSupplier(request: ShuttleBusSupplier.Request.UpsertShuttleBusSupplier): Promise<ShuttleBusSupplier.Response.UpsertShuttleBusSupplier>;
|
|
8
7
|
queryShuttleBusRoute(request: ShuttleBusSupplier.Request.QueryShuttleBusRoute): Promise<ShuttleBusSupplier.Response.QueryShuttleBusRoute>;
|
|
9
8
|
upsertShuttleBusPickupPoint(request: ShuttleBusSupplier.Request.UpsertShuttleBusPickupPoint): Promise<ShuttleBusSupplier.Response.UpsertShuttleBusPickupPoint>;
|
|
10
9
|
getProductAssociatedShuttleSupplierList(request: ShuttleBusSupplier.Request.GetProductAssociatedShuttleSupplierList): Promise<ShuttleBusSupplier.Response.GetProductAssociatedShuttleSupplierList>;
|
|
11
10
|
bindShuttleBus(request: ShuttleBusSupplier.Request.BindShuttleBus): Promise<void>;
|
|
11
|
+
editShuttleBusProduct(request: ShuttleBusSupplier.Request.editShuttleBusProduct): Promise<void>;
|
|
12
12
|
}
|
|
13
13
|
declare const shuttleBusSupplierService: ShuttleBusSupplierService;
|
|
14
14
|
export default shuttleBusSupplierService;
|
|
@@ -13,9 +13,6 @@ class ShuttleBusSupplierService extends baseService_1.default {
|
|
|
13
13
|
queryShuttleBusSupplierList(request) {
|
|
14
14
|
return (0, http_1.callApi)(this.getApiUrl(this.queryShuttleBusSupplierList), request);
|
|
15
15
|
}
|
|
16
|
-
queryShuttleBusSupplierWxGroup() {
|
|
17
|
-
return (0, http_1.callApi)(this.getApiUrl(this.queryShuttleBusSupplierWxGroup));
|
|
18
|
-
}
|
|
19
16
|
upsertShuttleBusSupplier(request) {
|
|
20
17
|
return (0, http_1.callApi)(this.getApiUrl(this.upsertShuttleBusSupplier), request);
|
|
21
18
|
}
|
|
@@ -31,6 +28,9 @@ class ShuttleBusSupplierService extends baseService_1.default {
|
|
|
31
28
|
bindShuttleBus(request) {
|
|
32
29
|
return (0, http_1.callApi)(this.getApiUrl(this.bindShuttleBus), request);
|
|
33
30
|
}
|
|
31
|
+
editShuttleBusProduct(request) {
|
|
32
|
+
return (0, http_1.callApi)(this.getApiUrl(this.editShuttleBusProduct), request);
|
|
33
|
+
}
|
|
34
34
|
}
|
|
35
35
|
const shuttleBusSupplierService = new ShuttleBusSupplierService();
|
|
36
36
|
exports.default = shuttleBusSupplierService;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"service.js","sourceRoot":"","sources":["../../../../src/cs/modules/shuttleBusSupplier/service.ts"],"names":[],"mappings":";;;;;AAAA,qCAAoC;AACpC,iEAAwC;AAGxC,MAAM,yBAA0B,SAAQ,qBAAW;IAAnD;;QACE,cAAS,GAAG,uBAAuB,CAAA;
|
|
1
|
+
{"version":3,"file":"service.js","sourceRoot":"","sources":["../../../../src/cs/modules/shuttleBusSupplier/service.ts"],"names":[],"mappings":";;;;;AAAA,qCAAoC;AACpC,iEAAwC;AAGxC,MAAM,yBAA0B,SAAQ,qBAAW;IAAnD;;QACE,cAAS,GAAG,uBAAuB,CAAA;IA2DrC,CAAC;IA1DC,2BAA2B,CACzB,OAA+D;QAE/D,OAAO,IAAA,cAAO,EACZ,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,2BAA2B,CAAC,EAChD,OAAO,CACR,CAAA;IACH,CAAC;IAED,wBAAwB,CACtB,OAA4D;QAE5D,OAAO,IAAA,cAAO,EACZ,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,wBAAwB,CAAC,EAC7C,OAAO,CACR,CAAA;IACH,CAAC;IAED,oBAAoB,CAClB,OAAwD;QAExD,OAAO,IAAA,cAAO,EACZ,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,oBAAoB,CAAC,EACzC,OAAO,CACR,CAAA;IACH,CAAC;IAED,2BAA2B,CACzB,OAA+D;QAE/D,OAAO,IAAA,cAAO,EACZ,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,2BAA2B,CAAC,EAChD,OAAO,CACR,CAAA;IACH,CAAC;IAED,uCAAuC,CACrC,OAA2E;QAE3E,OAAO,IAAA,cAAO,EACZ,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,uCAAuC,CAAC,EAC5D,OAAO,CACR,CAAA;IACH,CAAC;IAED,cAAc,CAAC,OAAkD;QAC/D,OAAO,IAAA,cAAO,EACZ,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,cAAc,CAAC,EACnC,OAAO,CACR,CAAA;IACH,CAAC;IAED,qBAAqB,CAAC,OAAyD;QAC7E,OAAO,IAAA,cAAO,EACZ,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,qBAAqB,CAAC,EAC1C,OAAO,CACR,CAAA;IACH,CAAC;CACF;AAED,MAAM,yBAAyB,GAAG,IAAI,yBAAyB,EAAE,CAAA;AAEjE,kBAAe,yBAAyB,CAAA"}
|
|
@@ -78,10 +78,15 @@ export declare namespace ShuttleBusSupplier {
|
|
|
78
78
|
interface UpsertShuttleBusSupplier {
|
|
79
79
|
id?: string;
|
|
80
80
|
name: string;
|
|
81
|
+
/** 联系人 */
|
|
81
82
|
contactName: string;
|
|
83
|
+
/** 联系电话 */
|
|
82
84
|
contactMobile: string;
|
|
85
|
+
/** 业务负责人 */
|
|
83
86
|
bizOwner: string;
|
|
87
|
+
/** 微信群ID */
|
|
84
88
|
wxGroupId: string;
|
|
89
|
+
/** 供应商描述 */
|
|
85
90
|
description: string;
|
|
86
91
|
}
|
|
87
92
|
interface QueryShuttleBusRoute {
|
|
@@ -93,28 +98,42 @@ export declare namespace ShuttleBusSupplier {
|
|
|
93
98
|
}
|
|
94
99
|
interface UpsertShuttleBusPickupPoint {
|
|
95
100
|
id?: string;
|
|
101
|
+
/** 供应商ID */
|
|
96
102
|
supplierId: string;
|
|
103
|
+
/** 上车点名称 */
|
|
97
104
|
departureAddress: string;
|
|
105
|
+
/** 上车点经度 */
|
|
98
106
|
departureLongitude: number;
|
|
107
|
+
/** 上车点纬度 */
|
|
99
108
|
departureLatitude: number;
|
|
109
|
+
/** 上车点省份 */
|
|
100
110
|
departureProvince: string;
|
|
111
|
+
/** 上车点城市 */
|
|
101
112
|
departureCity: string;
|
|
113
|
+
/** 上车点区县 */
|
|
102
114
|
departureDistrict: string;
|
|
103
115
|
status: CommonStatus;
|
|
104
116
|
}
|
|
105
117
|
interface GetProductAssociatedShuttleSupplierList {
|
|
106
|
-
|
|
118
|
+
itemId: string;
|
|
107
119
|
}
|
|
108
120
|
interface BindShuttleBus {
|
|
109
121
|
itemId: string;
|
|
110
|
-
|
|
122
|
+
bindRouteIds: string[];
|
|
123
|
+
unbindRouteIds: string[];
|
|
124
|
+
}
|
|
125
|
+
interface editShuttleBusProduct {
|
|
126
|
+
itemId: string;
|
|
111
127
|
routeId: string;
|
|
128
|
+
/** 销售价 */
|
|
112
129
|
salePrice: number;
|
|
113
130
|
settlementPrice: number;
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
131
|
+
/** 是否限制库存 */
|
|
132
|
+
isLimitStock: boolean;
|
|
133
|
+
/** 售卖日期 */
|
|
134
|
+
validDates?: number[];
|
|
135
|
+
pickUpTime?: number[];
|
|
136
|
+
saleDesc?: string;
|
|
118
137
|
}
|
|
119
138
|
}
|
|
120
139
|
namespace Response {
|
|
@@ -135,19 +154,12 @@ export declare namespace ShuttleBusSupplier {
|
|
|
135
154
|
/** 总记录数 */
|
|
136
155
|
total: number;
|
|
137
156
|
}
|
|
138
|
-
interface QueryShuttleBusSupplierWxGroup {
|
|
139
|
-
/** 微信群 ID */
|
|
140
|
-
wxGroupId: string;
|
|
141
|
-
/** 微信群名称 */
|
|
142
|
-
wxGroupName: string;
|
|
143
|
-
}
|
|
144
|
-
type QueryShuttleBusSupplierWxGroupArray = QueryShuttleBusSupplierWxGroup[];
|
|
145
157
|
interface UpsertShuttleBusSupplier {
|
|
146
158
|
/** 供应商ID */
|
|
147
159
|
id: string;
|
|
148
160
|
}
|
|
149
161
|
interface QueryShuttleBusRoute {
|
|
150
|
-
data: DTO.
|
|
162
|
+
data: DTO.ShuttleBusRouteInfo[];
|
|
151
163
|
total: number;
|
|
152
164
|
}
|
|
153
165
|
interface UpsertShuttleBusPickupPoint {
|
|
@@ -158,8 +170,6 @@ export declare namespace ShuttleBusSupplier {
|
|
|
158
170
|
interface Controller {
|
|
159
171
|
/** 查询班车供应商列表 */
|
|
160
172
|
queryShuttleBusSupplierList(request: Request.QueryShuttleBusSupplierList): Promise<Response.QueryShuttleBusSupplierList>;
|
|
161
|
-
/** 查询班车供应商报单群 */
|
|
162
|
-
queryShuttleBusSupplierWxGroup(): Promise<Response.QueryShuttleBusSupplierWxGroupArray>;
|
|
163
173
|
/** 创建或更新班车供应商 */
|
|
164
174
|
upsertShuttleBusSupplier(request: Request.UpsertShuttleBusSupplier): Promise<Response.UpsertShuttleBusSupplier>;
|
|
165
175
|
/** 查询班车供应商路线 */
|
|
@@ -170,5 +180,7 @@ export declare namespace ShuttleBusSupplier {
|
|
|
170
180
|
getProductAssociatedShuttleSupplierList(request: Request.GetProductAssociatedShuttleSupplierList): Promise<Response.GetProductAssociatedShuttleSupplierList>;
|
|
171
181
|
/** 绑定班车供应商 */
|
|
172
182
|
bindShuttleBus(request: Request.BindShuttleBus): Promise<void>;
|
|
183
|
+
/** 编辑班车供应商 */
|
|
184
|
+
editShuttleBusProduct(request: Request.editShuttleBusProduct): Promise<void>;
|
|
173
185
|
}
|
|
174
186
|
}
|