anncic-apihelper 3.4.38 → 3.4.39

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.
Files changed (55) hide show
  1. package/dist/configuration.d.ts +6 -6
  2. package/dist/configuration.js +1 -1
  3. package/dist/helper.d.ts +2 -2
  4. package/dist/helper.js +1 -1
  5. package/dist/index.d.ts +2 -2
  6. package/dist/index.js +1 -1
  7. package/dist/service/ApicreateService.d.ts +15 -15
  8. package/dist/service/ApicreateService.js +1 -1
  9. package/dist/templateFun/Action.d.ts +10 -10
  10. package/dist/templateFun/Action.js +1 -1
  11. package/dist/templateFun/Common.d.ts +7 -7
  12. package/dist/templateFun/Common.js +1 -1
  13. package/dist/templateFun/Entities.d.ts +11 -11
  14. package/dist/templateFun/Entities.js +1 -1
  15. package/dist/templateFun/Event.d.ts +7 -7
  16. package/dist/templateFun/Event.js +1 -1
  17. package/dist/templateFun/Handler.d.ts +9 -9
  18. package/dist/templateFun/Handler.js +1 -1
  19. package/dist/templateFun/Search.d.ts +7 -7
  20. package/dist/templateFun/Search.js +1 -1
  21. package/dist/templateFun/Validator.d.ts +11 -11
  22. package/dist/templateFun/Validator.js +1 -1
  23. package/dist/templateVue/Api.d.ts +9 -9
  24. package/dist/templateVue/Api.js +1 -1
  25. package/dist/templateVue/Layout.d.ts +7 -7
  26. package/dist/templateVue/Layout.js +1 -1
  27. package/dist/templateVue/LayoutVue.d.ts +10 -10
  28. package/dist/templateVue/LayoutVue.js +1 -1
  29. package/dist/templateVue/Router.d.ts +8 -8
  30. package/dist/templateVue/Router.js +1 -1
  31. package/dist/templateVue/Validator.d.ts +10 -10
  32. package/dist/templateVue/Validator.js +1 -1
  33. package/dist/templateVueV2/Api.d.ts +9 -9
  34. package/dist/templateVueV2/Api.js +1 -1
  35. package/dist/templateVueV2/Layout.d.ts +7 -7
  36. package/dist/templateVueV2/Layout.js +1 -1
  37. package/dist/templateVueV2/LayoutVue.d.ts +10 -10
  38. package/dist/templateVueV2/LayoutVue.js +1 -1
  39. package/dist/templateVueV2/Router.d.ts +8 -8
  40. package/dist/templateVueV2/Router.js +1 -1
  41. package/dist/templateVueV2/Validator.d.ts +8 -8
  42. package/dist/templateVueV2/Validator.js +1 -1
  43. package/dist/templateVueV3/Api.d.ts +9 -9
  44. package/dist/templateVueV3/Api.js +1 -1
  45. package/dist/templateVueV3/Layout.d.ts +8 -8
  46. package/dist/templateVueV3/Layout.js +1 -1
  47. package/dist/templateVueV3/LayoutVue.d.ts +11 -11
  48. package/dist/templateVueV3/LayoutVue.js +1 -1
  49. package/dist/templateVueV3/Router.d.ts +8 -8
  50. package/dist/templateVueV3/Router.js +1 -1
  51. package/dist/templateVueV3/Validator.d.ts +8 -8
  52. package/dist/templateVueV3/Validator.js +1 -1
  53. package/dist/types/index.d.ts +18 -18
  54. package/dist/types/index.js +1 -1
  55. package/package.json +4 -4
