@be-link/cs-cli-nodejs 0.0.23 → 0.0.25
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.
|
@@ -2,7 +2,9 @@ import BaseService from '../baseService';
|
|
|
2
2
|
import { Supplier } from './types';
|
|
3
3
|
declare class SupplierService extends BaseService implements Supplier.Controller {
|
|
4
4
|
prefixUrl: string;
|
|
5
|
-
upsert(request: Supplier.Request.IUpsert): Promise<
|
|
5
|
+
upsert(request: Supplier.Request.IUpsert): Promise<{
|
|
6
|
+
id?: string;
|
|
7
|
+
}>;
|
|
6
8
|
query(request: Supplier.Request.IQuery): Promise<Supplier.Response.IQuery>;
|
|
7
9
|
get(request: {
|
|
8
10
|
id: string;
|
|
@@ -93,7 +93,9 @@ export declare namespace Supplier {
|
|
|
93
93
|
id: string;
|
|
94
94
|
}): Promise<Response.IGet>;
|
|
95
95
|
/** 创建/更新供应商 */
|
|
96
|
-
upsert(request: Request.IUpsert): Promise<
|
|
96
|
+
upsert(request: Request.IUpsert): Promise<{
|
|
97
|
+
id?: string;
|
|
98
|
+
}>;
|
|
97
99
|
/** 查询供应商列表 */
|
|
98
100
|
query(request: Request.IQuery): Promise<Response.IQuery>;
|
|
99
101
|
/** 删除供应商 */
|
package/package.json
CHANGED
package/types.d.ts
CHANGED
|
@@ -138,6 +138,74 @@ export interface IHotelItemInfo {
|
|
|
138
138
|
swimmingPool: EntertainmentDescItem;
|
|
139
139
|
};
|
|
140
140
|
}
|
|
141
|
+
/**
|
|
142
|
+
* @description: 基础套餐接口
|
|
143
|
+
*/
|
|
144
|
+
export interface IItemCombo {
|
|
145
|
+
/** 套餐ID */
|
|
146
|
+
id: string;
|
|
147
|
+
createdAt: number;
|
|
148
|
+
updatedAt: number;
|
|
149
|
+
/** 商品ID */
|
|
150
|
+
itemId: string;
|
|
151
|
+
/** 一级类目 */
|
|
152
|
+
categoryOne: string;
|
|
153
|
+
/** 二级类目 */
|
|
154
|
+
categoryTwo: string;
|
|
155
|
+
/** 套餐名称 */
|
|
156
|
+
name: string;
|
|
157
|
+
/** 状态 */
|
|
158
|
+
status: string;
|
|
159
|
+
/** 房型ID列表 */
|
|
160
|
+
roomList: string[];
|
|
161
|
+
/** 排序索引 */
|
|
162
|
+
orderIndex: number;
|
|
163
|
+
/** 最小购买数量 */
|
|
164
|
+
minOrderCount: number;
|
|
165
|
+
/** 套餐描述信息 */
|
|
166
|
+
description: DescriptionContentItem[];
|
|
167
|
+
/** 额外信息 */
|
|
168
|
+
extraInfo: {
|
|
169
|
+
/** 餐饮位图 */
|
|
170
|
+
mealBitmap: string;
|
|
171
|
+
/** 是否可以修改餐饮 */
|
|
172
|
+
isCanModifyMeal: boolean;
|
|
173
|
+
/** 餐饮差异价格 */
|
|
174
|
+
mealDiffPrice: number;
|
|
175
|
+
/** KTV供应商列表 */
|
|
176
|
+
ktvSupplierList: string[];
|
|
177
|
+
/** 卡券供应商列表 */
|
|
178
|
+
cardSupplierList: string[];
|
|
179
|
+
/** 最小夜数 */
|
|
180
|
+
minNightNum: number;
|
|
181
|
+
/** 最大夜数 */
|
|
182
|
+
maxNightNum: number;
|
|
183
|
+
/** 是否仅限双倍数量 */
|
|
184
|
+
isOnlyDoubleQuantity: boolean;
|
|
185
|
+
/** 餐饮菜单图片 */
|
|
186
|
+
mealMenuPics: string[];
|
|
187
|
+
};
|
|
188
|
+
}
|
|
189
|
+
export interface IItemComboShortcut {
|
|
190
|
+
/** 套餐ID */
|
|
191
|
+
id: string;
|
|
192
|
+
createdAt: number;
|
|
193
|
+
updatedAt: number;
|
|
194
|
+
/** 商品ID */
|
|
195
|
+
itemId: string;
|
|
196
|
+
/** 套餐ID */
|
|
197
|
+
comboId: string;
|
|
198
|
+
/** 套餐名称 */
|
|
199
|
+
name: string;
|
|
200
|
+
/** 状态 */
|
|
201
|
+
status: string;
|
|
202
|
+
/** 排序索引 */
|
|
203
|
+
orderIndex: number;
|
|
204
|
+
/** 入住晚数 */
|
|
205
|
+
nightNum: number;
|
|
206
|
+
/** 套餐描述信息 */
|
|
207
|
+
description: DescriptionContentItem[];
|
|
208
|
+
}
|
|
141
209
|
/** 商品信息查询结果 */
|
|
142
210
|
export type QueryDataRes<K extends (keyof QueryBlockDataMap)[]> = {
|
|
143
211
|
[key in K[number]]: QueryBlockDataMap[key];
|