@be-link/ecommerce-backend-bff-service-node-sdk 0.0.2 → 0.0.3

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.
@@ -1,24 +1,14 @@
1
1
  "use strict";
2
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
- return c > 3 && r && Object.defineProperty(target, key, r), r;
7
- };
8
- var __param = (this && this.__param) || function (paramIndex, decorator) {
9
- return function (target, key) { decorator(target, key, paramIndex); }
10
- };
11
2
  var __importDefault = (this && this.__importDefault) || function (mod) {
12
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
13
4
  };
14
5
  Object.defineProperty(exports, "__esModule", { value: true });
15
- const tsoa_1 = require("tsoa");
16
6
  const BaseService_1 = __importDefault(require("../BaseService"));
17
7
  /**
18
8
  * DemoService - Demo 服务模块
19
9
  * 提供 Demo 相关的 API 方法
20
10
  */
21
- let DemoService = class DemoService extends BaseService_1.default {
11
+ class DemoService extends BaseService_1.default {
22
12
  constructor() {
23
13
  super(...arguments);
24
14
  this.prefixUrl = '/demo';
@@ -36,14 +26,5 @@ let DemoService = class DemoService extends BaseService_1.default {
36
26
  demoFunc(request) {
37
27
  return this.request(this.demoFunc, request);
38
28
  }
39
- };
40
- __decorate([
41
- (0, tsoa_1.OperationId)('示例接口'),
42
- (0, tsoa_1.Post)('demo-func'),
43
- __param(0, (0, tsoa_1.Body)())
44
- ], DemoService.prototype, "demoFunc", null);
45
- DemoService = __decorate([
46
- (0, tsoa_1.Route)('demo'),
47
- (0, tsoa_1.Tags)('Demo')
48
- ], DemoService);
29
+ }
49
30
  exports.default = DemoService;
@@ -1,25 +1,15 @@
1
1
  "use strict";
2
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
- return c > 3 && r && Object.defineProperty(target, key, r), r;
7
- };
8
- var __param = (this && this.__param) || function (paramIndex, decorator) {
9
- return function (target, key) { decorator(target, key, paramIndex); }
10
- };
11
2
  var __importDefault = (this && this.__importDefault) || function (mod) {
12
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
13
4
  };
14
5
  Object.defineProperty(exports, "__esModule", { value: true });
15
6
  exports.ExampleService = void 0;
16
- const tsoa_1 = require("tsoa");
17
7
  const BaseService_1 = __importDefault(require("../BaseService"));
18
8
  /**
19
9
  * ExampleService - 演示如何创建服务模块
20
10
  * 此服务提供用户资料和订单管理的示例方法
21
11
  */
22
- let ExampleService = class ExampleService extends BaseService_1.default {
12
+ class ExampleService extends BaseService_1.default {
23
13
  constructor() {
24
14
  super(...arguments);
25
15
  /**
@@ -66,24 +56,5 @@ let ExampleService = class ExampleService extends BaseService_1.default {
66
56
  async getOrderList(request) {
67
57
  return this.request(this.getOrderList, request);
68
58
  }
69
- };
59
+ }
70
60
  exports.ExampleService = ExampleService;
71
- __decorate([
72
- (0, tsoa_1.OperationId)('获取用户资料'),
73
- (0, tsoa_1.Post)('get-user-profile'),
74
- __param(0, (0, tsoa_1.Body)())
75
- ], ExampleService.prototype, "getUserProfile", null);
76
- __decorate([
77
- (0, tsoa_1.OperationId)('更新用户资料'),
78
- (0, tsoa_1.Post)('update-profile'),
79
- __param(0, (0, tsoa_1.Body)())
80
- ], ExampleService.prototype, "updateProfile", null);
81
- __decorate([
82
- (0, tsoa_1.OperationId)('获取订单列表'),
83
- (0, tsoa_1.Post)('get-order-list'),
84
- __param(0, (0, tsoa_1.Body)())
85
- ], ExampleService.prototype, "getOrderList", null);
86
- exports.ExampleService = ExampleService = __decorate([
87
- (0, tsoa_1.Route)('api/v1/user'),
88
- (0, tsoa_1.Tags)('用户')
89
- ], ExampleService);
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@be-link/ecommerce-backend-bff-service-node-sdk",
3
- "version": "0.0.2",
3
+ "version": "0.0.3",
4
4
  "description": "EcommerceBackendBffService Node.js SDK",
5
- "main": "index.js",
6
- "types": "index.d.ts",
5
+ "main": "dist/index.js",
6
+ "types": "dist/index.d.ts",
7
7
  "author": "",
8
8
  "license": "ISC",
9
9
  "publishConfig": {