@be-link/cs-cli-nodejs 0.1.17 → 0.1.19
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/cs/modules/itemQuery/byItemCombo/service.d.ts +2 -0
- package/cs/modules/itemQuery/byItemCombo/service.js +3 -0
- package/cs/modules/itemQuery/byItemCombo/service.js.map +1 -1
- package/cs/modules/itemQuery/byItemCombo/type.d.ts +6 -0
- package/cs/modules/itemQuery/index.d.ts +1 -0
- package/package.json +1 -1
- package/types.d.ts +14 -0
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import BaseService from '../../baseService';
|
|
2
2
|
import { QueryByItemCombo } from './type';
|
|
3
|
+
import * as GDto from '../../../../types';
|
|
3
4
|
declare class QueryByItemComboService extends BaseService implements QueryByItemCombo.Controller {
|
|
4
5
|
prefixUrl: string;
|
|
5
6
|
get(request: QueryByItemCombo.Request.IGet): Promise<QueryByItemCombo.Response.IGet>;
|
|
6
7
|
getShortcut(request: QueryByItemCombo.Request.IGetShortcut): Promise<QueryByItemCombo.Response.IGetShortcut>;
|
|
7
8
|
mget(request: QueryByItemCombo.Request.IMGet): Promise<QueryByItemCombo.Response.IMGet[]>;
|
|
8
9
|
mgetShortcut(request: QueryByItemCombo.Request.IMGetShortcut): Promise<QueryByItemCombo.Response.IMGetShortcut[]>;
|
|
10
|
+
getComboRoomSaleBindCondition(request: QueryByItemCombo.Request.IGetComboRoomSaleBindCondition): Promise<GDto.IItemRoomSaleBindCondition>;
|
|
9
11
|
}
|
|
10
12
|
declare const byItemCombo: QueryByItemComboService;
|
|
11
13
|
export default byItemCombo;
|
|
@@ -22,6 +22,9 @@ class QueryByItemComboService extends baseService_1.default {
|
|
|
22
22
|
mgetShortcut(request) {
|
|
23
23
|
return (0, http_1.callApi)(this.getApiUrl(this.mgetShortcut), request);
|
|
24
24
|
}
|
|
25
|
+
getComboRoomSaleBindCondition(request) {
|
|
26
|
+
return (0, http_1.callApi)(this.getApiUrl(this.getComboRoomSaleBindCondition), request);
|
|
27
|
+
}
|
|
25
28
|
}
|
|
26
29
|
const byItemCombo = new QueryByItemComboService();
|
|
27
30
|
exports.default = byItemCombo;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"service.js","sourceRoot":"","sources":["../../../../../src/cs/modules/itemQuery/byItemCombo/service.ts"],"names":[],"mappings":";;;;;AAAA,oEAA2C;AAG3C,wCAAuC;AAEvC,MAAM,uBAAwB,SAAQ,qBAAW;IAAjD;;QACE,cAAS,GAAW,2BAA2B,CAAA;
|
|
1
|
+
{"version":3,"file":"service.js","sourceRoot":"","sources":["../../../../../src/cs/modules/itemQuery/byItemCombo/service.ts"],"names":[],"mappings":";;;;;AAAA,oEAA2C;AAG3C,wCAAuC;AAEvC,MAAM,uBAAwB,SAAQ,qBAAW;IAAjD;;QACE,cAAS,GAAW,2BAA2B,CAAA;IAoCjD,CAAC;IAlCC,GAAG,CAAC,OAAsC;QACxC,OAAO,IAAA,cAAO,EAAqC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,OAAO,CAAC,CAAA;IACvF,CAAC;IAED,WAAW,CACT,OAA8C;QAE9C,OAAO,IAAA,cAAO,EACZ,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,WAAW,CAAC,EAChC,OAAO,CACR,CAAA;IACH,CAAC;IAED,IAAI,CAAC,OAAuC;QAC1C,OAAO,IAAA,cAAO,EAAsC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,OAAO,CAAC,CAAA;IACzF,CAAC;IAED,YAAY,CACV,OAA+C;QAE/C,OAAO,IAAA,cAAO,EACZ,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,YAAY,CAAC,EACjC,OAAO,CACR,CAAA;IACH,CAAC;IAED,6BAA6B,CAC3B,OAAgE;QAEhE,OAAO,IAAA,cAAO,EACZ,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,6BAA6B,CAAC,EAClD,OAAO,CACR,CAAA;IACH,CAAC;CACF;AAED,MAAM,WAAW,GAAG,IAAI,uBAAuB,EAAE,CAAA;AACjD,kBAAe,WAAW,CAAA"}
|
|
@@ -18,6 +18,9 @@ export declare namespace QueryByItemCombo {
|
|
|
18
18
|
comboIds?: string[];
|
|
19
19
|
statusList?: CommodityEnums.CommonSaleStatus[];
|
|
20
20
|
}
|
|
21
|
+
interface IGetComboRoomSaleBindCondition {
|
|
22
|
+
comboId: string;
|
|
23
|
+
}
|
|
21
24
|
}
|
|
22
25
|
namespace Response {
|
|
23
26
|
interface IItemCombo {
|
|
@@ -37,6 +40,8 @@ export declare namespace QueryByItemCombo {
|
|
|
37
40
|
itemDiscountActivityId?: string;
|
|
38
41
|
/** 排序索引 */
|
|
39
42
|
orderIndex: number;
|
|
43
|
+
/** 最小购买数量 */
|
|
44
|
+
minOrderCount: number;
|
|
40
45
|
}
|
|
41
46
|
type IMGet = IItemCombo;
|
|
42
47
|
interface IMGetShortcut {
|
|
@@ -85,5 +90,6 @@ export declare namespace QueryByItemCombo {
|
|
|
85
90
|
getShortcut(request: QueryByItemCombo.Request.IGetShortcut): Promise<QueryByItemCombo.Response.IGetShortcut>;
|
|
86
91
|
mget(request: QueryByItemCombo.Request.IMGet): Promise<QueryByItemCombo.Response.IMGet[]>;
|
|
87
92
|
mgetShortcut(request: QueryByItemCombo.Request.IMGetShortcut): Promise<QueryByItemCombo.Response.IMGetShortcut[]>;
|
|
93
|
+
getComboRoomSaleBindCondition(request: QueryByItemCombo.Request.IGetComboRoomSaleBindCondition): Promise<GDto.IItemRoomSaleBindCondition>;
|
|
88
94
|
}
|
|
89
95
|
}
|
|
@@ -42,6 +42,7 @@ declare const itemQueryService: {
|
|
|
42
42
|
getShortcut(request: import("./byItemCombo/type").QueryByItemCombo.Request.IGetShortcut): Promise<import("./byItemCombo/type").QueryByItemCombo.Response.IGetShortcut>;
|
|
43
43
|
mget(request: import("./byItemCombo/type").QueryByItemCombo.Request.IMGet): Promise<import("./byItemCombo/type").QueryByItemCombo.Response.IItemCombo[]>;
|
|
44
44
|
mgetShortcut(request: import("./byItemCombo/type").QueryByItemCombo.Request.IMGetShortcut): Promise<import("./byItemCombo/type").QueryByItemCombo.Response.IMGetShortcut[]>;
|
|
45
|
+
getComboRoomSaleBindCondition(request: import("./byItemCombo/type").QueryByItemCombo.Request.IGetComboRoomSaleBindCondition): Promise<import("../../../types").IItemRoomSaleBindCondition>;
|
|
45
46
|
isPublicEnv: boolean;
|
|
46
47
|
readonly natDevHost: "http://qgostaxv.cs.nmkh74o4.rlwzae9d.com:8090";
|
|
47
48
|
readonly natProdHost: "http://bxbvjnca.cs.cwl9ok0a.mk2u3r3l.com:8090";
|
package/package.json
CHANGED
package/types.d.ts
CHANGED
|
@@ -267,6 +267,20 @@ export interface IItemSalesDescription {
|
|
|
267
267
|
subCategory: DescriptionContentItem[];
|
|
268
268
|
}[];
|
|
269
269
|
}
|
|
270
|
+
/**
|
|
271
|
+
* @description: 商品售卖房型的绑定条件
|
|
272
|
+
*/
|
|
273
|
+
export interface IItemRoomSaleBindCondition {
|
|
274
|
+
status: commodityEnums.CommonStatus;
|
|
275
|
+
itemId: string;
|
|
276
|
+
roomId: string;
|
|
277
|
+
comboId: string;
|
|
278
|
+
condition: {
|
|
279
|
+
type: commodityEnums.ItemRoomSaleBindConditionType;
|
|
280
|
+
value: number;
|
|
281
|
+
};
|
|
282
|
+
saleCount: number;
|
|
283
|
+
}
|
|
270
284
|
/** 商品信息查询结果 */
|
|
271
285
|
export type QueryDataRes<K extends (keyof QueryBlockDataMap)[]> = {
|
|
272
286
|
[key in K[number]]: QueryBlockDataMap[key];
|