@be-link/cs-cli-nodejs 0.0.52 → 0.0.53
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/byItem/service.d.ts +1 -0
- package/cs/modules/itemQuery/byItem/service.js +3 -0
- package/cs/modules/itemQuery/byItem/service.js.map +1 -1
- package/cs/modules/itemQuery/byItem/type.d.ts +18 -0
- package/cs/modules/itemQuery/byItem/type.js.map +1 -1
- package/cs/modules/itemQuery/index.d.ts +1 -0
- package/package.json +1 -1
|
@@ -11,6 +11,7 @@ declare class QueryByItemService extends BaseService implements QueryByItem.Cont
|
|
|
11
11
|
mget<K extends (keyof GDto.QueryBlockDataMap)[]>(request: QueryByItem.Request.IMget<K>): Promise<GDto.QueryDataRes<K>[]>;
|
|
12
12
|
queryItemListByCategory<K extends (keyof GDto.QueryBlockDataMap)[]>(request: QueryByItem.Request.IQueryItemListByCategory<K>): Promise<GDto.QueryDataRes<K>[]>;
|
|
13
13
|
queryCenterForItem(request: QueryByItem.Request.QueryCenterForItem): Promise<QueryByItem.Response.QueryCenterForItem>;
|
|
14
|
+
getItemDetail(request: QueryByItem.Request.IGetItemDetail): Promise<QueryByItem.Response.IGetItemDetail>;
|
|
14
15
|
}
|
|
15
16
|
declare const byItem: QueryByItemService;
|
|
16
17
|
export default byItem;
|
|
@@ -26,6 +26,9 @@ class QueryByItemService extends baseService_1.default {
|
|
|
26
26
|
queryCenterForItem(request) {
|
|
27
27
|
return (0, http_1.callApi)(this.getApiUrl(this.queryCenterForItem), request);
|
|
28
28
|
}
|
|
29
|
+
getItemDetail(request) {
|
|
30
|
+
return (0, http_1.callApi)(this.getApiUrl(this.getItemDetail), request);
|
|
31
|
+
}
|
|
29
32
|
}
|
|
30
33
|
const byItem = new QueryByItemService();
|
|
31
34
|
exports.default = byItem;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"service.js","sourceRoot":"","sources":["../../../../../src/cs/modules/itemQuery/byItem/service.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;;;AAEH,wCAAuC;AACvC,oEAA2C;AAI3C,MAAM,kBAAmB,SAAQ,qBAAW;IAA5C;;QACE,cAAS,GAAW,qBAAqB,CAAA;
|
|
1
|
+
{"version":3,"file":"service.js","sourceRoot":"","sources":["../../../../../src/cs/modules/itemQuery/byItem/service.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;;;AAEH,wCAAuC;AACvC,oEAA2C;AAI3C,MAAM,kBAAmB,SAAQ,qBAAW;IAA5C;;QACE,cAAS,GAAW,qBAAqB,CAAA;IAwC3C,CAAC;IAtCC,GAAG,CACD,OAAoC;QAEpC,OAAO,IAAA,cAAO,EAAgC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,OAAO,CAAC,CAAA;IAClF,CAAC;IAED,IAAI,CACF,OAAqC;QAErC,OAAO,IAAA,cAAO,EAAiC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,OAAO,CAAC,CAAA;IACpF,CAAC;IAED,uBAAuB,CACrB,OAAwD;QAExD,OAAO,IAAA,cAAO,EACZ,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,uBAAuB,CAAC,EAC5C,OAAO,CACR,CAAA;IACH,CAAC;IAED,kBAAkB,CAChB,OAA+C;QAE/C,OAAO,IAAA,cAAO,EACZ,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,kBAAkB,CAAC,EACvC,OAAO,CACR,CAAA;IACH,CAAC;IAED,aAAa,CACX,OAA2C;QAE3C,OAAO,IAAA,cAAO,EACZ,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,aAAa,CAAC,EAClC,OAAO,CACR,CAAA;IACH,CAAC;CACF;AAED,MAAM,MAAM,GAAG,IAAI,kBAAkB,EAAE,CAAA;AAEvC,kBAAe,MAAM,CAAA"}
|
|
@@ -1,9 +1,16 @@
|
|
|
1
1
|
import * as CommodityEnums from 'vitality-meta/enums/commodity';
|
|
2
2
|
import * as GDto from '../../../../types';
|
|
3
|
+
import { CSDto } from '../../../..';
|
|
3
4
|
export declare namespace QueryByItem {
|
|
4
5
|
namespace DTO {
|
|
5
6
|
interface ItemBasicInfo {
|
|
6
7
|
}
|
|
8
|
+
interface IBizTag {
|
|
9
|
+
id: string;
|
|
10
|
+
name: string;
|
|
11
|
+
type: string;
|
|
12
|
+
orderIndex: number;
|
|
13
|
+
}
|
|
7
14
|
}
|
|
8
15
|
namespace Request {
|
|
9
16
|
interface IGet<K> {
|
|
@@ -99,12 +106,21 @@ export declare namespace QueryByItem {
|
|
|
99
106
|
/** 页目条数. 默认10, 最大20 */
|
|
100
107
|
pageSize?: number;
|
|
101
108
|
}
|
|
109
|
+
interface IGetItemDetail {
|
|
110
|
+
itemId: string;
|
|
111
|
+
}
|
|
102
112
|
}
|
|
103
113
|
namespace Response {
|
|
104
114
|
interface QueryCenterForItem {
|
|
105
115
|
id: string;
|
|
106
116
|
isNewItem: boolean;
|
|
107
117
|
}
|
|
118
|
+
interface IGetItemDetail {
|
|
119
|
+
basicInfo: CSDto.IItemBasicInfo;
|
|
120
|
+
attributes: CSDto.IItemAttributes;
|
|
121
|
+
hotelItemInfo: CSDto.IHotelItemInfo;
|
|
122
|
+
bizTagList: DTO.IBizTag[];
|
|
123
|
+
}
|
|
108
124
|
}
|
|
109
125
|
interface Controller {
|
|
110
126
|
get<K extends (keyof GDto.QueryBlockDataMap)[]>(request: Request.IGet<K>): Promise<GDto.QueryDataRes<K>>;
|
|
@@ -112,5 +128,7 @@ export declare namespace QueryByItem {
|
|
|
112
128
|
queryItemListByCategory<k extends (keyof GDto.QueryBlockDataMap)[]>(request: Request.IQueryItemListByCategory<k>): Promise<GDto.QueryDataRes<k>[]>;
|
|
113
129
|
/** 商品搜索大全 */
|
|
114
130
|
queryCenterForItem(request: Request.QueryCenterForItem): Promise<Response.QueryCenterForItem>;
|
|
131
|
+
/** 商品详情 */
|
|
132
|
+
getItemDetail(request: Request.IGetItemDetail): Promise<Response.IGetItemDetail>;
|
|
115
133
|
}
|
|
116
134
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"type.js","sourceRoot":"","sources":["../../../../../src/cs/modules/itemQuery/byItem/type.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"type.js","sourceRoot":"","sources":["../../../../../src/cs/modules/itemQuery/byItem/type.ts"],"names":[],"mappings":";;;AAIA,IAAiB,WAAW,CAyK3B;AAzKD,WAAiB,WAAW;IAmI1B,IAAiB,QAAQ,CAiBxB;IAjBD,WAAiB,QAAQ;QAItB,EAAE,CAAA;IAaL,CAAC,EAjBgB,QAAQ,GAAR,oBAAQ,KAAR,oBAAQ,QAiBxB;AAqBH,CAAC,EAzKgB,WAAW,2BAAX,WAAW,QAyK3B"}
|
|
@@ -5,6 +5,7 @@ declare const itemQueryService: {
|
|
|
5
5
|
mget<K_1 extends (keyof import("../../../types").QueryBlockDataMap)[]>(request: import("./byItem/type").QueryByItem.Request.IMget<K_1>): Promise<import("../../../types").QueryDataRes<K_1>[]>;
|
|
6
6
|
queryItemListByCategory<K_2 extends (keyof import("../../../types").QueryBlockDataMap)[]>(request: import("./byItem/type").QueryByItem.Request.IQueryItemListByCategory<K_2>): Promise<import("../../../types").QueryDataRes<K_2>[]>;
|
|
7
7
|
queryCenterForItem(request: import("./byItem/type").QueryByItem.Request.QueryCenterForItem): Promise<import("./byItem/type").QueryByItem.Response.QueryCenterForItem>;
|
|
8
|
+
getItemDetail(request: import("./byItem/type").QueryByItem.Request.IGetItemDetail): Promise<import("./byItem/type").QueryByItem.Response.IGetItemDetail>;
|
|
8
9
|
isPublicEnv: boolean;
|
|
9
10
|
readonly natDevHost: "http://qgostaxv.cs.nmkh74o4.rlwzae9d.com:8090";
|
|
10
11
|
readonly natProdHost: "";
|