@be-link/cs-cli-nodejs 0.1.56 → 0.1.57
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 +60 -0
- package/cs/modules/itemQuery/index.d.ts +1 -0
- package/package.json +1 -1
- package/types.d.ts +1 -2
|
@@ -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<QueryByItem.Response.IQueryItemList<K>>;
|
|
13
13
|
queryCenterForItem(request: QueryByItem.Request.QueryCenterForItem): Promise<QueryByItem.Response.QueryCenterForItem>;
|
|
14
|
+
queryItemSearchInfo<K extends (keyof GDto.IItemSearchInfo)[]>(request: QueryByItem.Request.IQueryItemSearchInfo<K>): Promise<QueryByItem.Response.IQueryItemSearchInfo<K>>;
|
|
14
15
|
/** 根据标签查询商品列表 */
|
|
15
16
|
queryItemListByTag(request: QueryByItem.Request.IQueryItemListByTag): Promise<QueryByItem.Response.IQueryItemListByTag[]>;
|
|
16
17
|
updateItemSearchInfoBatch: () => Promise<void>;
|
|
@@ -29,6 +29,9 @@ class QueryByItemService extends baseService_1.default {
|
|
|
29
29
|
queryCenterForItem(request) {
|
|
30
30
|
return (0, http_1.callApi)(this.getApiUrl(this.queryCenterForItem), request);
|
|
31
31
|
}
|
|
32
|
+
queryItemSearchInfo(request) {
|
|
33
|
+
return (0, http_1.callApi)(this.getApiUrl(this.queryItemSearchInfo), request);
|
|
34
|
+
}
|
|
32
35
|
/** 根据标签查询商品列表 */
|
|
33
36
|
queryItemListByTag(request) {
|
|
34
37
|
return (0, http_1.callApi)(this.getApiUrl(this.queryItemListByTag), request);
|
|
@@ -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;QAmDzC,8BAAyB,GAAG,KAAK,IAAmB,EAAE;YACpD,OAAO,IAAA,cAAO,EACZ,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,yBAAyB,CAAC,CAC/C,CAAA;QACH,CAAC,CAAA;IAUH,CAAC;IA/DC,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,mBAAmB,CACjB,OAAoD;QAEpD,OAAO,IAAA,cAAO,EACZ,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,mBAAmB,CAAC,EACxC,OAAO,CACR,CAAA;IACH,CAAC;IAED,iBAAiB;IACjB,kBAAkB,CAChB,OAAgD;QAEhD,OAAO,IAAA,cAAO,EACZ,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,kBAAkB,CAAC,EACvC,OAAO,CACR,CAAA;IACH,CAAC;IAQD,uBAAuB,CAAC,OAEvB;QACC,OAAO,IAAA,cAAO,EACZ,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,uBAAuB,CAAC,EAC5C,OAAO,CACR,CAAA;IACH,CAAC;CACF;AAED,MAAM,MAAM,GAAG,IAAI,kBAAkB,EAAE,CAAA;AAEvC,kBAAe,MAAM,CAAA"}
|
|
@@ -97,6 +97,60 @@ export declare namespace QueryByItem {
|
|
|
97
97
|
/** 标签ID */
|
|
98
98
|
tagId: string;
|
|
99
99
|
}
|
|
100
|
+
interface IQueryItemSearchInfo<K> {
|
|
101
|
+
/** 搜索条件 */
|
|
102
|
+
condition?: {
|
|
103
|
+
/** 商品维度条件 */
|
|
104
|
+
itemInfo?: {
|
|
105
|
+
idList?: string[];
|
|
106
|
+
name?: string;
|
|
107
|
+
/** 是否迁移商品 */
|
|
108
|
+
isMigration?: boolean;
|
|
109
|
+
/** 二级类目列表 */
|
|
110
|
+
categoryTwoList?: string[];
|
|
111
|
+
/** 状态 */
|
|
112
|
+
status?: CommodityEnums.ItemStatus | CommodityEnums.ItemStatus[];
|
|
113
|
+
isOnlyStaffCanSee?: boolean;
|
|
114
|
+
/** 有效库存的最低售卖价 (如果无可售库存, 该值为0) */
|
|
115
|
+
minItemSalePrice?: number;
|
|
116
|
+
/** 是否会员商品 */
|
|
117
|
+
isMemberPrice?: boolean;
|
|
118
|
+
/** 适用城市列表 */
|
|
119
|
+
cityList?: string[];
|
|
120
|
+
};
|
|
121
|
+
/** 门店维度条件 */
|
|
122
|
+
venueInfo?: {
|
|
123
|
+
/** 门店位置 */
|
|
124
|
+
location?: {
|
|
125
|
+
/** 省份 */
|
|
126
|
+
province?: string;
|
|
127
|
+
/** 城市. 查询全部则不传 */
|
|
128
|
+
city?: string;
|
|
129
|
+
/** 行政区. 查询全部则不传 */
|
|
130
|
+
district?: string;
|
|
131
|
+
/** 具体名称 */
|
|
132
|
+
address?: string;
|
|
133
|
+
};
|
|
134
|
+
/** 供应商ID列表 */
|
|
135
|
+
idList?: string[];
|
|
136
|
+
/** 是否农家乐合作商品 */
|
|
137
|
+
isFarmHouseCollaborated?: boolean;
|
|
138
|
+
};
|
|
139
|
+
/** 商品标签条件 */
|
|
140
|
+
itemTags?: number[];
|
|
141
|
+
};
|
|
142
|
+
/** 排序条件 */
|
|
143
|
+
sort?: {
|
|
144
|
+
filed: SortField;
|
|
145
|
+
order: SortOrder;
|
|
146
|
+
};
|
|
147
|
+
/** 页码. 从0起始, 默认0 */
|
|
148
|
+
pageIndex?: number;
|
|
149
|
+
/** 页目条数. 默认10, 最大20 */
|
|
150
|
+
pageSize?: number;
|
|
151
|
+
/** 查询字段 */
|
|
152
|
+
filterFields?: K;
|
|
153
|
+
}
|
|
100
154
|
}
|
|
101
155
|
namespace Response {
|
|
102
156
|
interface IQueryItemListByTag {
|
|
@@ -135,6 +189,10 @@ export declare namespace QueryByItem {
|
|
|
135
189
|
})[];
|
|
136
190
|
total: number;
|
|
137
191
|
}
|
|
192
|
+
interface IQueryItemSearchInfo<K extends (keyof GDto.IItemSearchInfo)[]> {
|
|
193
|
+
data: GDto.QueryItemSearchInfoRes<K>[];
|
|
194
|
+
total?: number;
|
|
195
|
+
}
|
|
138
196
|
}
|
|
139
197
|
interface Controller {
|
|
140
198
|
get<K extends (keyof GDto.QueryBlockDataMap)[]>(request: Request.IGet<K>): Promise<GDto.QueryDataRes<K>>;
|
|
@@ -144,6 +202,8 @@ export declare namespace QueryByItem {
|
|
|
144
202
|
queryItemListByTag(request: Request.IQueryItemListByTag): Promise<Response.IQueryItemListByTag[]>;
|
|
145
203
|
/** 商品搜索大全 */
|
|
146
204
|
queryCenterForItem(request: Request.QueryCenterForItem): Promise<Response.QueryCenterForItem>;
|
|
205
|
+
/** 商品搜索大全指定查询和返回字段 */
|
|
206
|
+
queryItemSearchInfo<K extends (keyof GDto.IItemSearchInfo)[]>(request: Request.IQueryItemSearchInfo<K>): Promise<Response.IQueryItemSearchInfo<K>>;
|
|
147
207
|
updateItemSearchInfoBatch(): Promise<void>;
|
|
148
208
|
/** 根据更新时间查询商品ID */
|
|
149
209
|
queryItemIdsByUpdatedAt(request: {
|
|
@@ -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("./byItem/type").QueryByItem.Response.IQueryItemList<K_2>>;
|
|
7
7
|
queryCenterForItem(request: import("./byItem/type").QueryByItem.Request.QueryCenterForItem): Promise<import("./byItem/type").QueryByItem.Response.QueryCenterForItem>;
|
|
8
|
+
queryItemSearchInfo<K_3 extends (keyof import("../../../types").IItemSearchInfo)[]>(request: import("./byItem/type").QueryByItem.Request.IQueryItemSearchInfo<K_3>): Promise<import("./byItem/type").QueryByItem.Response.IQueryItemSearchInfo<K_3>>;
|
|
8
9
|
queryItemListByTag(request: import("./byItem/type").QueryByItem.Request.IQueryItemListByTag): Promise<import("./byItem/type").QueryByItem.Response.IQueryItemListByTag[]>;
|
|
9
10
|
updateItemSearchInfoBatch: () => Promise<void>;
|
|
10
11
|
queryItemIdsByUpdatedAt(request: {
|
package/package.json
CHANGED
package/types.d.ts
CHANGED
|
@@ -288,7 +288,7 @@ export type QueryDataRes<K extends (keyof QueryBlockDataMap)[]> = {
|
|
|
288
288
|
[key in K[number]]: QueryBlockDataMap[key];
|
|
289
289
|
};
|
|
290
290
|
/** 商品宽表 */
|
|
291
|
-
interface IItemSearchInfo {
|
|
291
|
+
export interface IItemSearchInfo {
|
|
292
292
|
/** 商品ID */
|
|
293
293
|
id: string;
|
|
294
294
|
/** 创建时间 */
|
|
@@ -342,4 +342,3 @@ interface IItemSearchInfo {
|
|
|
342
342
|
export type QueryItemSearchInfoRes<K extends (keyof IItemSearchInfo)[]> = {
|
|
343
343
|
[key in K[number]]: IItemSearchInfo[key];
|
|
344
344
|
};
|
|
345
|
-
export {};
|