@be-link/cs-cli-nodejs 0.0.167 → 0.0.169

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,10 @@ import BaseService from '../baseService';
2
2
  import { ItemCityRelationNamespace } from './types';
3
3
  declare class ItemCityRelationService extends BaseService implements ItemCityRelationNamespace.Controller {
4
4
  prefixUrl: string;
5
+ /** 查询商品关联的城市 */
5
6
  mget(request: ItemCityRelationNamespace.Request.IMGet): Promise<ItemCityRelationNamespace.Response.IMGet>;
7
+ /** 批量创建或更新商品城市关联关系 */
8
+ upsert(request: ItemCityRelationNamespace.Request.IUpsert): Promise<void>;
6
9
  }
7
10
  declare const itemCityRelationService: ItemCityRelationService;
8
11
  export default itemCityRelationService;
@@ -10,9 +10,14 @@ class ItemCityRelationService extends baseService_1.default {
10
10
  super(...arguments);
11
11
  this.prefixUrl = '/item-city-relation';
12
12
  }
13
+ /** 查询商品关联的城市 */
13
14
  mget(request) {
14
15
  return (0, http_1.callApi)(this.getApiUrl(this.mget), request);
15
16
  }
17
+ /** 批量创建或更新商品城市关联关系 */
18
+ upsert(request) {
19
+ return (0, http_1.callApi)(this.getApiUrl(this.upsert), request);
20
+ }
16
21
  }
17
22
  const itemCityRelationService = new ItemCityRelationService();
18
23
  exports.default = itemCityRelationService;
@@ -1 +1 @@
1
- {"version":3,"file":"service.js","sourceRoot":"","sources":["../../../../src/cs/modules/itemCityRelation/service.ts"],"names":[],"mappings":";;;;;AAAA,qCAAoC;AACpC,iEAAwC;AAGxC,MAAM,uBAAwB,SAAQ,qBAAW;IAAjD;;QACE,cAAS,GAAW,qBAAqB,CAAA;IAM3C,CAAC;IALC,IAAI,CACF,OAAgD;QAEhD,OAAO,IAAA,cAAO,EAA+C,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,OAAO,CAAC,CAAA;IAClG,CAAC;CACF;AAED,MAAM,uBAAuB,GAAG,IAAI,uBAAuB,EAAE,CAAA;AAC7D,kBAAe,uBAAuB,CAAA"}
1
+ {"version":3,"file":"service.js","sourceRoot":"","sources":["../../../../src/cs/modules/itemCityRelation/service.ts"],"names":[],"mappings":";;;;;AAAA,qCAAoC;AACpC,iEAAwC;AAGxC,MAAM,uBAAwB,SAAQ,qBAAW;IAAjD;;QACE,cAAS,GAAW,qBAAqB,CAAA;IAe3C,CAAC;IAdC,gBAAgB;IAChB,IAAI,CACF,OAAgD;QAEhD,OAAO,IAAA,cAAO,EAA+C,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,OAAO,CAAC,CAAA;IAClG,CAAC;IAED,sBAAsB;IACtB,MAAM,CAAC,OAAkD;QACvD,OAAO,IAAA,cAAO,EACZ,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,MAAM,CAAC,EAC3B,OAAO,CACR,CAAA;IACH,CAAC;CACF;AAED,MAAM,uBAAuB,GAAG,IAAI,uBAAuB,EAAE,CAAA;AAC7D,kBAAe,uBAAuB,CAAA"}
@@ -3,6 +3,10 @@ export declare namespace ItemCityRelationNamespace {
3
3
  interface IMGet {
4
4
  itemIds: string[];
5
5
  }
6
+ interface IUpsert {
7
+ itemIds: string[];
8
+ cityList: string[];
9
+ }
6
10
  }
7
11
  namespace Response {
8
12
  type IMGet = Record<string, string[]>;
@@ -10,5 +14,6 @@ export declare namespace ItemCityRelationNamespace {
10
14
  interface Controller {
11
15
  /** 获取商品关联的城市列表 */
12
16
  mget(request: Request.IMGet): Promise<Response.IMGet>;
17
+ upsert(request: Request.IUpsert): Promise<void>;
13
18
  }
14
19
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@be-link/cs-cli-nodejs",
3
- "version": "0.0.167",
3
+ "version": "0.0.169",
4
4
  "description": "商品服务Nodejs客户端",
5
5
  "main": "index.js",
6
6
  "scripts": {