@@ -1,6 +1,6 @@
1
- import { MidwayApplicationManager, MidwayConfigService, MidwayDecoratorService } from '@midwayjs/core';
2
- export declare class CustomConfiguration {
3
- config: MidwayConfigService;
4
- decorator: MidwayDecoratorService;
5
- application: MidwayApplicationManager;
6
- }
1
+ import { MidwayApplicationManager, MidwayConfigService, MidwayDecoratorService } from '@midwayjs/core';
2
+ export declare class CustomConfiguration {
3
+ config: MidwayConfigService;
4
+ decorator: MidwayDecoratorService;
5
+ application: MidwayApplicationManager;
6
+ }
@@ -1 +1 @@
1
- var a0_0x24a7e5=a0_0x2309;function a0_0x2309(_0x24f0f9,_0x461e78){var _0x2dfa75=a0_0x11a7();return a0_0x2309=function(_0x38116f,_0x3f0fce){_0x38116f=_0x38116f-0x68;var _0x11a7cc=_0x2dfa75[_0x38116f];return _0x11a7cc;},a0_0x2309(_0x24f0f9,_0x461e78);}(function(_0x70d0e3,_0x3eab36){var _0x3fc2d4=a0_0x2309,_0x285648=_0x70d0e3();while(!![]){try{var _0x47cea=-parseInt(_0x3fc2d4(0x83))/0x1+-parseInt(_0x3fc2d4(0x77))/0x2*(-parseInt(_0x3fc2d4(0x6f))/0x3)+parseInt(_0x3fc2d4(0x71))/0x4*(parseInt(_0x3fc2d4(0x74))/0x5)+parseInt(_0x3fc2d4(0x88))/0x6+parseInt(_0x3fc2d4(0x7e))/0x7*(parseInt(_0x3fc2d4(0x7c))/0x8)+parseInt(_0x3fc2d4(0x73))/0x9+parseInt(_0x3fc2d4(0x86))/0xa*(-parseInt(_0x3fc2d4(0x72))/0xb);if(_0x47cea===_0x3eab36)break;else _0x285648['push'](_0x285648['shift']());}catch(_0x54cd64){_0x285648['push'](_0x285648['shift']());}}}(a0_0x11a7,0xb1e7b));var a0_0x3f0fce=(function(){var _0x1ed3b3=!![];return function(_0x511815,_0x48138b){var _0x521805=_0x1ed3b3?function(){var _0x5a21f8=a0_0x2309;if(_0x48138b){var _0x189d91=_0x48138b[_0x5a21f8(0x78)](_0x511815,arguments);return _0x48138b=null,_0x189d91;}}:function(){};return _0x1ed3b3=![],_0x521805;};}()),a0_0x38116f=a0_0x3f0fce(this,function(){var _0x5e81ff=a0_0x2309;return a0_0x38116f[_0x5e81ff(0x80)]()['search'](_0x5e81ff(0x68))[_0x5e81ff(0x80)]()[_0x5e81ff(0x6a)](a0_0x38116f)[_0x5e81ff(0x6e)](_0x5e81ff(0x68));});a0_0x38116f();'use strict';var __decorate=this&&this[a0_0x24a7e5(0x79)]||function(_0x2ddedd,_0x5e7b17,_0x385a2a,_0xfed484){var _0x2672c0=a0_0x24a7e5,_0x25ef7a=arguments['length'],_0x2971c0=_0x25ef7a<0x3?_0x5e7b17:_0xfed484===null?_0xfed484=Object['getOwnPropertyDescriptor'](_0x5e7b17,_0x385a2a):_0xfed484,_0x260931;if(typeof Reflect===_0x2672c0(0x89)&&typeof Reflect[_0x2672c0(0x70)]===_0x2672c0(0x82))_0x2971c0=Reflect[_0x2672c0(0x70)](_0x2ddedd,_0x5e7b17,_0x385a2a,_0xfed484);else{for(var _0x240127=_0x2ddedd[_0x2672c0(0x87)]-0x1;_0x240127>=0x0;_0x240127--)if(_0x260931=_0x2ddedd[_0x240127])_0x2971c0=(_0x25ef7a<0x3?_0x260931(_0x2971c0):_0x25ef7a>0x3?_0x260931(_0x5e7b17,_0x385a2a,_0x2971c0):_0x260931(_0x5e7b17,_0x385a2a))||_0x2971c0;}return _0x25ef7a>0x3&&_0x2971c0&&Object[_0x2672c0(0x81)](_0x5e7b17,_0x385a2a,_0x2971c0),_0x2971c0;},__metadata=this&&this['__metadata']||function(_0x8f0b37,_0x1f4afb){var _0x2822b8=a0_0x24a7e5;if(typeof Reflect===_0x2822b8(0x89)&&typeof Reflect[_0x2822b8(0x69)]==='function')return Reflect[_0x2822b8(0x69)](_0x8f0b37,_0x1f4afb);};Object[a0_0x24a7e5(0x81)](exports,a0_0x24a7e5(0x6b),{'value':!![]}),exports['CustomConfiguration']=void 0x0;function a0_0x11a7(){var _0x50a5b1=['11090aJCzIY','prototype','design:type','2YLyKLg','apply','__decorate','decorator','application','2267768sKIEMz','CustomConfiguration','7sgJLsq','anncic-apihelper','toString','defineProperty','function','1126487GzzfRp','config','@midwayjs/core','90zOdjJc','length','7758324HKhrTP','object','(((.+)+)+)+$','metadata','constructor','__esModule','Inject','@anncic-api/typeorm','search','3304143MnvCcu','decorate','1688aJdzSi','3070507fTTDvg','6781653vrPvHP'];a0_0x11a7=function(){return _0x50a5b1;};return a0_0x11a7();}const core_1=require(a0_0x24a7e5(0x85)),core_2=require(a0_0x24a7e5(0x85)),typeorm=require(a0_0x24a7e5(0x6d));let CustomConfiguration=class CustomConfiguration{};__decorate([(0x0,core_1[a0_0x24a7e5(0x6c)])(),__metadata(a0_0x24a7e5(0x76),core_2['MidwayConfigService'])],CustomConfiguration[a0_0x24a7e5(0x75)],a0_0x24a7e5(0x84),void 0x0),__decorate([(0x0,core_1[a0_0x24a7e5(0x6c)])(),__metadata(a0_0x24a7e5(0x76),core_2['MidwayDecoratorService'])],CustomConfiguration[a0_0x24a7e5(0x75)],a0_0x24a7e5(0x7a),void 0x0),__decorate([(0x0,core_1['Inject'])(),__metadata(a0_0x24a7e5(0x76),core_2['MidwayApplicationManager'])],CustomConfiguration[a0_0x24a7e5(0x75)],a0_0x24a7e5(0x7b),void 0x0),CustomConfiguration=__decorate([(0x0,core_1['Configuration'])({'conflictCheck':![],'imports':[typeorm],'namespace':a0_0x24a7e5(0x7f)})],CustomConfiguration),exports[a0_0x24a7e5(0x7d)]=CustomConfiguration;
1
+ function a0_0x2ee5(){var _0x429783=['length','defineProperty','1135796KvEbKz','decorate','506124gDFDkb','206NDDwuH','Inject','constructor','function','MidwayConfigService','decorator','CustomConfiguration','__metadata','7400sPkARf','__decorate','(((.+)+)+)+$','getOwnPropertyDescriptor','MidwayApplicationManager','__esModule','config','application','25957noAwJW','1233muaCvK','400897Sdqtgo','metadata','toString','1716390abSZPN','object','prototype','design:type','1929bPpRFH','search','5OcGZNT'];a0_0x2ee5=function(){return _0x429783;};return a0_0x2ee5();}function a0_0x31e4(_0xeb8f46,_0x4a9cef){var _0x1ff847=a0_0x2ee5();return a0_0x31e4=function(_0x470fb0,_0x303526){_0x470fb0=_0x470fb0-0xe8;var _0x2ee5d3=_0x1ff847[_0x470fb0];return _0x2ee5d3;},a0_0x31e4(_0xeb8f46,_0x4a9cef);}var a0_0x470f6e=a0_0x31e4;(function(_0x148f68,_0x14e1bb){var _0x517392=a0_0x31e4,_0x1fce68=_0x148f68();while(!![]){try{var _0xb92614=-parseInt(_0x517392(0xf2))/0x1+parseInt(_0x517392(0x103))/0x2*(-parseInt(_0x517392(0xfb))/0x3)+parseInt(_0x517392(0x100))/0x4*(parseInt(_0x517392(0xfd))/0x5)+parseInt(_0x517392(0x102))/0x6+-parseInt(_0x517392(0xf4))/0x7+-parseInt(_0x517392(0xea))/0x8*(-parseInt(_0x517392(0xf3))/0x9)+-parseInt(_0x517392(0xf7))/0xa;if(_0xb92614===_0x14e1bb)break;else _0x1fce68['push'](_0x1fce68['shift']());}catch(_0x527cbf){_0x1fce68['push'](_0x1fce68['shift']());}}}(a0_0x2ee5,0x2a76c));var a0_0x303526=(function(){var _0x1cabb0=!![];return function(_0x25540c,_0x3a7e16){var _0xa9676f=_0x1cabb0?function(){if(_0x3a7e16){var _0x5cd1e5=_0x3a7e16['apply'](_0x25540c,arguments);return _0x3a7e16=null,_0x5cd1e5;}}:function(){};return _0x1cabb0=![],_0xa9676f;};}()),a0_0x470fb0=a0_0x303526(this,function(){var _0x59d2fb=a0_0x31e4;return a0_0x470fb0[_0x59d2fb(0xf6)]()[_0x59d2fb(0xfc)](_0x59d2fb(0xec))[_0x59d2fb(0xf6)]()[_0x59d2fb(0x105)](a0_0x470fb0)[_0x59d2fb(0xfc)]('(((.+)+)+)+$');});a0_0x470fb0();'use strict';var __decorate=this&&this[a0_0x470f6e(0xeb)]||function(_0x4564e4,_0x326e4d,_0x2926e7,_0x4fdc36){var _0x458ca7=a0_0x470f6e,_0x563610=arguments[_0x458ca7(0xfe)],_0x4fd40e=_0x563610<0x3?_0x326e4d:_0x4fdc36===null?_0x4fdc36=Object[_0x458ca7(0xed)](_0x326e4d,_0x2926e7):_0x4fdc36,_0x49a939;if(typeof Reflect===_0x458ca7(0xf8)&&typeof Reflect[_0x458ca7(0x101)]===_0x458ca7(0x106))_0x4fd40e=Reflect[_0x458ca7(0x101)](_0x4564e4,_0x326e4d,_0x2926e7,_0x4fdc36);else{for(var _0x5a9189=_0x4564e4[_0x458ca7(0xfe)]-0x1;_0x5a9189>=0x0;_0x5a9189--)if(_0x49a939=_0x4564e4[_0x5a9189])_0x4fd40e=(_0x563610<0x3?_0x49a939(_0x4fd40e):_0x563610>0x3?_0x49a939(_0x326e4d,_0x2926e7,_0x4fd40e):_0x49a939(_0x326e4d,_0x2926e7))||_0x4fd40e;}return _0x563610>0x3&&_0x4fd40e&&Object['defineProperty'](_0x326e4d,_0x2926e7,_0x4fd40e),_0x4fd40e;},__metadata=this&&this[a0_0x470f6e(0xe9)]||function(_0x46a212,_0x367f09){var _0x17d361=a0_0x470f6e;if(typeof Reflect===_0x17d361(0xf8)&&typeof Reflect[_0x17d361(0xf5)]===_0x17d361(0x106))return Reflect[_0x17d361(0xf5)](_0x46a212,_0x367f09);};Object[a0_0x470f6e(0xff)](exports,a0_0x470f6e(0xef),{'value':!![]}),exports[a0_0x470f6e(0xe8)]=void 0x0;const core_1=require('@midwayjs/core'),core_2=require('@midwayjs/core'),typeorm=require('@anncic-api/typeorm');let CustomConfiguration=class CustomConfiguration{};exports[a0_0x470f6e(0xe8)]=CustomConfiguration,__decorate([(0x0,core_1['Inject'])(),__metadata(a0_0x470f6e(0xfa),core_2[a0_0x470f6e(0x107)])],CustomConfiguration[a0_0x470f6e(0xf9)],a0_0x470f6e(0xf0),void 0x0),__decorate([(0x0,core_1[a0_0x470f6e(0x104)])(),__metadata(a0_0x470f6e(0xfa),core_2['MidwayDecoratorService'])],CustomConfiguration['prototype'],a0_0x470f6e(0x108),void 0x0),__decorate([(0x0,core_1['Inject'])(),__metadata(a0_0x470f6e(0xfa),core_2[a0_0x470f6e(0xee)])],CustomConfiguration['prototype'],a0_0x470f6e(0xf1),void 0x0),exports[a0_0x470f6e(0xe8)]=CustomConfiguration=__decorate([(0x0,core_1['Configuration'])({'conflictCheck':![],'imports':[typeorm],'namespace':'anncic-apihelper'})],CustomConfiguration);
package/dist/helper.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare function getProp(type: string): string;
2
- export declare function getEnum(type: string): Array<string>;
1
+ export declare function getProp(type: string): string;
2
+ export declare function getEnum(type: string): Array<string>;
package/dist/helper.js CHANGED
@@ -1 +1 @@
1
- const a1_0x10caa2=a1_0x1ea3;(function(_0x5db31c,_0x21f322){const _0x132aba=a1_0x1ea3,_0x3b32e4=_0x5db31c();while(!![]){try{const _0x2332c5=parseInt(_0x132aba(0x1e7))/0x1*(-parseInt(_0x132aba(0x1d4))/0x2)+-parseInt(_0x132aba(0x1dd))/0x3+-parseInt(_0x132aba(0x1e5))/0x4+parseInt(_0x132aba(0x1ec))/0x5*(parseInt(_0x132aba(0x1d8))/0x6)+-parseInt(_0x132aba(0x1e6))/0x7+-parseInt(_0x132aba(0x1d5))/0x8*(parseInt(_0x132aba(0x1d9))/0x9)+-parseInt(_0x132aba(0x1e0))/0xa*(-parseInt(_0x132aba(0x1de))/0xb);if(_0x2332c5===_0x21f322)break;else _0x3b32e4['push'](_0x3b32e4['shift']());}catch(_0x954277){_0x3b32e4['push'](_0x3b32e4['shift']());}}}(a1_0x3ebe,0xca726));const a1_0x2bfe24=(function(){let _0x320161=!![];return function(_0x441fa1,_0x103f05){const _0xa2bee6=_0x320161?function(){const _0x2cee06=a1_0x1ea3;if(_0x103f05){const _0x5cba3d=_0x103f05[_0x2cee06(0x1e9)](_0x441fa1,arguments);return _0x103f05=null,_0x5cba3d;}}:function(){};return _0x320161=![],_0xa2bee6;};}()),a1_0xfa5908=a1_0x2bfe24(this,function(){const _0x3e98c9=a1_0x1ea3;return a1_0xfa5908['toString']()[_0x3e98c9(0x1ed)]('(((.+)+)+)+$')[_0x3e98c9(0x1e2)]()[_0x3e98c9(0x1ee)](a1_0xfa5908)[_0x3e98c9(0x1ed)](_0x3e98c9(0x1dc));});a1_0xfa5908();function a1_0x3ebe(){const _0x4f7bf1=['(((.+)+)+)+$','2475654udukjd','11MAjgpb','tinyint','55647910eoTPKJ','date','toString','text','getProp','943232jDfePc','10959158xhAUtE','2JbVBeY','substr','apply','split','string','775OAjCtA','search','constructor','timestamp','getEnum','datetime','__esModule','length','1360230GnVsbT','6979272MGLYMk','defineProperty','indexOf','4788WwpuwW','9rnBGcS','float','decimal'];a1_0x3ebe=function(){return _0x4f7bf1;};return a1_0x3ebe();}'use strict';Object[a1_0x10caa2(0x1d6)](exports,a1_0x10caa2(0x1d2),{'value':!![]}),exports[a1_0x10caa2(0x1f0)]=exports[a1_0x10caa2(0x1e4)]=void 0x0;const columnTypes={'json':'json','char':a1_0x10caa2(0x1eb),'varchar':a1_0x10caa2(0x1eb),'text':a1_0x10caa2(0x1e3),'longtext':'longtext','mediumtext':'mediumtext','int':'number','float':a1_0x10caa2(0x1da),'double':'float','decimal':a1_0x10caa2(0x1db),'date':a1_0x10caa2(0x1e1),'time':a1_0x10caa2(0x1f1),'datetime':a1_0x10caa2(0x1f1),'timestamp':a1_0x10caa2(0x1ef),'tinyint':a1_0x10caa2(0x1df)};function a1_0x1ea3(_0x418068,_0x5af643){const _0x678b9c=a1_0x3ebe();return a1_0x1ea3=function(_0xfa5908,_0x2bfe24){_0xfa5908=_0xfa5908-0x1d2;let _0x3ebea4=_0x678b9c[_0xfa5908];return _0x3ebea4;},a1_0x1ea3(_0x418068,_0x5af643);}function getProp(_0x51dd01){const _0x1da904=a1_0x10caa2;if(columnTypes['hasOwnProperty'](_0x51dd01))return columnTypes[_0x51dd01];else return _0x51dd01[_0x1da904(0x1d7)]('(')>-0x1||_0x51dd01[_0x1da904(0x1d7)]('\x20')>-0x1?(_0x51dd01=_0x51dd01[_0x1da904(0x1e8)](0x0,_0x51dd01['indexOf']('(')>-0x1?_0x51dd01['indexOf']('('):_0x51dd01[_0x1da904(0x1d7)]('\x20')),columnTypes[_0x51dd01]||_0x51dd01):_0x1da904(0x1eb);}exports[a1_0x10caa2(0x1e4)]=getProp;function getEnum(_0x41eef4){const _0x5905ae=a1_0x10caa2;if(getProp(_0x41eef4)=='enum')return _0x41eef4[_0x5905ae(0x1e8)](0x5,_0x41eef4[_0x5905ae(0x1d3)]-0x6)['replace'](/[\'|\"]/g,'')[_0x5905ae(0x1ea)](',');return[];}exports[a1_0x10caa2(0x1f0)]=getEnum;
1
+ const a1_0x164030=a1_0xfc76;(function(_0x2f3e0c,_0x578a7e){const _0xf7986=a1_0xfc76,_0x2c51ef=_0x2f3e0c();while(!![]){try{const _0x8af77=parseInt(_0xf7986(0xce))/0x1*(parseInt(_0xf7986(0xcb))/0x2)+parseInt(_0xf7986(0xd5))/0x3*(-parseInt(_0xf7986(0xcc))/0x4)+parseInt(_0xf7986(0xe3))/0x5+parseInt(_0xf7986(0xc8))/0x6*(-parseInt(_0xf7986(0xd7))/0x7)+parseInt(_0xf7986(0xdd))/0x8+parseInt(_0xf7986(0xdb))/0x9*(parseInt(_0xf7986(0xd2))/0xa)+parseInt(_0xf7986(0xd9))/0xb*(-parseInt(_0xf7986(0xdc))/0xc);if(_0x8af77===_0x578a7e)break;else _0x2c51ef['push'](_0x2c51ef['shift']());}catch(_0x1904c8){_0x2c51ef['push'](_0x2c51ef['shift']());}}}(a1_0x51e6,0xb3d93));const a1_0x12d28a=(function(){let _0x4ec18e=!![];return function(_0x5a3e62,_0x290a76){const _0x260fc1=_0x4ec18e?function(){if(_0x290a76){const _0x5abe7b=_0x290a76['apply'](_0x5a3e62,arguments);return _0x290a76=null,_0x5abe7b;}}:function(){};return _0x4ec18e=![],_0x260fc1;};}()),a1_0x32dd61=a1_0x12d28a(this,function(){const _0x253525=a1_0xfc76;return a1_0x32dd61[_0x253525(0xdf)]()[_0x253525(0xca)](_0x253525(0xda))['toString']()['constructor'](a1_0x32dd61)['search'](_0x253525(0xda));});a1_0x32dd61();'use strict';Object[a1_0x164030(0xcd)](exports,'__esModule',{'value':!![]}),exports[a1_0x164030(0xd4)]=getProp,exports[a1_0x164030(0xd1)]=getEnum;const columnTypes={'json':'json','char':a1_0x164030(0xd6),'varchar':'string','text':a1_0x164030(0xe0),'longtext':'longtext','mediumtext':'mediumtext','int':a1_0x164030(0xc7),'float':a1_0x164030(0xd8),'double':'float','decimal':a1_0x164030(0xe4),'date':a1_0x164030(0xe1),'time':a1_0x164030(0xd3),'datetime':a1_0x164030(0xd3),'timestamp':a1_0x164030(0xc9),'tinyint':a1_0x164030(0xd0)};function a1_0x51e6(){const _0x516a3b=['string','119igSicn','float','143axtgcB','(((.+)+)+)+$','4249917TWErDl','589308wUSklK','5788576BBrtlr','substr','toString','text','date','indexOf','2541465kgEzNQ','decimal','number','191778TinvCc','timestamp','search','28VitIWk','4ZznjjT','defineProperty','86802cveHai','replace','tinyint','getEnum','20cfPimx','datetime','getProp','4419216jTqreO'];a1_0x51e6=function(){return _0x516a3b;};return a1_0x51e6();}function getProp(_0x1301a9){const _0xbad3b8=a1_0x164030;if(columnTypes['hasOwnProperty'](_0x1301a9))return columnTypes[_0x1301a9];else return _0x1301a9[_0xbad3b8(0xe2)]('(')>-0x1||_0x1301a9[_0xbad3b8(0xe2)]('\x20')>-0x1?(_0x1301a9=_0x1301a9[_0xbad3b8(0xde)](0x0,_0x1301a9[_0xbad3b8(0xe2)]('(')>-0x1?_0x1301a9[_0xbad3b8(0xe2)]('('):_0x1301a9[_0xbad3b8(0xe2)]('\x20')),columnTypes[_0x1301a9]||_0x1301a9):_0xbad3b8(0xd6);}function a1_0xfc76(_0x110d0f,_0x1b2a51){const _0xc31b04=a1_0x51e6();return a1_0xfc76=function(_0x32dd61,_0x12d28a){_0x32dd61=_0x32dd61-0xc7;let _0x51e6d8=_0xc31b04[_0x32dd61];return _0x51e6d8;},a1_0xfc76(_0x110d0f,_0x1b2a51);}function getEnum(_0x4d8922){const _0x38e3fd=a1_0x164030;if(getProp(_0x4d8922)=='enum')return _0x4d8922[_0x38e3fd(0xde)](0x5,_0x4d8922['length']-0x6)[_0x38e3fd(0xcf)](/[\'|\"]/g,'')['split'](',');return[];}
package/dist/index.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export { ApicreateService } from './service/ApicreateService';
2
- export { CustomConfiguration as Configuration } from './configuration';
1
+ export { ApicreateService } from './service/ApicreateService';
2
+ export { CustomConfiguration as Configuration } from './configuration';
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- var a2_0xf3d86f=a2_0x2ea8;(function(_0x1a7abe,_0x7e1ba1){var _0x3bf1a0=a2_0x2ea8,_0x48c1fd=_0x1a7abe();while(!![]){try{var _0x17e706=parseInt(_0x3bf1a0(0x1d9))/0x1+parseInt(_0x3bf1a0(0x1d7))/0x2+parseInt(_0x3bf1a0(0x1e1))/0x3+parseInt(_0x3bf1a0(0x1d3))/0x4*(parseInt(_0x3bf1a0(0x1e2))/0x5)+parseInt(_0x3bf1a0(0x1e3))/0x6*(parseInt(_0x3bf1a0(0x1da))/0x7)+-parseInt(_0x3bf1a0(0x1df))/0x8+-parseInt(_0x3bf1a0(0x1e5))/0x9*(parseInt(_0x3bf1a0(0x1db))/0xa);if(_0x17e706===_0x7e1ba1)break;else _0x48c1fd['push'](_0x48c1fd['shift']());}catch(_0x462148){_0x48c1fd['push'](_0x48c1fd['shift']());}}}(a2_0x3d24,0x29ae2));var a2_0x4006ef=(function(){var _0x585f49=!![];return function(_0x4b4b82,_0x41fcf9){var _0x30e210=_0x585f49?function(){var _0x40343f=a2_0x2ea8;if(_0x41fcf9){var _0x193ff1=_0x41fcf9[_0x40343f(0x1e4)](_0x4b4b82,arguments);return _0x41fcf9=null,_0x193ff1;}}:function(){};return _0x585f49=![],_0x30e210;};}()),a2_0x50b25f=a2_0x4006ef(this,function(){var _0x5c652c=a2_0x2ea8;return a2_0x50b25f[_0x5c652c(0x1dc)]()['search'](_0x5c652c(0x1e0))[_0x5c652c(0x1dc)]()[_0x5c652c(0x1de)](a2_0x50b25f)['search'](_0x5c652c(0x1e0));});function a2_0x3d24(){var _0x2eeca3=['./configuration','32weyoEk','Configuration','ApicreateService','./service/ApicreateService','624872KpyeCY','defineProperty','140910MZMvmk','371VLNyiW','310eZqSWW','toString','CustomConfiguration','constructor','1050664wTtcil','(((.+)+)+)+$','579270hRhHPs','15710HPHMEv','15870jWXtfi','apply','147978lsSoQq'];a2_0x3d24=function(){return _0x2eeca3;};return a2_0x3d24();}a2_0x50b25f();'use strict';Object[a2_0xf3d86f(0x1d8)](exports,'__esModule',{'value':!![]}),exports['Configuration']=exports[a2_0xf3d86f(0x1d5)]=void 0x0;var ApicreateService_1=require(a2_0xf3d86f(0x1d6));Object[a2_0xf3d86f(0x1d8)](exports,a2_0xf3d86f(0x1d5),{'enumerable':!![],'get':function(){var _0x4e6f4b=a2_0xf3d86f;return ApicreateService_1[_0x4e6f4b(0x1d5)];}});function a2_0x2ea8(_0x2aba4a,_0x1587ae){var _0x1020c3=a2_0x3d24();return a2_0x2ea8=function(_0x50b25f,_0x4006ef){_0x50b25f=_0x50b25f-0x1d3;var _0x3d24e2=_0x1020c3[_0x50b25f];return _0x3d24e2;},a2_0x2ea8(_0x2aba4a,_0x1587ae);}var configuration_1=require(a2_0xf3d86f(0x1e6));Object[a2_0xf3d86f(0x1d8)](exports,a2_0xf3d86f(0x1d4),{'enumerable':!![],'get':function(){var _0x3e39d2=a2_0xf3d86f;return configuration_1[_0x3e39d2(0x1dd)];}});
1
+ var a2_0x46e8ab=a2_0x1e78;(function(_0x1d3077,_0x57acd4){var _0x19c3c3=a2_0x1e78,_0x47f50f=_0x1d3077();while(!![]){try{var _0x38e70d=-parseInt(_0x19c3c3(0x14a))/0x1+-parseInt(_0x19c3c3(0x155))/0x2*(parseInt(_0x19c3c3(0x14d))/0x3)+-parseInt(_0x19c3c3(0x15a))/0x4*(parseInt(_0x19c3c3(0x14c))/0x5)+parseInt(_0x19c3c3(0x148))/0x6*(-parseInt(_0x19c3c3(0x153))/0x7)+parseInt(_0x19c3c3(0x14f))/0x8*(parseInt(_0x19c3c3(0x14b))/0x9)+-parseInt(_0x19c3c3(0x158))/0xa+parseInt(_0x19c3c3(0x150))/0xb;if(_0x38e70d===_0x57acd4)break;else _0x47f50f['push'](_0x47f50f['shift']());}catch(_0x1af76e){_0x47f50f['push'](_0x47f50f['shift']());}}}(a2_0x5152,0x5c70a));var a2_0x1980a5=(function(){var _0x140ddd=!![];return function(_0xc1e2ae,_0x160619){var _0x41a954=_0x140ddd?function(){var _0x530fa3=a2_0x1e78;if(_0x160619){var _0x15c462=_0x160619[_0x530fa3(0x147)](_0xc1e2ae,arguments);return _0x160619=null,_0x15c462;}}:function(){};return _0x140ddd=![],_0x41a954;};}()),a2_0x1f9ef9=a2_0x1980a5(this,function(){var _0x32422e=a2_0x1e78;return a2_0x1f9ef9[_0x32422e(0x14e)]()['search'](_0x32422e(0x152))[_0x32422e(0x14e)]()['constructor'](a2_0x1f9ef9)['search']('(((.+)+)+)+$');});a2_0x1f9ef9();'use strict';Object['defineProperty'](exports,a2_0x46e8ab(0x156),{'value':!![]}),exports[a2_0x46e8ab(0x157)]=exports[a2_0x46e8ab(0x149)]=void 0x0;var ApicreateService_1=require('./service/ApicreateService');Object[a2_0x46e8ab(0x154)](exports,a2_0x46e8ab(0x149),{'enumerable':!![],'get':function(){var _0x35a23f=a2_0x46e8ab;return ApicreateService_1[_0x35a23f(0x149)];}});function a2_0x1e78(_0x1928f9,_0x4e2fcf){var _0x164e23=a2_0x5152();return a2_0x1e78=function(_0x1f9ef9,_0x1980a5){_0x1f9ef9=_0x1f9ef9-0x147;var _0x5152ac=_0x164e23[_0x1f9ef9];return _0x5152ac;},a2_0x1e78(_0x1928f9,_0x4e2fcf);}function a2_0x5152(){var _0x244cb8=['toString','136QDsVgF','20549474FnDpUE','./configuration','(((.+)+)+)+$','14oXHMbU','defineProperty','160TcDOLU','__esModule','Configuration','351410saTlAw','CustomConfiguration','1445404lscrwM','apply','1884702yjouUN','ApicreateService','608648ESXlDY','317745hZGxWO','10RClkxI','3561WcUufG'];a2_0x5152=function(){return _0x244cb8;};return a2_0x5152();}var configuration_1=require(a2_0x46e8ab(0x151));Object[a2_0x46e8ab(0x154)](exports,a2_0x46e8ab(0x157),{'enumerable':!![],'get':function(){var _0x106b86=a2_0x46e8ab;return configuration_1[_0x106b86(0x159)];}});
@@ -1,15 +1,15 @@
1
- import { MidwayEnvironmentService } from '@midwayjs/core';
2
- import { TypeORMDataSourceManager } from '@midwayjs/typeorm';
3
- import { IApicreate, IApicreateApp, IApicreateBasic, IApicreatePlugin } from '../types';
4
- export declare class ApicreateService {
5
- protected app: any;
6
- protected config: any;
7
- environment: MidwayEnvironmentService;
8
- dataSourceManager: TypeORMDataSourceManager;
9
- createApp(option: IApicreate): Promise<string>;
10
- createBasic(option: IApicreate): Promise<string>;
11
- createPlugin(option: IApicreate): Promise<string>;
12
- protected createAction(option?: IApicreateApp & IApicreateBasic & IApicreatePlugin): Promise<string>;
13
- protected checkOption(option: IApicreate): Promise<boolean>;
14
- protected CreateModuleConfig(CreateOption: any): Promise<void>;
15
- }
1
+ import { MidwayEnvironmentService } from '@midwayjs/core';
2
+ import { TypeORMDataSourceManager } from '@midwayjs/typeorm';
3
+ import { IApicreate, IApicreateApp, IApicreateBasic, IApicreatePlugin } from '../types';
4
+ export declare class ApicreateService {
5
+ protected app: any;
6
+ protected config: any;
7
+ environment: MidwayEnvironmentService;
8
+ dataSourceManager: TypeORMDataSourceManager;
9
+ createApp(option: IApicreate): Promise<string>;
10
+ createBasic(option: IApicreate): Promise<string>;
11
+ createPlugin(option: IApicreate): Promise<string>;
12
+ protected createAction(option?: IApicreateApp & IApicreateBasic & IApicreatePlugin): Promise<string>;
13
+ protected checkOption(option: IApicreate): Promise<boolean>;
14
+ protected CreateModuleConfig(CreateOption: any): Promise<void>;
15
+ }
@@ -1 +1 @@
1
- const a3_0x28ae16=a3_0x13bf;(function(_0x4653c0,_0x1a23bb){const _0x448714=a3_0x13bf,_0x41e88c=_0x4653c0();while(!![]){try{const _0x26379c=-parseInt(_0x448714(0x104))/0x1*(parseInt(_0x448714(0xde))/0x2)+parseInt(_0x448714(0xc3))/0x3+-parseInt(_0x448714(0xf4))/0x4+parseInt(_0x448714(0x127))/0x5*(parseInt(_0x448714(0xdd))/0x6)+-parseInt(_0x448714(0x105))/0x7*(-parseInt(_0x448714(0x130))/0x8)+parseInt(_0x448714(0xc8))/0x9+parseInt(_0x448714(0xd7))/0xa;if(_0x26379c===_0x1a23bb)break;else _0x41e88c['push'](_0x41e88c['shift']());}catch(_0x3b7f00){_0x41e88c['push'](_0x41e88c['shift']());}}}(a3_0x2f58,0x7c546));const a3_0x2066a6=(function(){let _0x46c225=!![];return function(_0x2338c2,_0x360486){const _0x2b4048=_0x46c225?function(){const _0x29322b=a3_0x13bf;if(_0x360486){const _0x5a8b00=_0x360486[_0x29322b(0x128)](_0x2338c2,arguments);return _0x360486=null,_0x5a8b00;}}:function(){};return _0x46c225=![],_0x2b4048;};}()),a3_0x297cfa=a3_0x2066a6(this,function(){const _0x509395=a3_0x13bf;return a3_0x297cfa[_0x509395(0xd4)]()[_0x509395(0x103)](_0x509395(0x10a))[_0x509395(0xd4)]()[_0x509395(0xfc)](a3_0x297cfa)[_0x509395(0x103)](_0x509395(0x10a));});function a3_0x13bf(_0x31ea42,_0x55fbbe){const _0x343fa8=a3_0x2f58();return a3_0x13bf=function(_0x297cfa,_0x2066a6){_0x297cfa=_0x297cfa-0xb5;let _0x2f58b7=_0x343fa8[_0x297cfa];return _0x2f58b7;},a3_0x13bf(_0x31ea42,_0x55fbbe);}a3_0x297cfa();'use strict';var __decorate=this&&this[a3_0x28ae16(0xd0)]||function(_0xf50e15,_0x146e11,_0x2d939d,_0x48a6ba){const _0x59f645=a3_0x28ae16;var _0x107237=arguments[_0x59f645(0x112)],_0x51e745=_0x107237<0x3?_0x146e11:_0x48a6ba===null?_0x48a6ba=Object[_0x59f645(0x12e)](_0x146e11,_0x2d939d):_0x48a6ba,_0x4c58a8;if(typeof Reflect==='object'&&typeof Reflect[_0x59f645(0xe3)]===_0x59f645(0x132))_0x51e745=Reflect['decorate'](_0xf50e15,_0x146e11,_0x2d939d,_0x48a6ba);else{for(var _0x42d809=_0xf50e15[_0x59f645(0x112)]-0x1;_0x42d809>=0x0;_0x42d809--)if(_0x4c58a8=_0xf50e15[_0x42d809])_0x51e745=(_0x107237<0x3?_0x4c58a8(_0x51e745):_0x107237>0x3?_0x4c58a8(_0x146e11,_0x2d939d,_0x51e745):_0x4c58a8(_0x146e11,_0x2d939d))||_0x51e745;}return _0x107237>0x3&&_0x51e745&&Object[_0x59f645(0xbc)](_0x146e11,_0x2d939d,_0x51e745),_0x51e745;},__metadata=this&&this['__metadata']||function(_0x1d3c10,_0x42358c){const _0x1d9b2e=a3_0x28ae16;if(typeof Reflect===_0x1d9b2e(0xd8)&&typeof Reflect[_0x1d9b2e(0xbe)]==='function')return Reflect[_0x1d9b2e(0xbe)](_0x1d3c10,_0x42358c);};Object[a3_0x28ae16(0xbc)](exports,'__esModule',{'value':!![]}),exports['ApicreateService']=void 0x0;const fs=require('fs'),path=require(a3_0x28ae16(0xea)),core_1=require(a3_0x28ae16(0x122)),typeorm_1=require('@midwayjs/typeorm'),core_2=require(a3_0x28ae16(0x122)),Common_1=require(a3_0x28ae16(0xfb)),Event_1=require(a3_0x28ae16(0xe6)),Search_1=require(a3_0x28ae16(0x12a)),Entities_1=require('../templateFun/Entities'),Handler_1=require(a3_0x28ae16(0x118)),Validator_1=require('../templateFun/Validator'),Action_1=require('../templateFun/Action'),Api_1=require(a3_0x28ae16(0xf1)),Router_1=require(a3_0x28ae16(0xeb)),Layout_1=require(a3_0x28ae16(0xfd)),LayoutVue_1=require(a3_0x28ae16(0x126)),Validator_2=require('../templateVue/Validator'),Api_2=require('../templateVueV2/Api'),Router_2=require(a3_0x28ae16(0xca)),Layout_2=require(a3_0x28ae16(0x131)),LayoutVue_2=require(a3_0x28ae16(0x10b)),Validator_3=require(a3_0x28ae16(0xf9)),Api_3=require(a3_0x28ae16(0xb6)),Router_3=require(a3_0x28ae16(0x116)),Layout_3=require(a3_0x28ae16(0xee)),LayoutVue_3=require(a3_0x28ae16(0x10c)),Validator_4=require(a3_0x28ae16(0x133));let ApicreateService=class ApicreateService{async[a3_0x28ae16(0xcb)](_0xc43be0){const _0x2c0fad=a3_0x28ae16;return await this['checkOption'](_0xc43be0),await this[_0x2c0fad(0x108)]({..._0xc43be0,'apporbasic':'app'});}async[a3_0x28ae16(0xb8)](_0x4dc8cd){const _0x5637bc=a3_0x28ae16;return await this[_0x5637bc(0xbf)](_0x4dc8cd),await this[_0x5637bc(0x108)]({..._0x4dc8cd,'apporbasic':_0x5637bc(0x119)});}async['createPlugin'](_0x3b81e9){const _0x585131=a3_0x28ae16;return await this[_0x585131(0xbf)](_0x3b81e9),await this[_0x585131(0x108)]({..._0x3b81e9,'module':!![]});}async[a3_0x28ae16(0x108)](_0x3fee06){const _0xf6d019=a3_0x28ae16;var _0x103627,_0x3f69ba;!_0x3fee06[_0xf6d019(0xe8)]&&(_0x3fee06[_0xf6d019(0xe8)]=_0xf6d019(0xef));!_0x3fee06['apporbasic']&&(_0x3fee06[_0xf6d019(0x115)]=_0xf6d019(0x12d));const _0x47a2f4=this[_0xf6d019(0x12d)][_0xf6d019(0xc0)](),_0x326e00=this['dataSourceManager'][_0xf6d019(0xe7)](_0x3fee06['connection']),_0x2dc9f3=await _0x326e00['query'](_0xf6d019(0x135)+this[_0xf6d019(0xed)]['dataSource'][_0x3fee06[_0xf6d019(0xe8)]][_0xf6d019(0xc1)]+_0xf6d019(0xe0)+((_0x3fee06===null||_0x3fee06===void 0x0?void 0x0:_0x3fee06['table'])?'=\x20\x22'+_0x3fee06[_0xf6d019(0x124)]+'\x22':_0xf6d019(0x125)+(_0x3fee06[_0xf6d019(0xc7)]||'')+'%\x22'))||[];for(let _0xf5b280=0x0;_0xf5b280<_0x2dc9f3[_0xf6d019(0x112)];_0xf5b280++){const _0x4161d9=_0x2dc9f3[_0xf5b280][_0xf6d019(0x124)];if((_0x3fee06===null||_0x3fee06===void 0x0?void 0x0:_0x3fee06[_0xf6d019(0x124)])&&(_0x3fee06===null||_0x3fee06===void 0x0?void 0x0:_0x3fee06['table'])!=_0x4161d9)continue;if((_0x3fee06===null||_0x3fee06===void 0x0?void 0x0:_0x3fee06[_0xf6d019(0xc7)])&&!(_0x4161d9===null||_0x4161d9===void 0x0?void 0x0:_0x4161d9[_0xf6d019(0x117)](_0x3fee06[_0xf6d019(0xc7)])))continue;const _0x3582a0=await _0x326e00[_0xf6d019(0x120)](_0xf6d019(0x123)+this['config'][_0xf6d019(0x111)][_0x3fee06[_0xf6d019(0xe8)]][_0xf6d019(0xc1)]+_0xf6d019(0x107)+_0x4161d9+'\x27')||[];if((_0x103627=_0x3582a0[0x0])===null||_0x103627===void 0x0?void 0x0:_0x103627[_0xf6d019(0xcc)]){const _0x499b60={'tablename':_0x4161d9,'Primary':{},'Fields':{},'Comment':(_0x3f69ba=_0x3582a0[0x0])===null||_0x3f69ba===void 0x0?void 0x0:_0x3f69ba[_0xf6d019(0xcc)],'vuedialog':_0x3fee06[_0xf6d019(0x11c)],'apporbasic':_0x3fee06['apporbasic']};_0x499b60[_0xf6d019(0x139)]=_0x4161d9[_0xf6d019(0xe1)]((_0x3fee06===null||_0x3fee06===void 0x0?void 0x0:_0x3fee06['substr'])||0x0,_0x4161d9['length']),_0x499b60['basedir']=(_0x3fee06===null||_0x3fee06===void 0x0?void 0x0:_0x3fee06[_0xf6d019(0xb9)])?_0x47a2f4+_0xf6d019(0xfe)+_0x499b60[_0xf6d019(0x139)]['split']('_')[0x0][_0xf6d019(0x10d)]():_0x47a2f4+'/'+_0x3fee06[_0xf6d019(0x115)];const _0x474928=_0x499b60[_0xf6d019(0x139)][_0xf6d019(0xc4)]('_')[_0xf6d019(0xc5)](_0x12320b=>_0x12320b&&_0x12320b['trim']());(_0x3fee06===null||_0x3fee06===void 0x0?void 0x0:_0x3fee06[_0xf6d019(0xb9)])&&(await this['CreateModuleConfig'](_0x499b60),_0x499b60[_0xf6d019(0xf2)]=_0x474928[0x0][_0xf6d019(0x10d)]());_0x499b60[_0xf6d019(0x113)]=_0x474928['map'](_0x3b4b94=>_0x3b4b94['toLowerCase']())[_0xf6d019(0xce)](''),_0x499b60[_0xf6d019(0xdc)]=_0x474928[_0xf6d019(0xe9)](_0x425356=>''+_0x425356[_0xf6d019(0x134)](0x0,0x1)['toUpperCase']()+_0x425356['substring'](0x1)['toLowerCase']())[_0xf6d019(0xce)]('');(_0x499b60===null||_0x499b60===void 0x0?void 0x0:_0x499b60[_0xf6d019(0xf2)])&&_0x474928[_0xf6d019(0x112)]>0x1&&_0x474928[0x0][_0xf6d019(0x10d)]()==_0x499b60[_0xf6d019(0xf2)]?(_0x499b60[_0xf6d019(0xda)]=_0x499b60['tablestartUp']['substring'](_0x499b60[_0xf6d019(0xf2)][_0xf6d019(0x112)],_0x499b60['tablestartUp'][_0xf6d019(0x112)]),_0x499b60[_0xf6d019(0xb7)]=_0x499b60['tablestartLow'][_0xf6d019(0x134)](_0x499b60['moduleName']['length'],_0x499b60['tablestartLow'][_0xf6d019(0x112)])):(_0x499b60['tablestartUpShort']=_0x499b60[_0xf6d019(0xdc)],_0x499b60['tablestartLowShort']=_0x499b60[_0xf6d019(0x113)]);_0x499b60[_0xf6d019(0xba)]=_0x499b60[_0xf6d019(0xda)][_0xf6d019(0xe5)](/\/{2,}/g,'/')['match'](/[\/|A-Z]*[^A-Z]+/g)[_0xf6d019(0xce)]('-')[_0xf6d019(0x10d)]()[_0xf6d019(0xe5)](/\/\-/g,'/');for(let _0xd23c15 of await _0x326e00['query']('SHOW\x20FULL\x20COLUMNS\x20FROM\x20`'+_0x4161d9+'`')){_0xd23c15[_0xf6d019(0x13b)]==_0xf6d019(0xe4)?_0x499b60['Primary']=_0xd23c15:_0x499b60['Fields'][_0xd23c15[_0xf6d019(0xe2)]]=_0xd23c15;}if((_0x3fee06===null||_0x3fee06===void 0x0?void 0x0:_0x3fee06[_0xf6d019(0x138)])&&!fs[_0xf6d019(0xb5)](_0x499b60[_0xf6d019(0xff)]+_0xf6d019(0xd1)+_0x499b60['tablestartUpShort']+_0xf6d019(0x114))){var _0x689134=[];if(typeof(_0x3fee06===null||_0x3fee06===void 0x0?void 0x0:_0x3fee06[_0xf6d019(0x138)])==_0xf6d019(0x100))_0x689134=[_0x3fee06===null||_0x3fee06===void 0x0?void 0x0:_0x3fee06['controller']];else Array[_0xf6d019(0xf3)](_0x3fee06===null||_0x3fee06===void 0x0?void 0x0:_0x3fee06[_0xf6d019(0x138)])?_0x689134=_0x3fee06===null||_0x3fee06===void 0x0?void 0x0:_0x3fee06[_0xf6d019(0x138)]:_0x689134=[!![]];_0x499b60['controllers']=_0x689134,await(0x0,Search_1[_0xf6d019(0xef)])(_0x499b60),await(0x0,Entities_1[_0xf6d019(0xef)])(_0x499b60),await(0x0,Common_1[_0xf6d019(0xef)])(_0x499b60),await(0x0,Event_1[_0xf6d019(0xef)])(_0x499b60),await(0x0,Handler_1[_0xf6d019(0xef)])(_0x499b60),await(0x0,Validator_1[_0xf6d019(0xef)])(_0x499b60);for(let _0x36399c of _0x689134){_0x499b60[_0xf6d019(0x138)]=_0x36399c,await(0x0,Action_1[_0xf6d019(0xef)])(_0x499b60);}}if(_0x3fee06===null||_0x3fee06===void 0x0?void 0x0:_0x3fee06['hasvue']){var _0x689134=[];if(typeof(_0x3fee06===null||_0x3fee06===void 0x0?void 0x0:_0x3fee06[_0xf6d019(0x138)])==_0xf6d019(0x100))_0x689134=[_0x3fee06===null||_0x3fee06===void 0x0?void 0x0:_0x3fee06[_0xf6d019(0x138)]];else Array[_0xf6d019(0xf3)](_0x3fee06===null||_0x3fee06===void 0x0?void 0x0:_0x3fee06[_0xf6d019(0x138)])?_0x689134=_0x3fee06===null||_0x3fee06===void 0x0?void 0x0:_0x3fee06['controller']:_0x689134=[!![]];if(_0x3fee06[_0xf6d019(0x101)]=='v2')for(let _0x40873e of _0x689134){_0x499b60[_0xf6d019(0x138)]=_0x40873e;let _0x570602=process[_0xf6d019(0xdb)]()+_0xf6d019(0x10f)+(typeof _0x499b60[_0xf6d019(0x138)]=='string'?'/'+_0x499b60[_0xf6d019(0x138)]:'');_0x499b60['moduleName']?_0x570602=_0x570602+(_0xf6d019(0x11d)+_0x499b60['moduleName']+'/apis/'+_0x499b60[_0xf6d019(0xda)]+'.js'):_0x570602=_0x570602+('/apis/'+_0x499b60[_0xf6d019(0x115)]+'/apis/'+_0x499b60['tablestartUpShort']+_0xf6d019(0xf5)),!fs[_0xf6d019(0xb5)](_0x570602)&&(await(0x0,Api_2[_0xf6d019(0xef)])(_0x499b60),await(0x0,Router_2[_0xf6d019(0xef)])(_0x499b60),await(0x0,Layout_2[_0xf6d019(0xef)])(_0x499b60),await(0x0,LayoutVue_2[_0xf6d019(0xef)])(_0x499b60),await(0x0,Validator_3[_0xf6d019(0xef)])(_0x499b60));}else{if(_0x3fee06['hasvue']=='v3')for(let _0x4ba88f of _0x689134){_0x499b60[_0xf6d019(0x138)]=_0x4ba88f;let _0x57ba25=process[_0xf6d019(0xdb)]()+_0xf6d019(0x10f)+(typeof _0x499b60[_0xf6d019(0x138)]=='string'?'/'+_0x499b60[_0xf6d019(0x138)]:'');_0x499b60[_0xf6d019(0xf2)]?_0x57ba25=_0x57ba25+(_0xf6d019(0x11d)+_0x499b60[_0xf6d019(0xf2)]+'/apis/'+_0x499b60[_0xf6d019(0xda)]+_0xf6d019(0xf5)):_0x57ba25=_0x57ba25+('/apis/'+_0x499b60[_0xf6d019(0x115)]+_0xf6d019(0x12f)+_0x499b60[_0xf6d019(0xda)]+_0xf6d019(0xf5)),!fs['existsSync'](_0x57ba25)&&(await(0x0,Api_3[_0xf6d019(0xef)])(_0x499b60),await(0x0,Router_3[_0xf6d019(0xef)])(_0x499b60),await(0x0,Layout_3['default'])(_0x499b60),await(0x0,LayoutVue_3['default'])(_0x499b60),await(0x0,Validator_4['default'])(_0x499b60));}else for(let _0x5e1ed9 of _0x689134){_0x499b60[_0xf6d019(0x138)]=_0x5e1ed9;let _0x4dec61=process[_0xf6d019(0xdb)]()+'/vue'+(typeof _0x499b60[_0xf6d019(0x138)]==_0xf6d019(0x100)?'/'+_0x499b60[_0xf6d019(0x138)]:'');_0x499b60[_0xf6d019(0xf2)]?_0x4dec61=_0x4dec61+('/pages/apps/'+_0x499b60['moduleName']+_0xf6d019(0xf0)+_0x499b60['tablestartUpShort2']+'.js'):_0x4dec61=_0x4dec61+(_0xf6d019(0xc6)+_0x499b60[_0xf6d019(0x115)]+_0xf6d019(0xf0)+_0x499b60[_0xf6d019(0xba)]+'.js'),!fs[_0xf6d019(0xb5)](_0x4dec61)&&(await(0x0,Api_1['default'])(_0x499b60),await(0x0,Router_1[_0xf6d019(0xef)])(_0x499b60),await(0x0,Layout_1['default'])(_0x499b60),await(0x0,LayoutVue_1[_0xf6d019(0xef)])(_0x499b60),await(0x0,Validator_2[_0xf6d019(0xef)])(_0x499b60));}}}}else console[_0xf6d019(0xbb)]('表:'+_0x4161d9+_0xf6d019(0x129));}return _0xf6d019(0xcd);}async[a3_0x28ae16(0xbf)](_0x35d392){const _0x4628d7=a3_0x28ae16;var _0x465632,_0x1f7e07,_0x1f9000;if(!this[_0x4628d7(0xc2)][_0x4628d7(0xec)]()||!((_0x465632=this[_0x4628d7(0xed)])===null||_0x465632===void 0x0?void 0x0:_0x465632['dataSource'])||!this[_0x4628d7(0x12d)][_0x4628d7(0x136)](_0x4628d7(0xfa)))throw new Error(_0x4628d7(0xc9));!_0x35d392['connection']&&(_0x35d392['connection']=_0x4628d7(0xef));if(!((_0x1f9000=(_0x1f7e07=this[_0x4628d7(0xed)])===null||_0x1f7e07===void 0x0?void 0x0:_0x1f7e07[_0x4628d7(0x111)])===null||_0x1f9000===void 0x0?void 0x0:_0x1f9000[_0x35d392[_0x4628d7(0xe8)]]))throw new Error(_0x4628d7(0xcf)+_0x35d392[_0x4628d7(0xe8)]);if(!this[_0x4628d7(0x109)][_0x4628d7(0x11a)](_0x35d392[_0x4628d7(0xe8)]))throw new Error(_0x4628d7(0xd9)+_0x35d392[_0x4628d7(0xe8)]+_0x4628d7(0x10e));if(!this[_0x4628d7(0x109)][_0x4628d7(0x11f)](_0x35d392['connection']))throw new Error('typeorm\x20数据源\x20'+_0x35d392[_0x4628d7(0xe8)]+_0x4628d7(0xd5));return!![];}async['CreateModuleConfig'](_0x3dd142){const _0x3c7cf9=a3_0x28ae16,_0x4ca992=_0x3dd142[_0x3c7cf9(0x139)][_0x3c7cf9(0xc4)]('_')[0x0][_0x3c7cf9(0x10d)]();if(!fs[_0x3c7cf9(0xb5)](_0x3dd142[_0x3c7cf9(0xff)]+_0x3c7cf9(0xd2))){let _0x138936=_0x3c7cf9(0xf8)+(_0x3dd142[_0x3c7cf9(0x121)]||_0x4ca992)+_0x3c7cf9(0x12c);fs[_0x3c7cf9(0xd6)](path[_0x3c7cf9(0xdf)](_0x3dd142[_0x3c7cf9(0xff)]+_0x3c7cf9(0xd2)),{'recursive':!![]}),fs['writeFileSync'](_0x3dd142[_0x3c7cf9(0xff)]+_0x3c7cf9(0xd2),_0x138936,_0x3c7cf9(0xbd));}}};__decorate([(0x0,core_2[a3_0x28ae16(0x11e)])(),__metadata('design:type',Object)],ApicreateService['prototype'],'app',void 0x0),__decorate([(0x0,core_2[a3_0x28ae16(0xf6)])(a3_0x28ae16(0x137)),__metadata(a3_0x28ae16(0xf7),Object)],ApicreateService[a3_0x28ae16(0x110)],a3_0x28ae16(0xed),void 0x0),__decorate([(0x0,core_2[a3_0x28ae16(0x12b)])(),__metadata(a3_0x28ae16(0xf7),core_1[a3_0x28ae16(0x106)])],ApicreateService[a3_0x28ae16(0x110)],'environment',void 0x0),__decorate([(0x0,core_2[a3_0x28ae16(0x12b)])(),__metadata(a3_0x28ae16(0xf7),typeorm_1[a3_0x28ae16(0x11b)])],ApicreateService[a3_0x28ae16(0x110)],a3_0x28ae16(0x109),void 0x0),ApicreateService=__decorate([(0x0,core_2[a3_0x28ae16(0xd3)])(a3_0x28ae16(0x102)),(0x0,core_2['Scope'])(core_2[a3_0x28ae16(0x13a)]['Singleton'])],ApicreateService),exports[a3_0x28ae16(0x102)]=ApicreateService;function a3_0x2f58(){const _0x214ed1=['/exceptions/','/config.ts','Provide','toString','\x20未连接','mkdirSync','833310dJjmIJ','object','typeorm\x20数据源\x20','tablestartUpShort','cwd','tablestartUp','10668xZJHEZ','21324UUlSdp','dirname','\x22\x20AND\x20table_name\x20','substr','Field','decorate','PRI','replace','../templateFun/Event','getDataSource','connection','map','path','../templateVue/Router','isDevelopmentEnvironment','config','../templateVueV3/Layout','default','/api/','../templateVue/Api','moduleName','isArray','1304728xNFBAj','.js','Config','design:type','export\x20default\x20{\x0a\x20\x20\x20\x20name:\x20\x27','../templateVueV2/Validator','apitest','../templateFun/Common','constructor','../templateVue/Layout','/apps/','basedir','string','hasvue','ApicreateService','search','43XcLGAJ','49721qmUrSd','MidwayEnvironmentService','\x22\x20AND\x20table_name\x20=\x20\x27','createAction','dataSourceManager','(((.+)+)+)+$','../templateVueV2/LayoutVue','../templateVueV3/LayoutVue','toLowerCase','\x20不存在','/vue','prototype','dataSource','length','tablestartLow','.ts','apporbasic','../templateVueV3/Router','startsWith','../templateFun/Handler','basic','hasDataSource','TypeORMDataSourceManager','vuedialog','/apis/apps/','App','isConnected','query','Comment','@midwayjs/core','SELECT\x20TABLE_COMMENT\x20as\x20`comment`\x20FROM\x20information_schema.TABLES\x20WHERE\x20TABLE_SCHEMA=\x22','table','LIKE\x20\x22','../templateVue/LayoutVue','425lrnxpS','apply','\x20表注释不存在','../templateFun/Search','Inject','\x27,\x0a\x20\x20\x20\x20description:\x20\x27\x27,\x0a\x20\x20\x20\x20middleware:\x20[],\x0a}','app','getOwnPropertyDescriptor','/apis/','296emzEvw','../templateVueV2/Layout','function','../templateVueV3/Validator','substring','SELECT\x20TABLE_NAME\x20as\x20`table`\x20FROM\x20information_schema.TABLES\x20WHERE\x20TABLE_SCHEMA=\x22','getConfig','typeorm','controller','tablestart','ScopeEnum','Key','existsSync','../templateVueV3/Api','tablestartLowShort','createBasic','module','tablestartUpShort2','error','defineProperty','utf-8','metadata','checkOption','getBaseDir','database','environment','871950FfVFpe','split','filter','/pages/','tableprefix','4553820pyAqiy','无法生成','../templateVueV2/Router','createApp','comment','die','join','typeorm\x20未配置数据源\x20','__decorate'];a3_0x2f58=function(){return _0x214ed1;};return a3_0x2f58();}
1
+ const a3_0x31ae63=a3_0x42d4;function a3_0x425c(){const _0x4370f0=['trim','/api/','../templateFun/Action','default','split','config','typeorm\x20数据源\x20','controller','../templateVueV2/Validator','(((.+)+)+)+$','constructor','Fields','mkdirSync','5944970PhFNJS','tablestartUpShort2','\x20未连接','../templateVueV3/LayoutVue','/pages/','.js','comment','\x22\x20AND\x20table_name\x20=\x20\x27','SELECT\x20TABLE_NAME\x20as\x20`table`\x20FROM\x20information_schema.TABLES\x20WHERE\x20TABLE_SCHEMA=\x22','basic','../templateFun/Search','Config','22224nQHfvH','typeorm','isDevelopmentEnvironment','replace','../templateVueV3/Router','checkOption','231jlXiPm','Field','toString','PRI','__metadata','map','search','tablestartLowShort','join','=\x20\x22','tablestart','hasvue','substring','createBasic','/vue','31662OBZEQd','11237XixGdB','../templateFun/Common','CreateModuleConfig','typeorm\x20未配置数据源\x20','hasDataSource','../templateFun/Event','100232cltlZB','MidwayEnvironmentService','Primary','../templateVueV2/Api','getBaseDir','tablestartLow','18HDGVOo','cwd','2005030FxedMF','metadata','dirname','../templateVue/LayoutVue','object','Comment','isConnected','\x22\x20AND\x20table_name\x20','tablestartUpShort','../templateVueV3/Validator','/apps/','34OZDaeW','moduleName','tablestartUp','die','createPlugin','../templateFun/Entities','function','/exceptions/','isArray','length','LIKE\x20\x22','path','Inject','264WfkiJc','/apis/','defineProperty','environment','vuedialog','getDataSource','writeFileSync','Key','ApicreateService','dataSourceManager','toUpperCase','__esModule','basedir','startsWith','query','existsSync','tableprefix','dataSource','prototype','table','/config.ts','module','substr','2122352ALKhqr','apitest','createAction','.ts','apporbasic','toLowerCase','../templateVueV3/Api','__decorate','app','string','../templateFun/Validator','SELECT\x20TABLE_COMMENT\x20as\x20`comment`\x20FROM\x20information_schema.TABLES\x20WHERE\x20TABLE_SCHEMA=\x22','../templateVue/Router','connection','\x20不存在','@midwayjs/core','81wKMIcc','../templateVueV2/LayoutVue','decorate'];a3_0x425c=function(){return _0x4370f0;};return a3_0x425c();}(function(_0x39b9c3,_0x2f5301){const _0xdff603=a3_0x42d4,_0x962f60=_0x39b9c3();while(!![]){try{const _0x5cc6e1=parseInt(_0xdff603(0x156))/0x1*(parseInt(_0xdff603(0x16f))/0x2)+parseInt(_0xdff603(0x124))/0x3*(parseInt(_0xdff603(0x15c))/0x4)+parseInt(_0xdff603(0x164))/0x5+-parseInt(_0xdff603(0x155))/0x6*(-parseInt(_0xdff603(0x146))/0x7)+-parseInt(_0xdff603(0x193))/0x8*(parseInt(_0xdff603(0x162))/0x9)+-parseInt(_0xdff603(0x134))/0xa+parseInt(_0xdff603(0x17c))/0xb*(parseInt(_0xdff603(0x140))/0xc);if(_0x5cc6e1===_0x2f5301)break;else _0x962f60['push'](_0x962f60['shift']());}catch(_0x528613){_0x962f60['push'](_0x962f60['shift']());}}}(a3_0x425c,0x58679));const a3_0xcda981=(function(){let _0x4dcaad=!![];return function(_0x311c72,_0x173fbd){const _0x334030=_0x4dcaad?function(){if(_0x173fbd){const _0x4a4bcc=_0x173fbd['apply'](_0x311c72,arguments);return _0x173fbd=null,_0x4a4bcc;}}:function(){};return _0x4dcaad=![],_0x334030;};}()),a3_0x253043=a3_0xcda981(this,function(){const _0xed9343=a3_0x42d4;return a3_0x253043[_0xed9343(0x148)]()[_0xed9343(0x14c)]('(((.+)+)+)+$')[_0xed9343(0x148)]()[_0xed9343(0x131)](a3_0x253043)[_0xed9343(0x14c)](_0xed9343(0x130));});a3_0x253043();function a3_0x42d4(_0x18adf5,_0x4fb124){const _0x2e0121=a3_0x425c();return a3_0x42d4=function(_0x253043,_0xcda981){_0x253043=_0x253043-0x11c;let _0x425ceb=_0x2e0121[_0x253043];return _0x425ceb;},a3_0x42d4(_0x18adf5,_0x4fb124);}'use strict';var __decorate=this&&this[a3_0x31ae63(0x19a)]||function(_0x7cdb4b,_0x570092,_0x373e4e,_0x147d02){const _0x473831=a3_0x31ae63;var _0x5e234f=arguments[_0x473831(0x178)],_0xe7c2d=_0x5e234f<0x3?_0x570092:_0x147d02===null?_0x147d02=Object['getOwnPropertyDescriptor'](_0x570092,_0x373e4e):_0x147d02,_0x33d7cf;if(typeof Reflect===_0x473831(0x168)&&typeof Reflect[_0x473831(0x126)]===_0x473831(0x175))_0xe7c2d=Reflect[_0x473831(0x126)](_0x7cdb4b,_0x570092,_0x373e4e,_0x147d02);else{for(var _0x534d29=_0x7cdb4b[_0x473831(0x178)]-0x1;_0x534d29>=0x0;_0x534d29--)if(_0x33d7cf=_0x7cdb4b[_0x534d29])_0xe7c2d=(_0x5e234f<0x3?_0x33d7cf(_0xe7c2d):_0x5e234f>0x3?_0x33d7cf(_0x570092,_0x373e4e,_0xe7c2d):_0x33d7cf(_0x570092,_0x373e4e))||_0xe7c2d;}return _0x5e234f>0x3&&_0xe7c2d&&Object[_0x473831(0x17e)](_0x570092,_0x373e4e,_0xe7c2d),_0xe7c2d;},__metadata=this&&this[a3_0x31ae63(0x14a)]||function(_0x239d88,_0x4c6164){const _0x1ffe9e=a3_0x31ae63;if(typeof Reflect==='object'&&typeof Reflect['metadata']===_0x1ffe9e(0x175))return Reflect[_0x1ffe9e(0x165)](_0x239d88,_0x4c6164);};Object[a3_0x31ae63(0x17e)](exports,a3_0x31ae63(0x187),{'value':!![]}),exports['ApicreateService']=void 0x0;const fs=require('fs'),path=require(a3_0x31ae63(0x17a)),core_1=require(a3_0x31ae63(0x123)),typeorm_1=require('@midwayjs/typeorm'),core_2=require('@midwayjs/core'),Common_1=require(a3_0x31ae63(0x157)),Event_1=require(a3_0x31ae63(0x15b)),Search_1=require(a3_0x31ae63(0x13e)),Entities_1=require(a3_0x31ae63(0x174)),Handler_1=require('../templateFun/Handler'),Validator_1=require(a3_0x31ae63(0x11e)),Action_1=require(a3_0x31ae63(0x129)),Api_1=require('../templateVue/Api'),Router_1=require(a3_0x31ae63(0x120)),Layout_1=require('../templateVue/Layout'),LayoutVue_1=require(a3_0x31ae63(0x167)),Validator_2=require('../templateVue/Validator'),Api_2=require(a3_0x31ae63(0x15f)),Router_2=require('../templateVueV2/Router'),Layout_2=require('../templateVueV2/Layout'),LayoutVue_2=require(a3_0x31ae63(0x125)),Validator_3=require(a3_0x31ae63(0x12f)),Api_3=require(a3_0x31ae63(0x199)),Router_3=require(a3_0x31ae63(0x144)),Layout_3=require('../templateVueV3/Layout'),LayoutVue_3=require(a3_0x31ae63(0x137)),Validator_4=require(a3_0x31ae63(0x16d));let ApicreateService=class ApicreateService{async['createApp'](_0x29f047){const _0x143608=a3_0x31ae63;return await this['checkOption'](_0x29f047),await this[_0x143608(0x195)]({..._0x29f047,'apporbasic':_0x143608(0x11c)});}async[a3_0x31ae63(0x153)](_0x3e8f7a){const _0x2e2521=a3_0x31ae63;return await this[_0x2e2521(0x145)](_0x3e8f7a),await this[_0x2e2521(0x195)]({..._0x3e8f7a,'apporbasic':_0x2e2521(0x13d)});}async[a3_0x31ae63(0x173)](_0x42c23b){const _0x1891f8=a3_0x31ae63;return await this[_0x1891f8(0x145)](_0x42c23b),await this[_0x1891f8(0x195)]({..._0x42c23b,'module':!![]});}async[a3_0x31ae63(0x195)](_0x542f48){const _0x447e0f=a3_0x31ae63;var _0x5299f6,_0x5e3da4;!_0x542f48[_0x447e0f(0x121)]&&(_0x542f48[_0x447e0f(0x121)]=_0x447e0f(0x12a));!_0x542f48[_0x447e0f(0x197)]&&(_0x542f48[_0x447e0f(0x197)]=_0x447e0f(0x11c));const _0x5b1388=this[_0x447e0f(0x11c)][_0x447e0f(0x160)](),_0x184599=this['dataSourceManager'][_0x447e0f(0x181)](_0x542f48['connection']),_0x5b761c=await _0x184599['query'](_0x447e0f(0x13c)+this[_0x447e0f(0x12c)][_0x447e0f(0x18d)][_0x542f48[_0x447e0f(0x121)]]['database']+_0x447e0f(0x16b)+((_0x542f48===null||_0x542f48===void 0x0?void 0x0:_0x542f48['table'])?_0x447e0f(0x14f)+_0x542f48[_0x447e0f(0x18f)]+'\x22':_0x447e0f(0x179)+(_0x542f48[_0x447e0f(0x18c)]||'')+'%\x22'))||[];for(let _0x4eb702=0x0;_0x4eb702<_0x5b761c[_0x447e0f(0x178)];_0x4eb702++){const _0x32c4fe=_0x5b761c[_0x4eb702]['table'];if((_0x542f48===null||_0x542f48===void 0x0?void 0x0:_0x542f48['table'])&&(_0x542f48===null||_0x542f48===void 0x0?void 0x0:_0x542f48[_0x447e0f(0x18f)])!=_0x32c4fe)continue;if((_0x542f48===null||_0x542f48===void 0x0?void 0x0:_0x542f48[_0x447e0f(0x18c)])&&!(_0x32c4fe===null||_0x32c4fe===void 0x0?void 0x0:_0x32c4fe[_0x447e0f(0x189)](_0x542f48[_0x447e0f(0x18c)])))continue;const _0x2d224b=await _0x184599[_0x447e0f(0x18a)](_0x447e0f(0x11f)+this[_0x447e0f(0x12c)]['dataSource'][_0x542f48[_0x447e0f(0x121)]]['database']+_0x447e0f(0x13b)+_0x32c4fe+'\x27')||[];if((_0x5299f6=_0x2d224b[0x0])===null||_0x5299f6===void 0x0?void 0x0:_0x5299f6['comment']){const _0x31bb3c={'tablename':_0x32c4fe,'Primary':{},'Fields':{},'Comment':(_0x5e3da4=_0x2d224b[0x0])===null||_0x5e3da4===void 0x0?void 0x0:_0x5e3da4[_0x447e0f(0x13a)],'vuedialog':_0x542f48[_0x447e0f(0x180)],'apporbasic':_0x542f48[_0x447e0f(0x197)]};_0x31bb3c['tablestart']=_0x32c4fe[_0x447e0f(0x192)]((_0x542f48===null||_0x542f48===void 0x0?void 0x0:_0x542f48['substr'])||0x0,_0x32c4fe[_0x447e0f(0x178)]),_0x31bb3c['basedir']=(_0x542f48===null||_0x542f48===void 0x0?void 0x0:_0x542f48[_0x447e0f(0x191)])?_0x5b1388+_0x447e0f(0x16e)+_0x31bb3c[_0x447e0f(0x150)][_0x447e0f(0x12b)]('_')[0x0][_0x447e0f(0x198)]():_0x5b1388+'/'+_0x542f48[_0x447e0f(0x197)];const _0x135203=_0x31bb3c[_0x447e0f(0x150)][_0x447e0f(0x12b)]('_')['filter'](_0xd80c65=>_0xd80c65&&_0xd80c65[_0x447e0f(0x127)]());(_0x542f48===null||_0x542f48===void 0x0?void 0x0:_0x542f48['module'])&&(await this['CreateModuleConfig'](_0x31bb3c),_0x31bb3c['moduleName']=_0x135203[0x0][_0x447e0f(0x198)]());_0x31bb3c[_0x447e0f(0x161)]=_0x135203['map'](_0x5597b6=>_0x5597b6[_0x447e0f(0x198)]())['join'](''),_0x31bb3c[_0x447e0f(0x171)]=_0x135203[_0x447e0f(0x14b)](_0xa09ed4=>''+_0xa09ed4['substring'](0x0,0x1)[_0x447e0f(0x186)]()+_0xa09ed4[_0x447e0f(0x152)](0x1)[_0x447e0f(0x198)]())[_0x447e0f(0x14e)]('');(_0x31bb3c===null||_0x31bb3c===void 0x0?void 0x0:_0x31bb3c[_0x447e0f(0x170)])&&_0x135203[_0x447e0f(0x178)]>0x1&&_0x135203[0x0]['toLowerCase']()==_0x31bb3c[_0x447e0f(0x170)]?(_0x31bb3c[_0x447e0f(0x16c)]=_0x31bb3c[_0x447e0f(0x171)]['substring'](_0x31bb3c[_0x447e0f(0x170)][_0x447e0f(0x178)],_0x31bb3c['tablestartUp'][_0x447e0f(0x178)]),_0x31bb3c['tablestartLowShort']=_0x31bb3c['tablestartLow'][_0x447e0f(0x152)](_0x31bb3c[_0x447e0f(0x170)][_0x447e0f(0x178)],_0x31bb3c[_0x447e0f(0x161)][_0x447e0f(0x178)])):(_0x31bb3c[_0x447e0f(0x16c)]=_0x31bb3c['tablestartUp'],_0x31bb3c[_0x447e0f(0x14d)]=_0x31bb3c[_0x447e0f(0x161)]);_0x31bb3c['tablestartUpShort2']=_0x31bb3c[_0x447e0f(0x16c)][_0x447e0f(0x143)](/\/{2,}/g,'/')['match'](/[\/|A-Z]*[^A-Z]+/g)[_0x447e0f(0x14e)]('-')['toLowerCase']()[_0x447e0f(0x143)](/\/\-/g,'/');for(let _0x486283 of await _0x184599[_0x447e0f(0x18a)]('SHOW\x20FULL\x20COLUMNS\x20FROM\x20`'+_0x32c4fe+'`')){_0x486283[_0x447e0f(0x183)]==_0x447e0f(0x149)?_0x31bb3c[_0x447e0f(0x15e)]=_0x486283:_0x31bb3c[_0x447e0f(0x132)][_0x486283[_0x447e0f(0x147)]]=_0x486283;}if((_0x542f48===null||_0x542f48===void 0x0?void 0x0:_0x542f48[_0x447e0f(0x12e)])&&!fs[_0x447e0f(0x18b)](_0x31bb3c[_0x447e0f(0x188)]+_0x447e0f(0x176)+_0x31bb3c['tablestartUpShort']+_0x447e0f(0x196))){var _0x580480=[];if(typeof(_0x542f48===null||_0x542f48===void 0x0?void 0x0:_0x542f48['controller'])==_0x447e0f(0x11d))_0x580480=[_0x542f48===null||_0x542f48===void 0x0?void 0x0:_0x542f48['controller']];else Array[_0x447e0f(0x177)](_0x542f48===null||_0x542f48===void 0x0?void 0x0:_0x542f48[_0x447e0f(0x12e)])?_0x580480=_0x542f48===null||_0x542f48===void 0x0?void 0x0:_0x542f48[_0x447e0f(0x12e)]:_0x580480=[!![]];_0x31bb3c['controllers']=_0x580480,await(0x0,Search_1[_0x447e0f(0x12a)])(_0x31bb3c),await(0x0,Entities_1['default'])(_0x31bb3c),await(0x0,Common_1[_0x447e0f(0x12a)])(_0x31bb3c),await(0x0,Event_1[_0x447e0f(0x12a)])(_0x31bb3c),await(0x0,Handler_1[_0x447e0f(0x12a)])(_0x31bb3c),await(0x0,Validator_1['default'])(_0x31bb3c);for(let _0x1815d5 of _0x580480){_0x31bb3c[_0x447e0f(0x12e)]=_0x1815d5,await(0x0,Action_1[_0x447e0f(0x12a)])(_0x31bb3c);}}if(_0x542f48===null||_0x542f48===void 0x0?void 0x0:_0x542f48[_0x447e0f(0x151)]){var _0x580480=[];if(typeof(_0x542f48===null||_0x542f48===void 0x0?void 0x0:_0x542f48[_0x447e0f(0x12e)])==_0x447e0f(0x11d))_0x580480=[_0x542f48===null||_0x542f48===void 0x0?void 0x0:_0x542f48[_0x447e0f(0x12e)]];else Array[_0x447e0f(0x177)](_0x542f48===null||_0x542f48===void 0x0?void 0x0:_0x542f48[_0x447e0f(0x12e)])?_0x580480=_0x542f48===null||_0x542f48===void 0x0?void 0x0:_0x542f48[_0x447e0f(0x12e)]:_0x580480=[!![]];if(_0x542f48[_0x447e0f(0x151)]=='v2')for(let _0x18e9fd of _0x580480){_0x31bb3c[_0x447e0f(0x12e)]=_0x18e9fd;let _0x1b1b61=process[_0x447e0f(0x163)]()+_0x447e0f(0x154)+(typeof _0x31bb3c[_0x447e0f(0x12e)]==_0x447e0f(0x11d)?'/'+_0x31bb3c[_0x447e0f(0x12e)]:'');_0x31bb3c['moduleName']?_0x1b1b61=_0x1b1b61+('/apis/apps/'+_0x31bb3c['moduleName']+_0x447e0f(0x17d)+_0x31bb3c[_0x447e0f(0x16c)]+_0x447e0f(0x139)):_0x1b1b61=_0x1b1b61+(_0x447e0f(0x17d)+_0x31bb3c['apporbasic']+_0x447e0f(0x17d)+_0x31bb3c[_0x447e0f(0x16c)]+'.js'),!fs['existsSync'](_0x1b1b61)&&(await(0x0,Api_2[_0x447e0f(0x12a)])(_0x31bb3c),await(0x0,Router_2[_0x447e0f(0x12a)])(_0x31bb3c),await(0x0,Layout_2['default'])(_0x31bb3c),await(0x0,LayoutVue_2[_0x447e0f(0x12a)])(_0x31bb3c),await(0x0,Validator_3[_0x447e0f(0x12a)])(_0x31bb3c));}else{if(_0x542f48[_0x447e0f(0x151)]=='v3')for(let _0x2313be of _0x580480){_0x31bb3c[_0x447e0f(0x12e)]=_0x2313be;let _0x257a31=process['cwd']()+_0x447e0f(0x154)+(typeof _0x31bb3c[_0x447e0f(0x12e)]==_0x447e0f(0x11d)?'/'+_0x31bb3c['controller']:'');_0x31bb3c[_0x447e0f(0x170)]?_0x257a31=_0x257a31+('/apis/apps/'+_0x31bb3c['moduleName']+'/apis/'+_0x31bb3c[_0x447e0f(0x16c)]+_0x447e0f(0x139)):_0x257a31=_0x257a31+(_0x447e0f(0x17d)+_0x31bb3c[_0x447e0f(0x197)]+'/apis/'+_0x31bb3c['tablestartUpShort']+_0x447e0f(0x139)),!fs[_0x447e0f(0x18b)](_0x257a31)&&(await(0x0,Api_3['default'])(_0x31bb3c),await(0x0,Router_3[_0x447e0f(0x12a)])(_0x31bb3c),await(0x0,Layout_3['default'])(_0x31bb3c),await(0x0,LayoutVue_3['default'])(_0x31bb3c),await(0x0,Validator_4['default'])(_0x31bb3c));}else for(let _0x5a11b7 of _0x580480){_0x31bb3c['controller']=_0x5a11b7;let _0x235ab0=process[_0x447e0f(0x163)]()+'/vue'+(typeof _0x31bb3c[_0x447e0f(0x12e)]=='string'?'/'+_0x31bb3c[_0x447e0f(0x12e)]:'');_0x31bb3c['moduleName']?_0x235ab0=_0x235ab0+('/pages/apps/'+_0x31bb3c[_0x447e0f(0x170)]+'/api/'+_0x31bb3c[_0x447e0f(0x135)]+_0x447e0f(0x139)):_0x235ab0=_0x235ab0+(_0x447e0f(0x138)+_0x31bb3c['apporbasic']+_0x447e0f(0x128)+_0x31bb3c[_0x447e0f(0x135)]+_0x447e0f(0x139)),!fs[_0x447e0f(0x18b)](_0x235ab0)&&(await(0x0,Api_1[_0x447e0f(0x12a)])(_0x31bb3c),await(0x0,Router_1['default'])(_0x31bb3c),await(0x0,Layout_1[_0x447e0f(0x12a)])(_0x31bb3c),await(0x0,LayoutVue_1['default'])(_0x31bb3c),await(0x0,Validator_2[_0x447e0f(0x12a)])(_0x31bb3c));}}}}else console['error']('表:'+_0x32c4fe+'\x20表注释不存在');}return _0x447e0f(0x172);}async[a3_0x31ae63(0x145)](_0x3193bb){const _0xf3a6f8=a3_0x31ae63;var _0xb195ed,_0x2964c2,_0x2357fd;if(!this[_0xf3a6f8(0x17f)][_0xf3a6f8(0x142)]()||!((_0xb195ed=this[_0xf3a6f8(0x12c)])===null||_0xb195ed===void 0x0?void 0x0:_0xb195ed['dataSource'])||!this['app']['getConfig'](_0xf3a6f8(0x194)))throw new Error('无法生成');!_0x3193bb[_0xf3a6f8(0x121)]&&(_0x3193bb[_0xf3a6f8(0x121)]=_0xf3a6f8(0x12a));if(!((_0x2357fd=(_0x2964c2=this['config'])===null||_0x2964c2===void 0x0?void 0x0:_0x2964c2['dataSource'])===null||_0x2357fd===void 0x0?void 0x0:_0x2357fd[_0x3193bb[_0xf3a6f8(0x121)]]))throw new Error(_0xf3a6f8(0x159)+_0x3193bb[_0xf3a6f8(0x121)]);if(!this['dataSourceManager'][_0xf3a6f8(0x15a)](_0x3193bb['connection']))throw new Error(_0xf3a6f8(0x12d)+_0x3193bb[_0xf3a6f8(0x121)]+_0xf3a6f8(0x122));if(!this[_0xf3a6f8(0x185)][_0xf3a6f8(0x16a)](_0x3193bb[_0xf3a6f8(0x121)]))throw new Error(_0xf3a6f8(0x12d)+_0x3193bb[_0xf3a6f8(0x121)]+_0xf3a6f8(0x136));return!![];}async[a3_0x31ae63(0x158)](_0x4800f3){const _0x4e4bfa=a3_0x31ae63,_0x61e83f=_0x4800f3[_0x4e4bfa(0x150)][_0x4e4bfa(0x12b)]('_')[0x0][_0x4e4bfa(0x198)]();if(!fs['existsSync'](_0x4800f3[_0x4e4bfa(0x188)]+_0x4e4bfa(0x190))){let _0x553736='export\x20default\x20{\x0a\x20\x20\x20\x20name:\x20\x27'+(_0x4800f3[_0x4e4bfa(0x169)]||_0x61e83f)+'\x27,\x0a\x20\x20\x20\x20description:\x20\x27\x27,\x0a\x20\x20\x20\x20middleware:\x20[],\x0a}';fs[_0x4e4bfa(0x133)](path[_0x4e4bfa(0x166)](_0x4800f3[_0x4e4bfa(0x188)]+_0x4e4bfa(0x190)),{'recursive':!![]}),fs[_0x4e4bfa(0x182)](_0x4800f3['basedir']+_0x4e4bfa(0x190),_0x553736,'utf-8');}}};exports[a3_0x31ae63(0x184)]=ApicreateService,__decorate([(0x0,core_2['App'])(),__metadata('design:type',Object)],ApicreateService[a3_0x31ae63(0x18e)],a3_0x31ae63(0x11c),void 0x0),__decorate([(0x0,core_2[a3_0x31ae63(0x13f)])(a3_0x31ae63(0x141)),__metadata('design:type',Object)],ApicreateService[a3_0x31ae63(0x18e)],'config',void 0x0),__decorate([(0x0,core_2[a3_0x31ae63(0x17b)])(),__metadata('design:type',core_1[a3_0x31ae63(0x15d)])],ApicreateService[a3_0x31ae63(0x18e)],a3_0x31ae63(0x17f),void 0x0),__decorate([(0x0,core_2[a3_0x31ae63(0x17b)])(),__metadata('design:type',typeorm_1['TypeORMDataSourceManager'])],ApicreateService[a3_0x31ae63(0x18e)],a3_0x31ae63(0x185),void 0x0),exports['ApicreateService']=ApicreateService=__decorate([(0x0,core_2['Provide'])(a3_0x31ae63(0x184)),(0x0,core_2['Scope'])(core_2['ScopeEnum']['Singleton'])],ApicreateService);
@@ -1,10 +1,10 @@
1
- export default function ({ controller, tablestartUp, tablestartUpShort, basedir, Primary, Comment, moduleName, apporbasic }: {
2
- controller: any;
3
- tablestartUp: any;
4
- tablestartUpShort: any;
5
- basedir: any;
6
- Primary: any;
7
- Comment: any;
8
- moduleName: any;
9
- apporbasic: any;
10
- }): Promise<void>;
1
+ export default function ({ controller, tablestartUp, tablestartUpShort, basedir, Primary, Comment, moduleName, apporbasic }: {
2
+ controller: any;
3
+ tablestartUp: any;
4
+ tablestartUpShort: any;
5
+ basedir: any;
6
+ Primary: any;
7
+ Comment: any;
8
+ moduleName: any;
9
+ apporbasic: any;
10
+ }): Promise<void>;
@@ -1 +1 @@
1
- const a4_0x5939d5=a4_0x39ae;(function(_0x120537,_0x9c3c79){const _0x92959d=a4_0x39ae,_0x4f7962=_0x120537();while(!![]){try{const _0x2393fb=-parseInt(_0x92959d(0x192))/0x1+-parseInt(_0x92959d(0x197))/0x2+-parseInt(_0x92959d(0x185))/0x3+-parseInt(_0x92959d(0x18d))/0x4+-parseInt(_0x92959d(0x198))/0x5*(parseInt(_0x92959d(0x173))/0x6)+parseInt(_0x92959d(0x176))/0x7*(parseInt(_0x92959d(0x164))/0x8)+parseInt(_0x92959d(0x175))/0x9;if(_0x2393fb===_0x9c3c79)break;else _0x4f7962['push'](_0x4f7962['shift']());}catch(_0x424fcc){_0x4f7962['push'](_0x4f7962['shift']());}}}(a4_0x1d71,0x46fb1));const a4_0x17821d=(function(){let _0x38ebb1=!![];return function(_0x5cf9fd,_0x416c2e){const _0x484d81=_0x38ebb1?function(){if(_0x416c2e){const _0x430a3d=_0x416c2e['apply'](_0x5cf9fd,arguments);return _0x416c2e=null,_0x430a3d;}}:function(){};return _0x38ebb1=![],_0x484d81;};}()),a4_0x4519b8=a4_0x17821d(this,function(){const _0x5e97a0=a4_0x39ae;return a4_0x4519b8[_0x5e97a0(0x1a1)]()[_0x5e97a0(0x193)](_0x5e97a0(0x18a))[_0x5e97a0(0x1a1)]()['constructor'](a4_0x4519b8)[_0x5e97a0(0x193)](_0x5e97a0(0x18a));});function a4_0x1d71(){const _0x4794d8=['\x20\x20\x20\x20\x20\x20\x20\x20const\x20[pagelist,\x20pagetotal]\x20=\x20await\x20this.','(((.+)+)+)+$','Handler\x0a\x0a\x0a','defineProperty','1140560tQwAUW','\x20\x20\x20\x20async\x20detail(','number','export\x20class\x20','Type','553773Sfvlay','search','DTOCreate\x20}\x20from\x20\x27','\x27;\x0a','\x20\x20\x20\x20@Action.post(\x27添加\x27,\x20\x27add\x27)\x0a','563302BWLiPZ','205GonjjA','../helper','substring','DTOSearch)\x20{\x0a\x0a','Handler:\x20','\x20\x20\x20\x20async\x20update(','\x20\x20\x20\x20\x20\x20\x20\x20const\x20tmpModel\x20=\x20await\x20this.','\x20\x20\x20\x20\x20\x20\x20\x20return\x20this.ctx.ok(removes);\x0a','\x20\x20\x20\x20@Action.post(\x22删除\x22,\x20\x27remove\x27)\x0a','toString','\x20\x20\x20\x20}\x0a\x0a\x0a',',\x20params:\x20','\x20\x20\x20\x20\x20\x20\x20\x20const\x20conditions:\x20','dirname','mkdirSync','\x20\x20\x20\x20@Inject()\x20protected\x20ctx:\x20Context;\x0a\x0a','461080CgFuaE','.ts','/validators/','\x27)\x0a','\x20\x20\x20\x20\x20\x20\x20\x20return\x20this.ctx.ok(tmpModel);\x0a','Handler\x20}\x20from\x20\x27','\x20\x20\x20\x20async\x20remove(conditions:\x20','Handler.remove(conditions);\x0a\x0a','text','@/apps/','toUpperCase','\x20};\x0a\x0a','Handler.list(conditions,\x20pageinfo);\x0a\x0a','mediumtext','string','42762aKVdwP','path','17485425MfwnEz','7KLWsOd','/controller/','\x20\x20\x20\x20\x20\x20\x20\x20return\x20this.ctx.ok(pagelist,\x20{\x20pageinfo,\x20pagetotal\x20});\x0a','utf-8','DTOUpdate\x20}\x20from\x20\x27','\x20\x20\x20\x20@Action.get(\x27详情\x27,\x20\x27detail/:','\x20\x20\x20\x20@Inject()\x20protected\x20','Handler.update(conditions,\x20params);\x0a\x0a','import\x20{\x20','Controller\x20{\x0a\x0a','__esModule','/Update\x27;\x0a','getProp','DTOSearch\x20=\x20{\x20','Handler.create(params);\x0a\x0a','890856sidukW',')\x20{\x0a','Field','/Search\x27;\x0a\x0a'];a4_0x1d71=function(){return _0x4794d8;};return a4_0x1d71();}function a4_0x39ae(_0x369103,_0x561d6f){const _0x344938=a4_0x1d71();return a4_0x39ae=function(_0x4519b8,_0x17821d){_0x4519b8=_0x4519b8-0x163;let _0x1d71ec=_0x344938[_0x4519b8];return _0x1d71ec;},a4_0x39ae(_0x369103,_0x561d6f);}a4_0x4519b8();'use strict';Object[a4_0x5939d5(0x18c)](exports,a4_0x5939d5(0x180),{'value':!![]});const fs=require('fs'),path_1=require(a4_0x5939d5(0x174)),helper_1=require(a4_0x5939d5(0x199));async function default_1({controller:_0x28859b,tablestartUp:_0x3d9d38,tablestartUpShort:_0x5f39b7,basedir:_0x13c720,Primary:_0x3ed24e,Comment:_0x3a8352,moduleName:_0x551952,apporbasic:_0x56f4b1}){const _0x37081b=a4_0x5939d5;if(_0x28859b){const _0xb9d2fb=_0x13c720+(typeof _0x28859b==_0x37081b(0x172)?_0x37081b(0x177)+_0x28859b+'/'+_0x5f39b7+_0x37081b(0x165):_0x37081b(0x177)+_0x5f39b7+'.ts');if(!fs['existsSync'](_0xb9d2fb)){let _0x1377ca='',_0x4b67fe=[_0x37081b(0x16c),_0x37081b(0x171),_0x37081b(0x172)]['indexOf']((0x0,helper_1[_0x37081b(0x182)])(_0x3ed24e[_0x37081b(0x191)]))==-0x1;_0x1377ca+='import\x20{\x20Context\x20}\x20from\x20\x27@midwayjs/koa\x27;\x0a',_0x1377ca+='import\x20{\x20Inject,\x20Action,\x20PageDTO\x20}\x20from\x20\x27anncic-api\x27;\x0a\x0a',_0x1377ca+=_0x37081b(0x17e)+_0x3d9d38+_0x37081b(0x169)+(typeof _0x551952==_0x37081b(0x172)?_0x37081b(0x16d)+_0x551952:'@/'+_0x56f4b1)+'/handlers/'+_0x5f39b7+_0x37081b(0x195),_0x1377ca+='import\x20{\x20'+_0x3d9d38+_0x37081b(0x194)+(typeof _0x551952=='string'?_0x37081b(0x16d)+_0x551952:'@/'+_0x56f4b1)+_0x37081b(0x166)+_0x5f39b7+'/Create\x27;\x0a',_0x1377ca+=_0x37081b(0x17e)+_0x3d9d38+_0x37081b(0x17a)+(typeof _0x551952=='string'?'@/apps/'+_0x551952:'@/'+_0x56f4b1)+_0x37081b(0x166)+_0x5f39b7+_0x37081b(0x181),_0x1377ca+=_0x37081b(0x17e)+_0x3d9d38+'DTOSearch\x20}\x20from\x20\x27'+(typeof _0x551952=='string'?_0x37081b(0x16d)+_0x551952:'@/'+_0x56f4b1)+_0x37081b(0x166)+_0x5f39b7+_0x37081b(0x188),_0x1377ca+='@Action(__filename,\x20\x27'+_0x3a8352+_0x37081b(0x167),_0x1377ca+=_0x37081b(0x190)+(typeof _0x28859b==_0x37081b(0x172)?_0x28859b[_0x37081b(0x19a)](0x0,0x1)[_0x37081b(0x16e)]()+_0x28859b[_0x37081b(0x19a)](0x1):'')+_0x3d9d38+_0x37081b(0x17f),_0x1377ca+=_0x37081b(0x163),_0x1377ca+=_0x37081b(0x17c)+_0x3d9d38+_0x37081b(0x19c)+_0x3d9d38+_0x37081b(0x18b),_0x1377ca+='\x20\x20\x20\x20@Action.get(\x27列表\x27,\x20\x27list\x27)\x0a',_0x1377ca+='\x20\x20\x20\x20async\x20index(conditions:\x20'+_0x3d9d38+'DTOSearch,\x20pageinfo:\x20PageDTO)\x20{\x0a\x0a',_0x1377ca+=_0x37081b(0x189)+_0x3d9d38+_0x37081b(0x170),_0x1377ca+=_0x37081b(0x178),_0x1377ca+=_0x37081b(0x1a2),_0x1377ca+=_0x37081b(0x17b)+_0x3ed24e[_0x37081b(0x187)]+_0x37081b(0x167),_0x1377ca+=_0x37081b(0x18e)+_0x3ed24e[_0x37081b(0x187)]+':\x20'+(_0x4b67fe?_0x37081b(0x18f):_0x37081b(0x172))+_0x37081b(0x186),_0x1377ca+=_0x37081b(0x1a4)+_0x3d9d38+'DTOSearch\x20=\x20{\x20'+_0x3ed24e[_0x37081b(0x187)]+'\x20};\x0a\x0a',_0x1377ca+=_0x37081b(0x19e)+_0x3d9d38+'Handler.detail(conditions);\x0a\x0a',_0x1377ca+=_0x37081b(0x168),_0x1377ca+=_0x37081b(0x1a2),_0x1377ca+=_0x37081b(0x196),_0x1377ca+='\x20\x20\x20\x20async\x20create(params:\x20'+_0x3d9d38+'DTOCreate)\x20{\x0a\x0a',_0x1377ca+='\x20\x20\x20\x20\x20\x20\x20\x20const\x20tmpModel\x20=\x20await\x20this.'+_0x3d9d38+_0x37081b(0x184),_0x1377ca+=_0x37081b(0x168),_0x1377ca+=_0x37081b(0x1a2),_0x1377ca+='\x20\x20\x20\x20@Action.post(\x27修改\x27,\x20\x27edit/:'+_0x3ed24e[_0x37081b(0x187)]+_0x37081b(0x167),_0x1377ca+=_0x37081b(0x19d)+_0x3ed24e[_0x37081b(0x187)]+':\x20'+(_0x4b67fe?_0x37081b(0x18f):_0x37081b(0x172))+_0x37081b(0x1a3)+_0x3d9d38+'DTOUpdate)\x20{\x0a',_0x1377ca+=_0x37081b(0x1a4)+_0x3d9d38+_0x37081b(0x183)+_0x3ed24e['Field']+_0x37081b(0x16f),_0x1377ca+=_0x37081b(0x19e)+_0x3d9d38+_0x37081b(0x17d),_0x1377ca+=_0x37081b(0x168),_0x1377ca+=_0x37081b(0x1a2),_0x1377ca+=_0x37081b(0x1a0),_0x1377ca+=_0x37081b(0x16a)+_0x3d9d38+_0x37081b(0x19b),_0x1377ca+='\x20\x20\x20\x20\x20\x20\x20\x20const\x20removes\x20=\x20await\x20this.'+_0x3d9d38+_0x37081b(0x16b),_0x1377ca+=_0x37081b(0x19f),_0x1377ca+=_0x37081b(0x1a2),_0x1377ca+='}',!fs['existsSync']((0x0,path_1[_0x37081b(0x1a5)])(_0xb9d2fb))&&fs[_0x37081b(0x1a6)]((0x0,path_1['dirname'])(_0xb9d2fb),{'recursive':!![]}),fs['writeFileSync'](_0xb9d2fb,_0x1377ca,_0x37081b(0x179));}}}exports['default']=default_1;
1
+ const a4_0x17cdc3=a4_0x3cc9;function a4_0x3cc9(_0x2fa426,_0x125dd3){const _0xb58a22=a4_0x2a13();return a4_0x3cc9=function(_0x123d01,_0x2cec4a){_0x123d01=_0x123d01-0x102;let _0x2a13b8=_0xb58a22[_0x123d01];return _0x2a13b8;},a4_0x3cc9(_0x2fa426,_0x125dd3);}(function(_0x1c78b5,_0x1027f0){const _0x3e46a3=a4_0x3cc9,_0x4a41ca=_0x1c78b5();while(!![]){try{const _0x12eea5=parseInt(_0x3e46a3(0x11c))/0x1+parseInt(_0x3e46a3(0x143))/0x2+-parseInt(_0x3e46a3(0x118))/0x3*(parseInt(_0x3e46a3(0x104))/0x4)+parseInt(_0x3e46a3(0x120))/0x5*(-parseInt(_0x3e46a3(0x146))/0x6)+parseInt(_0x3e46a3(0x116))/0x7*(parseInt(_0x3e46a3(0x109))/0x8)+-parseInt(_0x3e46a3(0x144))/0x9+parseInt(_0x3e46a3(0x13d))/0xa*(parseInt(_0x3e46a3(0x126))/0xb);if(_0x12eea5===_0x1027f0)break;else _0x4a41ca['push'](_0x4a41ca['shift']());}catch(_0x306de3){_0x4a41ca['push'](_0x4a41ca['shift']());}}}(a4_0x2a13,0xb3156));const a4_0x2cec4a=(function(){let _0x27a30e=!![];return function(_0x4ceaa8,_0x3371d5){const _0x3aee65=_0x27a30e?function(){if(_0x3371d5){const _0xcc6bab=_0x3371d5['apply'](_0x4ceaa8,arguments);return _0x3371d5=null,_0xcc6bab;}}:function(){};return _0x27a30e=![],_0x3aee65;};}()),a4_0x123d01=a4_0x2cec4a(this,function(){const _0x5533fc=a4_0x3cc9;return a4_0x123d01[_0x5533fc(0x121)]()[_0x5533fc(0x114)](_0x5533fc(0x13b))[_0x5533fc(0x121)]()['constructor'](a4_0x123d01)['search'](_0x5533fc(0x13b));});a4_0x123d01();'use strict';Object[a4_0x17cdc3(0x132)](exports,'__esModule',{'value':!![]}),exports['default']=default_1;const fs=require('fs'),path_1=require(a4_0x17cdc3(0x105)),helper_1=require('../helper');function a4_0x2a13(){const _0x37f860=['9940dXSefs','\x20\x20\x20\x20\x20\x20\x20\x20const\x20[pagelist,\x20pagetotal]\x20=\x20await\x20this.','Handler.detail(conditions);\x0a\x0a','utf-8','export\x20class\x20','Handler\x20}\x20from\x20\x27','724474zHYwye','8106021iEYhvQ','Type','318bFFUFU','\x20\x20\x20\x20async\x20detail(','/validators/','/Create\x27;\x0a',')\x20{\x0a','/handlers/','\x20\x20\x20\x20@Action.get(\x27列表\x27,\x20\x27list\x27)\x0a','DTOUpdate\x20}\x20from\x20\x27','4792276Qqkwyd','path','\x20\x20\x20\x20async\x20remove(conditions:\x20','\x20};\x0a\x0a','Handler.create(params);\x0a\x0a','2056cMbvwV','number','\x20\x20\x20\x20async\x20update(','\x20\x20\x20\x20@Action.get(\x27详情\x27,\x20\x27detail/:','\x20\x20\x20\x20@Action.post(\x27修改\x27,\x20\x27edit/:','/controller/','@/apps/','DTOSearch,\x20pageinfo:\x20PageDTO)\x20{\x0a\x0a','string','import\x20{\x20','\x20\x20\x20\x20\x20\x20\x20\x20return\x20this.ctx.ok(pagelist,\x20{\x20pageinfo,\x20pagetotal\x20});\x0a','search','\x27;\x0a','38619JUpapF','DTOSearch\x20}\x20from\x20\x27','3TxfKwU','Handler.remove(conditions);\x0a\x0a','\x20\x20\x20\x20@Action.post(\x22删除\x22,\x20\x27remove\x27)\x0a','\x20\x20\x20\x20\x20\x20\x20\x20return\x20this.ctx.ok(removes);\x0a','420551mfXYaD','writeFileSync','import\x20{\x20Inject,\x20Action,\x20PageDTO\x20}\x20from\x20\x27anncic-api\x27;\x0a\x0a','\x20\x20\x20\x20\x20\x20\x20\x20return\x20this.ctx.ok(tmpModel);\x0a','47035EmJFlJ','toString','.ts','DTOSearch\x20=\x20{\x20',',\x20params:\x20','\x20\x20\x20\x20\x20\x20\x20\x20const\x20conditions:\x20','12507CewYgr','DTOUpdate)\x20{\x0a','\x20\x20\x20\x20@Inject()\x20protected\x20','DTOSearch)\x20{\x0a\x0a','import\x20{\x20Context\x20}\x20from\x20\x27@midwayjs/koa\x27;\x0a','substring','\x20\x20\x20\x20async\x20create(params:\x20','@Action(__filename,\x20\x27','Field','dirname','mkdirSync','\x20\x20\x20\x20@Action.post(\x27添加\x27,\x20\x27add\x27)\x0a','defineProperty','text','\x27)\x0a','Handler.update(conditions,\x20params);\x0a\x0a','mediumtext','\x20\x20\x20\x20}\x0a\x0a\x0a','Handler:\x20','\x20\x20\x20\x20\x20\x20\x20\x20const\x20tmpModel\x20=\x20await\x20this.','toUpperCase','(((.+)+)+)+$','Handler.list(conditions,\x20pageinfo);\x0a\x0a'];a4_0x2a13=function(){return _0x37f860;};return a4_0x2a13();}async function default_1({controller:_0xf5aba2,tablestartUp:_0x33689e,tablestartUpShort:_0x1d44bc,basedir:_0x578825,Primary:_0x3b3037,Comment:_0x1704ed,moduleName:_0x5487ca,apporbasic:_0x46397a}){const _0x22f4ba=a4_0x17cdc3;if(_0xf5aba2){const _0x18bc13=_0x578825+(typeof _0xf5aba2=='string'?_0x22f4ba(0x10e)+_0xf5aba2+'/'+_0x1d44bc+_0x22f4ba(0x122):_0x22f4ba(0x10e)+_0x1d44bc+'.ts');if(!fs['existsSync'](_0x18bc13)){let _0x16e7a6='',_0x20a203=[_0x22f4ba(0x133),_0x22f4ba(0x136),'string']['indexOf']((0x0,helper_1['getProp'])(_0x3b3037[_0x22f4ba(0x145)]))==-0x1;_0x16e7a6+=_0x22f4ba(0x12a),_0x16e7a6+=_0x22f4ba(0x11e),_0x16e7a6+=_0x22f4ba(0x112)+_0x33689e+_0x22f4ba(0x142)+(typeof _0x5487ca=='string'?'@/apps/'+_0x5487ca:'@/'+_0x46397a)+_0x22f4ba(0x14b)+_0x1d44bc+_0x22f4ba(0x115),_0x16e7a6+='import\x20{\x20'+_0x33689e+'DTOCreate\x20}\x20from\x20\x27'+(typeof _0x5487ca=='string'?_0x22f4ba(0x10f)+_0x5487ca:'@/'+_0x46397a)+'/validators/'+_0x1d44bc+_0x22f4ba(0x149),_0x16e7a6+=_0x22f4ba(0x112)+_0x33689e+_0x22f4ba(0x103)+(typeof _0x5487ca=='string'?'@/apps/'+_0x5487ca:'@/'+_0x46397a)+_0x22f4ba(0x148)+_0x1d44bc+'/Update\x27;\x0a',_0x16e7a6+=_0x22f4ba(0x112)+_0x33689e+_0x22f4ba(0x117)+(typeof _0x5487ca=='string'?_0x22f4ba(0x10f)+_0x5487ca:'@/'+_0x46397a)+_0x22f4ba(0x148)+_0x1d44bc+'/Search\x27;\x0a\x0a',_0x16e7a6+=_0x22f4ba(0x12d)+_0x1704ed+_0x22f4ba(0x134),_0x16e7a6+=_0x22f4ba(0x141)+(typeof _0xf5aba2==_0x22f4ba(0x111)?_0xf5aba2[_0x22f4ba(0x12b)](0x0,0x1)[_0x22f4ba(0x13a)]()+_0xf5aba2['substring'](0x1):'')+_0x33689e+'Controller\x20{\x0a\x0a',_0x16e7a6+='\x20\x20\x20\x20@Inject()\x20protected\x20ctx:\x20Context;\x0a\x0a',_0x16e7a6+=_0x22f4ba(0x128)+_0x33689e+_0x22f4ba(0x138)+_0x33689e+'Handler\x0a\x0a\x0a',_0x16e7a6+=_0x22f4ba(0x102),_0x16e7a6+='\x20\x20\x20\x20async\x20index(conditions:\x20'+_0x33689e+_0x22f4ba(0x110),_0x16e7a6+=_0x22f4ba(0x13e)+_0x33689e+_0x22f4ba(0x13c),_0x16e7a6+=_0x22f4ba(0x113),_0x16e7a6+='\x20\x20\x20\x20}\x0a\x0a\x0a',_0x16e7a6+=_0x22f4ba(0x10c)+_0x3b3037[_0x22f4ba(0x12e)]+_0x22f4ba(0x134),_0x16e7a6+=_0x22f4ba(0x147)+_0x3b3037[_0x22f4ba(0x12e)]+':\x20'+(_0x20a203?_0x22f4ba(0x10a):_0x22f4ba(0x111))+_0x22f4ba(0x14a),_0x16e7a6+=_0x22f4ba(0x125)+_0x33689e+_0x22f4ba(0x123)+_0x3b3037[_0x22f4ba(0x12e)]+_0x22f4ba(0x107),_0x16e7a6+=_0x22f4ba(0x139)+_0x33689e+_0x22f4ba(0x13f),_0x16e7a6+=_0x22f4ba(0x11f),_0x16e7a6+=_0x22f4ba(0x137),_0x16e7a6+=_0x22f4ba(0x131),_0x16e7a6+=_0x22f4ba(0x12c)+_0x33689e+'DTOCreate)\x20{\x0a\x0a',_0x16e7a6+=_0x22f4ba(0x139)+_0x33689e+_0x22f4ba(0x108),_0x16e7a6+='\x20\x20\x20\x20\x20\x20\x20\x20return\x20this.ctx.ok(tmpModel);\x0a',_0x16e7a6+=_0x22f4ba(0x137),_0x16e7a6+=_0x22f4ba(0x10d)+_0x3b3037['Field']+_0x22f4ba(0x134),_0x16e7a6+=_0x22f4ba(0x10b)+_0x3b3037[_0x22f4ba(0x12e)]+':\x20'+(_0x20a203?_0x22f4ba(0x10a):_0x22f4ba(0x111))+_0x22f4ba(0x124)+_0x33689e+_0x22f4ba(0x127),_0x16e7a6+=_0x22f4ba(0x125)+_0x33689e+_0x22f4ba(0x123)+_0x3b3037['Field']+_0x22f4ba(0x107),_0x16e7a6+=_0x22f4ba(0x139)+_0x33689e+_0x22f4ba(0x135),_0x16e7a6+=_0x22f4ba(0x11f),_0x16e7a6+='\x20\x20\x20\x20}\x0a\x0a\x0a',_0x16e7a6+=_0x22f4ba(0x11a),_0x16e7a6+=_0x22f4ba(0x106)+_0x33689e+_0x22f4ba(0x129),_0x16e7a6+='\x20\x20\x20\x20\x20\x20\x20\x20const\x20removes\x20=\x20await\x20this.'+_0x33689e+_0x22f4ba(0x119),_0x16e7a6+=_0x22f4ba(0x11b),_0x16e7a6+=_0x22f4ba(0x137),_0x16e7a6+='}',!fs['existsSync']((0x0,path_1[_0x22f4ba(0x12f)])(_0x18bc13))&&fs[_0x22f4ba(0x130)]((0x0,path_1[_0x22f4ba(0x12f)])(_0x18bc13),{'recursive':!![]}),fs[_0x22f4ba(0x11d)](_0x18bc13,_0x16e7a6,_0x22f4ba(0x140));}}}
@@ -1,7 +1,7 @@
1
- export default function ({ tablestartUp, tablestartUpShort, basedir, Comment, Fields }: {
2
- tablestartUp: any;
3
- tablestartUpShort: any;
4
- basedir: any;
5
- Comment: any;
6
- Fields: any;
7
- }): Promise<void>;
1
+ export default function ({ tablestartUp, tablestartUpShort, basedir, Comment, Fields }: {
2
+ tablestartUp: any;
3
+ tablestartUpShort: any;
4
+ basedir: any;
5
+ Comment: any;
6
+ Fields: any;
7
+ }): Promise<void>;
@@ -1 +1 @@
1
- function a5_0x456b(){const _0x4326c2=['_OFF:\x20number\x20=\x200;\x0a\x0a\x0a','10mYXOPN','\x20*\x20**/\x0a','\x20\x20\x20\x20@AnnEnumMsg(\x27','Enum\x20{\x0a\x0a','9593480hvQJAV','constructor','Comment','/exceptions/','\x20*\x20','../helper','1734996VslIOG','Error\x20extends\x20AnnError\x20{\x0a\x0a','1634776koHPTu','/**\x0a','indexOf','search','(((.+)+)+)+$','getProp','writeFileSync','24uBsvum','1379875BuMEJH','path','utf-8','\x27,\x20\x27关闭','existsSync','_ON:\x20number\x20=\x201;\x0a\x0a','toUpperCase','\x27)\x0a','\x20\x20\x20\x20static\x20readonly\x20','.ts','564232IhKVVR','\x27,\x20\x27开启','tinyint','toString','apply','export\x20class\x20','9IfIDtN','default','2614158ZExjyE','-错误信息设置\x0a','dirname','713618uHhrpT','__esModule'];a5_0x456b=function(){return _0x4326c2;};return a5_0x456b();}const a5_0x1c1ccc=a5_0x2c59;(function(_0xbf7a7f,_0x4abc18){const _0x5b3911=a5_0x2c59,_0x29a65e=_0xbf7a7f();while(!![]){try{const _0x562f63=parseInt(_0x5b3911(0x7f))/0x1+-parseInt(_0x5b3911(0xa0))/0x2*(parseInt(_0x5b3911(0xa6))/0x3)+parseInt(_0x5b3911(0x8e))/0x4*(parseInt(_0x5b3911(0x82))/0x5)+parseInt(_0x5b3911(0x8c))/0x6+-parseInt(_0x5b3911(0x96))/0x7+-parseInt(_0x5b3911(0x95))/0x8*(-parseInt(_0x5b3911(0x7c))/0x9)+-parseInt(_0x5b3911(0x86))/0xa;if(_0x562f63===_0x4abc18)break;else _0x29a65e['push'](_0x29a65e['shift']());}catch(_0x39cb42){_0x29a65e['push'](_0x29a65e['shift']());}}}(a5_0x456b,0xa8261));const a5_0x1ea071=(function(){let _0x3fc8b7=!![];return function(_0x2ef39e,_0x2dea7a){const _0x97ff78=_0x3fc8b7?function(){const _0x50b1be=a5_0x2c59;if(_0x2dea7a){const _0x1c8d8e=_0x2dea7a[_0x50b1be(0xa4)](_0x2ef39e,arguments);return _0x2dea7a=null,_0x1c8d8e;}}:function(){};return _0x3fc8b7=![],_0x97ff78;};}()),a5_0x5ecaa0=a5_0x1ea071(this,function(){const _0x138d4f=a5_0x2c59;return a5_0x5ecaa0[_0x138d4f(0xa3)]()[_0x138d4f(0x91)]('(((.+)+)+)+$')[_0x138d4f(0xa3)]()[_0x138d4f(0x87)](a5_0x5ecaa0)[_0x138d4f(0x91)](_0x138d4f(0x92));});a5_0x5ecaa0();'use strict';Object['defineProperty'](exports,a5_0x1c1ccc(0x80),{'value':!![]});const fs=require('fs'),path=require(a5_0x1c1ccc(0x97)),helper_1=require(a5_0x1c1ccc(0x8b));function a5_0x2c59(_0x373de6,_0x495804){const _0x20a6d1=a5_0x456b();return a5_0x2c59=function(_0x5ecaa0,_0x1ea071){_0x5ecaa0=_0x5ecaa0-0x7b;let _0x456b23=_0x20a6d1[_0x5ecaa0];return _0x456b23;},a5_0x2c59(_0x373de6,_0x495804);}async function default_1({tablestartUp:_0x58721d,tablestartUpShort:_0x2e548b,basedir:_0x544731,Comment:_0x39cb75,Fields:_0x192a5a}){await entity_emum({'tablestartUp':_0x58721d,'tablestartUpShort':_0x2e548b,'basedir':_0x544731,'Comment':_0x39cb75,'Fields':_0x192a5a}),await entity_exceptions({'tablestartUp':_0x58721d,'tablestartUpShort':_0x2e548b,'basedir':_0x544731,'Comment':_0x39cb75});}exports[a5_0x1c1ccc(0x7b)]=default_1;async function entity_emum({tablestartUp:_0x5906bc,tablestartUpShort:_0x3ed189,basedir:_0x15ea3e,Comment:_0x2a2524,Fields:_0x3dfe33}){const _0x1a4870=a5_0x1c1ccc,_0x178044=_0x15ea3e+('/enums/'+_0x3ed189+_0x1a4870(0x9f));if(!fs[_0x1a4870(0x9a)](_0x178044)){let _0x572f81='';_0x572f81+=_0x1a4870(0x8f),_0x572f81+=_0x1a4870(0x8a)+_0x2a2524+'-常量设置\x0a',_0x572f81+=_0x1a4870(0x83),_0x572f81+=_0x1a4870(0xa5)+_0x5906bc+_0x1a4870(0x85);for(let _0x47ceef in _0x3dfe33){let _0x5cc795=_0x3dfe33[_0x47ceef],_0xc93782=(0x0,helper_1[_0x1a4870(0x93)])(_0x5cc795['Type']);[_0x1a4870(0xa2)][_0x1a4870(0x90)](_0xc93782)!=-0x1&&(_0x572f81+='\x20\x20\x20\x20@AnnEnumMsg(\x27'+_0x47ceef+_0x1a4870(0xa1)+_0x5cc795[_0x1a4870(0x88)]+_0x1a4870(0x9d),_0x572f81+=_0x1a4870(0x9e)+_0x47ceef[_0x1a4870(0x9c)]()+_0x1a4870(0x9b),_0x572f81+=_0x1a4870(0x84)+_0x47ceef+_0x1a4870(0x99)+_0x5cc795[_0x1a4870(0x88)]+_0x1a4870(0x9d),_0x572f81+=_0x1a4870(0x9e)+_0x47ceef[_0x1a4870(0x9c)]()+_0x1a4870(0x81));}_0x572f81+='}',!fs[_0x1a4870(0x9a)](path[_0x1a4870(0x7e)](_0x178044))&&fs['mkdirSync'](path['dirname'](_0x178044),{'recursive':!![]}),fs[_0x1a4870(0x94)](_0x178044,_0x572f81,_0x1a4870(0x98));}}async function entity_exceptions({tablestartUp:_0xdfe033,tablestartUpShort:_0x2903a2,basedir:_0x59d644,Comment:_0x250969}){const _0x39796d=a5_0x1c1ccc,_0x480e63=_0x59d644+(_0x39796d(0x89)+_0x2903a2+_0x39796d(0x9f));if(!fs['existsSync'](_0x480e63)){let _0x1a37b5='';_0x1a37b5+=_0x39796d(0x8f),_0x1a37b5+='\x20*\x20'+_0x250969+_0x39796d(0x7d),_0x1a37b5+='\x20*\x20**/\x0a',_0x1a37b5+=_0x39796d(0xa5)+_0xdfe033+_0x39796d(0x8d),_0x1a37b5+='}',!fs[_0x39796d(0x9a)](path[_0x39796d(0x7e)](_0x480e63))&&fs['mkdirSync'](path['dirname'](_0x480e63),{'recursive':!![]}),fs[_0x39796d(0x94)](_0x480e63,_0x1a37b5,'utf-8');}}
1
+ const a5_0x39309a=a5_0x57c9;(function(_0x5d7b88,_0x2a1820){const _0x4b5339=a5_0x57c9,_0x336d31=_0x5d7b88();while(!![]){try{const _0x502b4a=-parseInt(_0x4b5339(0x13b))/0x1*(parseInt(_0x4b5339(0x130))/0x2)+-parseInt(_0x4b5339(0x12d))/0x3+-parseInt(_0x4b5339(0x122))/0x4+-parseInt(_0x4b5339(0x13e))/0x5+-parseInt(_0x4b5339(0x137))/0x6*(parseInt(_0x4b5339(0x11b))/0x7)+-parseInt(_0x4b5339(0x135))/0x8*(parseInt(_0x4b5339(0x127))/0x9)+parseInt(_0x4b5339(0x11c))/0xa*(parseInt(_0x4b5339(0x144))/0xb);if(_0x502b4a===_0x2a1820)break;else _0x336d31['push'](_0x336d31['shift']());}catch(_0x42f25e){_0x336d31['push'](_0x336d31['shift']());}}}(a5_0x46ce,0x8fa12));const a5_0x4bc149=(function(){let _0x4dfdfd=!![];return function(_0xa5a79c,_0x473b12){const _0x1f2e87=_0x4dfdfd?function(){const _0x538a97=a5_0x57c9;if(_0x473b12){const _0x41fdef=_0x473b12[_0x538a97(0x11e)](_0xa5a79c,arguments);return _0x473b12=null,_0x41fdef;}}:function(){};return _0x4dfdfd=![],_0x1f2e87;};}()),a5_0x304039=a5_0x4bc149(this,function(){const _0x18c065=a5_0x57c9;return a5_0x304039['toString']()[_0x18c065(0x12a)](_0x18c065(0x141))[_0x18c065(0x121)]()[_0x18c065(0x120)](a5_0x304039)[_0x18c065(0x12a)](_0x18c065(0x141));});a5_0x304039();'use strict';function a5_0x57c9(_0x44ca47,_0x15906){const _0xa176fc=a5_0x46ce();return a5_0x57c9=function(_0x304039,_0x4bc149){_0x304039=_0x304039-0x11b;let _0x46ce91=_0xa176fc[_0x304039];return _0x46ce91;},a5_0x57c9(_0x44ca47,_0x15906);}Object[a5_0x39309a(0x12f)](exports,'__esModule',{'value':!![]}),exports[a5_0x39309a(0x132)]=default_1;const fs=require('fs'),path=require(a5_0x39309a(0x145)),helper_1=require(a5_0x39309a(0x143));async function default_1({tablestartUp:_0x4b0134,tablestartUpShort:_0x55aee8,basedir:_0x541202,Comment:_0x5b8f2c,Fields:_0x21a813}){await entity_emum({'tablestartUp':_0x4b0134,'tablestartUpShort':_0x55aee8,'basedir':_0x541202,'Comment':_0x5b8f2c,'Fields':_0x21a813}),await entity_exceptions({'tablestartUp':_0x4b0134,'tablestartUpShort':_0x55aee8,'basedir':_0x541202,'Comment':_0x5b8f2c});}function a5_0x46ce(){const _0x468488=['Comment','existsSync','587145sWpvkz','Type','\x27,\x20\x27关闭','(((.+)+)+)+$','utf-8','../helper','163669uajODA','path','14oRuKdM','2180DyMZxZ','.ts','apply','export\x20class\x20','constructor','toString','1639836OgCnKH','\x27,\x20\x27开启','/**\x0a','\x20\x20\x20\x20@AnnEnumMsg(\x27','mkdirSync','2718EevBNg','_ON:\x20number\x20=\x201;\x0a\x0a','dirname','search','toUpperCase','writeFileSync','394536VrwFzp','\x20*\x20','defineProperty','52kvBDvp','\x27)\x0a','default','/exceptions/','\x20\x20\x20\x20static\x20readonly\x20','26008eQYRSk','getProp','203160iHlmSX','\x20*\x20**/\x0a','Error\x20extends\x20AnnError\x20{\x0a\x0a','_OFF:\x20number\x20=\x200;\x0a\x0a\x0a','36419XTaIFE'];a5_0x46ce=function(){return _0x468488;};return a5_0x46ce();}async function entity_emum({tablestartUp:_0x16ce95,tablestartUpShort:_0x2ecdfc,basedir:_0x44a71b,Comment:_0x34f961,Fields:_0x4f302b}){const _0x247e23=a5_0x39309a,_0x244eba=_0x44a71b+('/enums/'+_0x2ecdfc+_0x247e23(0x11d));if(!fs[_0x247e23(0x13d)](_0x244eba)){let _0x1bfaf8='';_0x1bfaf8+=_0x247e23(0x124),_0x1bfaf8+=_0x247e23(0x12e)+_0x34f961+'-常量设置\x0a',_0x1bfaf8+=_0x247e23(0x138),_0x1bfaf8+=_0x247e23(0x11f)+_0x16ce95+'Enum\x20{\x0a\x0a';for(let _0x5adfef in _0x4f302b){let _0x185fb4=_0x4f302b[_0x5adfef],_0x13b49e=(0x0,helper_1[_0x247e23(0x136)])(_0x185fb4[_0x247e23(0x13f)]);['tinyint']['indexOf'](_0x13b49e)!=-0x1&&(_0x1bfaf8+=_0x247e23(0x125)+_0x5adfef+_0x247e23(0x123)+_0x185fb4[_0x247e23(0x13c)]+'\x27)\x0a',_0x1bfaf8+=_0x247e23(0x134)+_0x5adfef[_0x247e23(0x12b)]()+_0x247e23(0x128),_0x1bfaf8+=_0x247e23(0x125)+_0x5adfef+_0x247e23(0x140)+_0x185fb4[_0x247e23(0x13c)]+_0x247e23(0x131),_0x1bfaf8+='\x20\x20\x20\x20static\x20readonly\x20'+_0x5adfef['toUpperCase']()+_0x247e23(0x13a));}_0x1bfaf8+='}',!fs[_0x247e23(0x13d)](path['dirname'](_0x244eba))&&fs[_0x247e23(0x126)](path[_0x247e23(0x129)](_0x244eba),{'recursive':!![]}),fs[_0x247e23(0x12c)](_0x244eba,_0x1bfaf8,'utf-8');}}async function entity_exceptions({tablestartUp:_0x4ac1e5,tablestartUpShort:_0x186cbe,basedir:_0x3649c7,Comment:_0xdfafde}){const _0xad777f=a5_0x39309a,_0xb6b74d=_0x3649c7+(_0xad777f(0x133)+_0x186cbe+_0xad777f(0x11d));if(!fs[_0xad777f(0x13d)](_0xb6b74d)){let _0x3b75d7='';_0x3b75d7+=_0xad777f(0x124),_0x3b75d7+=_0xad777f(0x12e)+_0xdfafde+'-错误信息设置\x0a',_0x3b75d7+=_0xad777f(0x138),_0x3b75d7+=_0xad777f(0x11f)+_0x4ac1e5+_0xad777f(0x139),_0x3b75d7+='}',!fs[_0xad777f(0x13d)](path['dirname'](_0xb6b74d))&&fs[_0xad777f(0x126)](path[_0xad777f(0x129)](_0xb6b74d),{'recursive':!![]}),fs[_0xad777f(0x12c)](_0xb6b74d,_0x3b75d7,_0xad777f(0x142));}}
@@ -1,11 +1,11 @@
1
- export default function ({ tablename, tablestartUp, tablestartUpShort, basedir, Primary, Fields, Comment, moduleName, apporbasic }: {
2
- tablename: any;
3
- tablestartUp: any;
4
- tablestartUpShort: any;
5
- basedir: any;
6
- Primary: any;
7
- Fields: any;
8
- Comment: any;
9
- moduleName: any;
10
- apporbasic: any;
11
- }): Promise<void>;
1
+ export default function ({ tablename, tablestartUp, tablestartUpShort, basedir, Primary, Fields, Comment, moduleName, apporbasic }: {
2
+ tablename: any;
3
+ tablestartUp: any;
4
+ tablestartUpShort: any;
5
+ basedir: any;
6
+ Primary: any;
7
+ Fields: any;
8
+ Comment: any;
9
+ moduleName: any;
10
+ apporbasic: any;
11
+ }): Promise<void>;
@@ -1 +1 @@
1
- const a6_0x145d8a=a6_0x18c3;(function(_0xe37a90,_0x3dba25){const _0x3a2e3c=a6_0x18c3,_0x1fb010=_0xe37a90();while(!![]){try{const _0x1f9f68=parseInt(_0x3a2e3c(0x13f))/0x1*(parseInt(_0x3a2e3c(0x178))/0x2)+parseInt(_0x3a2e3c(0x126))/0x3+-parseInt(_0x3a2e3c(0x155))/0x4+parseInt(_0x3a2e3c(0x124))/0x5*(-parseInt(_0x3a2e3c(0x12b))/0x6)+-parseInt(_0x3a2e3c(0x16e))/0x7*(-parseInt(_0x3a2e3c(0x15c))/0x8)+-parseInt(_0x3a2e3c(0x16f))/0x9*(-parseInt(_0x3a2e3c(0x179))/0xa)+parseInt(_0x3a2e3c(0x170))/0xb*(parseInt(_0x3a2e3c(0x182))/0xc);if(_0x1f9f68===_0x3dba25)break;else _0x1fb010['push'](_0x1fb010['shift']());}catch(_0x4f24e0){_0x1fb010['push'](_0x1fb010['shift']());}}}(a6_0x236b,0x6dfca));const a6_0x1a679e=(function(){let _0x5d4664=!![];return function(_0x17570d,_0x130006){const _0xca0f36=_0x5d4664?function(){if(_0x130006){const _0x219d96=_0x130006['apply'](_0x17570d,arguments);return _0x130006=null,_0x219d96;}}:function(){};return _0x5d4664=![],_0xca0f36;};}()),a6_0x510e05=a6_0x1a679e(this,function(){const _0x4a09a6=a6_0x18c3;return a6_0x510e05[_0x4a09a6(0x125)]()[_0x4a09a6(0x12e)](_0x4a09a6(0x14d))[_0x4a09a6(0x125)]()[_0x4a09a6(0x169)](a6_0x510e05)[_0x4a09a6(0x12e)](_0x4a09a6(0x14d));});function a6_0x236b(){const _0x4ff023=['20mEjEHY','Null',',\x20Column\x20}\x20from\x20\x27@anncic-api/typeorm\x27;\x0a\x0a','path','\x20\x20\x20\x20@Column({\x20comment:\x20\x27默认显示排序\x27,\x20nullable:\x20true,\x20unique:\x20false\x20})\x0a','/entity.ts','\x20\x20\x20\x20@Column(\x27double\x27,\x20{\x20comment:\x20\x27','getProp','\x20\x20\x20\x20@Column(\x27json\x27,\x20{\x20comment:\x20\x27','21876bdmmiY','\x20\x20\x20\x20@UpdateDateColumn({\x20comment:\x20\x27修改时间\x27,\x20type:\x20\x27timestamp\x27\x20})\x0a','text','/entities/','Entity\x20{\x0a\x0a','\x20\x20\x20\x20@Column(\x27text\x27,\x20{\x20comment:\x20\x27','Type','\x20\x20\x20\x20','\x27,\x20precision:\x2024,\x20scale:\x202,\x20default:\x200.00,\x20nullable:\x20','@ProvideRepository(','\x20\x20\x20\x20deleted_at:\x20Date;\x0a\x0a','updated_at','true','longtext','mkdirSync','115tpenNe','toString','582822NulZLA','\x20\x20\x20\x20@PrimaryColumn({\x20comment:\x20\x27','import\x20{\x20ProvideRepository,\x20Repository\x20}\x20from\x20\x27@anncic-api/typeorm\x27;\x0a','@ProvideSearch(','replace','127866SQkIPE','\x27,\x20default:\x20\x27','created_at','search','-实体处理器\x0a','join','\x27\x20|\x20\x27','Search)\x0a','\x27,\x20precision:\x2010,\x20scale:\x202,\x20default:\x200.00,\x20nullable:\x20','\x20\x20\x20\x20@Column(\x27date\x27,\x20{\x20comment:\x20\x27','\x20*\x20**/\x0a','getEnum','\x27]\x20})\x0a','../helper','\x20\x20\x20\x20updated_at:\x20Date;\x0a\x0a','\x20*\x20','\x20extends\x20Repository<','\x20\x20\x20\x20@Column(\x27tinyint\x27,\x20{\x20comment:\x20\x27','decimal','\x20\x20\x20\x20@Column(\x27decimal\x27,\x20{\x20comment:\x20\x27','81ckzhXs','import\x20{\x20','Entity\x20}\x20from\x20\x27','double','Comment','\x27;\x0a\x0a','timestamp','Entity)\x0a','Field','existsSync','defineProperty','default','writeFileSync','\x20\x20\x20\x20@CreateDateColumn({\x20comment:\x20\x27创建时间\x27,\x20type:\x20\x27timestamp\x27\x20})\x0a','(((.+)+)+)+$',':\x20string;\x0a\x0a','/**\x0a','\x20\x20\x20\x20@Column({\x20comment:\x20\x27','\x27,\x20enum:\x20[\x27',':\x20any\x20|\x20any[];\x0a\x0a','\x20\x20\x20\x20created_at:\x20Date;\x0a\x0a','string','3432352HFDzyB','false','float','\x20})\x0a','\x27,\x20\x27','\x27,\x20nullable:\x20','tinyint','64yNWHlA','-实体\x0a','//\x20import\x20{\x20ManyToOne,\x20JoinColumn\x20}\x20from\x20\x27@anncic-api/typeorm\x27;\x0a','utf-8','\x20\x20\x20\x20@Column(\x27enum\x27,\x20{\x20comment:\x20\x27','number','\x20\x20\x20\x20@DeleteDateColumn({\x20comment:\x20\x27删除时间\x27,\x20type:\x20\x27timestamp\x27,\x20select:\x20false\x20})\x0a','date','YES','deleted_at','import\x20{\x20CreateDateColumn,\x20UpdateDateColumn,\x20DeleteDateColumn\x20}\x20from\x20\x27@anncic-api/typeorm\x27;\x0a','displayorder',',\x20unique:\x20false\x20})\x0a','constructor','\x20\x20\x20\x20@Column(\x27timestamp\x27,\x20{\x20comment:\x20\x27','export\x20class\x20','%column%','mediumtext','416297yFpDTI','2034918GcBIdw','649sUnPbY','json','@ProvideEntity({\x20tableName:\x20\x27','/index.ts','\x20\x20\x20\x20@Column(\x27longtext\x27,\x20{\x20comment:\x20\x27',':\x20number;\x0a\x0a','dirname','@/apps/','14048nmVhlY'];a6_0x236b=function(){return _0x4ff023;};return a6_0x236b();}a6_0x510e05();'use strict';Object[a6_0x145d8a(0x149)](exports,'__esModule',{'value':!![]});const fs=require('fs'),path_1=require(a6_0x145d8a(0x17c)),helper_1=require(a6_0x145d8a(0x138));async function default_1({tablename:_0x3f8fb0,tablestartUp:_0x4d7ee9,tablestartUpShort:_0x45e1e8,basedir:_0x173b47,Primary:_0x3f9555,Fields:_0x219b89,Comment:_0x1cb02d,moduleName:_0x2c9497,apporbasic:_0x1ffe4f}){await entity({'tablename':_0x3f8fb0,'tablestartUp':_0x4d7ee9,'tablestartUpShort':_0x45e1e8,'basedir':_0x173b47,'Primary':_0x3f9555,'Fields':_0x219b89,'Comment':_0x1cb02d,'moduleName':_0x2c9497,'apporbasic':_0x1ffe4f}),await repository({'tablestartUp':_0x4d7ee9,'tablestartUpShort':_0x45e1e8,'basedir':_0x173b47,'Comment':_0x1cb02d,'moduleName':_0x2c9497,'apporbasic':_0x1ffe4f});}exports[a6_0x145d8a(0x14a)]=default_1;function a6_0x18c3(_0x5c215e,_0x1bff3c){const _0x243f91=a6_0x236b();return a6_0x18c3=function(_0x510e05,_0x1a679e){_0x510e05=_0x510e05-0x123;let _0x236b95=_0x243f91[_0x510e05];return _0x236b95;},a6_0x18c3(_0x5c215e,_0x1bff3c);}async function entity({tablename:_0x4be5f9,tablestartUp:_0x5c73aa,tablestartUpShort:_0x425e9a,basedir:_0x16ec26,Primary:_0xefe0a,Fields:_0x45442a,Comment:_0x29ce23,moduleName:_0x170498,apporbasic:_0x3a393f}){const _0xf23a07=a6_0x145d8a,_0x2ad7f4=_0x16ec26+(_0xf23a07(0x185)+_0x425e9a+_0xf23a07(0x17e));if(!fs[_0xf23a07(0x148)](_0x2ad7f4)){let _0x5d2367='',_0x251cfb='',_0x43b268=[_0xf23a07(0x184),_0xf23a07(0x16d),'string']['indexOf']((0x0,helper_1['getProp'])(_0xefe0a[_0xf23a07(0x188)]))==-0x1;_0x43b268?(_0x5d2367+='\x20\x20\x20\x20@PrimaryGeneratedColumn()\x0a',_0x5d2367+=_0xf23a07(0x189)+_0xefe0a[_0xf23a07(0x147)]+_0xf23a07(0x175)):(_0x5d2367+=_0xf23a07(0x127)+(_0xefe0a['Comment']||'标识')+'\x27,\x20length:\x20188\x20})\x0a',_0x5d2367+=_0xf23a07(0x189)+_0xefe0a[_0xf23a07(0x147)]+':\x20string;\x0a\x0a');for(let _0x31e87b in _0x45442a){let _0x5ee59b=_0x45442a[_0x31e87b],_0x19a01d=(0x0,helper_1[_0xf23a07(0x180)])(_0x5ee59b['Type']);if(_0x5ee59b['Field']==_0xf23a07(0x167)||_0x5ee59b['Field']==_0xf23a07(0x12d)||_0x5ee59b[_0xf23a07(0x147)]==_0xf23a07(0x18d)||_0x5ee59b[_0xf23a07(0x147)]==_0xf23a07(0x165))continue;if(_0x19a01d==_0xf23a07(0x171))_0x5d2367+=_0xf23a07(0x181)+_0x5ee59b[_0xf23a07(0x143)]+_0xf23a07(0x15a)+(_0x5ee59b[_0xf23a07(0x17a)]==_0xf23a07(0x164)?_0xf23a07(0x18e):_0xf23a07(0x156))+_0xf23a07(0x168),_0x5d2367+=_0xf23a07(0x189)+_0x5ee59b['Field']+_0xf23a07(0x152);else{if(_0x19a01d=='enum'){let _0x11e096=(0x0,helper_1[_0xf23a07(0x136)])(_0x5ee59b[_0xf23a07(0x188)]);_0x5d2367+=_0xf23a07(0x160)+_0x5ee59b['Comment']+_0xf23a07(0x12c)+(_0x11e096[0x0]||'')+_0xf23a07(0x151)+_0x11e096['join'](_0xf23a07(0x159))+_0xf23a07(0x137),_0x5d2367+=_0xf23a07(0x189)+_0x5ee59b[_0xf23a07(0x147)]+':\x20\x27'+_0x11e096[_0xf23a07(0x130)](_0xf23a07(0x131))+_0xf23a07(0x144);}else{if(_0x19a01d==_0xf23a07(0x157))_0x5d2367+='\x20\x20\x20\x20@Column(\x27float\x27,\x20{\x20comment:\x20\x27'+_0x5ee59b[_0xf23a07(0x143)]+_0xf23a07(0x133)+(_0x5ee59b[_0xf23a07(0x17a)]==_0xf23a07(0x164)?_0xf23a07(0x18e):'false')+'\x20})\x0a',_0x5d2367+=_0xf23a07(0x189)+_0x5ee59b['Field']+_0xf23a07(0x175);else{if(_0x19a01d==_0xf23a07(0x142))_0x5d2367+=_0xf23a07(0x17f)+_0x5ee59b[_0xf23a07(0x143)]+_0xf23a07(0x133)+(_0x5ee59b['Null']=='YES'?_0xf23a07(0x18e):'false')+_0xf23a07(0x158),_0x5d2367+=_0xf23a07(0x189)+_0x5ee59b['Field']+_0xf23a07(0x175);else{if(_0x19a01d==_0xf23a07(0x13d))_0x5d2367+=_0xf23a07(0x13e)+_0x5ee59b[_0xf23a07(0x143)]+_0xf23a07(0x18a)+(_0x5ee59b['Null']==_0xf23a07(0x164)?_0xf23a07(0x18e):'false')+_0xf23a07(0x158),_0x5d2367+=_0xf23a07(0x189)+_0x5ee59b[_0xf23a07(0x147)]+_0xf23a07(0x175);else{if(_0x19a01d==_0xf23a07(0x161))_0x5d2367+=_0xf23a07(0x150)+_0x5ee59b[_0xf23a07(0x143)]+'\x27,\x20nullable:\x20'+(_0x5ee59b['Null']==_0xf23a07(0x164)?_0xf23a07(0x18e):_0xf23a07(0x156))+_0xf23a07(0x168),_0x5d2367+=_0xf23a07(0x189)+_0x5ee59b[_0xf23a07(0x147)]+_0xf23a07(0x175);else{if(_0x19a01d==_0xf23a07(0x15b))_0x5d2367+=_0xf23a07(0x13c)+_0x5ee59b[_0xf23a07(0x143)]+_0xf23a07(0x15a)+(_0x5ee59b[_0xf23a07(0x17a)]==_0xf23a07(0x164)?_0xf23a07(0x18e):'false')+',\x20unique:\x20false\x20})\x0a',_0x5d2367+=_0xf23a07(0x189)+_0x5ee59b[_0xf23a07(0x147)]+_0xf23a07(0x175);else{if(_0x19a01d==_0xf23a07(0x163))_0x5d2367+=_0xf23a07(0x134)+_0x5ee59b[_0xf23a07(0x143)]+_0xf23a07(0x15a)+(_0x5ee59b[_0xf23a07(0x17a)]==_0xf23a07(0x164)?_0xf23a07(0x18e):'false')+'\x20})\x0a',_0x5d2367+=_0xf23a07(0x189)+_0x5ee59b['Field']+_0xf23a07(0x14e);else{if(_0x19a01d=='datetime')_0x5d2367+=_0xf23a07(0x16a)+_0x5ee59b[_0xf23a07(0x143)]+_0xf23a07(0x15a)+(_0x5ee59b[_0xf23a07(0x17a)]=='YES'?_0xf23a07(0x18e):_0xf23a07(0x156))+_0xf23a07(0x158),_0x5d2367+=_0xf23a07(0x189)+_0x5ee59b[_0xf23a07(0x147)]+_0xf23a07(0x14e);else{if(_0x19a01d==_0xf23a07(0x145))_0x5d2367+=_0xf23a07(0x16a)+_0x5ee59b['Comment']+_0xf23a07(0x15a)+(_0x5ee59b[_0xf23a07(0x17a)]==_0xf23a07(0x164)?_0xf23a07(0x18e):_0xf23a07(0x156))+'\x20})\x0a',_0x5d2367+=_0xf23a07(0x189)+_0x5ee59b['Field']+_0xf23a07(0x14e);else{if(_0x19a01d==_0xf23a07(0x184))_0x5d2367+=_0xf23a07(0x187)+_0x5ee59b[_0xf23a07(0x143)]+_0xf23a07(0x15a)+(_0x5ee59b[_0xf23a07(0x17a)]==_0xf23a07(0x164)?_0xf23a07(0x18e):'false')+_0xf23a07(0x168),_0x5d2367+='\x20\x20\x20\x20'+_0x5ee59b[_0xf23a07(0x147)]+_0xf23a07(0x14e);else{if(_0x19a01d==_0xf23a07(0x18f))_0x5d2367+=_0xf23a07(0x174)+_0x5ee59b[_0xf23a07(0x143)]+'\x27,\x20nullable:\x20'+(_0x5ee59b[_0xf23a07(0x17a)]=='YES'?'true':_0xf23a07(0x156))+_0xf23a07(0x168),_0x5d2367+=_0xf23a07(0x189)+_0x5ee59b['Field']+_0xf23a07(0x14e);else _0x19a01d==_0xf23a07(0x16d)?(_0x5d2367+='\x20\x20\x20\x20@Column(\x27mediumtext\x27,\x20{\x20comment:\x20\x27'+_0x5ee59b[_0xf23a07(0x143)]+_0xf23a07(0x15a)+(_0x5ee59b[_0xf23a07(0x17a)]==_0xf23a07(0x164)?_0xf23a07(0x18e):_0xf23a07(0x156))+',\x20unique:\x20false\x20})\x0a',_0x5d2367+=_0xf23a07(0x189)+_0x5ee59b['Field']+_0xf23a07(0x14e)):(_0x5d2367+=_0xf23a07(0x150)+_0x5ee59b[_0xf23a07(0x143)]+'\x27,\x20nullable:\x20'+(_0x5ee59b[_0xf23a07(0x17a)]==_0xf23a07(0x164)?_0xf23a07(0x18e):'false')+_0xf23a07(0x168),_0x5d2367+=_0xf23a07(0x189)+_0x5ee59b[_0xf23a07(0x147)]+_0xf23a07(0x14e));}}}}}}}}}}}}_0x251cfb+=_0xf23a07(0x15e),_0x251cfb+=_0xf23a07(0x166),_0x251cfb+='import\x20{\x20ProvideEntity,\x20ProvideSearch,\x20'+(_0x43b268?'PrimaryGeneratedColumn':'PrimaryColumn')+_0xf23a07(0x17b),_0x251cfb+=_0xf23a07(0x140)+_0x5c73aa+'Search\x20}\x20from\x20\x27'+(typeof _0x170498==_0xf23a07(0x154)?_0xf23a07(0x177)+_0x170498:'@/'+_0x3a393f)+'/searchs/'+_0x425e9a+_0xf23a07(0x144),_0x251cfb+=_0xf23a07(0x14f),_0x251cfb+=_0xf23a07(0x13a)+_0x29ce23+_0xf23a07(0x15d),_0x251cfb+=_0xf23a07(0x135),_0x251cfb+=_0xf23a07(0x129)+_0x5c73aa+_0xf23a07(0x132),_0x251cfb+=_0xf23a07(0x172)+_0x4be5f9+'\x27\x20},\x20{\x20orderBy:\x20{\x20displayorder:\x20\x27DESC\x27\x20}\x20})\x0a',_0x251cfb+=_0xf23a07(0x16b)+_0x5c73aa+_0xf23a07(0x186),_0x251cfb+=_0xf23a07(0x16c),_0x251cfb+=_0xf23a07(0x17d),_0x251cfb+='\x20\x20\x20\x20displayorder:\x20number;\x0a\x0a',_0x251cfb+=_0xf23a07(0x14c),_0x251cfb+=_0xf23a07(0x153),_0x251cfb+=_0xf23a07(0x183),_0x251cfb+=_0xf23a07(0x139),_0x251cfb+=_0xf23a07(0x162),_0x251cfb+=_0xf23a07(0x18c),_0x251cfb+='}',_0x251cfb=_0x251cfb[_0xf23a07(0x12a)](_0xf23a07(0x16c),_0x5d2367),!fs[_0xf23a07(0x148)]((0x0,path_1[_0xf23a07(0x176)])(_0x2ad7f4))&&fs[_0xf23a07(0x123)]((0x0,path_1[_0xf23a07(0x176)])(_0x2ad7f4),{'recursive':!![]}),fs[_0xf23a07(0x14b)](_0x2ad7f4,_0x251cfb,_0xf23a07(0x15f));}}async function repository({tablestartUp:_0x137fab,tablestartUpShort:_0x4ff149,basedir:_0xcf0302,Comment:_0xf49416,moduleName:_0x355182,apporbasic:_0x3e7813}){const _0x55f061=a6_0x145d8a,_0x56b926=_0xcf0302+(_0x55f061(0x185)+_0x4ff149+_0x55f061(0x173));if(!fs[_0x55f061(0x148)](_0x56b926)){let _0x564c18='';_0x564c18+=_0x55f061(0x14f),_0x564c18+='\x20*\x20'+_0xf49416+_0x55f061(0x12f),_0x564c18+=_0x55f061(0x135),_0x564c18+=_0x55f061(0x128),_0x564c18+='import\x20{\x20'+_0x137fab+_0x55f061(0x141)+(typeof _0x355182==_0x55f061(0x154)?'@/apps/'+_0x355182:'@/'+_0x3e7813)+_0x55f061(0x185)+_0x4ff149+'/entity\x27;\x0a\x0a',_0x564c18+=_0x55f061(0x18b)+_0x137fab+_0x55f061(0x146),_0x564c18+='export\x20class\x20'+_0x137fab+_0x55f061(0x13b)+_0x137fab+'Entity>{\x0a\x0a',_0x564c18+='}',!fs['existsSync']((0x0,path_1[_0x55f061(0x176)])(_0x56b926))&&fs[_0x55f061(0x123)]((0x0,path_1[_0x55f061(0x176)])(_0x56b926),{'recursive':!![]}),fs[_0x55f061(0x14b)](_0x56b926,_0x564c18,_0x55f061(0x15f));}}
1
+ function a6_0x25a5(_0x4e342c,_0x48f9f2){const _0x31e823=a6_0x5802();return a6_0x25a5=function(_0x207759,_0x6ad766){_0x207759=_0x207759-0x91;let _0x58027b=_0x31e823[_0x207759];return _0x58027b;},a6_0x25a5(_0x4e342c,_0x48f9f2);}const a6_0x1f6ffa=a6_0x25a5;(function(_0x206e39,_0x2dd6b5){const _0x2e3d80=a6_0x25a5,_0x267dba=_0x206e39();while(!![]){try{const _0x16ceca=parseInt(_0x2e3d80(0xb4))/0x1*(-parseInt(_0x2e3d80(0xe8))/0x2)+parseInt(_0x2e3d80(0x9d))/0x3*(-parseInt(_0x2e3d80(0xc1))/0x4)+parseInt(_0x2e3d80(0xa0))/0x5+-parseInt(_0x2e3d80(0xb1))/0x6+parseInt(_0x2e3d80(0xa7))/0x7*(parseInt(_0x2e3d80(0xee))/0x8)+parseInt(_0x2e3d80(0xda))/0x9+-parseInt(_0x2e3d80(0x98))/0xa*(-parseInt(_0x2e3d80(0xb9))/0xb);if(_0x16ceca===_0x2dd6b5)break;else _0x267dba['push'](_0x267dba['shift']());}catch(_0x38cc9f){_0x267dba['push'](_0x267dba['shift']());}}}(a6_0x5802,0x4b3c8));const a6_0x6ad766=(function(){let _0x9fbae3=!![];return function(_0x4e42dd,_0x2071e5){const _0x572e4d=_0x9fbae3?function(){const _0x220687=a6_0x25a5;if(_0x2071e5){const _0x695926=_0x2071e5[_0x220687(0x96)](_0x4e42dd,arguments);return _0x2071e5=null,_0x695926;}}:function(){};return _0x9fbae3=![],_0x572e4d;};}()),a6_0x207759=a6_0x6ad766(this,function(){const _0x467e7e=a6_0x25a5;return a6_0x207759[_0x467e7e(0xd2)]()[_0x467e7e(0x91)]('(((.+)+)+)+$')[_0x467e7e(0xd2)]()[_0x467e7e(0x97)](a6_0x207759)[_0x467e7e(0x91)](_0x467e7e(0xe2));});a6_0x207759();function a6_0x5802(){const _0xdadaa9=['displayorder','existsSync','Comment','\x20\x20\x20\x20@Column(\x27mediumtext\x27,\x20{\x20comment:\x20\x27','(((.+)+)+)+$',',\x20unique:\x20false\x20})\x0a','default','replace','Type','Null','859700NKdNjH','\x20\x20\x20\x20@Column(\x27text\x27,\x20{\x20comment:\x20\x27','/searchs/','\x27,\x20nullable:\x20','\x20\x20\x20\x20@Column(\x27tinyint\x27,\x20{\x20comment:\x20\x27','\x20\x20\x20\x20@Column(\x27float\x27,\x20{\x20comment:\x20\x27','256OhHAzI','updated_at','\x27,\x20length:\x20188\x20})\x0a','\x27,\x20precision:\x2010,\x20scale:\x202,\x20default:\x200.00,\x20nullable:\x20','timestamp','\x20\x20\x20\x20@UpdateDateColumn({\x20comment:\x20\x27修改时间\x27,\x20type:\x20\x27timestamp\x27\x20})\x0a','tinyint','__esModule','/entity\x27;\x0a\x0a','/entity.ts','search','\x20*\x20**/\x0a','false','\x20\x20\x20\x20@PrimaryColumn({\x20comment:\x20\x27','deleted_at','apply','constructor','10vtFcqs','@ProvideEntity({\x20tableName:\x20\x27','indexOf','text',':\x20any\x20|\x20any[];\x0a\x0a','643995cfsNlN','mediumtext','\x20\x20\x20\x20@Column(\x27decimal\x27,\x20{\x20comment:\x20\x27','1111425xryXRC','export\x20class\x20','-实体处理器\x0a','/index.ts','\x20\x20\x20\x20displayorder:\x20number;\x0a\x0a','writeFileSync','\x20\x20\x20\x20updated_at:\x20Date;\x0a\x0a','19544IAxNOO','enum','path','\x27\x20|\x20\x27','import\x20{\x20','\x20\x20\x20\x20@Column(\x27timestamp\x27,\x20{\x20comment:\x20\x27','\x20\x20\x20\x20@PrimaryGeneratedColumn()\x0a','\x20*\x20','@ProvideSearch(','utf-8','2637924rlhccg','\x27;\x0a\x0a','Entity\x20}\x20from\x20\x27','1lhqvAc','getEnum','%column%',',\x20Column\x20}\x20from\x20\x27@anncic-api/typeorm\x27;\x0a\x0a','\x27,\x20\x27','10110221WaRojc','@/apps/','import\x20{\x20ProvideEntity,\x20ProvideSearch,\x20','Field','double',':\x20string;\x0a\x0a','import\x20{\x20CreateDateColumn,\x20UpdateDateColumn,\x20DeleteDateColumn\x20}\x20from\x20\x27@anncic-api/typeorm\x27;\x0a','\x20\x20\x20\x20@Column(\x27enum\x27,\x20{\x20comment:\x20\x27','8uWtNbI','\x20\x20\x20\x20@Column({\x20comment:\x20\x27','\x20extends\x20Repository<','\x20\x20\x20\x20deleted_at:\x20Date;\x0a\x0a','json','\x20\x20\x20\x20@Column(\x27double\x27,\x20{\x20comment:\x20\x27','\x27,\x20precision:\x2024,\x20scale:\x202,\x20default:\x200.00,\x20nullable:\x20','PrimaryColumn','@ProvideRepository(','join','\x20\x20\x20\x20@CreateDateColumn({\x20comment:\x20\x27创建时间\x27,\x20type:\x20\x27timestamp\x27\x20})\x0a','Search\x20}\x20from\x20\x27','datetime','/**\x0a','true','string','\x20\x20\x20\x20created_at:\x20Date;\x0a\x0a','toString','YES','getProp',':\x20number;\x0a\x0a','\x20\x20\x20\x20@Column(\x27json\x27,\x20{\x20comment:\x20\x27','dirname','\x20\x20\x20\x20','/entities/','3386358rusbvh','import\x20{\x20ProvideRepository,\x20Repository\x20}\x20from\x20\x27@anncic-api/typeorm\x27;\x0a','../helper','\x20})\x0a'];a6_0x5802=function(){return _0xdadaa9;};return a6_0x5802();}'use strict';Object['defineProperty'](exports,a6_0x1f6ffa(0xf5),{'value':!![]}),exports[a6_0x1f6ffa(0xe4)]=default_1;const fs=require('fs'),path_1=require(a6_0x1f6ffa(0xa9)),helper_1=require(a6_0x1f6ffa(0xdc));async function default_1({tablename:_0x351bd4,tablestartUp:_0x4ac9a0,tablestartUpShort:_0x4ec980,basedir:_0x53e8f4,Primary:_0x1d3ff0,Fields:_0x4955b8,Comment:_0x81f31e,moduleName:_0x3c8e59,apporbasic:_0x57bc7c}){await entity({'tablename':_0x351bd4,'tablestartUp':_0x4ac9a0,'tablestartUpShort':_0x4ec980,'basedir':_0x53e8f4,'Primary':_0x1d3ff0,'Fields':_0x4955b8,'Comment':_0x81f31e,'moduleName':_0x3c8e59,'apporbasic':_0x57bc7c}),await repository({'tablestartUp':_0x4ac9a0,'tablestartUpShort':_0x4ec980,'basedir':_0x53e8f4,'Comment':_0x81f31e,'moduleName':_0x3c8e59,'apporbasic':_0x57bc7c});}async function entity({tablename:_0x3b5200,tablestartUp:_0x54cc25,tablestartUpShort:_0x56ab2e,basedir:_0xbaea02,Primary:_0x524bf6,Fields:_0x39a314,Comment:_0x141bb7,moduleName:_0x7defd0,apporbasic:_0x478ba5}){const _0x4c3d78=a6_0x1f6ffa,_0x154e8b=_0xbaea02+(_0x4c3d78(0xd9)+_0x56ab2e+_0x4c3d78(0xf7));if(!fs[_0x4c3d78(0xdf)](_0x154e8b)){let _0x15184e='',_0x4a5fe6='',_0x135740=[_0x4c3d78(0x9b),_0x4c3d78(0x9e),_0x4c3d78(0xd0)][_0x4c3d78(0x9a)]((0x0,helper_1[_0x4c3d78(0xd4)])(_0x524bf6[_0x4c3d78(0xe6)]))==-0x1;_0x135740?(_0x15184e+=_0x4c3d78(0xad),_0x15184e+=_0x4c3d78(0xd8)+_0x524bf6[_0x4c3d78(0xbc)]+_0x4c3d78(0xd5)):(_0x15184e+=_0x4c3d78(0x94)+(_0x524bf6[_0x4c3d78(0xe0)]||'标识')+_0x4c3d78(0xf0),_0x15184e+=_0x4c3d78(0xd8)+_0x524bf6['Field']+_0x4c3d78(0xbe));for(let _0x3f622f in _0x39a314){let _0x32b23b=_0x39a314[_0x3f622f],_0x5c9056=(0x0,helper_1[_0x4c3d78(0xd4)])(_0x32b23b[_0x4c3d78(0xe6)]);if(_0x32b23b[_0x4c3d78(0xbc)]==_0x4c3d78(0xde)||_0x32b23b['Field']=='created_at'||_0x32b23b[_0x4c3d78(0xbc)]==_0x4c3d78(0xef)||_0x32b23b[_0x4c3d78(0xbc)]==_0x4c3d78(0x95))continue;if(_0x5c9056==_0x4c3d78(0xc5))_0x15184e+=_0x4c3d78(0xd6)+_0x32b23b[_0x4c3d78(0xe0)]+_0x4c3d78(0xeb)+(_0x32b23b[_0x4c3d78(0xe7)]==_0x4c3d78(0xd3)?_0x4c3d78(0xcf):_0x4c3d78(0x93))+_0x4c3d78(0xe3),_0x15184e+=_0x4c3d78(0xd8)+_0x32b23b[_0x4c3d78(0xbc)]+_0x4c3d78(0x9c);else{if(_0x5c9056==_0x4c3d78(0xa8)){let _0x195621=(0x0,helper_1[_0x4c3d78(0xb5)])(_0x32b23b['Type']);_0x15184e+=_0x4c3d78(0xc0)+_0x32b23b['Comment']+'\x27,\x20default:\x20\x27'+(_0x195621[0x0]||'')+'\x27,\x20enum:\x20[\x27'+_0x195621[_0x4c3d78(0xca)](_0x4c3d78(0xb8))+'\x27]\x20})\x0a',_0x15184e+=_0x4c3d78(0xd8)+_0x32b23b[_0x4c3d78(0xbc)]+':\x20\x27'+_0x195621[_0x4c3d78(0xca)](_0x4c3d78(0xaa))+_0x4c3d78(0xb2);}else{if(_0x5c9056=='float')_0x15184e+=_0x4c3d78(0xed)+_0x32b23b[_0x4c3d78(0xe0)]+_0x4c3d78(0xf1)+(_0x32b23b['Null']==_0x4c3d78(0xd3)?_0x4c3d78(0xcf):_0x4c3d78(0x93))+_0x4c3d78(0xdd),_0x15184e+='\x20\x20\x20\x20'+_0x32b23b['Field']+_0x4c3d78(0xd5);else{if(_0x5c9056==_0x4c3d78(0xbd))_0x15184e+=_0x4c3d78(0xc6)+_0x32b23b[_0x4c3d78(0xe0)]+_0x4c3d78(0xf1)+(_0x32b23b[_0x4c3d78(0xe7)]=='YES'?'true':_0x4c3d78(0x93))+'\x20})\x0a',_0x15184e+=_0x4c3d78(0xd8)+_0x32b23b['Field']+':\x20number;\x0a\x0a';else{if(_0x5c9056=='decimal')_0x15184e+=_0x4c3d78(0x9f)+_0x32b23b[_0x4c3d78(0xe0)]+_0x4c3d78(0xc7)+(_0x32b23b[_0x4c3d78(0xe7)]==_0x4c3d78(0xd3)?'true':_0x4c3d78(0x93))+_0x4c3d78(0xdd),_0x15184e+='\x20\x20\x20\x20'+_0x32b23b[_0x4c3d78(0xbc)]+_0x4c3d78(0xd5);else{if(_0x5c9056=='number')_0x15184e+=_0x4c3d78(0xc2)+_0x32b23b[_0x4c3d78(0xe0)]+'\x27,\x20nullable:\x20'+(_0x32b23b[_0x4c3d78(0xe7)]=='YES'?_0x4c3d78(0xcf):_0x4c3d78(0x93))+_0x4c3d78(0xe3),_0x15184e+=_0x4c3d78(0xd8)+_0x32b23b[_0x4c3d78(0xbc)]+':\x20number;\x0a\x0a';else{if(_0x5c9056==_0x4c3d78(0xf4))_0x15184e+=_0x4c3d78(0xec)+_0x32b23b[_0x4c3d78(0xe0)]+_0x4c3d78(0xeb)+(_0x32b23b[_0x4c3d78(0xe7)]==_0x4c3d78(0xd3)?_0x4c3d78(0xcf):_0x4c3d78(0x93))+',\x20unique:\x20false\x20})\x0a',_0x15184e+=_0x4c3d78(0xd8)+_0x32b23b[_0x4c3d78(0xbc)]+_0x4c3d78(0xd5);else{if(_0x5c9056=='date')_0x15184e+='\x20\x20\x20\x20@Column(\x27date\x27,\x20{\x20comment:\x20\x27'+_0x32b23b[_0x4c3d78(0xe0)]+_0x4c3d78(0xeb)+(_0x32b23b[_0x4c3d78(0xe7)]==_0x4c3d78(0xd3)?_0x4c3d78(0xcf):_0x4c3d78(0x93))+'\x20})\x0a',_0x15184e+=_0x4c3d78(0xd8)+_0x32b23b['Field']+_0x4c3d78(0xbe);else{if(_0x5c9056==_0x4c3d78(0xcd))_0x15184e+='\x20\x20\x20\x20@Column(\x27timestamp\x27,\x20{\x20comment:\x20\x27'+_0x32b23b[_0x4c3d78(0xe0)]+_0x4c3d78(0xeb)+(_0x32b23b[_0x4c3d78(0xe7)]==_0x4c3d78(0xd3)?_0x4c3d78(0xcf):_0x4c3d78(0x93))+'\x20})\x0a',_0x15184e+=_0x4c3d78(0xd8)+_0x32b23b[_0x4c3d78(0xbc)]+_0x4c3d78(0xbe);else{if(_0x5c9056==_0x4c3d78(0xf2))_0x15184e+=_0x4c3d78(0xac)+_0x32b23b[_0x4c3d78(0xe0)]+_0x4c3d78(0xeb)+(_0x32b23b['Null']==_0x4c3d78(0xd3)?'true':'false')+_0x4c3d78(0xdd),_0x15184e+=_0x4c3d78(0xd8)+_0x32b23b[_0x4c3d78(0xbc)]+_0x4c3d78(0xbe);else{if(_0x5c9056==_0x4c3d78(0x9b))_0x15184e+=_0x4c3d78(0xe9)+_0x32b23b[_0x4c3d78(0xe0)]+_0x4c3d78(0xeb)+(_0x32b23b[_0x4c3d78(0xe7)]=='YES'?'true':_0x4c3d78(0x93))+_0x4c3d78(0xe3),_0x15184e+=_0x4c3d78(0xd8)+_0x32b23b[_0x4c3d78(0xbc)]+':\x20string;\x0a\x0a';else{if(_0x5c9056=='longtext')_0x15184e+='\x20\x20\x20\x20@Column(\x27longtext\x27,\x20{\x20comment:\x20\x27'+_0x32b23b[_0x4c3d78(0xe0)]+_0x4c3d78(0xeb)+(_0x32b23b['Null']==_0x4c3d78(0xd3)?_0x4c3d78(0xcf):_0x4c3d78(0x93))+_0x4c3d78(0xe3),_0x15184e+=_0x4c3d78(0xd8)+_0x32b23b[_0x4c3d78(0xbc)]+_0x4c3d78(0xbe);else _0x5c9056=='mediumtext'?(_0x15184e+=_0x4c3d78(0xe1)+_0x32b23b[_0x4c3d78(0xe0)]+'\x27,\x20nullable:\x20'+(_0x32b23b[_0x4c3d78(0xe7)]=='YES'?_0x4c3d78(0xcf):_0x4c3d78(0x93))+_0x4c3d78(0xe3),_0x15184e+=_0x4c3d78(0xd8)+_0x32b23b[_0x4c3d78(0xbc)]+_0x4c3d78(0xbe)):(_0x15184e+=_0x4c3d78(0xc2)+_0x32b23b[_0x4c3d78(0xe0)]+_0x4c3d78(0xeb)+(_0x32b23b[_0x4c3d78(0xe7)]=='YES'?_0x4c3d78(0xcf):_0x4c3d78(0x93))+_0x4c3d78(0xe3),_0x15184e+=_0x4c3d78(0xd8)+_0x32b23b['Field']+_0x4c3d78(0xbe));}}}}}}}}}}}}_0x4a5fe6+='//\x20import\x20{\x20ManyToOne,\x20JoinColumn\x20}\x20from\x20\x27@anncic-api/typeorm\x27;\x0a',_0x4a5fe6+=_0x4c3d78(0xbf),_0x4a5fe6+=_0x4c3d78(0xbb)+(_0x135740?'PrimaryGeneratedColumn':_0x4c3d78(0xc8))+_0x4c3d78(0xb7),_0x4a5fe6+='import\x20{\x20'+_0x54cc25+_0x4c3d78(0xcc)+(typeof _0x7defd0==_0x4c3d78(0xd0)?'@/apps/'+_0x7defd0:'@/'+_0x478ba5)+_0x4c3d78(0xea)+_0x56ab2e+_0x4c3d78(0xb2),_0x4a5fe6+=_0x4c3d78(0xce),_0x4a5fe6+=_0x4c3d78(0xae)+_0x141bb7+'-实体\x0a',_0x4a5fe6+=_0x4c3d78(0x92),_0x4a5fe6+=_0x4c3d78(0xaf)+_0x54cc25+'Search)\x0a',_0x4a5fe6+=_0x4c3d78(0x99)+_0x3b5200+'\x27\x20},\x20{\x20orderBy:\x20{\x20displayorder:\x20\x27DESC\x27\x20}\x20})\x0a',_0x4a5fe6+=_0x4c3d78(0xa1)+_0x54cc25+'Entity\x20{\x0a\x0a',_0x4a5fe6+='%column%',_0x4a5fe6+='\x20\x20\x20\x20@Column({\x20comment:\x20\x27默认显示排序\x27,\x20nullable:\x20true,\x20unique:\x20false\x20})\x0a',_0x4a5fe6+=_0x4c3d78(0xa4),_0x4a5fe6+=_0x4c3d78(0xcb),_0x4a5fe6+=_0x4c3d78(0xd1),_0x4a5fe6+=_0x4c3d78(0xf3),_0x4a5fe6+=_0x4c3d78(0xa6),_0x4a5fe6+='\x20\x20\x20\x20@DeleteDateColumn({\x20comment:\x20\x27删除时间\x27,\x20type:\x20\x27timestamp\x27,\x20select:\x20false\x20})\x0a',_0x4a5fe6+=_0x4c3d78(0xc4),_0x4a5fe6+='}',_0x4a5fe6=_0x4a5fe6[_0x4c3d78(0xe5)](_0x4c3d78(0xb6),_0x15184e),!fs[_0x4c3d78(0xdf)]((0x0,path_1[_0x4c3d78(0xd7)])(_0x154e8b))&&fs['mkdirSync']((0x0,path_1[_0x4c3d78(0xd7)])(_0x154e8b),{'recursive':!![]}),fs[_0x4c3d78(0xa5)](_0x154e8b,_0x4a5fe6,_0x4c3d78(0xb0));}}async function repository({tablestartUp:_0x1f5d60,tablestartUpShort:_0x2baee7,basedir:_0x49ae19,Comment:_0xe2f0f0,moduleName:_0x36d64e,apporbasic:_0x284e33}){const _0xc96df=a6_0x1f6ffa,_0xcc666c=_0x49ae19+(_0xc96df(0xd9)+_0x2baee7+_0xc96df(0xa3));if(!fs[_0xc96df(0xdf)](_0xcc666c)){let _0x2eb0b8='';_0x2eb0b8+=_0xc96df(0xce),_0x2eb0b8+=_0xc96df(0xae)+_0xe2f0f0+_0xc96df(0xa2),_0x2eb0b8+=_0xc96df(0x92),_0x2eb0b8+=_0xc96df(0xdb),_0x2eb0b8+=_0xc96df(0xab)+_0x1f5d60+_0xc96df(0xb3)+(typeof _0x36d64e==_0xc96df(0xd0)?_0xc96df(0xba)+_0x36d64e:'@/'+_0x284e33)+'/entities/'+_0x2baee7+_0xc96df(0xf6),_0x2eb0b8+=_0xc96df(0xc9)+_0x1f5d60+'Entity)\x0a',_0x2eb0b8+=_0xc96df(0xa1)+_0x1f5d60+_0xc96df(0xc3)+_0x1f5d60+'Entity>{\x0a\x0a',_0x2eb0b8+='}',!fs['existsSync']((0x0,path_1[_0xc96df(0xd7)])(_0xcc666c))&&fs['mkdirSync']((0x0,path_1[_0xc96df(0xd7)])(_0xcc666c),{'recursive':!![]}),fs[_0xc96df(0xa5)](_0xcc666c,_0x2eb0b8,_0xc96df(0xb0));}}
@@ -1,7 +1,7 @@
1
- export default function ({ tablestartUp, tablestartUpShort, basedir, moduleName, apporbasic }: {
2
- tablestartUp: any;
3
- tablestartUpShort: any;
4
- basedir: any;
5
- moduleName: any;
6
- apporbasic: any;
7
- }): Promise<void>;
1
+ export default function ({ tablestartUp, tablestartUpShort, basedir, moduleName, apporbasic }: {
2
+ tablestartUp: any;
3
+ tablestartUpShort: any;
4
+ basedir: any;
5
+ moduleName: any;
6
+ apporbasic: any;
7
+ }): Promise<void>;
@@ -1 +1 @@
1
- function a7_0x18cc(){const _0x2db5ca=['2AhoYBm','\x27;\x0a\x0a','.ts','220216kqwWjv','search','__esModule','\x20}\x20from\x20\x27','/entities/','utf-8','dirname','toString','string','import\x20{\x20','import\x20{\x20Inject,\x20InjectRepository\x20}\x20from\x20\x27@anncic-api/typeorm\x27;\x0a\x0a','727208gcIqmA','@/apps/','233134dnJyKv','101823hlkRoG','(((.+)+)+)+$','462110cHEtFG','export\x20class\x20','1323198RrgYwi','18uyIMNp','mkdirSync',';\x0a\x0a\x0a','\x20\x20\x20\x20@Inject()\x20protected\x20EventService:\x20EventService;\x0a\x0a','defineProperty',')\x20protected\x20','Event\x20{\x0a\x0a','@Event()\x0a','import\x20{\x20Event,\x20EventService\x20}\x20from\x20\x27@anncic-api/event\x27;\x0a','577675TeQpuG','path'];a7_0x18cc=function(){return _0x2db5ca;};return a7_0x18cc();}const a7_0x294021=a7_0x15f2;(function(_0x3ac76a,_0x42da15){const _0x6aaf64=a7_0x15f2,_0x369b86=_0x3ac76a();while(!![]){try{const _0xb3aa8c=-parseInt(_0x6aaf64(0x11c))/0x1*(-parseInt(_0x6aaf64(0x12d))/0x2)+-parseInt(_0x6aaf64(0x11d))/0x3+parseInt(_0x6aaf64(0x10f))/0x4+-parseInt(_0x6aaf64(0x11f))/0x5+parseInt(_0x6aaf64(0x121))/0x6+-parseInt(_0x6aaf64(0x12b))/0x7+-parseInt(_0x6aaf64(0x11a))/0x8*(parseInt(_0x6aaf64(0x122))/0x9);if(_0xb3aa8c===_0x42da15)break;else _0x369b86['push'](_0x369b86['shift']());}catch(_0x21b628){_0x369b86['push'](_0x369b86['shift']());}}}(a7_0x18cc,0x1cd0f));const a7_0x2ee6cf=(function(){let _0x35a492=!![];return function(_0x26191c,_0x1d4c71){const _0x1a5f3c=_0x35a492?function(){if(_0x1d4c71){const _0x217a43=_0x1d4c71['apply'](_0x26191c,arguments);return _0x1d4c71=null,_0x217a43;}}:function(){};return _0x35a492=![],_0x1a5f3c;};}()),a7_0x7a3dbe=a7_0x2ee6cf(this,function(){const _0x2473f1=a7_0x15f2;return a7_0x7a3dbe[_0x2473f1(0x116)]()[_0x2473f1(0x110)](_0x2473f1(0x11e))[_0x2473f1(0x116)]()['constructor'](a7_0x7a3dbe)[_0x2473f1(0x110)](_0x2473f1(0x11e));});a7_0x7a3dbe();'use strict';Object[a7_0x294021(0x126)](exports,a7_0x294021(0x111),{'value':!![]});const fs=require('fs'),path_1=require(a7_0x294021(0x12c));async function default_1({tablestartUp:_0x1271cd,tablestartUpShort:_0x48ceb7,basedir:_0x4066fb,moduleName:_0xd713b8,apporbasic:_0x154ef4}){const _0x4120e6=a7_0x294021,_0x37ebb6=_0x4066fb+('/listeners/'+_0x48ceb7+_0x4120e6(0x10e));if(!fs['existsSync'](_0x37ebb6)){let _0x43b60d='';_0x43b60d+=_0x4120e6(0x12a),_0x43b60d+=_0x4120e6(0x119),_0x43b60d+=_0x4120e6(0x118)+_0x1271cd+_0x4120e6(0x112)+(typeof _0xd713b8==_0x4120e6(0x117)?_0x4120e6(0x11b)+_0xd713b8:'@/'+_0x154ef4)+_0x4120e6(0x113)+_0x48ceb7+_0x4120e6(0x12e),_0x43b60d+=_0x4120e6(0x129),_0x43b60d+=_0x4120e6(0x120)+_0x1271cd+_0x4120e6(0x128),_0x43b60d+=_0x4120e6(0x125),_0x43b60d+='\x20\x20\x20\x20@InjectRepository('+_0x1271cd+_0x4120e6(0x127)+_0x1271cd+':\x20'+_0x1271cd+_0x4120e6(0x124),_0x43b60d+='}',!fs['existsSync']((0x0,path_1[_0x4120e6(0x115)])(_0x37ebb6))&&fs[_0x4120e6(0x123)]((0x0,path_1['dirname'])(_0x37ebb6),{'recursive':!![]}),fs['writeFileSync'](_0x37ebb6,_0x43b60d,_0x4120e6(0x114));}}function a7_0x15f2(_0x3e44c5,_0x259118){const _0x32e473=a7_0x18cc();return a7_0x15f2=function(_0x7a3dbe,_0x2ee6cf){_0x7a3dbe=_0x7a3dbe-0x10e;let _0x18cc37=_0x32e473[_0x7a3dbe];return _0x18cc37;},a7_0x15f2(_0x3e44c5,_0x259118);}exports['default']=default_1;
1
+ const a7_0x2f9d9a=a7_0x5072;function a7_0x1088(){const _0x586305=['25870BLAJnR','9919456mPKmOY','constructor','__esModule','defineProperty','utf-8','1684020OPFhir','toString','/entities/','@/apps/','mkdirSync','\x20\x20\x20\x20@Inject()\x20protected\x20EventService:\x20EventService;\x0a\x0a','default','1595AXMbFg','path','807461vXiXMu','/listeners/','apply','Event\x20{\x0a\x0a','writeFileSync','import\x20{\x20','2392944uTVmDz','4756172uWDrbj','dirname','3128670CVaRGI','string','3uhtRJw','\x20\x20\x20\x20@InjectRepository(','2ELixYr','.ts','export\x20class\x20',';\x0a\x0a\x0a','\x20}\x20from\x20\x27','(((.+)+)+)+$','21Lnhzfr','\x27;\x0a\x0a','existsSync'];a7_0x1088=function(){return _0x586305;};return a7_0x1088();}function a7_0x5072(_0x10f22d,_0x2b33a4){const _0xd4e98f=a7_0x1088();return a7_0x5072=function(_0x3291a4,_0x8ac6d){_0x3291a4=_0x3291a4-0x130;let _0x108806=_0xd4e98f[_0x3291a4];return _0x108806;},a7_0x5072(_0x10f22d,_0x2b33a4);}(function(_0xccc53a,_0xb09fa7){const _0x94fa67=a7_0x5072,_0x5e1923=_0xccc53a();while(!![]){try{const _0x4052cd=-parseInt(_0x94fa67(0x151))/0x1*(parseInt(_0x94fa67(0x139))/0x2)+-parseInt(_0x94fa67(0x137))/0x3*(-parseInt(_0x94fa67(0x133))/0x4)+parseInt(_0x94fa67(0x148))/0x5+parseInt(_0x94fa67(0x132))/0x6*(parseInt(_0x94fa67(0x13f))/0x7)+-parseInt(_0x94fa67(0x143))/0x8+parseInt(_0x94fa67(0x135))/0x9+parseInt(_0x94fa67(0x142))/0xa*(-parseInt(_0x94fa67(0x14f))/0xb);if(_0x4052cd===_0xb09fa7)break;else _0x5e1923['push'](_0x5e1923['shift']());}catch(_0x5730ec){_0x5e1923['push'](_0x5e1923['shift']());}}}(a7_0x1088,0x9e111));const a7_0x8ac6d=(function(){let _0x3849fa=!![];return function(_0x17cb6f,_0x449e57){const _0x218dfe=_0x3849fa?function(){const _0x303b5e=a7_0x5072;if(_0x449e57){const _0x462abb=_0x449e57[_0x303b5e(0x153)](_0x17cb6f,arguments);return _0x449e57=null,_0x462abb;}}:function(){};return _0x3849fa=![],_0x218dfe;};}()),a7_0x3291a4=a7_0x8ac6d(this,function(){const _0x2d64fc=a7_0x5072;return a7_0x3291a4[_0x2d64fc(0x149)]()['search'](_0x2d64fc(0x13e))['toString']()[_0x2d64fc(0x144)](a7_0x3291a4)['search'](_0x2d64fc(0x13e));});a7_0x3291a4();'use strict';Object[a7_0x2f9d9a(0x146)](exports,a7_0x2f9d9a(0x145),{'value':!![]}),exports[a7_0x2f9d9a(0x14e)]=default_1;const fs=require('fs'),path_1=require(a7_0x2f9d9a(0x150));async function default_1({tablestartUp:_0x50cb79,tablestartUpShort:_0x757c07,basedir:_0x62f6f8,moduleName:_0x48661e,apporbasic:_0x1890cb}){const _0x4d3479=a7_0x2f9d9a,_0x2b77d1=_0x62f6f8+(_0x4d3479(0x152)+_0x757c07+_0x4d3479(0x13a));if(!fs[_0x4d3479(0x141)](_0x2b77d1)){let _0x1b5002='';_0x1b5002+='import\x20{\x20Event,\x20EventService\x20}\x20from\x20\x27@anncic-api/event\x27;\x0a',_0x1b5002+='import\x20{\x20Inject,\x20InjectRepository\x20}\x20from\x20\x27@anncic-api/typeorm\x27;\x0a\x0a',_0x1b5002+=_0x4d3479(0x131)+_0x50cb79+_0x4d3479(0x13d)+(typeof _0x48661e==_0x4d3479(0x136)?_0x4d3479(0x14b)+_0x48661e:'@/'+_0x1890cb)+_0x4d3479(0x14a)+_0x757c07+_0x4d3479(0x140),_0x1b5002+='@Event()\x0a',_0x1b5002+=_0x4d3479(0x13b)+_0x50cb79+_0x4d3479(0x154),_0x1b5002+=_0x4d3479(0x14d),_0x1b5002+=_0x4d3479(0x138)+_0x50cb79+')\x20protected\x20'+_0x50cb79+':\x20'+_0x50cb79+_0x4d3479(0x13c),_0x1b5002+='}',!fs[_0x4d3479(0x141)]((0x0,path_1[_0x4d3479(0x134)])(_0x2b77d1))&&fs[_0x4d3479(0x14c)]((0x0,path_1['dirname'])(_0x2b77d1),{'recursive':!![]}),fs[_0x4d3479(0x130)](_0x2b77d1,_0x1b5002,_0x4d3479(0x147));}}
@@ -1,9 +1,9 @@
1
- export default function ({ tablestartUp, tablestartUpShort, basedir, Primary, Comment, moduleName, apporbasic }: {
2
- tablestartUp: any;
3
- tablestartUpShort: any;
4
- basedir: any;
5
- Primary: any;
6
- Comment: any;
7
- moduleName: any;
8
- apporbasic: any;
9
- }): Promise<void>;
1
+ export default function ({ tablestartUp, tablestartUpShort, basedir, Primary, Comment, moduleName, apporbasic }: {
2
+ tablestartUp: any;
3
+ tablestartUpShort: any;
4
+ basedir: any;
5
+ Primary: any;
6
+ Comment: any;
7
+ moduleName: any;
8
+ apporbasic: any;
9
+ }): Promise<void>;