@bmstravel/nvp-plop-templates 0.0.6 → 0.0.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,7 +1,13 @@
1
- import { I{{pascalCase serviceName}}Service } from "@src/types";
1
+ import { I{{pascalCase serviceName}}Service, IBaseAdapter } from "@src/types";
2
2
 
3
- async function {{camelCase methodName}}(payload: any) {
4
- const $this: I{{pascalCase serviceName}}Service = this as any;
3
+ export type {{pascalCase methodName}}Params = {
4
+
5
+ }
6
+
7
+ async function {{camelCase methodName}}(payload: {{pascalCase methodName}}Params) {
8
+ const $this: I{{pascalCase serviceName}}Service = this;
9
+ const $adapter: IBaseAdapter = $this.adapter
10
+ const $cacher = $this.broker.cacher
5
11
  return new $this.Promise((resolve, _reject) => {
6
12
  $this.logger.info("{{pascalCase methodName}} :", payload);
7
13
  resolve('ok');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bmstravel/nvp-plop-templates",
3
- "version": "0.0.6",
3
+ "version": "0.0.7",
4
4
  "description": "🏆 Using for plop templates",
5
5
  "license": "MIT",
6
6
  "main": "lib/index.js",
@@ -15,5 +15,5 @@
15
15
  "phongnv86 <phongnguyenvan86@gmail.com>",
16
16
  "phongnv86 <phongnv@media-one.vn>"
17
17
  ],
18
- "gitHead": "c5c074227eee5a84dfd178ad31324a4ba452f0dd"
18
+ "gitHead": "4b89a461aa8662200dfab904b7735324b6e7912d"
19
19
  }