anncic-apihelper 3.4.81 → 3.4.82
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/configuration.js +1 -1
- package/dist/helper.js +1 -1
- package/dist/index.js +1 -1
- package/dist/service/ApicreateService.js +1 -1
- package/dist/templateFun/Action.js +1 -1
- package/dist/templateFun/Common.js +1 -1
- package/dist/templateFun/Entities.js +1 -1
- package/dist/templateFun/Event.js +1 -1
- package/dist/templateFun/Handler.js +1 -1
- package/dist/templateFun/Search.js +1 -1
- package/dist/templateFun/Validator.js +1 -1
- package/dist/templateVue/Api.js +1 -1
- package/dist/templateVue/Layout.js +1 -1
- package/dist/templateVue/LayoutVue.js +1 -1
- package/dist/templateVue/Router.js +1 -1
- package/dist/templateVue/Validator.js +1 -1
- package/dist/templateVueV2/Api.js +1 -1
- package/dist/templateVueV2/Layout.js +1 -1
- package/dist/templateVueV2/LayoutVue.js +1 -1
- package/dist/templateVueV2/Router.js +1 -1
- package/dist/templateVueV2/Validator.js +1 -1
- package/dist/templateVueV3/Api.js +1 -1
- package/dist/templateVueV3/Layout.js +1 -1
- package/dist/templateVueV3/LayoutVue.js +1 -1
- package/dist/templateVueV3/Router.js +1 -1
- package/dist/templateVueV3/Validator.js +1 -1
- package/dist/types/index.js +1 -1
- package/package.json +3 -3
package/dist/configuration.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a0_0x20388c=a0_0x3e76;(function(_0x5d74aa,_0x584a84){var _0x4d68b8=a0_0x3e76,_0x1cd865=_0x5d74aa();while(!![]){try{var _0x265e4c=parseInt(_0x4d68b8(0x198))/0x1*(-parseInt(_0x4d68b8(0x1a1))/0x2)+parseInt(_0x4d68b8(0x1ae))/0x3+-parseInt(_0x4d68b8(0x1b3))/0x4*(-parseInt(_0x4d68b8(0x199))/0x5)+-parseInt(_0x4d68b8(0x1a3))/0x6*(-parseInt(_0x4d68b8(0x1a5))/0x7)+-parseInt(_0x4d68b8(0x19f))/0x8+parseInt(_0x4d68b8(0x19c))/0x9+-parseInt(_0x4d68b8(0x19b))/0xa;if(_0x265e4c===_0x584a84)break;else _0x1cd865['push'](_0x1cd865['shift']());}catch(_0x5c6b7c){_0x1cd865['push'](_0x1cd865['shift']());}}}(a0_0x3d50,0x9b084));var a0_0x865440=(function(){var _0x35dc97=!![];return function(_0x5d4b73,_0x5b45bb){var _0x1dc99b=_0x35dc97?function(){if(_0x5b45bb){var _0x4eff63=_0x5b45bb['apply'](_0x5d4b73,arguments);return _0x5b45bb=null,_0x4eff63;}}:function(){};return _0x35dc97=![],_0x1dc99b;};}()),a0_0x335bac=a0_0x865440(this,function(){var _0x113e98=a0_0x3e76;return a0_0x335bac[_0x113e98(0x1b8)]()[_0x113e98(0x1ab)](_0x113e98(0x1a8))['toString']()[_0x113e98(0x1a7)](a0_0x335bac)[_0x113e98(0x1ab)](_0x113e98(0x1a8));});a0_0x335bac();'use strict';var __decorate=this&&this['__decorate']||function(_0x2df7c5,_0x277e03,_0xd2f69d,_0x313506){var _0x27f31c=a0_0x3e76,_0x5654c1=arguments[_0x27f31c(0x1aa)],_0x3b8406=_0x5654c1<0x3?_0x277e03:_0x313506===null?_0x313506=Object[_0x27f31c(0x1b6)](_0x277e03,_0xd2f69d):_0x313506,_0x3a4368;if(typeof Reflect===_0x27f31c(0x1a6)&&typeof Reflect['decorate']===_0x27f31c(0x1ad))_0x3b8406=Reflect[_0x27f31c(0x1b4)](_0x2df7c5,_0x277e03,_0xd2f69d,_0x313506);else{for(var _0x54072d=_0x2df7c5[_0x27f31c(0x1aa)]-0x1;_0x54072d>=0x0;_0x54072d--)if(_0x3a4368=_0x2df7c5[_0x54072d])_0x3b8406=(_0x5654c1<0x3?_0x3a4368(_0x3b8406):_0x5654c1>0x3?_0x3a4368(_0x277e03,_0xd2f69d,_0x3b8406):_0x3a4368(_0x277e03,_0xd2f69d))||_0x3b8406;}return _0x5654c1>0x3&&_0x3b8406&&Object[_0x27f31c(0x1a0)](_0x277e03,_0xd2f69d,_0x3b8406),_0x3b8406;},__metadata=this&&this[a0_0x20388c(0x19d)]||function(_0x52d66b,_0xf2f315){var _0x2bbe03=a0_0x20388c;if(typeof Reflect===_0x2bbe03(0x1a6)&&typeof Reflect[_0x2bbe03(0x1b0)]===_0x2bbe03(0x1ad))return Reflect['metadata'](_0x52d66b,_0xf2f315);};function a0_0x3d50(){var _0x40f851=['config','4062256fAIMTK','defineProperty','204184JwolZb','__esModule','30UUKMCb','MidwayDecoratorService','207277ErEOca','object','constructor','(((.+)+)+)+$','MidwayApplicationManager','length','search','application','function','2479314eryNfn','@anncic-api/typeorm','metadata','CustomConfiguration','MidwayConfigService','1016EDHcvz','decorate','prototype','getOwnPropertyDescriptor','Configuration','toString','design:type','1FuBJKd','21590YQZoSZ','Inject','15908320OoufWk','6880077YECnNH','__metadata'];a0_0x3d50=function(){return _0x40f851;};return a0_0x3d50();}Object[a0_0x20388c(0x1a0)](exports,a0_0x20388c(0x1a2),{'value':!![]}),exports['CustomConfiguration']=void 0x0;const core_1=require('@midwayjs/core'),core_2=require('@midwayjs/core'),typeorm=require(a0_0x20388c(0x1af));let CustomConfiguration=class CustomConfiguration{};function a0_0x3e76(_0x26f489,_0x50e6a4){var _0x5d7b77=a0_0x3d50();return a0_0x3e76=function(_0x335bac,_0x865440){_0x335bac=_0x335bac-0x197;var _0x3d5042=_0x5d7b77[_0x335bac];return _0x3d5042;},a0_0x3e76(_0x26f489,_0x50e6a4);}exports[a0_0x20388c(0x1b1)]=CustomConfiguration,__decorate([(0x0,core_1[a0_0x20388c(0x19a)])(),__metadata(a0_0x20388c(0x197),core_2[a0_0x20388c(0x1b2)])],CustomConfiguration[a0_0x20388c(0x1b5)],a0_0x20388c(0x19e),void 0x0),__decorate([(0x0,core_1[a0_0x20388c(0x19a)])(),__metadata(a0_0x20388c(0x197),core_2[a0_0x20388c(0x1a4)])],CustomConfiguration[a0_0x20388c(0x1b5)],'decorator',void 0x0),__decorate([(0x0,core_1[a0_0x20388c(0x19a)])(),__metadata(a0_0x20388c(0x197),core_2[a0_0x20388c(0x1a9)])],CustomConfiguration['prototype'],a0_0x20388c(0x1ac),void 0x0),exports[a0_0x20388c(0x1b1)]=CustomConfiguration=__decorate([(0x0,core_1[a0_0x20388c(0x1b7)])({'conflictCheck':![],'imports':[typeorm],'namespace':'anncic-apihelper'})],CustomConfiguration);
|
package/dist/helper.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a1_0x311b03=a1_0x5157;function a1_0x50a0(){const _0x235c7a=['3167256CGwHdz','1369506XwYRFk','length','2bhbBPY','apply','toString','datetime','17257416pSkBKJ','date','160DmovMT','getProp','getEnum','188178bdxDWf','64930ZBJsYf','7sEoUlZ','hasOwnProperty','longtext','text','decimal','4806PIQaON','search','(((.+)+)+)+$','constructor','enum','replace','indexOf','substr','__esModule','4488456LmNEfo','string','split','timestamp','mediumtext','2470vvFlQX','defineProperty','json'];a1_0x50a0=function(){return _0x235c7a;};return a1_0x50a0();}(function(_0x478862,_0x118534){const _0x1a4ffc=a1_0x5157,_0x5d4c4f=_0x478862();while(!![]){try{const _0x33a0ef=-parseInt(_0x1a4ffc(0x98))/0x1+parseInt(_0x1a4ffc(0x8f))/0x2*(-parseInt(_0x1a4ffc(0x8d))/0x3)+parseInt(_0x1a4ffc(0x95))/0x4*(-parseInt(_0x1a4ffc(0x99))/0x5)+-parseInt(_0x1a4ffc(0x8c))/0x6*(parseInt(_0x1a4ffc(0x9a))/0x7)+parseInt(_0x1a4ffc(0xa8))/0x8+-parseInt(_0x1a4ffc(0x9f))/0x9*(parseInt(_0x1a4ffc(0x89))/0xa)+parseInt(_0x1a4ffc(0x93))/0xb;if(_0x33a0ef===_0x118534)break;else _0x5d4c4f['push'](_0x5d4c4f['shift']());}catch(_0x2c6de5){_0x5d4c4f['push'](_0x5d4c4f['shift']());}}}(a1_0x50a0,0x4ab63));const a1_0x57094f=(function(){let _0x2819c1=!![];return function(_0x51393d,_0x2ed499){const _0x2c7f8a=_0x2819c1?function(){const _0xf02ce=a1_0x5157;if(_0x2ed499){const _0x27f072=_0x2ed499[_0xf02ce(0x90)](_0x51393d,arguments);return _0x2ed499=null,_0x27f072;}}:function(){};return _0x2819c1=![],_0x2c7f8a;};}()),a1_0x4fdad0=a1_0x57094f(this,function(){const _0x4a5694=a1_0x5157;return a1_0x4fdad0[_0x4a5694(0x91)]()[_0x4a5694(0xa0)]('(((.+)+)+)+$')[_0x4a5694(0x91)]()[_0x4a5694(0xa2)](a1_0x4fdad0)['search'](_0x4a5694(0xa1));});a1_0x4fdad0();'use strict';function a1_0x5157(_0x1f365d,_0x5d04a9){const _0xfce4d4=a1_0x50a0();return a1_0x5157=function(_0x4fdad0,_0x57094f){_0x4fdad0=_0x4fdad0-0x89;let _0x50a076=_0xfce4d4[_0x4fdad0];return _0x50a076;},a1_0x5157(_0x1f365d,_0x5d04a9);}Object[a1_0x311b03(0x8a)](exports,a1_0x311b03(0xa7),{'value':!![]}),exports[a1_0x311b03(0x96)]=getProp,exports[a1_0x311b03(0x97)]=getEnum;const columnTypes={'json':a1_0x311b03(0x8b),'char':'string','varchar':'string','text':a1_0x311b03(0x9d),'longtext':a1_0x311b03(0x9c),'mediumtext':a1_0x311b03(0xac),'int':'number','float':'float','double':'float','decimal':a1_0x311b03(0x9e),'date':a1_0x311b03(0x94),'time':a1_0x311b03(0x92),'datetime':a1_0x311b03(0x92),'timestamp':a1_0x311b03(0xab),'tinyint':'tinyint'};function getProp(_0x5ebd3a){const _0x14bcbe=a1_0x311b03;if(columnTypes[_0x14bcbe(0x9b)](_0x5ebd3a))return columnTypes[_0x5ebd3a];else return _0x5ebd3a[_0x14bcbe(0xa5)]('(')>-0x1||_0x5ebd3a[_0x14bcbe(0xa5)]('\x20')>-0x1?(_0x5ebd3a=_0x5ebd3a[_0x14bcbe(0xa6)](0x0,_0x5ebd3a[_0x14bcbe(0xa5)]('(')>-0x1?_0x5ebd3a[_0x14bcbe(0xa5)]('('):_0x5ebd3a[_0x14bcbe(0xa5)]('\x20')),columnTypes[_0x5ebd3a]||_0x5ebd3a):_0x14bcbe(0xa9);}function getEnum(_0x4c74c7){const _0x37b63a=a1_0x311b03;if(getProp(_0x4c74c7)==_0x37b63a(0xa3))return _0x4c74c7[_0x37b63a(0xa6)](0x5,_0x4c74c7[_0x37b63a(0x8e)]-0x6)[_0x37b63a(0xa4)](/[\'|\"]/g,'')[_0x37b63a(0xaa)](',');return[];}
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a2_0x47f089=a2_0x1418;function a2_0x233b(){var _0x2fa0ca=['21ffJrJz','558iSTCeF','apply','334080Eojzdq','__esModule','defineProperty','267788wSjeWH','Configuration','8924447HIMjIf','(((.+)+)+)+$','search','145496QIMFqy','2042513pyazvV','toString','ApicreateService','140AzOsih','759350KSFLdV','./service/ApicreateService','CustomConfiguration','./configuration','374894IYleKJ','6WNgRxP'];a2_0x233b=function(){return _0x2fa0ca;};return a2_0x233b();}(function(_0x118907,_0x5ed1a4){var _0x2a0126=a2_0x1418,_0xfda1e5=_0x118907();while(!![]){try{var _0xb2e360=-parseInt(_0x2a0126(0x1af))/0x1+parseInt(_0x2a0126(0x1aa))/0x2+-parseInt(_0x2a0126(0x1ac))/0x3*(-parseInt(_0x2a0126(0x1b2))/0x4)+parseInt(_0x2a0126(0x1a6))/0x5+parseInt(_0x2a0126(0x1ab))/0x6*(-parseInt(_0x2a0126(0x19e))/0x7)+-parseInt(_0x2a0126(0x1a1))/0x8*(parseInt(_0x2a0126(0x1ad))/0x9)+-parseInt(_0x2a0126(0x1a5))/0xa*(-parseInt(_0x2a0126(0x1a2))/0xb);if(_0xb2e360===_0x5ed1a4)break;else _0xfda1e5['push'](_0xfda1e5['shift']());}catch(_0x3ce073){_0xfda1e5['push'](_0xfda1e5['shift']());}}}(a2_0x233b,0xa3cc1));var a2_0x5d0ebf=(function(){var _0x101c9c=!![];return function(_0x2e9813,_0x18cd1e){var _0x246f17=_0x101c9c?function(){var _0x697260=a2_0x1418;if(_0x18cd1e){var _0x3f86c2=_0x18cd1e[_0x697260(0x1ae)](_0x2e9813,arguments);return _0x18cd1e=null,_0x3f86c2;}}:function(){};return _0x101c9c=![],_0x246f17;};}()),a2_0x2ff5ec=a2_0x5d0ebf(this,function(){var _0x4c8f74=a2_0x1418;return a2_0x2ff5ec['toString']()[_0x4c8f74(0x1a0)]('(((.+)+)+)+$')[_0x4c8f74(0x1a3)]()['constructor'](a2_0x2ff5ec)[_0x4c8f74(0x1a0)](_0x4c8f74(0x19f));});a2_0x2ff5ec();'use strict';Object[a2_0x47f089(0x1b1)](exports,a2_0x47f089(0x1b0),{'value':!![]}),exports[a2_0x47f089(0x19d)]=exports[a2_0x47f089(0x1a4)]=void 0x0;var ApicreateService_1=require(a2_0x47f089(0x1a7));function a2_0x1418(_0xf9c796,_0x2364f8){var _0x2b657a=a2_0x233b();return a2_0x1418=function(_0x2ff5ec,_0x5d0ebf){_0x2ff5ec=_0x2ff5ec-0x19d;var _0x233bf0=_0x2b657a[_0x2ff5ec];return _0x233bf0;},a2_0x1418(_0xf9c796,_0x2364f8);}Object['defineProperty'](exports,a2_0x47f089(0x1a4),{'enumerable':!![],'get':function(){var _0x1a2d9d=a2_0x47f089;return ApicreateService_1[_0x1a2d9d(0x1a4)];}});var configuration_1=require(a2_0x47f089(0x1a9));Object[a2_0x47f089(0x1b1)](exports,'Configuration',{'enumerable':!![],'get':function(){var _0x208257=a2_0x47f089;return configuration_1[_0x208257(0x1a8)];}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a3_0x49b53b=a3_0x4424;(function(_0x534a2f,_0xe946f0){const _0x5c3b4e=a3_0x4424,_0xb9616c=_0x534a2f();while(!![]){try{const _0x553cf3=parseInt(_0x5c3b4e(0x1ba))/0x1*(-parseInt(_0x5c3b4e(0x16a))/0x2)+parseInt(_0x5c3b4e(0x19b))/0x3+-parseInt(_0x5c3b4e(0x1be))/0x4*(parseInt(_0x5c3b4e(0x15a))/0x5)+parseInt(_0x5c3b4e(0x17a))/0x6+parseInt(_0x5c3b4e(0x149))/0x7*(-parseInt(_0x5c3b4e(0x190))/0x8)+-parseInt(_0x5c3b4e(0x191))/0x9+-parseInt(_0x5c3b4e(0x150))/0xa*(-parseInt(_0x5c3b4e(0x16e))/0xb);if(_0x553cf3===_0xe946f0)break;else _0xb9616c['push'](_0xb9616c['shift']());}catch(_0x4ce595){_0xb9616c['push'](_0xb9616c['shift']());}}}(a3_0x2ab9,0x7694d));const a3_0x1ac4d1=(function(){let _0x522229=!![];return function(_0x5237d8,_0x12e968){const _0xf2bbf0=_0x522229?function(){if(_0x12e968){const _0x166081=_0x12e968['apply'](_0x5237d8,arguments);return _0x12e968=null,_0x166081;}}:function(){};return _0x522229=![],_0xf2bbf0;};}()),a3_0x30acef=a3_0x1ac4d1(this,function(){const _0x3f9926=a3_0x4424;return a3_0x30acef['toString']()['search']('(((.+)+)+)+$')[_0x3f9926(0x14f)]()[_0x3f9926(0x146)](a3_0x30acef)[_0x3f9926(0x16c)]('(((.+)+)+)+$');});a3_0x30acef();'use strict';var __decorate=this&&this[a3_0x49b53b(0x171)]||function(_0x4c35b6,_0x13c17a,_0x29362e,_0x446ff8){const _0x50df41=a3_0x49b53b;var _0x9fbdb1=arguments[_0x50df41(0x17e)],_0x33cb0a=_0x9fbdb1<0x3?_0x13c17a:_0x446ff8===null?_0x446ff8=Object['getOwnPropertyDescriptor'](_0x13c17a,_0x29362e):_0x446ff8,_0x4b62db;if(typeof Reflect==='object'&&typeof Reflect[_0x50df41(0x1b7)]===_0x50df41(0x14d))_0x33cb0a=Reflect[_0x50df41(0x1b7)](_0x4c35b6,_0x13c17a,_0x29362e,_0x446ff8);else{for(var _0x248a7e=_0x4c35b6[_0x50df41(0x17e)]-0x1;_0x248a7e>=0x0;_0x248a7e--)if(_0x4b62db=_0x4c35b6[_0x248a7e])_0x33cb0a=(_0x9fbdb1<0x3?_0x4b62db(_0x33cb0a):_0x9fbdb1>0x3?_0x4b62db(_0x13c17a,_0x29362e,_0x33cb0a):_0x4b62db(_0x13c17a,_0x29362e))||_0x33cb0a;}return _0x9fbdb1>0x3&&_0x33cb0a&&Object[_0x50df41(0x1a8)](_0x13c17a,_0x29362e,_0x33cb0a),_0x33cb0a;},__metadata=this&&this['__metadata']||function(_0xef0079,_0x2ff5c0){const _0x14c0f8=a3_0x49b53b;if(typeof Reflect===_0x14c0f8(0x1a6)&&typeof Reflect[_0x14c0f8(0x1ac)]===_0x14c0f8(0x14d))return Reflect['metadata'](_0xef0079,_0x2ff5c0);};Object[a3_0x49b53b(0x1a8)](exports,a3_0x49b53b(0x158),{'value':!![]}),exports[a3_0x49b53b(0x175)]=void 0x0;const fs=require('fs'),path=require('path'),core_1=require(a3_0x49b53b(0x159)),typeorm_1=require(a3_0x49b53b(0x1b9)),core_2=require(a3_0x49b53b(0x159)),Common_1=require(a3_0x49b53b(0x166)),Event_1=require(a3_0x49b53b(0x15f)),Search_1=require(a3_0x49b53b(0x1b1)),Entities_1=require('../templateFun/Entities'),Handler_1=require(a3_0x49b53b(0x153)),Validator_1=require(a3_0x49b53b(0x194)),Action_1=require(a3_0x49b53b(0x1b4)),Api_1=require(a3_0x49b53b(0x18b)),Router_1=require(a3_0x49b53b(0x143)),Layout_1=require(a3_0x49b53b(0x1ae)),LayoutVue_1=require(a3_0x49b53b(0x189)),Validator_2=require('../templateVue/Validator'),Api_2=require(a3_0x49b53b(0x18e)),Router_2=require(a3_0x49b53b(0x183)),Layout_2=require('../templateVueV2/Layout'),LayoutVue_2=require(a3_0x49b53b(0x186)),Validator_3=require('../templateVueV2/Validator'),Api_3=require('../templateVueV3/Api'),Router_3=require('../templateVueV3/Router'),Layout_3=require('../templateVueV3/Layout'),LayoutVue_3=require('../templateVueV3/LayoutVue'),Validator_4=require(a3_0x49b53b(0x1b5));let ApicreateService=class ApicreateService{async['createApp'](_0x49cfb5){const _0x1ef58f=a3_0x49b53b;return await this['checkOption'](_0x49cfb5),await this[_0x1ef58f(0x1af)]({..._0x49cfb5,'apporbasic':'app'});}async[a3_0x49b53b(0x180)](_0x5b888b){const _0x5adf53=a3_0x49b53b;return await this[_0x5adf53(0x154)](_0x5b888b),await this[_0x5adf53(0x1af)]({..._0x5b888b,'apporbasic':'basic'});}async[a3_0x49b53b(0x169)](_0x2c5587){return await this['checkOption'](_0x2c5587),await this['createAction']({..._0x2c5587,'module':!![]});}async['createAction'](_0x5d7e9c){const _0x576777=a3_0x49b53b;var _0x38b0b9,_0x764ae9;!_0x5d7e9c[_0x576777(0x187)]&&(_0x5d7e9c['connection']=_0x576777(0x193));!_0x5d7e9c[_0x576777(0x1b2)]&&(_0x5d7e9c['apporbasic']=_0x576777(0x16b));const _0x3c0412=this[_0x576777(0x16b)]['getBaseDir'](),_0x9893f2=this[_0x576777(0x1a4)]['getDataSource'](_0x5d7e9c[_0x576777(0x187)]),_0x4cde9b=await _0x9893f2[_0x576777(0x173)](_0x576777(0x17b)+this[_0x576777(0x182)]['dataSource'][_0x5d7e9c[_0x576777(0x187)]][_0x576777(0x1a0)]+_0x576777(0x14a)+((_0x5d7e9c===null||_0x5d7e9c===void 0x0?void 0x0:_0x5d7e9c['table'])?_0x576777(0x1b6)+_0x5d7e9c['table']+'\x22':_0x576777(0x1bd)+(_0x5d7e9c[_0x576777(0x1b8)]||'')+'%\x22'))||[];for(let _0x4d61c9=0x0;_0x4d61c9<_0x4cde9b[_0x576777(0x17e)];_0x4d61c9++){const _0x8e52c1=_0x4cde9b[_0x4d61c9][_0x576777(0x198)];if((_0x5d7e9c===null||_0x5d7e9c===void 0x0?void 0x0:_0x5d7e9c[_0x576777(0x198)])&&(_0x5d7e9c===null||_0x5d7e9c===void 0x0?void 0x0:_0x5d7e9c[_0x576777(0x198)])!=_0x8e52c1)continue;if((_0x5d7e9c===null||_0x5d7e9c===void 0x0?void 0x0:_0x5d7e9c['tableprefix'])&&!(_0x8e52c1===null||_0x8e52c1===void 0x0?void 0x0:_0x8e52c1[_0x576777(0x16f)](_0x5d7e9c[_0x576777(0x1b8)])))continue;const _0xd6170a=await _0x9893f2[_0x576777(0x173)](_0x576777(0x162)+this[_0x576777(0x182)]['dataSource'][_0x5d7e9c[_0x576777(0x187)]][_0x576777(0x1a0)]+'\x22\x20AND\x20table_name\x20=\x20\x27'+_0x8e52c1+'\x27')||[];if((_0x38b0b9=_0xd6170a[0x0])===null||_0x38b0b9===void 0x0?void 0x0:_0x38b0b9[_0x576777(0x147)]){const _0x34b9bd={'tablename':_0x8e52c1,'Primary':{},'Fields':{},'Comment':(_0x764ae9=_0xd6170a[0x0])===null||_0x764ae9===void 0x0?void 0x0:_0x764ae9[_0x576777(0x147)],'vuedialog':_0x5d7e9c['vuedialog'],'apporbasic':_0x5d7e9c[_0x576777(0x1b2)]};_0x34b9bd[_0x576777(0x1a7)]=_0x8e52c1['substr']((_0x5d7e9c===null||_0x5d7e9c===void 0x0?void 0x0:_0x5d7e9c[_0x576777(0x195)])||0x0,_0x8e52c1[_0x576777(0x17e)]),_0x34b9bd[_0x576777(0x19a)]=(_0x5d7e9c===null||_0x5d7e9c===void 0x0?void 0x0:_0x5d7e9c[_0x576777(0x15e)])?_0x3c0412+'/apps/'+_0x34b9bd[_0x576777(0x1a7)][_0x576777(0x1a9)]('_')[0x0][_0x576777(0x18f)]():_0x3c0412+'/'+_0x5d7e9c['apporbasic'];const _0x45150c=_0x34b9bd[_0x576777(0x1a7)][_0x576777(0x1a9)]('_')['filter'](_0x389ae9=>_0x389ae9&&_0x389ae9[_0x576777(0x1b3)]());(_0x5d7e9c===null||_0x5d7e9c===void 0x0?void 0x0:_0x5d7e9c[_0x576777(0x15e)])&&(await this[_0x576777(0x18a)](_0x34b9bd),_0x34b9bd[_0x576777(0x14c)]=_0x45150c[0x0][_0x576777(0x18f)]());_0x34b9bd['tablestartLow']=_0x45150c[_0x576777(0x19f)](_0x23176c=>_0x23176c[_0x576777(0x18f)]())[_0x576777(0x168)](''),_0x34b9bd[_0x576777(0x1a1)]=_0x45150c[_0x576777(0x19f)](_0x46af60=>''+_0x46af60[_0x576777(0x161)](0x0,0x1)[_0x576777(0x178)]()+_0x46af60[_0x576777(0x161)](0x1)[_0x576777(0x18f)]())[_0x576777(0x168)]('');(_0x34b9bd===null||_0x34b9bd===void 0x0?void 0x0:_0x34b9bd[_0x576777(0x14c)])&&_0x45150c[_0x576777(0x17e)]>0x1&&_0x45150c[0x0]['toLowerCase']()==_0x34b9bd[_0x576777(0x14c)]?(_0x34b9bd[_0x576777(0x1a2)]=_0x34b9bd[_0x576777(0x1a1)][_0x576777(0x161)](_0x34b9bd[_0x576777(0x14c)][_0x576777(0x17e)],_0x34b9bd[_0x576777(0x1a1)][_0x576777(0x17e)]),_0x34b9bd[_0x576777(0x17d)]=_0x34b9bd[_0x576777(0x142)]['substring'](_0x34b9bd[_0x576777(0x14c)][_0x576777(0x17e)],_0x34b9bd['tablestartLow'][_0x576777(0x17e)])):(_0x34b9bd[_0x576777(0x1a2)]=_0x34b9bd['tablestartUp'],_0x34b9bd['tablestartLowShort']=_0x34b9bd[_0x576777(0x142)]);_0x34b9bd[_0x576777(0x1a3)]=_0x34b9bd['tablestartUpShort'][_0x576777(0x167)](/\/{2,}/g,'/')[_0x576777(0x165)](/[\/|A-Z]*[^A-Z]+/g)[_0x576777(0x168)]('-')[_0x576777(0x18f)]()[_0x576777(0x167)](/\/\-/g,'/');for(let _0x46f2b1 of await _0x9893f2['query']('SHOW\x20FULL\x20COLUMNS\x20FROM\x20`'+_0x8e52c1+'`')){_0x46f2b1[_0x576777(0x18c)]==_0x576777(0x19d)?_0x34b9bd['Primary']=_0x46f2b1:_0x34b9bd['Fields'][_0x46f2b1[_0x576777(0x170)]]=_0x46f2b1;}if((_0x5d7e9c===null||_0x5d7e9c===void 0x0?void 0x0:_0x5d7e9c[_0x576777(0x181)])&&!fs['existsSync'](_0x34b9bd[_0x576777(0x19a)]+_0x576777(0x163)+_0x34b9bd[_0x576777(0x1a2)]+_0x576777(0x172))){var _0x190d7f=[];if(typeof(_0x5d7e9c===null||_0x5d7e9c===void 0x0?void 0x0:_0x5d7e9c[_0x576777(0x181)])=='string')_0x190d7f=[_0x5d7e9c===null||_0x5d7e9c===void 0x0?void 0x0:_0x5d7e9c[_0x576777(0x181)]];else Array[_0x576777(0x152)](_0x5d7e9c===null||_0x5d7e9c===void 0x0?void 0x0:_0x5d7e9c['controller'])?_0x190d7f=_0x5d7e9c===null||_0x5d7e9c===void 0x0?void 0x0:_0x5d7e9c[_0x576777(0x181)]:_0x190d7f=[!![]];_0x34b9bd[_0x576777(0x145)]=_0x190d7f,await(0x0,Search_1[_0x576777(0x193)])(_0x34b9bd),await(0x0,Entities_1['default'])(_0x34b9bd),await(0x0,Common_1[_0x576777(0x193)])(_0x34b9bd),await(0x0,Event_1['default'])(_0x34b9bd),await(0x0,Handler_1[_0x576777(0x193)])(_0x34b9bd),await(0x0,Validator_1[_0x576777(0x193)])(_0x34b9bd);for(let _0x119dac of _0x190d7f){_0x34b9bd[_0x576777(0x181)]=_0x119dac,await(0x0,Action_1['default'])(_0x34b9bd);}}if(_0x5d7e9c===null||_0x5d7e9c===void 0x0?void 0x0:_0x5d7e9c['hasvue']){var _0x190d7f=[];if(typeof(_0x5d7e9c===null||_0x5d7e9c===void 0x0?void 0x0:_0x5d7e9c[_0x576777(0x181)])==_0x576777(0x156))_0x190d7f=[_0x5d7e9c===null||_0x5d7e9c===void 0x0?void 0x0:_0x5d7e9c['controller']];else Array['isArray'](_0x5d7e9c===null||_0x5d7e9c===void 0x0?void 0x0:_0x5d7e9c[_0x576777(0x181)])?_0x190d7f=_0x5d7e9c===null||_0x5d7e9c===void 0x0?void 0x0:_0x5d7e9c[_0x576777(0x181)]:_0x190d7f=[!![]];if(_0x5d7e9c['hasvue']=='v2')for(let _0x577959 of _0x190d7f){_0x34b9bd[_0x576777(0x181)]=_0x577959;let _0x5859b0=process['cwd']()+_0x576777(0x164)+(typeof _0x34b9bd['controller']=='string'?'/'+_0x34b9bd[_0x576777(0x181)]:'');_0x34b9bd[_0x576777(0x14c)]?_0x5859b0=_0x5859b0+('/apis/apps/'+_0x34b9bd[_0x576777(0x14c)]+_0x576777(0x1ad)+_0x34b9bd['tablestartUpShort']+'.js'):_0x5859b0=_0x5859b0+(_0x576777(0x1ad)+_0x34b9bd['apporbasic']+'/apis/'+_0x34b9bd[_0x576777(0x1a2)]+_0x576777(0x15d)),!fs[_0x576777(0x176)](_0x5859b0)&&(await(0x0,Api_2['default'])(_0x34b9bd),await(0x0,Router_2[_0x576777(0x193)])(_0x34b9bd),await(0x0,Layout_2[_0x576777(0x193)])(_0x34b9bd),await(0x0,LayoutVue_2['default'])(_0x34b9bd),await(0x0,Validator_3['default'])(_0x34b9bd));}else{if(_0x5d7e9c['hasvue']=='v3')for(let _0x19a4ef of _0x190d7f){_0x34b9bd[_0x576777(0x181)]=_0x19a4ef;let _0x377226=process['cwd']()+_0x576777(0x164)+(typeof _0x34b9bd[_0x576777(0x181)]==_0x576777(0x156)?'/'+_0x34b9bd[_0x576777(0x181)]:'');_0x34b9bd[_0x576777(0x14c)]?_0x377226=_0x377226+(_0x576777(0x15c)+_0x34b9bd[_0x576777(0x14c)]+_0x576777(0x1ad)+_0x34b9bd[_0x576777(0x1a2)]+_0x576777(0x15d)):_0x377226=_0x377226+('/apis/'+_0x34b9bd[_0x576777(0x1b2)]+'/apis/'+_0x34b9bd[_0x576777(0x1a2)]+_0x576777(0x15d)),!fs[_0x576777(0x176)](_0x377226)&&(await(0x0,Api_3[_0x576777(0x193)])(_0x34b9bd),await(0x0,Router_3[_0x576777(0x193)])(_0x34b9bd),await(0x0,Layout_3[_0x576777(0x193)])(_0x34b9bd),await(0x0,LayoutVue_3['default'])(_0x34b9bd),await(0x0,Validator_4[_0x576777(0x193)])(_0x34b9bd));}else for(let _0x1cad78 of _0x190d7f){_0x34b9bd[_0x576777(0x181)]=_0x1cad78;let _0x50961f=process[_0x576777(0x144)]()+_0x576777(0x164)+(typeof _0x34b9bd['controller']==_0x576777(0x156)?'/'+_0x34b9bd[_0x576777(0x181)]:'');_0x34b9bd['moduleName']?_0x50961f=_0x50961f+(_0x576777(0x179)+_0x34b9bd[_0x576777(0x14c)]+_0x576777(0x185)+_0x34b9bd[_0x576777(0x1a3)]+'.js'):_0x50961f=_0x50961f+(_0x576777(0x196)+_0x34b9bd[_0x576777(0x1b2)]+'/api/'+_0x34b9bd['tablestartUpShort2']+_0x576777(0x15d)),!fs[_0x576777(0x176)](_0x50961f)&&(await(0x0,Api_1['default'])(_0x34b9bd),await(0x0,Router_1[_0x576777(0x193)])(_0x34b9bd),await(0x0,Layout_1[_0x576777(0x193)])(_0x34b9bd),await(0x0,LayoutVue_1[_0x576777(0x193)])(_0x34b9bd),await(0x0,Validator_2[_0x576777(0x193)])(_0x34b9bd));}}}}else console['error']('表:'+_0x8e52c1+'\x20表注释不存在');}return _0x576777(0x17c);}async[a3_0x49b53b(0x154)](_0x187ade){const _0x5bc977=a3_0x49b53b;var _0x186724,_0x262c16,_0x32c330;if(!this['environment'][_0x5bc977(0x151)]()||!((_0x186724=this[_0x5bc977(0x182)])===null||_0x186724===void 0x0?void 0x0:_0x186724[_0x5bc977(0x177)])||!this[_0x5bc977(0x16b)][_0x5bc977(0x17f)]('apitest'))throw new Error(_0x5bc977(0x1bb));!_0x187ade['connection']&&(_0x187ade[_0x5bc977(0x187)]=_0x5bc977(0x193));if(!((_0x32c330=(_0x262c16=this[_0x5bc977(0x182)])===null||_0x262c16===void 0x0?void 0x0:_0x262c16[_0x5bc977(0x177)])===null||_0x32c330===void 0x0?void 0x0:_0x32c330[_0x187ade['connection']]))throw new Error(_0x5bc977(0x1aa)+_0x187ade[_0x5bc977(0x187)]);if(!this[_0x5bc977(0x1a4)][_0x5bc977(0x1bc)](_0x187ade['connection']))throw new Error(_0x5bc977(0x19e)+_0x187ade[_0x5bc977(0x187)]+_0x5bc977(0x148));if(!this[_0x5bc977(0x1a4)][_0x5bc977(0x188)](_0x187ade['connection']))throw new Error('typeorm\x20数据源\x20'+_0x187ade[_0x5bc977(0x187)]+_0x5bc977(0x1a5));return!![];}async[a3_0x49b53b(0x18a)](_0x2fafdb){const _0x5b4288=a3_0x49b53b,_0x597c8d=_0x2fafdb[_0x5b4288(0x1a7)]['split']('_')[0x0][_0x5b4288(0x18f)]();if(!fs['existsSync'](_0x2fafdb['basedir']+'/config.ts')){let _0x4485f4=_0x5b4288(0x174)+(_0x2fafdb[_0x5b4288(0x199)]||_0x597c8d)+'\x27,\x0a\x20\x20\x20\x20description:\x20\x27\x27,\x0a\x20\x20\x20\x20middleware:\x20[],\x0a}';fs[_0x5b4288(0x1b0)](path[_0x5b4288(0x197)](_0x2fafdb['basedir']+'/config.ts'),{'recursive':!![]}),fs[_0x5b4288(0x14e)](_0x2fafdb[_0x5b4288(0x19a)]+_0x5b4288(0x16d),_0x4485f4,_0x5b4288(0x1ab));}}};function a3_0x4424(_0x47ef84,_0x12723c){const _0x4d4353=a3_0x2ab9();return a3_0x4424=function(_0x30acef,_0x1ac4d1){_0x30acef=_0x30acef-0x142;let _0x2ab97c=_0x4d4353[_0x30acef];return _0x2ab97c;},a3_0x4424(_0x47ef84,_0x12723c);}function a3_0x2ab9(){const _0x3d56a5=['hasDataSource','LIKE\x20\x22','3559628OTNxgg','tablestartLow','../templateVue/Router','cwd','controllers','constructor','comment','\x20不存在','518ZmAIgk','\x22\x20AND\x20table_name\x20','Singleton','moduleName','function','writeFileSync','toString','19431970oLCbqi','isDevelopmentEnvironment','isArray','../templateFun/Handler','checkOption','TypeORMDataSourceManager','string','Inject','__esModule','@midwayjs/core','5wVXUKH','typeorm','/apis/apps/','.js','module','../templateFun/Event','MidwayEnvironmentService','substring','SELECT\x20TABLE_COMMENT\x20as\x20`comment`\x20FROM\x20information_schema.TABLES\x20WHERE\x20TABLE_SCHEMA=\x22','/exceptions/','/vue','match','../templateFun/Common','replace','join','createPlugin','2WFHVYg','app','search','/config.ts','11smGYPc','startsWith','Field','__decorate','.ts','query','export\x20default\x20{\x0a\x20\x20\x20\x20name:\x20\x27','ApicreateService','existsSync','dataSource','toUpperCase','/pages/apps/','2697360AFrLcN','SELECT\x20TABLE_NAME\x20as\x20`table`\x20FROM\x20information_schema.TABLES\x20WHERE\x20TABLE_SCHEMA=\x22','die','tablestartLowShort','length','getConfig','createBasic','controller','config','../templateVueV2/Router','Scope','/api/','../templateVueV2/LayoutVue','connection','isConnected','../templateVue/LayoutVue','CreateModuleConfig','../templateVue/Api','Key','design:type','../templateVueV2/Api','toLowerCase','136maCaKT','3732948vRniFC','prototype','default','../templateFun/Validator','substr','/pages/','dirname','table','Comment','basedir','670161LRKfPv','Provide','PRI','typeorm\x20数据源\x20','map','database','tablestartUp','tablestartUpShort','tablestartUpShort2','dataSourceManager','\x20未连接','object','tablestart','defineProperty','split','typeorm\x20未配置数据源\x20','utf-8','metadata','/apis/','../templateVue/Layout','createAction','mkdirSync','../templateFun/Search','apporbasic','trim','../templateFun/Action','../templateVueV3/Validator','=\x20\x22','decorate','tableprefix','@midwayjs/typeorm','824498vsgekg','无法生成'];a3_0x2ab9=function(){return _0x3d56a5;};return a3_0x2ab9();}exports[a3_0x49b53b(0x175)]=ApicreateService,__decorate([(0x0,core_2['App'])(),__metadata(a3_0x49b53b(0x18d),Object)],ApicreateService['prototype'],'app',void 0x0),__decorate([(0x0,core_2['Config'])(a3_0x49b53b(0x15b)),__metadata('design:type',Object)],ApicreateService[a3_0x49b53b(0x192)],a3_0x49b53b(0x182),void 0x0),__decorate([(0x0,core_2[a3_0x49b53b(0x157)])(),__metadata(a3_0x49b53b(0x18d),core_1[a3_0x49b53b(0x160)])],ApicreateService[a3_0x49b53b(0x192)],'environment',void 0x0),__decorate([(0x0,core_2[a3_0x49b53b(0x157)])(),__metadata(a3_0x49b53b(0x18d),typeorm_1[a3_0x49b53b(0x155)])],ApicreateService['prototype'],a3_0x49b53b(0x1a4),void 0x0),exports[a3_0x49b53b(0x175)]=ApicreateService=__decorate([(0x0,core_2[a3_0x49b53b(0x19c)])(a3_0x49b53b(0x175)),(0x0,core_2[a3_0x49b53b(0x184)])(core_2['ScopeEnum'][a3_0x49b53b(0x14b)])],ApicreateService);
|
|
1
|
+
const a3_0x30736d=a3_0xf443;(function(_0x23ead7,_0x2759c9){const _0x4335dc=a3_0xf443,_0x264d53=_0x23ead7();while(!![]){try{const _0x14c3ec=-parseInt(_0x4335dc(0x224))/0x1+parseInt(_0x4335dc(0x20f))/0x2+-parseInt(_0x4335dc(0x1f1))/0x3+-parseInt(_0x4335dc(0x243))/0x4*(-parseInt(_0x4335dc(0x227))/0x5)+-parseInt(_0x4335dc(0x20a))/0x6*(-parseInt(_0x4335dc(0x22b))/0x7)+parseInt(_0x4335dc(0x1cc))/0x8*(parseInt(_0x4335dc(0x24f))/0x9)+parseInt(_0x4335dc(0x1df))/0xa*(-parseInt(_0x4335dc(0x203))/0xb);if(_0x14c3ec===_0x2759c9)break;else _0x264d53['push'](_0x264d53['shift']());}catch(_0xeb5c1){_0x264d53['push'](_0x264d53['shift']());}}}(a3_0x1745,0xcdf17));const a3_0x37162b=(function(){let _0x31fe61=!![];return function(_0x18a2bc,_0x1d3447){const _0xdf64ce=_0x31fe61?function(){const _0x329f22=a3_0xf443;if(_0x1d3447){const _0x1f9276=_0x1d3447[_0x329f22(0x23f)](_0x18a2bc,arguments);return _0x1d3447=null,_0x1f9276;}}:function(){};return _0x31fe61=![],_0xdf64ce;};}()),a3_0xc02a75=a3_0x37162b(this,function(){const _0xfabb85=a3_0xf443;return a3_0xc02a75[_0xfabb85(0x230)]()[_0xfabb85(0x219)]('(((.+)+)+)+$')[_0xfabb85(0x230)]()['constructor'](a3_0xc02a75)['search'](_0xfabb85(0x1e0));});a3_0xc02a75();function a3_0x1745(){const _0x3e5eb0=['environment','64174EEorGO','MidwayEnvironmentService','\x22\x20AND\x20table_name\x20=\x20\x27','export\x20default\x20{\x0a\x20\x20\x20\x20name:\x20\x27','substring','../templateFun/Action','@midwayjs/typeorm','function','../templateVue/Api','decorate','search','checkOption','toLowerCase','tablestartUpShort','__decorate','Config','writeFileSync','module','/pages/apps/','typeorm\x20数据源\x20','tablestartLow','48355upFFLb','../templateVueV2/LayoutVue','/api/','2656265uMjtSJ','replace','error','controllers','7KUmnwD','../templateVue/Router','SHOW\x20FULL\x20COLUMNS\x20FROM\x20`','utf-8','../templateVueV3/Router','toString','\x20表注释不存在','typeorm\x20未配置数据源\x20','tablestartUpShort2','createApp','table','SELECT\x20TABLE_NAME\x20as\x20`table`\x20FROM\x20information_schema.TABLES\x20WHERE\x20TABLE_SCHEMA=\x22','/apis/','../templateVue/Layout','CreateModuleConfig','trim','.js','tablestartUp','basic','query','apply','default','moduleName','createBasic','4HtszGc','controller','Key','path','getBaseDir','SELECT\x20TABLE_COMMENT\x20as\x20`comment`\x20FROM\x20information_schema.TABLES\x20WHERE\x20TABLE_SCHEMA=\x22','cwd','comment','ScopeEnum','map','Fields','../templateVueV2/Router','5865894zNjMRv','basedir','match','filter','../templateFun/Validator','length','defineProperty','16yOOhUy','metadata','createPlugin','dataSource','ApicreateService','typeorm','../templateVue/LayoutVue','apitest','Comment','../templateVueV3/Validator','tablestart','=\x20\x22','dataSourceManager','hasDataSource','vuedialog','Inject','tablestartLowShort','connection','Singleton','9351820zSWCEf','(((.+)+)+)+$','design:type','existsSync','../templateVueV3/LayoutVue','die','/apps/','join','isArray','dirname','Field','split','/vue','string','tableprefix','@midwayjs/core','getConfig','LIKE\x20\x22','1048104kEbCrf','getOwnPropertyDescriptor','isDevelopmentEnvironment','getDataSource','prototype','substr','startsWith','/config.ts','../templateVueV2/Layout','database','\x20未连接','app','mkdirSync','../templateVueV3/Api','hasvue','Scope','config','../templateFun/Common','22eUXYVN','TypeORMDataSourceManager','apporbasic','toUpperCase','/apis/apps/','PRI','../templateFun/Search','7468548pWqrvW','无法生成','createAction','object'];a3_0x1745=function(){return _0x3e5eb0;};return a3_0x1745();}'use strict';var __decorate=this&&this[a3_0x30736d(0x21d)]||function(_0x4c06cb,_0x6319d6,_0x136a03,_0x523e40){const _0xc6e2b7=a3_0x30736d;var _0x2d45ea=arguments[_0xc6e2b7(0x1ca)],_0xda8818=_0x2d45ea<0x3?_0x6319d6:_0x523e40===null?_0x523e40=Object[_0xc6e2b7(0x1f2)](_0x6319d6,_0x136a03):_0x523e40,_0x3eed79;if(typeof Reflect===_0xc6e2b7(0x20d)&&typeof Reflect[_0xc6e2b7(0x218)]===_0xc6e2b7(0x216))_0xda8818=Reflect[_0xc6e2b7(0x218)](_0x4c06cb,_0x6319d6,_0x136a03,_0x523e40);else{for(var _0x2abcc9=_0x4c06cb[_0xc6e2b7(0x1ca)]-0x1;_0x2abcc9>=0x0;_0x2abcc9--)if(_0x3eed79=_0x4c06cb[_0x2abcc9])_0xda8818=(_0x2d45ea<0x3?_0x3eed79(_0xda8818):_0x2d45ea>0x3?_0x3eed79(_0x6319d6,_0x136a03,_0xda8818):_0x3eed79(_0x6319d6,_0x136a03))||_0xda8818;}return _0x2d45ea>0x3&&_0xda8818&&Object[_0xc6e2b7(0x1cb)](_0x6319d6,_0x136a03,_0xda8818),_0xda8818;},__metadata=this&&this['__metadata']||function(_0x3f18d6,_0x159e1a){const _0x5ea00f=a3_0x30736d;if(typeof Reflect==='object'&&typeof Reflect[_0x5ea00f(0x1cd)]===_0x5ea00f(0x216))return Reflect[_0x5ea00f(0x1cd)](_0x3f18d6,_0x159e1a);};Object[a3_0x30736d(0x1cb)](exports,'__esModule',{'value':!![]}),exports['ApicreateService']=void 0x0;function a3_0xf443(_0x3e5330,_0x5b50c8){const _0x43f121=a3_0x1745();return a3_0xf443=function(_0xc02a75,_0x37162b){_0xc02a75=_0xc02a75-0x1c7;let _0x17451d=_0x43f121[_0xc02a75];return _0x17451d;},a3_0xf443(_0x3e5330,_0x5b50c8);}const fs=require('fs'),path=require(a3_0x30736d(0x246)),core_1=require('@midwayjs/core'),typeorm_1=require(a3_0x30736d(0x215)),core_2=require(a3_0x30736d(0x1ee)),Common_1=require(a3_0x30736d(0x202)),Event_1=require('../templateFun/Event'),Search_1=require(a3_0x30736d(0x209)),Entities_1=require('../templateFun/Entities'),Handler_1=require('../templateFun/Handler'),Validator_1=require(a3_0x30736d(0x1c9)),Action_1=require(a3_0x30736d(0x214)),Api_1=require(a3_0x30736d(0x217)),Router_1=require(a3_0x30736d(0x22c)),Layout_1=require(a3_0x30736d(0x238)),LayoutVue_1=require(a3_0x30736d(0x1d2)),Validator_2=require('../templateVue/Validator'),Api_2=require('../templateVueV2/Api'),Router_2=require(a3_0x30736d(0x24e)),Layout_2=require(a3_0x30736d(0x1f9)),LayoutVue_2=require(a3_0x30736d(0x225)),Validator_3=require('../templateVueV2/Validator'),Api_3=require(a3_0x30736d(0x1fe)),Router_3=require(a3_0x30736d(0x22f)),Layout_3=require('../templateVueV3/Layout'),LayoutVue_3=require(a3_0x30736d(0x1e3)),Validator_4=require(a3_0x30736d(0x1d5));let ApicreateService=class ApicreateService{async[a3_0x30736d(0x234)](_0x3c0a89){const _0x2b9190=a3_0x30736d;return await this[_0x2b9190(0x21a)](_0x3c0a89),await this[_0x2b9190(0x20c)]({..._0x3c0a89,'apporbasic':_0x2b9190(0x1fc)});}async[a3_0x30736d(0x242)](_0x510453){const _0x500088=a3_0x30736d;return await this[_0x500088(0x21a)](_0x510453),await this[_0x500088(0x20c)]({..._0x510453,'apporbasic':_0x500088(0x23d)});}async[a3_0x30736d(0x1ce)](_0x5b72d0){const _0x588d23=a3_0x30736d;return await this['checkOption'](_0x5b72d0),await this[_0x588d23(0x20c)]({..._0x5b72d0,'module':!![]});}async[a3_0x30736d(0x20c)](_0x3d82b3){const _0x35e93b=a3_0x30736d;var _0x26495f,_0x14c302;!_0x3d82b3[_0x35e93b(0x1dd)]&&(_0x3d82b3[_0x35e93b(0x1dd)]=_0x35e93b(0x240));!_0x3d82b3[_0x35e93b(0x205)]&&(_0x3d82b3[_0x35e93b(0x205)]='app');const _0x35e3d2=this['app'][_0x35e93b(0x247)](),_0x1f4a17=this[_0x35e93b(0x1d8)][_0x35e93b(0x1f4)](_0x3d82b3[_0x35e93b(0x1dd)]),_0x11898e=await _0x1f4a17[_0x35e93b(0x23e)](_0x35e93b(0x236)+this['config'][_0x35e93b(0x1cf)][_0x3d82b3[_0x35e93b(0x1dd)]][_0x35e93b(0x1fa)]+'\x22\x20AND\x20table_name\x20'+((_0x3d82b3===null||_0x3d82b3===void 0x0?void 0x0:_0x3d82b3[_0x35e93b(0x235)])?_0x35e93b(0x1d7)+_0x3d82b3[_0x35e93b(0x235)]+'\x22':_0x35e93b(0x1f0)+(_0x3d82b3[_0x35e93b(0x1ed)]||'')+'%\x22'))||[];for(let _0xdce288=0x0;_0xdce288<_0x11898e['length'];_0xdce288++){const _0x3a86ed=_0x11898e[_0xdce288][_0x35e93b(0x235)];if((_0x3d82b3===null||_0x3d82b3===void 0x0?void 0x0:_0x3d82b3[_0x35e93b(0x235)])&&(_0x3d82b3===null||_0x3d82b3===void 0x0?void 0x0:_0x3d82b3[_0x35e93b(0x235)])!=_0x3a86ed)continue;if((_0x3d82b3===null||_0x3d82b3===void 0x0?void 0x0:_0x3d82b3[_0x35e93b(0x1ed)])&&!(_0x3a86ed===null||_0x3a86ed===void 0x0?void 0x0:_0x3a86ed[_0x35e93b(0x1f7)](_0x3d82b3[_0x35e93b(0x1ed)])))continue;const _0x209221=await _0x1f4a17['query'](_0x35e93b(0x248)+this[_0x35e93b(0x201)][_0x35e93b(0x1cf)][_0x3d82b3[_0x35e93b(0x1dd)]][_0x35e93b(0x1fa)]+_0x35e93b(0x211)+_0x3a86ed+'\x27')||[];if((_0x26495f=_0x209221[0x0])===null||_0x26495f===void 0x0?void 0x0:_0x26495f[_0x35e93b(0x24a)]){const _0x29c7a6={'tablename':_0x3a86ed,'Primary':{},'Fields':{},'Comment':(_0x14c302=_0x209221[0x0])===null||_0x14c302===void 0x0?void 0x0:_0x14c302[_0x35e93b(0x24a)],'vuedialog':_0x3d82b3[_0x35e93b(0x1da)],'apporbasic':_0x3d82b3['apporbasic']};_0x29c7a6['tablestart']=_0x3a86ed[_0x35e93b(0x1f6)]((_0x3d82b3===null||_0x3d82b3===void 0x0?void 0x0:_0x3d82b3['substr'])||0x0,_0x3a86ed[_0x35e93b(0x1ca)]),_0x29c7a6[_0x35e93b(0x250)]=(_0x3d82b3===null||_0x3d82b3===void 0x0?void 0x0:_0x3d82b3[_0x35e93b(0x220)])?_0x35e3d2+_0x35e93b(0x1e5)+_0x29c7a6['tablestart'][_0x35e93b(0x1ea)]('_')[0x0]['toLowerCase']():_0x35e3d2+'/'+_0x3d82b3['apporbasic'];const _0x124a01=_0x29c7a6[_0x35e93b(0x1d6)][_0x35e93b(0x1ea)]('_')[_0x35e93b(0x1c8)](_0x4cf0f1=>_0x4cf0f1&&_0x4cf0f1[_0x35e93b(0x23a)]());(_0x3d82b3===null||_0x3d82b3===void 0x0?void 0x0:_0x3d82b3[_0x35e93b(0x220)])&&(await this[_0x35e93b(0x239)](_0x29c7a6),_0x29c7a6[_0x35e93b(0x241)]=_0x124a01[0x0][_0x35e93b(0x21b)]());_0x29c7a6[_0x35e93b(0x223)]=_0x124a01[_0x35e93b(0x24c)](_0x58543d=>_0x58543d[_0x35e93b(0x21b)]())['join'](''),_0x29c7a6[_0x35e93b(0x23c)]=_0x124a01[_0x35e93b(0x24c)](_0x4c7507=>''+_0x4c7507[_0x35e93b(0x213)](0x0,0x1)[_0x35e93b(0x206)]()+_0x4c7507[_0x35e93b(0x213)](0x1)[_0x35e93b(0x21b)]())['join']('');(_0x29c7a6===null||_0x29c7a6===void 0x0?void 0x0:_0x29c7a6['moduleName'])&&_0x124a01[_0x35e93b(0x1ca)]>0x1&&_0x124a01[0x0]['toLowerCase']()==_0x29c7a6[_0x35e93b(0x241)]?(_0x29c7a6[_0x35e93b(0x21c)]=_0x29c7a6[_0x35e93b(0x23c)][_0x35e93b(0x213)](_0x29c7a6['moduleName'][_0x35e93b(0x1ca)],_0x29c7a6[_0x35e93b(0x23c)]['length']),_0x29c7a6['tablestartLowShort']=_0x29c7a6[_0x35e93b(0x223)][_0x35e93b(0x213)](_0x29c7a6[_0x35e93b(0x241)][_0x35e93b(0x1ca)],_0x29c7a6[_0x35e93b(0x223)]['length'])):(_0x29c7a6[_0x35e93b(0x21c)]=_0x29c7a6['tablestartUp'],_0x29c7a6[_0x35e93b(0x1dc)]=_0x29c7a6[_0x35e93b(0x223)]);_0x29c7a6[_0x35e93b(0x233)]=_0x29c7a6[_0x35e93b(0x21c)]['replace'](/\/{2,}/g,'/')[_0x35e93b(0x1c7)](/[\/|A-Z]*[^A-Z]+/g)[_0x35e93b(0x1e6)]('-')[_0x35e93b(0x21b)]()[_0x35e93b(0x228)](/\/\-/g,'/');for(let _0x1417be of await _0x1f4a17[_0x35e93b(0x23e)](_0x35e93b(0x22d)+_0x3a86ed+'`')){_0x1417be[_0x35e93b(0x245)]==_0x35e93b(0x208)?_0x29c7a6['Primary']=_0x1417be:_0x29c7a6[_0x35e93b(0x24d)][_0x1417be[_0x35e93b(0x1e9)]]=_0x1417be;}if((_0x3d82b3===null||_0x3d82b3===void 0x0?void 0x0:_0x3d82b3['controller'])&&!fs[_0x35e93b(0x1e2)](_0x29c7a6['basedir']+'/exceptions/'+_0x29c7a6['tablestartUpShort']+'.ts')){var _0x539b96=[];if(typeof(_0x3d82b3===null||_0x3d82b3===void 0x0?void 0x0:_0x3d82b3['controller'])=='string')_0x539b96=[_0x3d82b3===null||_0x3d82b3===void 0x0?void 0x0:_0x3d82b3[_0x35e93b(0x244)]];else Array[_0x35e93b(0x1e7)](_0x3d82b3===null||_0x3d82b3===void 0x0?void 0x0:_0x3d82b3[_0x35e93b(0x244)])?_0x539b96=_0x3d82b3===null||_0x3d82b3===void 0x0?void 0x0:_0x3d82b3[_0x35e93b(0x244)]:_0x539b96=[!![]];_0x29c7a6[_0x35e93b(0x22a)]=_0x539b96,await(0x0,Search_1[_0x35e93b(0x240)])(_0x29c7a6),await(0x0,Entities_1[_0x35e93b(0x240)])(_0x29c7a6),await(0x0,Common_1[_0x35e93b(0x240)])(_0x29c7a6),await(0x0,Event_1[_0x35e93b(0x240)])(_0x29c7a6),await(0x0,Handler_1[_0x35e93b(0x240)])(_0x29c7a6),await(0x0,Validator_1['default'])(_0x29c7a6);for(let _0xa4605e of _0x539b96){_0x29c7a6['controller']=_0xa4605e,await(0x0,Action_1[_0x35e93b(0x240)])(_0x29c7a6);}}if(_0x3d82b3===null||_0x3d82b3===void 0x0?void 0x0:_0x3d82b3[_0x35e93b(0x1ff)]){var _0x539b96=[];if(typeof(_0x3d82b3===null||_0x3d82b3===void 0x0?void 0x0:_0x3d82b3[_0x35e93b(0x244)])==_0x35e93b(0x1ec))_0x539b96=[_0x3d82b3===null||_0x3d82b3===void 0x0?void 0x0:_0x3d82b3[_0x35e93b(0x244)]];else Array[_0x35e93b(0x1e7)](_0x3d82b3===null||_0x3d82b3===void 0x0?void 0x0:_0x3d82b3['controller'])?_0x539b96=_0x3d82b3===null||_0x3d82b3===void 0x0?void 0x0:_0x3d82b3[_0x35e93b(0x244)]:_0x539b96=[!![]];if(_0x3d82b3[_0x35e93b(0x1ff)]=='v2')for(let _0x2f314b of _0x539b96){_0x29c7a6[_0x35e93b(0x244)]=_0x2f314b;let _0x203c46=process['cwd']()+_0x35e93b(0x1eb)+(typeof _0x29c7a6['controller']==_0x35e93b(0x1ec)?'/'+_0x29c7a6[_0x35e93b(0x244)]:'');_0x29c7a6[_0x35e93b(0x241)]?_0x203c46=_0x203c46+(_0x35e93b(0x207)+_0x29c7a6[_0x35e93b(0x241)]+_0x35e93b(0x237)+_0x29c7a6['tablestartUpShort']+_0x35e93b(0x23b)):_0x203c46=_0x203c46+(_0x35e93b(0x237)+_0x29c7a6['apporbasic']+_0x35e93b(0x237)+_0x29c7a6[_0x35e93b(0x21c)]+'.js'),!fs[_0x35e93b(0x1e2)](_0x203c46)&&(await(0x0,Api_2['default'])(_0x29c7a6),await(0x0,Router_2[_0x35e93b(0x240)])(_0x29c7a6),await(0x0,Layout_2['default'])(_0x29c7a6),await(0x0,LayoutVue_2['default'])(_0x29c7a6),await(0x0,Validator_3[_0x35e93b(0x240)])(_0x29c7a6));}else{if(_0x3d82b3[_0x35e93b(0x1ff)]=='v3')for(let _0x4d8383 of _0x539b96){_0x29c7a6[_0x35e93b(0x244)]=_0x4d8383;let _0x34f48d=process['cwd']()+_0x35e93b(0x1eb)+(typeof _0x29c7a6[_0x35e93b(0x244)]==_0x35e93b(0x1ec)?'/'+_0x29c7a6['controller']:'');_0x29c7a6[_0x35e93b(0x241)]?_0x34f48d=_0x34f48d+(_0x35e93b(0x207)+_0x29c7a6['moduleName']+_0x35e93b(0x237)+_0x29c7a6[_0x35e93b(0x21c)]+_0x35e93b(0x23b)):_0x34f48d=_0x34f48d+(_0x35e93b(0x237)+_0x29c7a6[_0x35e93b(0x205)]+_0x35e93b(0x237)+_0x29c7a6['tablestartUpShort']+'.js'),!fs[_0x35e93b(0x1e2)](_0x34f48d)&&(await(0x0,Api_3['default'])(_0x29c7a6),await(0x0,Router_3[_0x35e93b(0x240)])(_0x29c7a6),await(0x0,Layout_3[_0x35e93b(0x240)])(_0x29c7a6),await(0x0,LayoutVue_3[_0x35e93b(0x240)])(_0x29c7a6),await(0x0,Validator_4['default'])(_0x29c7a6));}else for(let _0xfed4f2 of _0x539b96){_0x29c7a6[_0x35e93b(0x244)]=_0xfed4f2;let _0x5317ed=process[_0x35e93b(0x249)]()+_0x35e93b(0x1eb)+(typeof _0x29c7a6[_0x35e93b(0x244)]==_0x35e93b(0x1ec)?'/'+_0x29c7a6[_0x35e93b(0x244)]:'');_0x29c7a6[_0x35e93b(0x241)]?_0x5317ed=_0x5317ed+(_0x35e93b(0x221)+_0x29c7a6[_0x35e93b(0x241)]+_0x35e93b(0x226)+_0x29c7a6[_0x35e93b(0x233)]+_0x35e93b(0x23b)):_0x5317ed=_0x5317ed+('/pages/'+_0x29c7a6[_0x35e93b(0x205)]+_0x35e93b(0x226)+_0x29c7a6[_0x35e93b(0x233)]+_0x35e93b(0x23b)),!fs[_0x35e93b(0x1e2)](_0x5317ed)&&(await(0x0,Api_1[_0x35e93b(0x240)])(_0x29c7a6),await(0x0,Router_1[_0x35e93b(0x240)])(_0x29c7a6),await(0x0,Layout_1[_0x35e93b(0x240)])(_0x29c7a6),await(0x0,LayoutVue_1[_0x35e93b(0x240)])(_0x29c7a6),await(0x0,Validator_2[_0x35e93b(0x240)])(_0x29c7a6));}}}}else console[_0x35e93b(0x229)]('表:'+_0x3a86ed+_0x35e93b(0x231));}return _0x35e93b(0x1e4);}async[a3_0x30736d(0x21a)](_0x43f184){const _0x4579c5=a3_0x30736d;var _0x32c677,_0x1d70ba,_0x4371af;if(!this[_0x4579c5(0x20e)][_0x4579c5(0x1f3)]()||!((_0x32c677=this[_0x4579c5(0x201)])===null||_0x32c677===void 0x0?void 0x0:_0x32c677['dataSource'])||!this[_0x4579c5(0x1fc)][_0x4579c5(0x1ef)](_0x4579c5(0x1d3)))throw new Error(_0x4579c5(0x20b));!_0x43f184['connection']&&(_0x43f184[_0x4579c5(0x1dd)]=_0x4579c5(0x240));if(!((_0x4371af=(_0x1d70ba=this[_0x4579c5(0x201)])===null||_0x1d70ba===void 0x0?void 0x0:_0x1d70ba[_0x4579c5(0x1cf)])===null||_0x4371af===void 0x0?void 0x0:_0x4371af[_0x43f184[_0x4579c5(0x1dd)]]))throw new Error(_0x4579c5(0x232)+_0x43f184[_0x4579c5(0x1dd)]);if(!this[_0x4579c5(0x1d8)][_0x4579c5(0x1d9)](_0x43f184[_0x4579c5(0x1dd)]))throw new Error(_0x4579c5(0x222)+_0x43f184[_0x4579c5(0x1dd)]+'\x20不存在');if(!this[_0x4579c5(0x1d8)]['isConnected'](_0x43f184[_0x4579c5(0x1dd)]))throw new Error(_0x4579c5(0x222)+_0x43f184[_0x4579c5(0x1dd)]+_0x4579c5(0x1fb));return!![];}async['CreateModuleConfig'](_0x2dda4f){const _0x3d04d6=a3_0x30736d,_0x2db452=_0x2dda4f['tablestart'][_0x3d04d6(0x1ea)]('_')[0x0][_0x3d04d6(0x21b)]();if(!fs['existsSync'](_0x2dda4f['basedir']+_0x3d04d6(0x1f8))){let _0x2f7bc0=_0x3d04d6(0x212)+(_0x2dda4f[_0x3d04d6(0x1d4)]||_0x2db452)+'\x27,\x0a\x20\x20\x20\x20description:\x20\x27\x27,\x0a\x20\x20\x20\x20middleware:\x20[],\x0a}';fs[_0x3d04d6(0x1fd)](path[_0x3d04d6(0x1e8)](_0x2dda4f[_0x3d04d6(0x250)]+_0x3d04d6(0x1f8)),{'recursive':!![]}),fs[_0x3d04d6(0x21f)](_0x2dda4f[_0x3d04d6(0x250)]+_0x3d04d6(0x1f8),_0x2f7bc0,_0x3d04d6(0x22e));}}};exports[a3_0x30736d(0x1d0)]=ApicreateService,__decorate([(0x0,core_2['App'])(),__metadata(a3_0x30736d(0x1e1),Object)],ApicreateService['prototype'],'app',void 0x0),__decorate([(0x0,core_2[a3_0x30736d(0x21e)])(a3_0x30736d(0x1d1)),__metadata(a3_0x30736d(0x1e1),Object)],ApicreateService[a3_0x30736d(0x1f5)],a3_0x30736d(0x201),void 0x0),__decorate([(0x0,core_2['Inject'])(),__metadata(a3_0x30736d(0x1e1),core_1[a3_0x30736d(0x210)])],ApicreateService[a3_0x30736d(0x1f5)],a3_0x30736d(0x20e),void 0x0),__decorate([(0x0,core_2[a3_0x30736d(0x1db)])(),__metadata(a3_0x30736d(0x1e1),typeorm_1[a3_0x30736d(0x204)])],ApicreateService[a3_0x30736d(0x1f5)],a3_0x30736d(0x1d8),void 0x0),exports[a3_0x30736d(0x1d0)]=ApicreateService=__decorate([(0x0,core_2['Provide'])(a3_0x30736d(0x1d0)),(0x0,core_2[a3_0x30736d(0x200)])(core_2[a3_0x30736d(0x24b)][a3_0x30736d(0x1de)])],ApicreateService);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a4_0x5f38(_0x2472ec,_0x390470){const _0x3e6e96=a4_0x5401();return a4_0x5f38=function(_0x3519ca,_0xe23c46){_0x3519ca=_0x3519ca-0x1b0;let _0x54011b=_0x3e6e96[_0x3519ca];return _0x54011b;},a4_0x5f38(_0x2472ec,_0x390470);}const a4_0x2da091=a4_0x5f38;(function(_0x1f3843,_0xbf3f20){const _0x2cbfe3=a4_0x5f38,_0x216a18=_0x1f3843();while(!![]){try{const _0xb39dac=parseInt(_0x2cbfe3(0x1b6))/0x1+-parseInt(_0x2cbfe3(0x1f3))/0x2+-parseInt(_0x2cbfe3(0x1ce))/0x3*(parseInt(_0x2cbfe3(0x1dd))/0x4)+parseInt(_0x2cbfe3(0x1c3))/0x5+parseInt(_0x2cbfe3(0x1bf))/0x6*(parseInt(_0x2cbfe3(0x1d5))/0x7)+-parseInt(_0x2cbfe3(0x1e9))/0x8+parseInt(_0x2cbfe3(0x1bb))/0x9;if(_0xb39dac===_0xbf3f20)break;else _0x216a18['push'](_0x216a18['shift']());}catch(_0x5e1bd0){_0x216a18['push'](_0x216a18['shift']());}}}(a4_0x5401,0x85d84));function a4_0x5401(){const _0x3f141d=['/validators/','/Search\x27;\x0a','import\x20{\x20Context\x20}\x20from\x20\x27@midwayjs/koa\x27;\x0a','Handler.detail(conditions);\x0a\x0a','toString','/Update\x27;\x0a\x0a','search','\x20\x20\x20\x20async\x20remove(conditions:\x20','\x20\x20\x20\x20\x20\x20\x20\x20return\x20this.ctx.ok(pagelist,\x20{\x20pageinfo,\x20pagetotal\x20});\x0a','Field','21IfaXGe','path','mediumtext','@/apps/','\x20\x20\x20\x20\x20\x20\x20\x20const\x20[pagelist,\x20pagetotal]\x20=\x20await\x20this.',')\x20{\x0a','DTOUpdate)\x20{\x0a','14rVcqAN','(((.+)+)+)+$','\x20\x20\x20\x20@Inject()\x20protected\x20','Handler:\x20','Handler.create(params);\x0a\x0a','\x20\x20\x20\x20@Action.post(\x27修改\x27,\x20\x27edit/:','\x20\x20\x20\x20\x20\x20\x20\x20const\x20conditions:\x20','existsSync','358508eaDdke',',\x20params:\x20','export\x20class\x20','constructor','DTOCreate\x20}\x20from\x20\x27','\x27;\x0a','\x20};\x0a\x0a','substring','string','\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','\x20\x20\x20\x20\x20\x20\x20\x20return\x20this.ctx.ok(tmpModel);\x0a','7948152zjYvlE','/controller/','writeFileSync','import\x20{\x20','dirname','\x20\x20\x20\x20}\x0a\x0a\x0a','\x20\x20\x20\x20\x20\x20\x20\x20const\x20removes\x20=\x20await\x20this.','DTOSearch)\x20{\x0a\x0a','Controller\x20{\x0a\x0a','import\x20{\x20Inject,\x20Action,\x20PageDTO\x20}\x20from\x20\x27anncic-api\x27;\x0a\x0a','421502WBskPe','\x20\x20\x20\x20async\x20update(','DTOSearch,\x20pageinfo:\x20PageDTO)\x20{\x0a\x0a','\x20\x20\x20\x20@Action.get(\x27列表\x27,\x20\x27list\x27)\x0a','\x20\x20\x20\x20async\x20index(conditions:\x20','\x20\x20\x20\x20@Action.post(\x27添加\x27,\x20\x27add\x27)\x0a','.ts','702329yXkUrE','utf-8','\x27)\x0a','DTOSearch\x20=\x20{\x20','\x20\x20\x20\x20\x20\x20\x20\x20const\x20tmpModel\x20=\x20await\x20this.','5389245dlgXBq','indexOf','../helper','Handler\x20}\x20from\x20\x27','2429172taZIan','Handler.update(conditions,\x20params);\x0a\x0a','Handler\x0a\x0a\x0a','getProp','1345145cEKJAE'];a4_0x5401=function(){return _0x3f141d;};return a4_0x5401();}const a4_0xe23c46=(function(){let _0xb9b3d4=!![];return function(_0x317471,_0xdef883){const _0x36343d=_0xb9b3d4?function(){if(_0xdef883){const _0x5da3e0=_0xdef883['apply'](_0x317471,arguments);return _0xdef883=null,_0x5da3e0;}}:function(){};return _0xb9b3d4=![],_0x36343d;};}()),a4_0x3519ca=a4_0xe23c46(this,function(){const _0x417db4=a4_0x5f38;return a4_0x3519ca[_0x417db4(0x1c8)]()[_0x417db4(0x1ca)](_0x417db4(0x1d6))['toString']()[_0x417db4(0x1e0)](a4_0x3519ca)[_0x417db4(0x1ca)]('(((.+)+)+)+$');});a4_0x3519ca();'use strict';Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports['default']=default_1;const fs=require('fs'),path_1=require(a4_0x2da091(0x1cf)),helper_1=require(a4_0x2da091(0x1bd));async function default_1({controller:_0x2a8b88,tablestartUp:_0xd5ce25,tablestartUpShort:_0x2a05f6,basedir:_0x58c03c,Primary:_0xf852c5,Comment:_0x37f978,moduleName:_0x21715d,apporbasic:_0x5da40f}){const _0x3ac738=a4_0x2da091;if(_0x2a8b88){const _0x134a7e=_0x58c03c+(typeof _0x2a8b88==_0x3ac738(0x1e5)?'/controller/'+_0x2a8b88+'/'+_0x2a05f6+_0x3ac738(0x1b5):_0x3ac738(0x1ea)+_0x2a05f6+_0x3ac738(0x1b5));if(!fs[_0x3ac738(0x1dc)](_0x134a7e)){let _0x5ec126='',_0xcaf5d5=['text',_0x3ac738(0x1d0),'string'][_0x3ac738(0x1bc)]((0x0,helper_1[_0x3ac738(0x1c2)])(_0xf852c5['Type']))==-0x1;_0x5ec126+=_0x3ac738(0x1c6),_0x5ec126+=_0x3ac738(0x1f2),_0x5ec126+=_0x3ac738(0x1ec)+_0xd5ce25+_0x3ac738(0x1be)+(typeof _0x21715d==_0x3ac738(0x1e5)?_0x3ac738(0x1d1)+_0x21715d:'@/'+_0x5da40f)+'/handlers/'+_0x2a05f6+_0x3ac738(0x1e2),_0x5ec126+=_0x3ac738(0x1ec)+_0xd5ce25+'DTOSearch\x20}\x20from\x20\x27'+(typeof _0x21715d==_0x3ac738(0x1e5)?_0x3ac738(0x1d1)+_0x21715d:'@/'+_0x5da40f)+_0x3ac738(0x1c4)+_0x2a05f6+_0x3ac738(0x1c5),_0x5ec126+=_0x3ac738(0x1ec)+_0xd5ce25+_0x3ac738(0x1e1)+(typeof _0x21715d==_0x3ac738(0x1e5)?_0x3ac738(0x1d1)+_0x21715d:'@/'+_0x5da40f)+'/validators/'+_0x2a05f6+'/Create\x27;\x0a',_0x5ec126+=_0x3ac738(0x1ec)+_0xd5ce25+'DTOUpdate\x20}\x20from\x20\x27'+(typeof _0x21715d==_0x3ac738(0x1e5)?_0x3ac738(0x1d1)+_0x21715d:'@/'+_0x5da40f)+'/validators/'+_0x2a05f6+_0x3ac738(0x1c9),_0x5ec126+='@Action(__filename,\x20\x27'+_0x37f978+_0x3ac738(0x1b8),_0x5ec126+=_0x3ac738(0x1df)+(typeof _0x2a8b88==_0x3ac738(0x1e5)?_0x2a8b88[_0x3ac738(0x1e4)](0x0,0x1)['toUpperCase']()+_0x2a8b88[_0x3ac738(0x1e4)](0x1):'')+_0xd5ce25+_0x3ac738(0x1f1),_0x5ec126+='\x20\x20\x20\x20@Inject()\x20protected\x20ctx:\x20Context;\x0a\x0a',_0x5ec126+=_0x3ac738(0x1d7)+_0xd5ce25+_0x3ac738(0x1d8)+_0xd5ce25+_0x3ac738(0x1c1),_0x5ec126+=_0x3ac738(0x1b2),_0x5ec126+=_0x3ac738(0x1b3)+_0xd5ce25+_0x3ac738(0x1b1),_0x5ec126+=_0x3ac738(0x1d2)+_0xd5ce25+'Handler.list(conditions,\x20pageinfo);\x0a\x0a',_0x5ec126+=_0x3ac738(0x1cc),_0x5ec126+=_0x3ac738(0x1ee),_0x5ec126+='\x20\x20\x20\x20@Action.get(\x27详情\x27,\x20\x27detail/:'+_0xf852c5[_0x3ac738(0x1cd)]+_0x3ac738(0x1b8),_0x5ec126+='\x20\x20\x20\x20async\x20detail('+_0xf852c5[_0x3ac738(0x1cd)]+':\x20'+(_0xcaf5d5?'number':'string')+_0x3ac738(0x1d3),_0x5ec126+=_0x3ac738(0x1db)+_0xd5ce25+_0x3ac738(0x1b9)+_0xf852c5[_0x3ac738(0x1cd)]+'\x20};\x0a\x0a',_0x5ec126+='\x20\x20\x20\x20\x20\x20\x20\x20const\x20tmpModel\x20=\x20await\x20this.'+_0xd5ce25+_0x3ac738(0x1c7),_0x5ec126+=_0x3ac738(0x1e8),_0x5ec126+=_0x3ac738(0x1ee),_0x5ec126+=_0x3ac738(0x1b4),_0x5ec126+='\x20\x20\x20\x20async\x20create(params:\x20'+_0xd5ce25+'DTOCreate)\x20{\x0a\x0a',_0x5ec126+=_0x3ac738(0x1ba)+_0xd5ce25+_0x3ac738(0x1d9),_0x5ec126+=_0x3ac738(0x1e8),_0x5ec126+='\x20\x20\x20\x20}\x0a\x0a\x0a',_0x5ec126+=_0x3ac738(0x1da)+_0xf852c5[_0x3ac738(0x1cd)]+_0x3ac738(0x1b8),_0x5ec126+=_0x3ac738(0x1b0)+_0xf852c5['Field']+':\x20'+(_0xcaf5d5?'number':_0x3ac738(0x1e5))+_0x3ac738(0x1de)+_0xd5ce25+_0x3ac738(0x1d4),_0x5ec126+='\x20\x20\x20\x20\x20\x20\x20\x20const\x20conditions:\x20'+_0xd5ce25+_0x3ac738(0x1b9)+_0xf852c5[_0x3ac738(0x1cd)]+_0x3ac738(0x1e3),_0x5ec126+='\x20\x20\x20\x20\x20\x20\x20\x20const\x20tmpModel\x20=\x20await\x20this.'+_0xd5ce25+_0x3ac738(0x1c0),_0x5ec126+=_0x3ac738(0x1e8),_0x5ec126+=_0x3ac738(0x1ee),_0x5ec126+=_0x3ac738(0x1e6),_0x5ec126+=_0x3ac738(0x1cb)+_0xd5ce25+_0x3ac738(0x1f0),_0x5ec126+=_0x3ac738(0x1ef)+_0xd5ce25+'Handler.remove(conditions);\x0a\x0a',_0x5ec126+=_0x3ac738(0x1e7),_0x5ec126+='\x20\x20\x20\x20}\x0a\x0a\x0a',_0x5ec126+='}',!fs[_0x3ac738(0x1dc)]((0x0,path_1[_0x3ac738(0x1ed)])(_0x134a7e))&&fs['mkdirSync']((0x0,path_1['dirname'])(_0x134a7e),{'recursive':!![]}),fs[_0x3ac738(0x1eb)](_0x134a7e,_0x5ec126,_0x3ac738(0x1b7));}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a5_0x4a420e=a5_0x3ea5;(function(_0x35f633,_0x2e0634){const _0x577fc9=a5_0x3ea5,_0x285714=_0x35f633();while(!![]){try{const _0x26effe=parseInt(_0x577fc9(0x137))/0x1+parseInt(_0x577fc9(0x131))/0x2+-parseInt(_0x577fc9(0x13c))/0x3*(parseInt(_0x577fc9(0x133))/0x4)+-parseInt(_0x577fc9(0x129))/0x5*(-parseInt(_0x577fc9(0x150))/0x6)+-parseInt(_0x577fc9(0x145))/0x7*(parseInt(_0x577fc9(0x142))/0x8)+-parseInt(_0x577fc9(0x128))/0x9+parseInt(_0x577fc9(0x140))/0xa*(parseInt(_0x577fc9(0x14a))/0xb);if(_0x26effe===_0x2e0634)break;else _0x285714['push'](_0x285714['shift']());}catch(_0x565800){_0x285714['push'](_0x285714['shift']());}}}(a5_0x50bc,0xd2b01));const a5_0x3e0298=(function(){let _0xa7475=!![];return function(_0x39a6aa,_0xb0c50){const _0x2e77a4=_0xa7475?function(){const _0x46f2ca=a5_0x3ea5;if(_0xb0c50){const _0x40576c=_0xb0c50[_0x46f2ca(0x13e)](_0x39a6aa,arguments);return _0xb0c50=null,_0x40576c;}}:function(){};return _0xa7475=![],_0x2e77a4;};}()),a5_0x4f4c95=a5_0x3e0298(this,function(){const _0x490785=a5_0x3ea5;return a5_0x4f4c95[_0x490785(0x14f)]()[_0x490785(0x12b)](_0x490785(0x13a))['toString']()[_0x490785(0x14c)](a5_0x4f4c95)[_0x490785(0x12b)](_0x490785(0x13a));});a5_0x4f4c95();function a5_0x50bc(){const _0x37b924=['/**\x0a','-常量设置\x0a','Type','145491rcwhYJ','toUpperCase','\x20*\x20','(((.+)+)+)+$','getProp','402MuWxMd','dirname','apply','\x27,\x20\x27开启','10vJHFWa','/exceptions/','12452408GrMTKa','_ON:\x20number\x20=\x201;\x0a\x0a','export\x20class\x20','7ysFlfx','/enums/','utf-8','\x20*\x20**/\x0a','\x20\x20\x20\x20@AnnEnumMsg(\x27','38536586YiYiAL','.ts','constructor','default','\x27)\x0a','toString','893358yBfxMW','\x27,\x20\x27关闭','../helper','6536592ahlUXm','15LHThXo','\x20\x20\x20\x20static\x20readonly\x20','search','mkdirSync','Enum\x20{\x0a\x0a','Comment','defineProperty','tinyint','390700nzhAkm','existsSync','34180PqmEFc'];a5_0x50bc=function(){return _0x37b924;};return a5_0x50bc();}'use strict';function a5_0x3ea5(_0x4233e4,_0x163ce8){const _0x44ad73=a5_0x50bc();return a5_0x3ea5=function(_0x4f4c95,_0x3e0298){_0x4f4c95=_0x4f4c95-0x126;let _0x50bc72=_0x44ad73[_0x4f4c95];return _0x50bc72;},a5_0x3ea5(_0x4233e4,_0x163ce8);}Object[a5_0x4a420e(0x12f)](exports,'__esModule',{'value':!![]}),exports[a5_0x4a420e(0x14d)]=default_1;const fs=require('fs'),path=require('path'),helper_1=require(a5_0x4a420e(0x127));async function default_1({tablestartUp:_0x4ac417,tablestartUpShort:_0x117d28,basedir:_0x33c307,Comment:_0x5318c5,Fields:_0x399585}){await entity_emum({'tablestartUp':_0x4ac417,'tablestartUpShort':_0x117d28,'basedir':_0x33c307,'Comment':_0x5318c5,'Fields':_0x399585}),await entity_exceptions({'tablestartUp':_0x4ac417,'tablestartUpShort':_0x117d28,'basedir':_0x33c307,'Comment':_0x5318c5});}async function entity_emum({tablestartUp:_0x4b28eb,tablestartUpShort:_0x50beac,basedir:_0x216ef6,Comment:_0x59cc7b,Fields:_0x3e663d}){const _0x547350=a5_0x4a420e,_0x3aa003=_0x216ef6+(_0x547350(0x146)+_0x50beac+'.ts');if(!fs[_0x547350(0x132)](_0x3aa003)){let _0x11ffdb='';_0x11ffdb+=_0x547350(0x134),_0x11ffdb+=_0x547350(0x139)+_0x59cc7b+_0x547350(0x135),_0x11ffdb+='\x20*\x20**/\x0a',_0x11ffdb+=_0x547350(0x144)+_0x4b28eb+_0x547350(0x12d);for(let _0x4eeab6 in _0x3e663d){let _0xfafc51=_0x3e663d[_0x4eeab6],_0x1fa148=(0x0,helper_1[_0x547350(0x13b)])(_0xfafc51[_0x547350(0x136)]);[_0x547350(0x130)]['indexOf'](_0x1fa148)!=-0x1&&(_0x11ffdb+=_0x547350(0x149)+_0x4eeab6+_0x547350(0x13f)+_0xfafc51[_0x547350(0x12e)]+_0x547350(0x14e),_0x11ffdb+=_0x547350(0x12a)+_0x4eeab6[_0x547350(0x138)]()+_0x547350(0x143),_0x11ffdb+=_0x547350(0x149)+_0x4eeab6+_0x547350(0x126)+_0xfafc51[_0x547350(0x12e)]+_0x547350(0x14e),_0x11ffdb+=_0x547350(0x12a)+_0x4eeab6[_0x547350(0x138)]()+'_OFF:\x20number\x20=\x200;\x0a\x0a\x0a');}_0x11ffdb+='}',!fs['existsSync'](path['dirname'](_0x3aa003))&&fs['mkdirSync'](path[_0x547350(0x13d)](_0x3aa003),{'recursive':!![]}),fs['writeFileSync'](_0x3aa003,_0x11ffdb,_0x547350(0x147));}}async function entity_exceptions({tablestartUp:_0x5afa97,tablestartUpShort:_0x217ce0,basedir:_0x425ecd,Comment:_0x5bdf0c}){const _0xa1a0bb=a5_0x4a420e,_0x23c647=_0x425ecd+(_0xa1a0bb(0x141)+_0x217ce0+_0xa1a0bb(0x14b));if(!fs[_0xa1a0bb(0x132)](_0x23c647)){let _0x37680f='';_0x37680f+='/**\x0a',_0x37680f+=_0xa1a0bb(0x139)+_0x5bdf0c+'-错误信息设置\x0a',_0x37680f+=_0xa1a0bb(0x148),_0x37680f+=_0xa1a0bb(0x144)+_0x5afa97+'Error\x20extends\x20AnnError\x20{\x0a\x0a',_0x37680f+='}',!fs['existsSync'](path[_0xa1a0bb(0x13d)](_0x23c647))&&fs[_0xa1a0bb(0x12c)](path['dirname'](_0x23c647),{'recursive':!![]}),fs['writeFileSync'](_0x23c647,_0x37680f,_0xa1a0bb(0x147));}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a6_0x2e33(){const _0x5a64e1=['10830ohjikn','datetime','import\x20{\x20ProvideRepository,\x20Repository\x20}\x20from\x20\x27@anncic-api/typeorm\x27;\x0a','99NEhXZg','\x27\x20|\x20\x27','toString','\x27,\x20enum:\x20[\x27','8463FcDuXu','%column%','mkdirSync','\x27;\x0a\x0a','true','string','\x20\x20\x20\x20@Column(\x27float\x27,\x20{\x20comment:\x20\x27','enum','apply','525107YklVZT','\x20\x20\x20\x20@PrimaryGeneratedColumn()\x0a','dirname','indexOf','\x20\x20\x20\x20','/entity.ts','\x20\x20\x20\x20@Column({\x20comment:\x20\x27默认显示排序\x27,\x20nullable:\x20true,\x20unique:\x20false\x20})\x0a','\x20extends\x20Repository<','\x20*\x20','\x20\x20\x20\x20@Column(\x27date\x27,\x20{\x20comment:\x20\x27','\x27,\x20\x27','\x27,\x20default:\x20\x27','YES','\x27\x20},\x20{\x20orderBy:\x20{\x20displayorder:\x20\x27DESC\x27\x20}\x20})\x0a','/entity\x27;\x0a\x0a','text','false','\x20\x20\x20\x20@Column(\x27text\x27,\x20{\x20comment:\x20\x27','Search)\x0a','import\x20{\x20','\x20\x20\x20\x20displayorder:\x20number;\x0a\x0a','/entities/','/**\x0a','writeFileSync','132vwQRgS','json','//\x20import\x20{\x20ManyToOne,\x20JoinColumn\x20}\x20from\x20\x27@anncic-api/typeorm\x27;\x0a','@ProvideRepository(','number','\x27,\x20nullable:\x20','__esModule',':\x20number;\x0a\x0a','\x27,\x20precision:\x2010,\x20scale:\x202,\x20default:\x200.00,\x20nullable:\x20','existsSync','\x20\x20\x20\x20@Column(\x27double\x27,\x20{\x20comment:\x20\x27','tinyint','search','join',':\x20\x27',':\x20string;\x0a\x0a','Entity>{\x0a\x0a','updated_at','replace','path','Entity\x20}\x20from\x20\x27','timestamp','mediumtext','1329784PIEXZk','\x20\x20\x20\x20@Column(\x27json\x27,\x20{\x20comment:\x20\x27','Field','\x27,\x20length:\x20188\x20})\x0a','\x20*\x20**/\x0a','540cEaAyW','\x20})\x0a','\x20\x20\x20\x20@Column(\x27tinyint\x27,\x20{\x20comment:\x20\x27','\x20\x20\x20\x20@Column(\x27enum\x27,\x20{\x20comment:\x20\x27','export\x20class\x20','created_at','PrimaryColumn','\x20\x20\x20\x20@Column(\x27decimal\x27,\x20{\x20comment:\x20\x27','PrimaryGeneratedColumn','Search\x20}\x20from\x20\x27','\x20\x20\x20\x20@Column({\x20comment:\x20\x27','Type',':\x20any\x20|\x20any[];\x0a\x0a','1144262gSjUnn','@ProvideEntity({\x20tableName:\x20\x27','45392AHjwMH','displayorder','constructor','2337Tskcfw','\x20\x20\x20\x20@Column(\x27timestamp\x27,\x20{\x20comment:\x20\x27','@ProvideSearch(',',\x20unique:\x20false\x20})\x0a','@/apps/','double','Null','190PUZOnK','Entity)\x0a','Entity\x20{\x0a\x0a','\x27]\x20})\x0a','Comment','utf-8','import\x20{\x20CreateDateColumn,\x20UpdateDateColumn,\x20DeleteDateColumn\x20}\x20from\x20\x27@anncic-api/typeorm\x27;\x0a','getProp','\x20\x20\x20\x20@Column(\x27mediumtext\x27,\x20{\x20comment:\x20\x27'];a6_0x2e33=function(){return _0x5a64e1;};return a6_0x2e33();}const a6_0x2f68bb=a6_0xde3f;(function(_0x3f9206,_0x13ae6b){const _0xf5b07f=a6_0xde3f,_0x1aaf65=_0x3f9206();while(!![]){try{const _0xfd9ebf=-parseInt(_0xf5b07f(0x12e))/0x1+-parseInt(_0xf5b07f(0x105))/0x2*(parseInt(_0xf5b07f(0x117))/0x3)+-parseInt(_0xf5b07f(0x100))/0x4+-parseInt(_0xf5b07f(0x127))/0x5*(-parseInt(_0xf5b07f(0x14f))/0x6)+-parseInt(_0xf5b07f(0x112))/0x7+-parseInt(_0xf5b07f(0x114))/0x8*(parseInt(_0xf5b07f(0x12a))/0x9)+-parseInt(_0xf5b07f(0x11e))/0xa*(-parseInt(_0xf5b07f(0x137))/0xb);if(_0xfd9ebf===_0x13ae6b)break;else _0x1aaf65['push'](_0x1aaf65['shift']());}catch(_0xf2e68){_0x1aaf65['push'](_0x1aaf65['shift']());}}}(a6_0x2e33,0x2b580));const a6_0x24ddc4=(function(){let _0x3015f8=!![];return function(_0x59d35f,_0x59fbec){const _0x3381f6=_0x3015f8?function(){const _0x23019c=a6_0xde3f;if(_0x59fbec){const _0x24b43a=_0x59fbec[_0x23019c(0x136)](_0x59d35f,arguments);return _0x59fbec=null,_0x24b43a;}}:function(){};return _0x3015f8=![],_0x3381f6;};}()),a6_0xfb423=a6_0x24ddc4(this,function(){const _0x4492bf=a6_0xde3f;return a6_0xfb423['toString']()['search']('(((.+)+)+)+$')[_0x4492bf(0x12c)]()[_0x4492bf(0x116)](a6_0xfb423)[_0x4492bf(0xf5)]('(((.+)+)+)+$');});a6_0xfb423();'use strict';function a6_0xde3f(_0x953b6c,_0x3886e4){const _0x53d777=a6_0x2e33();return a6_0xde3f=function(_0xfb423,_0x24ddc4){_0xfb423=_0xfb423-0xf2;let _0x2e3386=_0x53d777[_0xfb423];return _0x2e3386;},a6_0xde3f(_0x953b6c,_0x3886e4);}Object['defineProperty'](exports,a6_0x2f68bb(0x155),{'value':!![]}),exports['default']=default_1;const fs=require('fs'),path_1=require(a6_0x2f68bb(0xfc)),helper_1=require('../helper');async function default_1({tablename:_0x27f2df,tablestartUp:_0x5801c5,tablestartUpShort:_0xbd2685,basedir:_0x1ceee9,Primary:_0x122da6,Fields:_0x5728b2,Comment:_0x4da820,moduleName:_0x42f645,apporbasic:_0x34b95b}){await entity({'tablename':_0x27f2df,'tablestartUp':_0x5801c5,'tablestartUpShort':_0xbd2685,'basedir':_0x1ceee9,'Primary':_0x122da6,'Fields':_0x5728b2,'Comment':_0x4da820,'moduleName':_0x42f645,'apporbasic':_0x34b95b}),await repository({'tablestartUp':_0x5801c5,'tablestartUpShort':_0xbd2685,'basedir':_0x1ceee9,'Comment':_0x4da820,'moduleName':_0x42f645,'apporbasic':_0x34b95b});}async function entity({tablename:_0x20c401,tablestartUp:_0x1cf82b,tablestartUpShort:_0x3c5d01,basedir:_0x5b84b7,Primary:_0x4c0664,Fields:_0x456f7d,Comment:_0x3fe7d7,moduleName:_0x37e674,apporbasic:_0xcddfe5}){const _0x2e962f=a6_0x2f68bb,_0x5a087c=_0x5b84b7+('/entities/'+_0x3c5d01+_0x2e962f(0x13c));if(!fs[_0x2e962f(0xf2)](_0x5a087c)){let _0x45da96='',_0x5f224d='',_0x1afe63=[_0x2e962f(0x146),_0x2e962f(0xff),_0x2e962f(0x133)][_0x2e962f(0x13a)]((0x0,helper_1[_0x2e962f(0x125)])(_0x4c0664[_0x2e962f(0x110)]))==-0x1;_0x1afe63?(_0x45da96+=_0x2e962f(0x138),_0x45da96+=_0x2e962f(0x13b)+_0x4c0664['Field']+_0x2e962f(0x156)):(_0x45da96+='\x20\x20\x20\x20@PrimaryColumn({\x20comment:\x20\x27'+(_0x4c0664['Comment']||'标识')+_0x2e962f(0x103),_0x45da96+=_0x2e962f(0x13b)+_0x4c0664[_0x2e962f(0x102)]+':\x20string;\x0a\x0a');for(let _0x28433c in _0x456f7d){let _0x34f6bb=_0x456f7d[_0x28433c],_0x471a8=(0x0,helper_1[_0x2e962f(0x125)])(_0x34f6bb[_0x2e962f(0x110)]);if(_0x34f6bb[_0x2e962f(0x102)]==_0x2e962f(0x115)||_0x34f6bb[_0x2e962f(0x102)]==_0x2e962f(0x10a)||_0x34f6bb[_0x2e962f(0x102)]==_0x2e962f(0xfa)||_0x34f6bb[_0x2e962f(0x102)]=='deleted_at')continue;if(_0x471a8==_0x2e962f(0x150))_0x45da96+=_0x2e962f(0x101)+_0x34f6bb[_0x2e962f(0x122)]+'\x27,\x20nullable:\x20'+(_0x34f6bb[_0x2e962f(0x11d)]=='YES'?_0x2e962f(0x132):'false')+_0x2e962f(0x11a),_0x45da96+=_0x2e962f(0x13b)+_0x34f6bb['Field']+_0x2e962f(0x111);else{if(_0x471a8==_0x2e962f(0x135)){let _0x444256=(0x0,helper_1['getEnum'])(_0x34f6bb['Type']);_0x45da96+=_0x2e962f(0x108)+_0x34f6bb['Comment']+_0x2e962f(0x142)+(_0x444256[0x0]||'')+_0x2e962f(0x12d)+_0x444256['join'](_0x2e962f(0x141))+_0x2e962f(0x121),_0x45da96+=_0x2e962f(0x13b)+_0x34f6bb[_0x2e962f(0x102)]+_0x2e962f(0xf7)+_0x444256[_0x2e962f(0xf6)](_0x2e962f(0x12b))+_0x2e962f(0x131);}else{if(_0x471a8=='float')_0x45da96+=_0x2e962f(0x134)+_0x34f6bb[_0x2e962f(0x122)]+'\x27,\x20precision:\x2010,\x20scale:\x202,\x20default:\x200.00,\x20nullable:\x20'+(_0x34f6bb[_0x2e962f(0x11d)]==_0x2e962f(0x143)?_0x2e962f(0x132):_0x2e962f(0x147))+_0x2e962f(0x106),_0x45da96+=_0x2e962f(0x13b)+_0x34f6bb[_0x2e962f(0x102)]+':\x20number;\x0a\x0a';else{if(_0x471a8==_0x2e962f(0x11c))_0x45da96+=_0x2e962f(0xf3)+_0x34f6bb[_0x2e962f(0x122)]+_0x2e962f(0x157)+(_0x34f6bb['Null']=='YES'?'true':_0x2e962f(0x147))+'\x20})\x0a',_0x45da96+='\x20\x20\x20\x20'+_0x34f6bb[_0x2e962f(0x102)]+_0x2e962f(0x156);else{if(_0x471a8=='decimal')_0x45da96+=_0x2e962f(0x10c)+_0x34f6bb[_0x2e962f(0x122)]+'\x27,\x20precision:\x2024,\x20scale:\x202,\x20default:\x200.00,\x20nullable:\x20'+(_0x34f6bb['Null']==_0x2e962f(0x143)?_0x2e962f(0x132):_0x2e962f(0x147))+_0x2e962f(0x106),_0x45da96+='\x20\x20\x20\x20'+_0x34f6bb[_0x2e962f(0x102)]+':\x20number;\x0a\x0a';else{if(_0x471a8==_0x2e962f(0x153))_0x45da96+='\x20\x20\x20\x20@Column({\x20comment:\x20\x27'+_0x34f6bb[_0x2e962f(0x122)]+_0x2e962f(0x154)+(_0x34f6bb[_0x2e962f(0x11d)]==_0x2e962f(0x143)?_0x2e962f(0x132):_0x2e962f(0x147))+_0x2e962f(0x11a),_0x45da96+='\x20\x20\x20\x20'+_0x34f6bb[_0x2e962f(0x102)]+':\x20number;\x0a\x0a';else{if(_0x471a8==_0x2e962f(0xf4))_0x45da96+=_0x2e962f(0x107)+_0x34f6bb[_0x2e962f(0x122)]+_0x2e962f(0x154)+(_0x34f6bb[_0x2e962f(0x11d)]==_0x2e962f(0x143)?'true':_0x2e962f(0x147))+',\x20unique:\x20false\x20})\x0a',_0x45da96+=_0x2e962f(0x13b)+_0x34f6bb['Field']+_0x2e962f(0x156);else{if(_0x471a8=='date')_0x45da96+=_0x2e962f(0x140)+_0x34f6bb['Comment']+'\x27,\x20nullable:\x20'+(_0x34f6bb[_0x2e962f(0x11d)]=='YES'?_0x2e962f(0x132):_0x2e962f(0x147))+'\x20})\x0a',_0x45da96+=_0x2e962f(0x13b)+_0x34f6bb[_0x2e962f(0x102)]+_0x2e962f(0xf8);else{if(_0x471a8==_0x2e962f(0x128))_0x45da96+='\x20\x20\x20\x20@Column(\x27timestamp\x27,\x20{\x20comment:\x20\x27'+_0x34f6bb[_0x2e962f(0x122)]+_0x2e962f(0x154)+(_0x34f6bb['Null']==_0x2e962f(0x143)?'true':_0x2e962f(0x147))+_0x2e962f(0x106),_0x45da96+=_0x2e962f(0x13b)+_0x34f6bb[_0x2e962f(0x102)]+_0x2e962f(0xf8);else{if(_0x471a8==_0x2e962f(0xfe))_0x45da96+=_0x2e962f(0x118)+_0x34f6bb[_0x2e962f(0x122)]+_0x2e962f(0x154)+(_0x34f6bb['Null']==_0x2e962f(0x143)?'true':_0x2e962f(0x147))+_0x2e962f(0x106),_0x45da96+=_0x2e962f(0x13b)+_0x34f6bb[_0x2e962f(0x102)]+_0x2e962f(0xf8);else{if(_0x471a8==_0x2e962f(0x146))_0x45da96+=_0x2e962f(0x148)+_0x34f6bb['Comment']+_0x2e962f(0x154)+(_0x34f6bb[_0x2e962f(0x11d)]==_0x2e962f(0x143)?_0x2e962f(0x132):_0x2e962f(0x147))+_0x2e962f(0x11a),_0x45da96+=_0x2e962f(0x13b)+_0x34f6bb[_0x2e962f(0x102)]+_0x2e962f(0xf8);else{if(_0x471a8=='longtext')_0x45da96+='\x20\x20\x20\x20@Column(\x27longtext\x27,\x20{\x20comment:\x20\x27'+_0x34f6bb[_0x2e962f(0x122)]+_0x2e962f(0x154)+(_0x34f6bb['Null']==_0x2e962f(0x143)?_0x2e962f(0x132):_0x2e962f(0x147))+_0x2e962f(0x11a),_0x45da96+=_0x2e962f(0x13b)+_0x34f6bb[_0x2e962f(0x102)]+':\x20string;\x0a\x0a';else _0x471a8==_0x2e962f(0xff)?(_0x45da96+=_0x2e962f(0x126)+_0x34f6bb[_0x2e962f(0x122)]+_0x2e962f(0x154)+(_0x34f6bb[_0x2e962f(0x11d)]==_0x2e962f(0x143)?_0x2e962f(0x132):_0x2e962f(0x147))+_0x2e962f(0x11a),_0x45da96+=_0x2e962f(0x13b)+_0x34f6bb['Field']+_0x2e962f(0xf8)):(_0x45da96+=_0x2e962f(0x10f)+_0x34f6bb[_0x2e962f(0x122)]+'\x27,\x20nullable:\x20'+(_0x34f6bb['Null']=='YES'?_0x2e962f(0x132):_0x2e962f(0x147))+_0x2e962f(0x11a),_0x45da96+='\x20\x20\x20\x20'+_0x34f6bb[_0x2e962f(0x102)]+_0x2e962f(0xf8));}}}}}}}}}}}}_0x5f224d+=_0x2e962f(0x151),_0x5f224d+=_0x2e962f(0x124),_0x5f224d+='import\x20{\x20ProvideEntity,\x20ProvideSearch,\x20'+(_0x1afe63?_0x2e962f(0x10d):_0x2e962f(0x10b))+',\x20Column\x20}\x20from\x20\x27@anncic-api/typeorm\x27;\x0a\x0a',_0x5f224d+=_0x2e962f(0x14a)+_0x1cf82b+_0x2e962f(0x10e)+(typeof _0x37e674=='string'?_0x2e962f(0x11b)+_0x37e674:'@/'+_0xcddfe5)+'/searchs/'+_0x3c5d01+_0x2e962f(0x131),_0x5f224d+='/**\x0a',_0x5f224d+=_0x2e962f(0x13f)+_0x3fe7d7+'-实体\x0a',_0x5f224d+=_0x2e962f(0x104),_0x5f224d+=_0x2e962f(0x119)+_0x1cf82b+_0x2e962f(0x149),_0x5f224d+=_0x2e962f(0x113)+_0x20c401+_0x2e962f(0x144),_0x5f224d+=_0x2e962f(0x109)+_0x1cf82b+_0x2e962f(0x120),_0x5f224d+=_0x2e962f(0x12f),_0x5f224d+=_0x2e962f(0x13d),_0x5f224d+=_0x2e962f(0x14b),_0x5f224d+='\x20\x20\x20\x20@CreateDateColumn({\x20comment:\x20\x27创建时间\x27,\x20type:\x20\x27timestamp\x27\x20})\x0a',_0x5f224d+='\x20\x20\x20\x20created_at:\x20Date;\x0a\x0a',_0x5f224d+='\x20\x20\x20\x20@UpdateDateColumn({\x20comment:\x20\x27修改时间\x27,\x20type:\x20\x27timestamp\x27\x20})\x0a',_0x5f224d+='\x20\x20\x20\x20updated_at:\x20Date;\x0a\x0a',_0x5f224d+='\x20\x20\x20\x20@DeleteDateColumn({\x20comment:\x20\x27删除时间\x27,\x20type:\x20\x27timestamp\x27,\x20select:\x20false\x20})\x0a',_0x5f224d+='\x20\x20\x20\x20deleted_at:\x20Date;\x0a\x0a',_0x5f224d+='}',_0x5f224d=_0x5f224d[_0x2e962f(0xfb)](_0x2e962f(0x12f),_0x45da96),!fs['existsSync']((0x0,path_1[_0x2e962f(0x139)])(_0x5a087c))&&fs[_0x2e962f(0x130)]((0x0,path_1[_0x2e962f(0x139)])(_0x5a087c),{'recursive':!![]}),fs[_0x2e962f(0x14e)](_0x5a087c,_0x5f224d,'utf-8');}}async function repository({tablestartUp:_0x804943,tablestartUpShort:_0x245fe7,basedir:_0x80ba1f,Comment:_0x5932b0,moduleName:_0x3016c8,apporbasic:_0x2c1853}){const _0x23ead1=a6_0x2f68bb,_0x2b3a25=_0x80ba1f+(_0x23ead1(0x14c)+_0x245fe7+'/index.ts');if(!fs[_0x23ead1(0xf2)](_0x2b3a25)){let _0xaef9cf='';_0xaef9cf+=_0x23ead1(0x14d),_0xaef9cf+=_0x23ead1(0x13f)+_0x5932b0+'-实体处理器\x0a',_0xaef9cf+=_0x23ead1(0x104),_0xaef9cf+=_0x23ead1(0x129),_0xaef9cf+=_0x23ead1(0x14a)+_0x804943+_0x23ead1(0xfd)+(typeof _0x3016c8=='string'?_0x23ead1(0x11b)+_0x3016c8:'@/'+_0x2c1853)+_0x23ead1(0x14c)+_0x245fe7+_0x23ead1(0x145),_0xaef9cf+=_0x23ead1(0x152)+_0x804943+_0x23ead1(0x11f),_0xaef9cf+=_0x23ead1(0x109)+_0x804943+_0x23ead1(0x13e)+_0x804943+_0x23ead1(0xf9),_0xaef9cf+='}',!fs[_0x23ead1(0xf2)]((0x0,path_1[_0x23ead1(0x139)])(_0x2b3a25))&&fs[_0x23ead1(0x130)]((0x0,path_1['dirname'])(_0x2b3a25),{'recursive':!![]}),fs['writeFileSync'](_0x2b3a25,_0xaef9cf,_0x23ead1(0x123));}}
|
|
1
|
+
const a6_0x5c1023=a6_0x77cf;function a6_0x77cf(_0x3781c5,_0x22e2f6){const _0x3c530c=a6_0x286f();return a6_0x77cf=function(_0x2b857d,_0x209446){_0x2b857d=_0x2b857d-0x9c;let _0x286f8e=_0x3c530c[_0x2b857d];return _0x286f8e;},a6_0x77cf(_0x3781c5,_0x22e2f6);}(function(_0x5c71b9,_0x507bd4){const _0x3b9f27=a6_0x77cf,_0x31a09d=_0x5c71b9();while(!![]){try{const _0x586234=parseInt(_0x3b9f27(0xbb))/0x1+-parseInt(_0x3b9f27(0xa0))/0x2*(parseInt(_0x3b9f27(0xf5))/0x3)+parseInt(_0x3b9f27(0x104))/0x4+parseInt(_0x3b9f27(0xf1))/0x5*(-parseInt(_0x3b9f27(0xdc))/0x6)+-parseInt(_0x3b9f27(0xe3))/0x7+parseInt(_0x3b9f27(0xe0))/0x8+-parseInt(_0x3b9f27(0xeb))/0x9*(parseInt(_0x3b9f27(0x9d))/0xa);if(_0x586234===_0x507bd4)break;else _0x31a09d['push'](_0x31a09d['shift']());}catch(_0x5ead64){_0x31a09d['push'](_0x31a09d['shift']());}}}(a6_0x286f,0xb541c));const a6_0x209446=(function(){let _0x1cc9c9=!![];return function(_0xb6c417,_0x17d956){const _0x1b97cb=_0x1cc9c9?function(){const _0x2fc627=a6_0x77cf;if(_0x17d956){const _0x5a269e=_0x17d956[_0x2fc627(0xa8)](_0xb6c417,arguments);return _0x17d956=null,_0x5a269e;}}:function(){};return _0x1cc9c9=![],_0x1b97cb;};}()),a6_0x2b857d=a6_0x209446(this,function(){const _0x35bcb2=a6_0x77cf;return a6_0x2b857d[_0x35bcb2(0xd2)]()[_0x35bcb2(0xf2)](_0x35bcb2(0xa6))[_0x35bcb2(0xd2)]()[_0x35bcb2(0xc3)](a6_0x2b857d)[_0x35bcb2(0xf2)](_0x35bcb2(0xa6));});a6_0x2b857d();'use strict';function a6_0x286f(){const _0x286169=['number','95050mqffDz','@ProvideSearch(','\x27;\x0a\x0a','10SXAfTc','\x20\x20\x20\x20displayorder:\x20number;\x0a\x0a','\x20\x20\x20\x20@Column({\x20comment:\x20\x27','\x20\x20\x20\x20@Column(\x27float\x27,\x20{\x20comment:\x20\x27',',\x20unique:\x20false\x20})\x0a','float','(((.+)+)+)+$','\x20\x20\x20\x20@Column(\x27date\x27,\x20{\x20comment:\x20\x27','apply','import\x20{\x20ProvideEntity,\x20ProvideSearch,\x20','/searchs/','\x27,\x20enum:\x20[\x27','__esModule','\x20\x20\x20\x20@Column(\x27text\x27,\x20{\x20comment:\x20\x27','\x27,\x20length:\x20188\x20})\x0a','datetime','PrimaryColumn','import\x20{\x20ProvideRepository,\x20Repository\x20}\x20from\x20\x27@anncic-api/typeorm\x27;\x0a','indexOf','dirname','Field','deleted_at','decimal','import\x20{\x20','\x20\x20\x20\x20@Column(\x27tinyint\x27,\x20{\x20comment:\x20\x27',':\x20number;\x0a\x0a','-实体处理器\x0a','251748WREeAT','mkdirSync','true','\x20\x20\x20\x20@Column(\x27double\x27,\x20{\x20comment:\x20\x27','join','false','/entity.ts','YES','constructor','\x20\x20\x20\x20','longtext','getProp','Null','\x20\x20\x20\x20@Column(\x27decimal\x27,\x20{\x20comment:\x20\x27',':\x20\x27','\x27]\x20})\x0a','Type','updated_at','\x20\x20\x20\x20@Column(\x27enum\x27,\x20{\x20comment:\x20\x27','%column%','mediumtext','tinyint','timestamp','toString','\x20})\x0a','\x27,\x20precision:\x2010,\x20scale:\x202,\x20default:\x200.00,\x20nullable:\x20','Entity\x20}\x20from\x20\x27','\x27,\x20precision:\x2024,\x20scale:\x202,\x20default:\x200.00,\x20nullable:\x20','text','/entities/','\x20*\x20**/\x0a','\x20extends\x20Repository<','displayorder','227688yLspHm','Search)\x0a','\x20\x20\x20\x20deleted_at:\x20Date;\x0a\x0a','default','9301168gSGzxZ','@/apps/','@ProvideEntity({\x20tableName:\x20\x27','5500509mfbgKM',':\x20string;\x0a\x0a','import\x20{\x20CreateDateColumn,\x20UpdateDateColumn,\x20DeleteDateColumn\x20}\x20from\x20\x27@anncic-api/typeorm\x27;\x0a','\x20\x20\x20\x20@PrimaryColumn({\x20comment:\x20\x27','\x27,\x20default:\x20\x27','writeFileSync','-实体\x0a','@ProvideRepository(','396QFkxfr','/entity\x27;\x0a\x0a','../helper','\x27,\x20\x27','enum','\x20\x20\x20\x20@Column({\x20comment:\x20\x27默认显示排序\x27,\x20nullable:\x20true,\x20unique:\x20false\x20})\x0a','85HrVVRX','search','Search\x20}\x20from\x20\x27','/index.ts','30987vsiNPh','\x20\x20\x20\x20@UpdateDateColumn({\x20comment:\x20\x27修改时间\x27,\x20type:\x20\x27timestamp\x27\x20})\x0a','Comment','\x20\x20\x20\x20@Column(\x27longtext\x27,\x20{\x20comment:\x20\x27','\x20\x20\x20\x20@Column(\x27mediumtext\x27,\x20{\x20comment:\x20\x27','//\x20import\x20{\x20ManyToOne,\x20JoinColumn\x20}\x20from\x20\x27@anncic-api/typeorm\x27;\x0a','\x20\x20\x20\x20@Column(\x27timestamp\x27,\x20{\x20comment:\x20\x27','/**\x0a','string','existsSync','\x20\x20\x20\x20created_at:\x20Date;\x0a\x0a','getEnum','json','\x20*\x20','\x27,\x20nullable:\x20','4915208bLLhPu'];a6_0x286f=function(){return _0x286169;};return a6_0x286f();}Object['defineProperty'](exports,a6_0x5c1023(0xac),{'value':!![]}),exports[a6_0x5c1023(0xdf)]=default_1;const fs=require('fs'),path_1=require('path'),helper_1=require(a6_0x5c1023(0xed));async function default_1({tablename:_0x2ae7da,tablestartUp:_0x2005a4,tablestartUpShort:_0x5e01a,basedir:_0x5112f0,Primary:_0x6afb58,Fields:_0xc9901d,Comment:_0x135957,moduleName:_0x507ca1,apporbasic:_0x1a59a6}){await entity({'tablename':_0x2ae7da,'tablestartUp':_0x2005a4,'tablestartUpShort':_0x5e01a,'basedir':_0x5112f0,'Primary':_0x6afb58,'Fields':_0xc9901d,'Comment':_0x135957,'moduleName':_0x507ca1,'apporbasic':_0x1a59a6}),await repository({'tablestartUp':_0x2005a4,'tablestartUpShort':_0x5e01a,'basedir':_0x5112f0,'Comment':_0x135957,'moduleName':_0x507ca1,'apporbasic':_0x1a59a6});}async function entity({tablename:_0x55a092,tablestartUp:_0x5cab65,tablestartUpShort:_0xe5847b,basedir:_0x656cc2,Primary:_0x4804b4,Fields:_0x5b3cb6,Comment:_0x2a84f8,moduleName:_0x5e81ad,apporbasic:_0x371574}){const _0x585331=a6_0x5c1023,_0xae7138=_0x656cc2+(_0x585331(0xd8)+_0xe5847b+_0x585331(0xc1));if(!fs['existsSync'](_0xae7138)){let _0x2bea80='',_0x559282='',_0x5d74f0=[_0x585331(0xd7),_0x585331(0xcf),_0x585331(0xfd)][_0x585331(0xb2)]((0x0,helper_1[_0x585331(0xc6)])(_0x4804b4[_0x585331(0xcb)]))==-0x1;_0x5d74f0?(_0x2bea80+='\x20\x20\x20\x20@PrimaryGeneratedColumn()\x0a',_0x2bea80+=_0x585331(0xc4)+_0x4804b4['Field']+_0x585331(0xb9)):(_0x2bea80+=_0x585331(0xe6)+(_0x4804b4['Comment']||'标识')+_0x585331(0xae),_0x2bea80+=_0x585331(0xc4)+_0x4804b4['Field']+_0x585331(0xe4));for(let _0x12763f in _0x5b3cb6){let _0x4e588a=_0x5b3cb6[_0x12763f],_0xfe55b4=(0x0,helper_1[_0x585331(0xc6)])(_0x4e588a[_0x585331(0xcb)]);if(_0x4e588a[_0x585331(0xb4)]==_0x585331(0xdb)||_0x4e588a[_0x585331(0xb4)]=='created_at'||_0x4e588a[_0x585331(0xb4)]==_0x585331(0xcc)||_0x4e588a[_0x585331(0xb4)]==_0x585331(0xb5))continue;if(_0xfe55b4==_0x585331(0x101))_0x2bea80+='\x20\x20\x20\x20@Column(\x27json\x27,\x20{\x20comment:\x20\x27'+_0x4e588a[_0x585331(0xf7)]+_0x585331(0x103)+(_0x4e588a[_0x585331(0xc7)]=='YES'?_0x585331(0xbd):'false')+_0x585331(0xa4),_0x2bea80+=_0x585331(0xc4)+_0x4e588a[_0x585331(0xb4)]+':\x20any\x20|\x20any[];\x0a\x0a';else{if(_0xfe55b4==_0x585331(0xef)){let _0x1e2316=(0x0,helper_1[_0x585331(0x100)])(_0x4e588a[_0x585331(0xcb)]);_0x2bea80+=_0x585331(0xcd)+_0x4e588a['Comment']+_0x585331(0xe7)+(_0x1e2316[0x0]||'')+_0x585331(0xab)+_0x1e2316[_0x585331(0xbf)](_0x585331(0xee))+_0x585331(0xca),_0x2bea80+=_0x585331(0xc4)+_0x4e588a['Field']+_0x585331(0xc9)+_0x1e2316[_0x585331(0xbf)]('\x27\x20|\x20\x27')+_0x585331(0x9f);}else{if(_0xfe55b4==_0x585331(0xa5))_0x2bea80+=_0x585331(0xa3)+_0x4e588a[_0x585331(0xf7)]+_0x585331(0xd4)+(_0x4e588a[_0x585331(0xc7)]==_0x585331(0xc2)?'true':_0x585331(0xc0))+_0x585331(0xd3),_0x2bea80+='\x20\x20\x20\x20'+_0x4e588a[_0x585331(0xb4)]+_0x585331(0xb9);else{if(_0xfe55b4=='double')_0x2bea80+=_0x585331(0xbe)+_0x4e588a['Comment']+_0x585331(0xd4)+(_0x4e588a['Null']==_0x585331(0xc2)?'true':_0x585331(0xc0))+_0x585331(0xd3),_0x2bea80+=_0x585331(0xc4)+_0x4e588a['Field']+_0x585331(0xb9);else{if(_0xfe55b4==_0x585331(0xb6))_0x2bea80+=_0x585331(0xc8)+_0x4e588a['Comment']+_0x585331(0xd6)+(_0x4e588a['Null']==_0x585331(0xc2)?_0x585331(0xbd):'false')+'\x20})\x0a',_0x2bea80+=_0x585331(0xc4)+_0x4e588a[_0x585331(0xb4)]+_0x585331(0xb9);else{if(_0xfe55b4==_0x585331(0x9c))_0x2bea80+=_0x585331(0xa2)+_0x4e588a['Comment']+_0x585331(0x103)+(_0x4e588a[_0x585331(0xc7)]==_0x585331(0xc2)?_0x585331(0xbd):_0x585331(0xc0))+_0x585331(0xa4),_0x2bea80+=_0x585331(0xc4)+_0x4e588a['Field']+_0x585331(0xb9);else{if(_0xfe55b4==_0x585331(0xd0))_0x2bea80+=_0x585331(0xb8)+_0x4e588a[_0x585331(0xf7)]+_0x585331(0x103)+(_0x4e588a[_0x585331(0xc7)]==_0x585331(0xc2)?_0x585331(0xbd):'false')+_0x585331(0xa4),_0x2bea80+=_0x585331(0xc4)+_0x4e588a['Field']+_0x585331(0xb9);else{if(_0xfe55b4=='date')_0x2bea80+=_0x585331(0xa7)+_0x4e588a['Comment']+_0x585331(0x103)+(_0x4e588a[_0x585331(0xc7)]=='YES'?_0x585331(0xbd):'false')+_0x585331(0xd3),_0x2bea80+=_0x585331(0xc4)+_0x4e588a[_0x585331(0xb4)]+':\x20string;\x0a\x0a';else{if(_0xfe55b4==_0x585331(0xaf))_0x2bea80+=_0x585331(0xfb)+_0x4e588a[_0x585331(0xf7)]+_0x585331(0x103)+(_0x4e588a[_0x585331(0xc7)]==_0x585331(0xc2)?_0x585331(0xbd):_0x585331(0xc0))+'\x20})\x0a',_0x2bea80+=_0x585331(0xc4)+_0x4e588a[_0x585331(0xb4)]+_0x585331(0xe4);else{if(_0xfe55b4==_0x585331(0xd1))_0x2bea80+=_0x585331(0xfb)+_0x4e588a['Comment']+_0x585331(0x103)+(_0x4e588a[_0x585331(0xc7)]==_0x585331(0xc2)?_0x585331(0xbd):_0x585331(0xc0))+_0x585331(0xd3),_0x2bea80+=_0x585331(0xc4)+_0x4e588a[_0x585331(0xb4)]+_0x585331(0xe4);else{if(_0xfe55b4==_0x585331(0xd7))_0x2bea80+=_0x585331(0xad)+_0x4e588a[_0x585331(0xf7)]+_0x585331(0x103)+(_0x4e588a[_0x585331(0xc7)]==_0x585331(0xc2)?_0x585331(0xbd):_0x585331(0xc0))+_0x585331(0xa4),_0x2bea80+=_0x585331(0xc4)+_0x4e588a[_0x585331(0xb4)]+':\x20string;\x0a\x0a';else{if(_0xfe55b4==_0x585331(0xc5))_0x2bea80+=_0x585331(0xf8)+_0x4e588a[_0x585331(0xf7)]+_0x585331(0x103)+(_0x4e588a[_0x585331(0xc7)]=='YES'?_0x585331(0xbd):'false')+',\x20unique:\x20false\x20})\x0a',_0x2bea80+='\x20\x20\x20\x20'+_0x4e588a['Field']+_0x585331(0xe4);else _0xfe55b4==_0x585331(0xcf)?(_0x2bea80+=_0x585331(0xf9)+_0x4e588a['Comment']+_0x585331(0x103)+(_0x4e588a[_0x585331(0xc7)]==_0x585331(0xc2)?_0x585331(0xbd):_0x585331(0xc0))+',\x20unique:\x20false\x20})\x0a',_0x2bea80+=_0x585331(0xc4)+_0x4e588a[_0x585331(0xb4)]+':\x20string;\x0a\x0a'):(_0x2bea80+=_0x585331(0xa2)+_0x4e588a['Comment']+_0x585331(0x103)+(_0x4e588a['Null']==_0x585331(0xc2)?_0x585331(0xbd):'false')+_0x585331(0xa4),_0x2bea80+=_0x585331(0xc4)+_0x4e588a[_0x585331(0xb4)]+_0x585331(0xe4));}}}}}}}}}}}}_0x559282+=_0x585331(0xfa),_0x559282+=_0x585331(0xe5),_0x559282+=_0x585331(0xa9)+(_0x5d74f0?'PrimaryGeneratedColumn':_0x585331(0xb0))+',\x20Column\x20}\x20from\x20\x27@anncic-api/typeorm\x27;\x0a\x0a',_0x559282+=_0x585331(0xb7)+_0x5cab65+_0x585331(0xf3)+(typeof _0x5e81ad==_0x585331(0xfd)?_0x585331(0xe1)+_0x5e81ad:'@/'+_0x371574)+_0x585331(0xaa)+_0xe5847b+'\x27;\x0a\x0a',_0x559282+=_0x585331(0xfc),_0x559282+='\x20*\x20'+_0x2a84f8+_0x585331(0xe9),_0x559282+=_0x585331(0xd9),_0x559282+=_0x585331(0x9e)+_0x5cab65+_0x585331(0xdd),_0x559282+=_0x585331(0xe2)+_0x55a092+'\x27\x20},\x20{\x20orderBy:\x20{\x20displayorder:\x20\x27DESC\x27\x20}\x20})\x0a',_0x559282+='export\x20class\x20'+_0x5cab65+'Entity\x20{\x0a\x0a',_0x559282+='%column%',_0x559282+=_0x585331(0xf0),_0x559282+=_0x585331(0xa1),_0x559282+='\x20\x20\x20\x20@CreateDateColumn({\x20comment:\x20\x27创建时间\x27,\x20type:\x20\x27timestamp\x27\x20})\x0a',_0x559282+=_0x585331(0xff),_0x559282+=_0x585331(0xf6),_0x559282+='\x20\x20\x20\x20updated_at:\x20Date;\x0a\x0a',_0x559282+='\x20\x20\x20\x20@DeleteDateColumn({\x20comment:\x20\x27删除时间\x27,\x20type:\x20\x27timestamp\x27,\x20select:\x20false\x20})\x0a',_0x559282+=_0x585331(0xde),_0x559282+='}',_0x559282=_0x559282['replace'](_0x585331(0xce),_0x2bea80),!fs[_0x585331(0xfe)]((0x0,path_1[_0x585331(0xb3)])(_0xae7138))&&fs[_0x585331(0xbc)]((0x0,path_1[_0x585331(0xb3)])(_0xae7138),{'recursive':!![]}),fs[_0x585331(0xe8)](_0xae7138,_0x559282,'utf-8');}}async function repository({tablestartUp:_0x4ba359,tablestartUpShort:_0x1459ea,basedir:_0x2246f5,Comment:_0x33cce0,moduleName:_0x3051e6,apporbasic:_0x1d7350}){const _0x492351=a6_0x5c1023,_0x2d9bba=_0x2246f5+(_0x492351(0xd8)+_0x1459ea+_0x492351(0xf4));if(!fs[_0x492351(0xfe)](_0x2d9bba)){let _0xdb91de='';_0xdb91de+=_0x492351(0xfc),_0xdb91de+=_0x492351(0x102)+_0x33cce0+_0x492351(0xba),_0xdb91de+=_0x492351(0xd9),_0xdb91de+=_0x492351(0xb1),_0xdb91de+=_0x492351(0xb7)+_0x4ba359+_0x492351(0xd5)+(typeof _0x3051e6==_0x492351(0xfd)?_0x492351(0xe1)+_0x3051e6:'@/'+_0x1d7350)+'/entities/'+_0x1459ea+_0x492351(0xec),_0xdb91de+=_0x492351(0xea)+_0x4ba359+'Entity)\x0a',_0xdb91de+='export\x20class\x20'+_0x4ba359+_0x492351(0xda)+_0x4ba359+'Entity>{\x0a\x0a',_0xdb91de+='}',!fs[_0x492351(0xfe)]((0x0,path_1[_0x492351(0xb3)])(_0x2d9bba))&&fs[_0x492351(0xbc)]((0x0,path_1[_0x492351(0xb3)])(_0x2d9bba),{'recursive':!![]}),fs['writeFileSync'](_0x2d9bba,_0xdb91de,'utf-8');}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a7_0x4ff747=a7_0x4f1a;(function(_0x5c60bc,_0x4d8866){const _0x2b4ecc=a7_0x4f1a,_0x494e0b=_0x5c60bc();while(!![]){try{const _0xedfe06=parseInt(_0x2b4ecc(0x200))/0x1*(-parseInt(_0x2b4ecc(0x205))/0x2)+parseInt(_0x2b4ecc(0x1fe))/0x3*(parseInt(_0x2b4ecc(0x1fb))/0x4)+parseInt(_0x2b4ecc(0x1f7))/0x5+parseInt(_0x2b4ecc(0x204))/0x6+parseInt(_0x2b4ecc(0x1ff))/0x7+parseInt(_0x2b4ecc(0x1f3))/0x8*(-parseInt(_0x2b4ecc(0x208))/0x9)+-parseInt(_0x2b4ecc(0x206))/0xa*(parseInt(_0x2b4ecc(0x202))/0xb);if(_0xedfe06===_0x4d8866)break;else _0x494e0b['push'](_0x494e0b['shift']());}catch(_0x150c4e){_0x494e0b['push'](_0x494e0b['shift']());}}}(a7_0xd641,0xdc6a9));function a7_0xd641(){const _0x16fefe=['constructor','5032278psmzXt','209092AAWsBO','5972030lqPLby','.ts','1427598uJeUpO','utf-8','\x20\x20\x20\x20@InjectRepository(',';\x0a\x0a\x0a','/entities/','__esModule',')\x20protected\x20','@Event()\x0a','\x20\x20\x20\x20@Inject()\x20protected\x20EventService:\x20EventService;\x0a\x0a','(((.+)+)+)+$','import\x20{\x20Inject,\x20InjectRepository\x20}\x20from\x20\x27@anncic-api/typeorm\x27;\x0a\x0a','\x20}\x20from\x20\x27','path','search','24EnIXFv','existsSync','string','import\x20{\x20','1996995nLEzTA','\x27;\x0a\x0a','apply','export\x20class\x20','2551520RTuSRp','dirname','Event\x20{\x0a\x0a','6ZhmdXJ','7000973GoVztQ','9YXZrtu','toString','22nHicOr'];a7_0xd641=function(){return _0x16fefe;};return a7_0xd641();}const a7_0x2496de=(function(){let _0x10981c=!![];return function(_0x1a7762,_0x26dce5){const _0x192c77=_0x10981c?function(){const _0x5e1f16=a7_0x4f1a;if(_0x26dce5){const _0x92ca3b=_0x26dce5[_0x5e1f16(0x1f9)](_0x1a7762,arguments);return _0x26dce5=null,_0x92ca3b;}}:function(){};return _0x10981c=![],_0x192c77;};}()),a7_0x248da2=a7_0x2496de(this,function(){const _0x567b41=a7_0x4f1a;return a7_0x248da2[_0x567b41(0x201)]()[_0x567b41(0x1f2)]('(((.+)+)+)+$')[_0x567b41(0x201)]()[_0x567b41(0x203)](a7_0x248da2)[_0x567b41(0x1f2)](_0x567b41(0x211));});a7_0x248da2();'use strict';function a7_0x4f1a(_0x59119d,_0x24e19e){const _0x4b83ab=a7_0xd641();return a7_0x4f1a=function(_0x248da2,_0x2496de){_0x248da2=_0x248da2-0x1f1;let _0xd64190=_0x4b83ab[_0x248da2];return _0xd64190;},a7_0x4f1a(_0x59119d,_0x24e19e);}Object['defineProperty'](exports,a7_0x4ff747(0x20d),{'value':!![]}),exports['default']=default_1;const fs=require('fs'),path_1=require(a7_0x4ff747(0x1f1));async function default_1({tablestartUp:_0x572a5d,tablestartUpShort:_0xacdf52,basedir:_0x303b12,moduleName:_0x27db72,apporbasic:_0x2aa59e}){const _0x327498=a7_0x4ff747,_0x107f78=_0x303b12+('/listeners/'+_0xacdf52+_0x327498(0x207));if(!fs[_0x327498(0x1f4)](_0x107f78)){let _0x13fb83='';_0x13fb83+='import\x20{\x20Event,\x20EventService\x20}\x20from\x20\x27@anncic-api/event\x27;\x0a',_0x13fb83+=_0x327498(0x212),_0x13fb83+=_0x327498(0x1f6)+_0x572a5d+_0x327498(0x213)+(typeof _0x27db72==_0x327498(0x1f5)?'@/apps/'+_0x27db72:'@/'+_0x2aa59e)+_0x327498(0x20c)+_0xacdf52+_0x327498(0x1f8),_0x13fb83+=_0x327498(0x20f),_0x13fb83+=_0x327498(0x1fa)+_0x572a5d+_0x327498(0x1fd),_0x13fb83+=_0x327498(0x210),_0x13fb83+=_0x327498(0x20a)+_0x572a5d+_0x327498(0x20e)+_0x572a5d+':\x20'+_0x572a5d+_0x327498(0x20b),_0x13fb83+='}',!fs[_0x327498(0x1f4)]((0x0,path_1[_0x327498(0x1fc)])(_0x107f78))&&fs['mkdirSync']((0x0,path_1['dirname'])(_0x107f78),{'recursive':!![]}),fs['writeFileSync'](_0x107f78,_0x13fb83,_0x327498(0x209));}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a8_0x40b125=a8_0x2728;(function(_0x514a15,_0x553e95){const _0x20d806=a8_0x2728,_0x55f9e5=_0x514a15();while(!![]){try{const _0x2d9cdd=-parseInt(_0x20d806(0x116))/0x1+parseInt(_0x20d806(0x11b))/0x2*(parseInt(_0x20d806(0x100))/0x3)+parseInt(_0x20d806(0xe2))/0x4+parseInt(_0x20d806(0x121))/0x5*(parseInt(_0x20d806(0x136))/0x6)+parseInt(_0x20d806(0x131))/0x7*(-parseInt(_0x20d806(0xe5))/0x8)+-parseInt(_0x20d806(0xe6))/0x9+-parseInt(_0x20d806(0x12c))/0xa*(-parseInt(_0x20d806(0xf1))/0xb);if(_0x2d9cdd===_0x553e95)break;else _0x55f9e5['push'](_0x55f9e5['shift']());}catch(_0x4be48f){_0x55f9e5['push'](_0x55f9e5['shift']());}}}(a8_0x38d4,0x8f12f));const a8_0x18a3d1=(function(){let _0x530605=!![];return function(_0x395f7b,_0x329b3c){const _0x2c58e5=_0x530605?function(){const _0x1f73f3=a8_0x2728;if(_0x329b3c){const _0x908c57=_0x329b3c[_0x1f73f3(0xdf)](_0x395f7b,arguments);return _0x329b3c=null,_0x908c57;}}:function(){};return _0x530605=![],_0x2c58e5;};}()),a8_0x3a04ca=a8_0x18a3d1(this,function(){const _0x4a3e26=a8_0x2728;return a8_0x3a04ca[_0x4a3e26(0x107)]()[_0x4a3e26(0x110)](_0x4a3e26(0x11c))['toString']()[_0x4a3e26(0x10c)](a8_0x3a04ca)[_0x4a3e26(0x110)](_0x4a3e26(0x11c));});a8_0x3a04ca();function a8_0x38d4(){const _0x53fe77=['@/apps/','.ts','626689pIDrxs','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20return\x20search.getOneOrFail().catch(()\x20=>\x20{\x0a','\x20\x20\x20\x20\x20\x20\x20\x20for\x20(let\x20tmpModel\x20of\x20tmpModels)\x20{\x0a','/Update\x27;\x0a','\x20\x20\x20\x20async\x20detail(conditions?:\x20SearchParams<','36FuqYrs','apply','\x20\x20\x20\x20async\x20restores(conditions:\x20SearchParams<','DTOUpdate,\x20options:\x20SearchOptions\x20=\x20{})\x20{\x0a','2067900dvGkkN','Entity>,\x20options:\x20SearchOptions\x20=\x20{})\x20{\x0a','Entity>,\x20pageinfo?:\x20SearchPaginate,\x20options:\x20SearchOptions\x20=\x20{}):\x20Promise<[','16nDkVpk','8157663axrvwj','@Singleton()\x0a',';\x0a\x0a\x0a','defineProperty','\x20\x20\x20\x20async\x20remove(conditions:\x20SearchParams<','.save(tmpModel);\x0a','dirname','\x20\x20\x20\x20\x20*\x20**/\x0a','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20return\x20search.getMany();\x0a','import\x20{\x20CacheService,\x20EventService,\x20ValidatorService\x20}\x20from\x20\x27anncic-api\x27;\x0a','.merge(tmpModel,\x20params);\x0a','1705SHyDQY','/exceptions/','DTOCreate\x20}\x20from\x20\x27','/validators/','default','\x20\x20\x20\x20async\x20list(conditions?:\x20SearchParams<','writeFileSync','\x20\x20\x20\x20}\x0a\x0a\x0a','/entities/','\x20\x20\x20\x20\x20*\x20修改数据\x0a','\x20\x20\x20\x20/**\x0a','mkdirSync','\x20\x20\x20\x20\x20\x20\x20\x20}\x0a','不存在\x27\x20})\x0a','\x20\x20\x20\x20\x20\x20\x20\x20});\x0a\x0a','12TmBuKu','\x20\x20\x20\x20\x20\x20\x20\x20const\x20tmpModel\x20=\x20await\x20this.','\x27;\x0a','\x20*\x20','import\x20{\x20InjectRepository,\x20SearchParams,\x20SearchPaginate,\x20SearchOptions\x20}\x20from\x20\x27@anncic-api/typeorm\x27;\x0a\x0a','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20});\x0a','DTOUpdate\x20}\x20from\x20\x27','toString','/handlers/','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20return\x20search.getManyAndCount();\x0a','existsSync','\x20\x20\x20\x20\x20*\x20数据列表\x0a','constructor','.search(conditions,\x20{},\x20options).then(async\x20search\x20=>\x20{\x0a\x0a','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20search.withDeleted().andWhere(`${search.alias}.deleted_at\x20IS\x20NOT\x20NULL`);\x0a','\x20\x20\x20\x20\x20*\x20删除数据\x0a','search','.recover(tmpModel))\x0a','\x20\x20\x20\x20\x20\x20\x20\x20this.','utf-8','\x20}\x20from\x20\x27','\x20\x20\x20\x20\x20\x20\x20\x20return\x20restores\x0a','1109980LGjnkr','Entity\x20}\x20from\x20\x27','Error._NOTFIND_,\x20{\x20message:\x20\x27','/Create\x27;\x0a','\x20\x20\x20\x20\x20\x20\x20\x20return\x20deletes\x0a','341588vQLrJc','(((.+)+)+)+$','\x20\x20\x20\x20@InjectRepository(','/**\x0a','\x20\x20\x20\x20@Inject()\x20CacheService:\x20CacheService;\x0a','import\x20{\x20Inject,\x20Singleton\x20}\x20from\x20\x27anncic-api\x27;\x0a','358705PxFDAf','\x20\x20\x20\x20@Inject()\x20EventService:\x20EventService;\x0a','Error(','Entity>,\x20params:\x20','import\x20{\x20','path','\x20\x20\x20\x20\x20\x20\x20\x20const\x20[pagelist,\x20pagetotal]\x20=\x20await\x20this.','export\x20class\x20','\x20\x20\x20\x20\x20\x20\x20\x20const\x20restores:\x20any\x20=\x20[],\x20tmpModels\x20=\x20await\x20this.','string','\x20\x20\x20\x20\x20\x20\x20\x20const\x20deletes:\x20any\x20=\x20[],\x20tmpModels\x20=\x20await\x20this.','74250PIVpBk','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20throw\x20new\x20','Entity[],\x20number]>\x20{\x0a'];a8_0x38d4=function(){return _0x53fe77;};return a8_0x38d4();}'use strict';function a8_0x2728(_0x4395cc,_0x49d9db){const _0x35e8b7=a8_0x38d4();return a8_0x2728=function(_0x3a04ca,_0x18a3d1){_0x3a04ca=_0x3a04ca-0xdf;let _0x38d43f=_0x35e8b7[_0x3a04ca];return _0x38d43f;},a8_0x2728(_0x4395cc,_0x49d9db);}Object[a8_0x40b125(0xe9)](exports,'__esModule',{'value':!![]}),exports[a8_0x40b125(0xf5)]=default_1;const fs=require('fs'),path_1=require(a8_0x40b125(0x126));async function default_1({tablestartUp:_0x19b7fe,tablestartUpShort:_0x45b546,basedir:_0x57c7d9,Primary:_0x1c9129,Comment:_0x4c762b,moduleName:_0x37d10e,apporbasic:_0x101a58}){const _0x51be0d=a8_0x40b125,_0x597fcd=_0x57c7d9+(_0x51be0d(0x108)+_0x45b546+_0x51be0d(0x130));if(!fs[_0x51be0d(0x10a)](_0x597fcd)){let _0x3d6870='';_0x3d6870+=_0x51be0d(0x120),_0x3d6870+=_0x51be0d(0xef),_0x3d6870+=_0x51be0d(0x104),_0x3d6870+=_0x51be0d(0x125)+_0x19b7fe+_0x51be0d(0x114)+(typeof _0x37d10e=='string'?_0x51be0d(0x12f)+_0x37d10e:'@/'+_0x101a58)+_0x51be0d(0xf9)+_0x45b546+_0x51be0d(0x102),_0x3d6870+=_0x51be0d(0x125)+_0x19b7fe+'Error\x20}\x20from\x20\x27'+(typeof _0x37d10e==_0x51be0d(0x12a)?_0x51be0d(0x12f)+_0x37d10e:'@/'+_0x101a58)+_0x51be0d(0xf2)+_0x45b546+_0x51be0d(0x102),_0x3d6870+=_0x51be0d(0x125)+_0x19b7fe+_0x51be0d(0x117)+(typeof _0x37d10e==_0x51be0d(0x12a)?_0x51be0d(0x12f)+_0x37d10e:'@/'+_0x101a58)+_0x51be0d(0xf9)+_0x45b546+'/entity\x27;\x0a',_0x3d6870+='import\x20{\x20'+_0x19b7fe+_0x51be0d(0xf3)+(typeof _0x37d10e==_0x51be0d(0x12a)?'@/apps/'+_0x37d10e:'@/'+_0x101a58)+_0x51be0d(0xf4)+_0x45b546+_0x51be0d(0x119),_0x3d6870+='import\x20{\x20'+_0x19b7fe+_0x51be0d(0x106)+(typeof _0x37d10e==_0x51be0d(0x12a)?_0x51be0d(0x12f)+_0x37d10e:'@/'+_0x101a58)+_0x51be0d(0xf4)+_0x45b546+_0x51be0d(0x134),_0x3d6870+='\x0a',_0x3d6870+=_0x51be0d(0x11e),_0x3d6870+=_0x51be0d(0x103)+_0x4c762b+'\x0a',_0x3d6870+='\x20*\x20**/\x0a',_0x3d6870+=_0x51be0d(0xe7),_0x3d6870+=_0x51be0d(0x128)+_0x19b7fe+'Handler\x20{\x0a\x0a',_0x3d6870+=_0x51be0d(0x11f),_0x3d6870+=_0x51be0d(0x122),_0x3d6870+='\x20\x20\x20\x20@Inject()\x20ValidatorService:\x20ValidatorService;\x0a\x0a',_0x3d6870+=_0x51be0d(0x11d)+_0x19b7fe+')\x20'+_0x45b546+':\x20'+_0x19b7fe+_0x51be0d(0xe8),_0x3d6870+=_0x51be0d(0xfb),_0x3d6870+=_0x51be0d(0x10b),_0x3d6870+=_0x51be0d(0xed),_0x3d6870+=_0x51be0d(0xf6)+_0x19b7fe+_0x51be0d(0xe4)+_0x19b7fe+_0x51be0d(0x12e),_0x3d6870+=_0x51be0d(0x127)+_0x45b546+'.search(conditions,\x20pageinfo,\x20options).then(async\x20search\x20=>\x20{\x0a\x0a',_0x3d6870+=_0x51be0d(0x109),_0x3d6870+=_0x51be0d(0xff),_0x3d6870+='\x20\x20\x20\x20\x20\x20\x20\x20return\x20[pagelist,\x20pagetotal];\x0a',_0x3d6870+='\x20\x20\x20\x20}\x0a\x0a\x0a',_0x3d6870+='\x20\x20\x20\x20/**\x0a',_0x3d6870+='\x20\x20\x20\x20\x20*\x20数据详情\x0a',_0x3d6870+=_0x51be0d(0xed),_0x3d6870+=_0x51be0d(0x135)+_0x19b7fe+'Entity>,\x20options:\x20SearchOptions\x20=\x20{})\x20{\x0a',_0x3d6870+=_0x51be0d(0x101)+_0x45b546+_0x51be0d(0x10d),_0x3d6870+='\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20return\x20search.getOneOrFail().catch(()\x20=>\x20{\x0a',_0x3d6870+=_0x51be0d(0x12d)+_0x19b7fe+_0x51be0d(0x123)+_0x19b7fe+_0x51be0d(0x118)+_0x4c762b+_0x51be0d(0xfe),_0x3d6870+=_0x51be0d(0x105),_0x3d6870+='\x20\x20\x20\x20\x20\x20\x20\x20});\x0a\x0a',_0x3d6870+='\x20\x20\x20\x20\x20\x20\x20\x20return\x20tmpModel\x0a',_0x3d6870+=_0x51be0d(0xf8),_0x3d6870+='\x20\x20\x20\x20/**\x0a',_0x3d6870+='\x20\x20\x20\x20\x20*\x20添加数据\x0a',_0x3d6870+='\x20\x20\x20\x20\x20*\x20**/\x0a',_0x3d6870+='\x20\x20\x20\x20async\x20create(params:\x20'+_0x19b7fe+'DTOCreate)\x20{\x0a',_0x3d6870+='\x20\x20\x20\x20\x20\x20\x20\x20const\x20tmpModel\x20=\x20this.'+_0x45b546+'.create(params)\x0a\x0a',_0x3d6870+='\x20\x20\x20\x20\x20\x20\x20\x20return\x20await\x20this.'+_0x45b546+_0x51be0d(0xeb),_0x3d6870+=_0x51be0d(0xf8),_0x3d6870+=_0x51be0d(0xfb),_0x3d6870+=_0x51be0d(0xfa),_0x3d6870+=_0x51be0d(0xed),_0x3d6870+='\x20\x20\x20\x20async\x20update(conditions:\x20SearchParams<'+_0x19b7fe+_0x51be0d(0x124)+_0x19b7fe+_0x51be0d(0xe1),_0x3d6870+=_0x51be0d(0x101)+_0x45b546+'.search(conditions,\x20{},\x20options).then(async\x20search\x20=>\x20{\x0a\x0a',_0x3d6870+=_0x51be0d(0x132),_0x3d6870+=_0x51be0d(0x12d)+_0x19b7fe+'Error('+_0x19b7fe+_0x51be0d(0x118)+_0x4c762b+_0x51be0d(0xfe),_0x3d6870+='\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20});\x0a',_0x3d6870+=_0x51be0d(0xff),_0x3d6870+=_0x51be0d(0x112)+_0x45b546+_0x51be0d(0xf0),_0x3d6870+='\x20\x20\x20\x20\x20\x20\x20\x20return\x20await\x20this.'+_0x45b546+_0x51be0d(0xeb),_0x3d6870+=_0x51be0d(0xf8),_0x3d6870+=_0x51be0d(0xfb),_0x3d6870+=_0x51be0d(0x10f),_0x3d6870+='\x20\x20\x20\x20\x20*\x20**/\x0a',_0x3d6870+=_0x51be0d(0xea)+_0x19b7fe+'Entity>,\x20options:\x20SearchOptions\x20=\x20{})\x20{\x0a',_0x3d6870+=_0x51be0d(0x12b)+_0x45b546+_0x51be0d(0x10d),_0x3d6870+=_0x51be0d(0xee),_0x3d6870+=_0x51be0d(0xff),_0x3d6870+=_0x51be0d(0x133),_0x3d6870+='\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20deletes.push(await\x20this.'+_0x45b546+'.softRemove(tmpModel))\x0a',_0x3d6870+=_0x51be0d(0xfd),_0x3d6870+=_0x51be0d(0x11a),_0x3d6870+=_0x51be0d(0xf8),_0x3d6870+=_0x51be0d(0xfb),_0x3d6870+='\x20\x20\x20\x20\x20*\x20恢复删除的数据\x0a',_0x3d6870+=_0x51be0d(0xed),_0x3d6870+=_0x51be0d(0xe0)+_0x19b7fe+_0x51be0d(0xe3),_0x3d6870+=_0x51be0d(0x129)+_0x45b546+'.search(conditions,\x20{},\x20options).then(async\x20search\x20=>\x20{\x0a\x0a',_0x3d6870+=_0x51be0d(0x10e),_0x3d6870+='\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20return\x20search.getMany();\x0a',_0x3d6870+=_0x51be0d(0xff),_0x3d6870+='\x20\x20\x20\x20\x20\x20\x20\x20for\x20(let\x20tmpModel\x20of\x20tmpModels)\x20{\x0a',_0x3d6870+='\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20restores.push(await\x20this.'+_0x45b546+_0x51be0d(0x111),_0x3d6870+=_0x51be0d(0xfd),_0x3d6870+=_0x51be0d(0x115),_0x3d6870+=_0x51be0d(0xf8),_0x3d6870+='}',!fs['existsSync']((0x0,path_1[_0x51be0d(0xec)])(_0x597fcd))&&fs[_0x51be0d(0xfc)]((0x0,path_1['dirname'])(_0x597fcd),{'recursive':!![]}),fs[_0x51be0d(0xf7)](_0x597fcd,_0x3d6870,_0x51be0d(0x113));}}
|
|
1
|
+
const a8_0xee0452=a8_0x3798;function a8_0x3798(_0x4a9bb8,_0x59b802){const _0x20d5c2=a8_0x2b8f();return a8_0x3798=function(_0xe87d7f,_0x56f174){_0xe87d7f=_0xe87d7f-0x12e;let _0x2b8fe1=_0x20d5c2[_0xe87d7f];return _0x2b8fe1;},a8_0x3798(_0x4a9bb8,_0x59b802);}(function(_0x52411e,_0x47dc98){const _0x5b5839=a8_0x3798,_0x3b6660=_0x52411e();while(!![]){try{const _0x2fcc85=parseInt(_0x5b5839(0x163))/0x1*(parseInt(_0x5b5839(0x12f))/0x2)+parseInt(_0x5b5839(0x178))/0x3*(-parseInt(_0x5b5839(0x156))/0x4)+-parseInt(_0x5b5839(0x16d))/0x5*(-parseInt(_0x5b5839(0x159))/0x6)+parseInt(_0x5b5839(0x13e))/0x7*(-parseInt(_0x5b5839(0x130))/0x8)+parseInt(_0x5b5839(0x153))/0x9*(parseInt(_0x5b5839(0x13d))/0xa)+-parseInt(_0x5b5839(0x174))/0xb*(parseInt(_0x5b5839(0x15e))/0xc)+parseInt(_0x5b5839(0x13f))/0xd;if(_0x2fcc85===_0x47dc98)break;else _0x3b6660['push'](_0x3b6660['shift']());}catch(_0xec718f){_0x3b6660['push'](_0x3b6660['shift']());}}}(a8_0x2b8f,0x7c767));const a8_0x56f174=(function(){let _0x354aa3=!![];return function(_0x399024,_0x1cd091){const _0x3b864a=_0x354aa3?function(){if(_0x1cd091){const _0x246df0=_0x1cd091['apply'](_0x399024,arguments);return _0x1cd091=null,_0x246df0;}}:function(){};return _0x354aa3=![],_0x3b864a;};}()),a8_0xe87d7f=a8_0x56f174(this,function(){const _0x18700f=a8_0x3798;return a8_0xe87d7f[_0x18700f(0x168)]()[_0x18700f(0x13c)]('(((.+)+)+)+$')[_0x18700f(0x168)]()[_0x18700f(0x134)](a8_0xe87d7f)[_0x18700f(0x13c)](_0x18700f(0x182));});a8_0xe87d7f();'use strict';Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports['default']=default_1;const fs=require('fs'),path_1=require(a8_0xee0452(0x149));async function default_1({tablestartUp:_0x2fa571,tablestartUpShort:_0x5ec3b4,basedir:_0x253146,Primary:_0x23ede2,Comment:_0x20858c,moduleName:_0x5af87e,apporbasic:_0x3d9b8b}){const _0x23b5f8=a8_0xee0452,_0x289d6a=_0x253146+(_0x23b5f8(0x181)+_0x5ec3b4+_0x23b5f8(0x155));if(!fs['existsSync'](_0x289d6a)){let _0x593e0b='';_0x593e0b+=_0x23b5f8(0x14b),_0x593e0b+='import\x20{\x20CacheService,\x20EventService,\x20ValidatorService\x20}\x20from\x20\x27anncic-api\x27;\x0a',_0x593e0b+='import\x20{\x20InjectRepository,\x20SearchParams,\x20SearchPaginate,\x20SearchOptions\x20}\x20from\x20\x27@anncic-api/typeorm\x27;\x0a\x0a',_0x593e0b+=_0x23b5f8(0x17d)+_0x2fa571+_0x23b5f8(0x15d)+(typeof _0x5af87e=='string'?_0x23b5f8(0x161)+_0x5af87e:'@/'+_0x3d9b8b)+_0x23b5f8(0x139)+_0x5ec3b4+_0x23b5f8(0x176),_0x593e0b+=_0x23b5f8(0x17d)+_0x2fa571+'Error\x20}\x20from\x20\x27'+(typeof _0x5af87e==_0x23b5f8(0x172)?_0x23b5f8(0x161)+_0x5af87e:'@/'+_0x3d9b8b)+_0x23b5f8(0x14c)+_0x5ec3b4+'\x27;\x0a',_0x593e0b+=_0x23b5f8(0x17d)+_0x2fa571+_0x23b5f8(0x144)+(typeof _0x5af87e==_0x23b5f8(0x172)?_0x23b5f8(0x161)+_0x5af87e:'@/'+_0x3d9b8b)+'/entities/'+_0x5ec3b4+_0x23b5f8(0x141),_0x593e0b+=_0x23b5f8(0x17d)+_0x2fa571+_0x23b5f8(0x170)+(typeof _0x5af87e==_0x23b5f8(0x172)?'@/apps/'+_0x5af87e:'@/'+_0x3d9b8b)+_0x23b5f8(0x152)+_0x5ec3b4+'/Create\x27;\x0a',_0x593e0b+=_0x23b5f8(0x17d)+_0x2fa571+_0x23b5f8(0x14a)+(typeof _0x5af87e==_0x23b5f8(0x172)?_0x23b5f8(0x161)+_0x5af87e:'@/'+_0x3d9b8b)+_0x23b5f8(0x152)+_0x5ec3b4+'/Update\x27;\x0a',_0x593e0b+='\x0a',_0x593e0b+=_0x23b5f8(0x15f),_0x593e0b+=_0x23b5f8(0x146)+_0x20858c+'\x0a',_0x593e0b+=_0x23b5f8(0x135),_0x593e0b+=_0x23b5f8(0x171),_0x593e0b+=_0x23b5f8(0x14e)+_0x2fa571+_0x23b5f8(0x17a),_0x593e0b+='\x20\x20\x20\x20@Inject()\x20CacheService:\x20CacheService;\x0a',_0x593e0b+=_0x23b5f8(0x17e),_0x593e0b+='\x20\x20\x20\x20@Inject()\x20ValidatorService:\x20ValidatorService;\x0a\x0a',_0x593e0b+=_0x23b5f8(0x15b)+_0x2fa571+')\x20'+_0x5ec3b4+':\x20'+_0x2fa571+';\x0a\x0a\x0a',_0x593e0b+=_0x23b5f8(0x160),_0x593e0b+='\x20\x20\x20\x20\x20*\x20数据列表\x0a',_0x593e0b+=_0x23b5f8(0x16a),_0x593e0b+=_0x23b5f8(0x158)+_0x2fa571+_0x23b5f8(0x151)+_0x2fa571+_0x23b5f8(0x15a),_0x593e0b+='\x20\x20\x20\x20\x20\x20\x20\x20const\x20[pagelist,\x20pagetotal]\x20=\x20await\x20this.'+_0x5ec3b4+_0x23b5f8(0x150),_0x593e0b+=_0x23b5f8(0x133),_0x593e0b+=_0x23b5f8(0x145),_0x593e0b+=_0x23b5f8(0x16f),_0x593e0b+='\x20\x20\x20\x20}\x0a\x0a\x0a',_0x593e0b+=_0x23b5f8(0x160),_0x593e0b+=_0x23b5f8(0x173),_0x593e0b+=_0x23b5f8(0x16a),_0x593e0b+=_0x23b5f8(0x137)+_0x2fa571+_0x23b5f8(0x162),_0x593e0b+=_0x23b5f8(0x14d)+_0x5ec3b4+'.search(conditions,\x20{},\x20options).then(async\x20search\x20=>\x20{\x0a\x0a',_0x593e0b+=_0x23b5f8(0x131),_0x593e0b+=_0x23b5f8(0x142)+_0x2fa571+_0x23b5f8(0x143)+_0x2fa571+'Error._NOTFIND_,\x20{\x20message:\x20\x27'+_0x20858c+_0x23b5f8(0x175),_0x593e0b+=_0x23b5f8(0x167),_0x593e0b+='\x20\x20\x20\x20\x20\x20\x20\x20});\x0a\x0a',_0x593e0b+='\x20\x20\x20\x20\x20\x20\x20\x20return\x20tmpModel\x0a',_0x593e0b+=_0x23b5f8(0x14f),_0x593e0b+=_0x23b5f8(0x160),_0x593e0b+=_0x23b5f8(0x138),_0x593e0b+=_0x23b5f8(0x16a),_0x593e0b+=_0x23b5f8(0x177)+_0x2fa571+_0x23b5f8(0x17b),_0x593e0b+=_0x23b5f8(0x132)+_0x5ec3b4+_0x23b5f8(0x186),_0x593e0b+=_0x23b5f8(0x12e)+_0x5ec3b4+_0x23b5f8(0x157),_0x593e0b+=_0x23b5f8(0x14f),_0x593e0b+=_0x23b5f8(0x160),_0x593e0b+='\x20\x20\x20\x20\x20*\x20修改数据\x0a',_0x593e0b+=_0x23b5f8(0x16a),_0x593e0b+=_0x23b5f8(0x148)+_0x2fa571+_0x23b5f8(0x166)+_0x2fa571+_0x23b5f8(0x179),_0x593e0b+=_0x23b5f8(0x14d)+_0x5ec3b4+_0x23b5f8(0x16b),_0x593e0b+=_0x23b5f8(0x131),_0x593e0b+=_0x23b5f8(0x142)+_0x2fa571+'Error('+_0x2fa571+_0x23b5f8(0x17c)+_0x20858c+_0x23b5f8(0x175),_0x593e0b+='\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20});\x0a',_0x593e0b+=_0x23b5f8(0x145),_0x593e0b+=_0x23b5f8(0x184)+_0x5ec3b4+'.merge(tmpModel,\x20params);\x0a',_0x593e0b+='\x20\x20\x20\x20\x20\x20\x20\x20return\x20await\x20this.'+_0x5ec3b4+_0x23b5f8(0x157),_0x593e0b+='\x20\x20\x20\x20}\x0a\x0a\x0a',_0x593e0b+=_0x23b5f8(0x160),_0x593e0b+=_0x23b5f8(0x13b),_0x593e0b+=_0x23b5f8(0x16a),_0x593e0b+=_0x23b5f8(0x169)+_0x2fa571+_0x23b5f8(0x162),_0x593e0b+=_0x23b5f8(0x164)+_0x5ec3b4+_0x23b5f8(0x16b),_0x593e0b+='\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20return\x20search.getMany();\x0a',_0x593e0b+=_0x23b5f8(0x145),_0x593e0b+=_0x23b5f8(0x185),_0x593e0b+='\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20deletes.push(await\x20this.'+_0x5ec3b4+'.softRemove(tmpModel))\x0a',_0x593e0b+=_0x23b5f8(0x183),_0x593e0b+=_0x23b5f8(0x15c),_0x593e0b+=_0x23b5f8(0x14f),_0x593e0b+=_0x23b5f8(0x160),_0x593e0b+='\x20\x20\x20\x20\x20*\x20恢复删除的数据\x0a',_0x593e0b+=_0x23b5f8(0x16a),_0x593e0b+='\x20\x20\x20\x20async\x20restores(conditions:\x20SearchParams<'+_0x2fa571+'Entity>,\x20options:\x20SearchOptions\x20=\x20{})\x20{\x0a',_0x593e0b+=_0x23b5f8(0x17f)+_0x5ec3b4+_0x23b5f8(0x16b),_0x593e0b+=_0x23b5f8(0x16c),_0x593e0b+=_0x23b5f8(0x147),_0x593e0b+=_0x23b5f8(0x145),_0x593e0b+=_0x23b5f8(0x185),_0x593e0b+=_0x23b5f8(0x154)+_0x5ec3b4+'.recover(tmpModel))\x0a',_0x593e0b+='\x20\x20\x20\x20\x20\x20\x20\x20}\x0a',_0x593e0b+=_0x23b5f8(0x180),_0x593e0b+=_0x23b5f8(0x14f),_0x593e0b+='}',!fs[_0x23b5f8(0x165)]((0x0,path_1[_0x23b5f8(0x140)])(_0x289d6a))&&fs[_0x23b5f8(0x136)]((0x0,path_1[_0x23b5f8(0x140)])(_0x289d6a),{'recursive':!![]}),fs[_0x23b5f8(0x13a)](_0x289d6a,_0x593e0b,_0x23b5f8(0x16e));}}function a8_0x2b8f(){const _0x5ef84b=['DTOUpdate,\x20options:\x20SearchOptions\x20=\x20{})\x20{\x0a','Handler\x20{\x0a\x0a','DTOCreate)\x20{\x0a','Error._NOTFIND_,\x20{\x20message:\x20\x27','import\x20{\x20','\x20\x20\x20\x20@Inject()\x20EventService:\x20EventService;\x0a','\x20\x20\x20\x20\x20\x20\x20\x20const\x20restores:\x20any\x20=\x20[],\x20tmpModels\x20=\x20await\x20this.','\x20\x20\x20\x20\x20\x20\x20\x20return\x20restores\x0a','/handlers/','(((.+)+)+)+$','\x20\x20\x20\x20\x20\x20\x20\x20}\x0a','\x20\x20\x20\x20\x20\x20\x20\x20this.','\x20\x20\x20\x20\x20\x20\x20\x20for\x20(let\x20tmpModel\x20of\x20tmpModels)\x20{\x0a','.create(params)\x0a\x0a','\x20\x20\x20\x20\x20\x20\x20\x20return\x20await\x20this.','1628rWmYil','272hryYEH','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20return\x20search.getOneOrFail().catch(()\x20=>\x20{\x0a','\x20\x20\x20\x20\x20\x20\x20\x20const\x20tmpModel\x20=\x20this.','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20return\x20search.getManyAndCount();\x0a','constructor','\x20*\x20**/\x0a','mkdirSync','\x20\x20\x20\x20async\x20detail(conditions?:\x20SearchParams<','\x20\x20\x20\x20\x20*\x20添加数据\x0a','/entities/','writeFileSync','\x20\x20\x20\x20\x20*\x20删除数据\x0a','search','10EYlSis','76398OlARaz','1343511KybJql','dirname','/entity\x27;\x0a','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20throw\x20new\x20','Error(','Entity\x20}\x20from\x20\x27','\x20\x20\x20\x20\x20\x20\x20\x20});\x0a\x0a','\x20*\x20','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20return\x20search.getMany();\x0a','\x20\x20\x20\x20async\x20update(conditions:\x20SearchParams<','path','DTOUpdate\x20}\x20from\x20\x27','import\x20{\x20Inject,\x20Singleton\x20}\x20from\x20\x27anncic-api\x27;\x0a','/exceptions/','\x20\x20\x20\x20\x20\x20\x20\x20const\x20tmpModel\x20=\x20await\x20this.','export\x20class\x20','\x20\x20\x20\x20}\x0a\x0a\x0a','.search(conditions,\x20pageinfo,\x20options).then(async\x20search\x20=>\x20{\x0a\x0a','Entity>,\x20pageinfo?:\x20SearchPaginate,\x20options:\x20SearchOptions\x20=\x20{}):\x20Promise<[','/validators/','3228417PKJcCG','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20restores.push(await\x20this.','.ts','4ccVmwC','.save(tmpModel);\x0a','\x20\x20\x20\x20async\x20list(conditions?:\x20SearchParams<','2668494yVcDFE','Entity[],\x20number]>\x20{\x0a','\x20\x20\x20\x20@InjectRepository(','\x20\x20\x20\x20\x20\x20\x20\x20return\x20deletes\x0a','\x20}\x20from\x20\x27','419532JhNoag','/**\x0a','\x20\x20\x20\x20/**\x0a','@/apps/','Entity>,\x20options:\x20SearchOptions\x20=\x20{})\x20{\x0a','958QloLsI','\x20\x20\x20\x20\x20\x20\x20\x20const\x20deletes:\x20any\x20=\x20[],\x20tmpModels\x20=\x20await\x20this.','existsSync','Entity>,\x20params:\x20','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20});\x0a','toString','\x20\x20\x20\x20async\x20remove(conditions:\x20SearchParams<','\x20\x20\x20\x20\x20*\x20**/\x0a','.search(conditions,\x20{},\x20options).then(async\x20search\x20=>\x20{\x0a\x0a','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20search.withDeleted().andWhere(`${search.alias}.deleted_at\x20IS\x20NOT\x20NULL`);\x0a','10GeRmRM','utf-8','\x20\x20\x20\x20\x20\x20\x20\x20return\x20[pagelist,\x20pagetotal];\x0a','DTOCreate\x20}\x20from\x20\x27','@Singleton()\x0a','string','\x20\x20\x20\x20\x20*\x20数据详情\x0a','231ijMPtd','不存在\x27\x20})\x0a','\x27;\x0a','\x20\x20\x20\x20async\x20create(params:\x20','1548942RrlOBM'];a8_0x2b8f=function(){return _0x5ef84b;};return a8_0x2b8f();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a9_0x47f9(){const _0x351a4f=['dirname','(((.+)+)+)+$','_end:\x20string)\x20{\x0a','4aAgvZJ','Field','\x20\x20\x20\x20async\x20updated_at_between(query:\x20SelectQueryBuilder<ObjectLiteral>,\x20updated_at_between:\x20string[])\x20{\x0a','\x20\x20\x20\x20@Search(\x27updated_at_end\x27,\x20\x27修改时间:<=\x20起始时间(之前)\x27)\x0a','\x20<=\x20:','1tCBxgY','_between\x27,\x20\x27','/**\x0a','\x20\x20\x20\x20\x20\x20\x20\x20}\x0a','date','\x20\x20\x20\x20async\x20','-自定义检索\x0a','_between.length\x20==\x202\x20){\x0a','\x20\x20\x20\x20@Search(\x27updated_at_start\x27,\x20\x27修改时间:>=\x20起始时间(之后)\x27)\x0a','_start\x27,\x20\x27','@Provide()\x0a','timestamp','33969mzMHZm','\x20\x20\x20\x20@Search(\x27updated_at_between\x27,\x20\x27修改时间在选定时间之内\x27)\x0a','updated_at','%column%','_end(query:\x20SelectQueryBuilder<ObjectLiteral>,\x20','defineProperty','596112QHGjuo','__esModule','search','\x20\x20\x20\x20\x20\x20\x20\x20query.andWhere(`${query.alias}.','deleted_at','replace','_start:\x20string)\x20{\x0a','export\x20class\x20','writeFileSync','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20this.updated_at_start(query,\x20dayjs(updated_at_between[0]).format(\x27YYYY-MM-DD\x20HH:mm:ss\x27))\x0a','utf-8','toString','_between[1]).format(\x27YYYY-MM-DD\x20HH:mm:ss\x27))\x0a','../helper','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20this.created_at_end(query,\x20dayjs(created_at_between[1]).format(\x27YYYY-MM-DD\x20HH:mm:ss\x27))\x0a','\x20\x20\x20\x20\x20\x20\x20\x20query.andWhere(`${query.alias}.created_at\x20<=\x20:created_at_end`,\x20{\x20created_at_end\x20})\x0a','\x20\x20\x20\x20@Search(\x27created_at_end\x27,\x20\x27创建时间:<=\x20起始时间(之前)\x27)\x0a','_between:\x20string[])\x20{\x0a','path','_end\x27,\x20\x27','_start\x20})\x0a','\x20\x20\x20\x20async\x20updated_at_start(query:\x20SelectQueryBuilder<ObjectLiteral>,\x20updated_at_start:\x20string)\x20{\x0a','displayorder','\x20\x20\x20\x20}\x0a\x0a','_start(query:\x20SelectQueryBuilder<ObjectLiteral>,\x20','_end\x20})\x0a','json','Comment','longtext','\x20\x20\x20\x20async\x20created_at_end(query:\x20SelectQueryBuilder<ObjectLiteral>,\x20created_at_end:\x20string)\x20{\x0a','801885cpkunc','\x20\x20\x20\x20\x20\x20\x20\x20if(\x20','\x20\x20\x20\x20@Search(\x27created_at_between\x27,\x20\x27创建时间在选定时间之内\x27)\x0a','_start(query,\x20dayjs(','10PCubJa','_end`,\x20{\x20',':<=\x20起始时间(之前)\x27)\x0a',':>=\x20起始时间(之后)\x27)\x0a','1343619zypSxP','56UzfSMd','\x20\x20\x20\x20\x20\x20\x20\x20if(\x20updated_at_between.length\x20==\x202\x20){\x0a','text','\x20\x20\x20\x20@Search(\x27created_at_start\x27,\x20\x27创建时间:>=\x20起始时间(之后)\x27)\x0a','\x20*\x20**/\x0a','300080ixxues','apply','\x20\x20\x20\x20\x20\x20\x20\x20if(\x20created_at_between.length\x20==\x202\x20){\x0a','constructor','\x20\x20\x20\x20@Search(\x27','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20this.','\x20>=\x20:','mkdirSync','343250hGbzCX','115344YtSBad','\x20\x20\x20\x20\x20\x20\x20\x20query.andWhere(`${query.alias}.created_at\x20>=\x20:created_at_start`,\x20{\x20created_at_start\x20})\x0a','existsSync','.ts','\x20\x20\x20\x20async\x20updated_at_end(query:\x20SelectQueryBuilder<ObjectLiteral>,\x20updated_at_end:\x20string)\x20{\x0a'];a9_0x47f9=function(){return _0x351a4f;};return a9_0x47f9();}const a9_0x31abe5=a9_0x5508;(function(_0x57f749,_0x3267f0){const _0x5d5999=a9_0x5508,_0x237f13=_0x57f749();while(!![]){try{const _0x16594c=-parseInt(_0x5d5999(0x109))/0x1*(-parseInt(_0x5d5999(0xfb))/0x2)+-parseInt(_0x5d5999(0x115))/0x3*(-parseInt(_0x5d5999(0x104))/0x4)+-parseInt(_0x5d5999(0xe5))/0x5+parseInt(_0x5d5999(0xfc))/0x6*(parseInt(_0x5d5999(0xee))/0x7)+parseInt(_0x5d5999(0xf3))/0x8+parseInt(_0x5d5999(0xed))/0x9*(-parseInt(_0x5d5999(0xe9))/0xa)+parseInt(_0x5d5999(0x11b))/0xb;if(_0x16594c===_0x3267f0)break;else _0x237f13['push'](_0x237f13['shift']());}catch(_0x5172a2){_0x237f13['push'](_0x237f13['shift']());}}}(a9_0x47f9,0x1cff6));const a9_0x5be4b9=(function(){let _0x8ffe0b=!![];return function(_0x549798,_0x259a45){const _0x3f16a9=_0x8ffe0b?function(){const _0x13bdc7=a9_0x5508;if(_0x259a45){const _0x342ccb=_0x259a45[_0x13bdc7(0xf4)](_0x549798,arguments);return _0x259a45=null,_0x342ccb;}}:function(){};return _0x8ffe0b=![],_0x3f16a9;};}()),a9_0x38e839=a9_0x5be4b9(this,function(){const _0x1f5d66=a9_0x5508;return a9_0x38e839[_0x1f5d66(0xd2)]()[_0x1f5d66(0x11d)](_0x1f5d66(0x102))[_0x1f5d66(0xd2)]()[_0x1f5d66(0xf6)](a9_0x38e839)[_0x1f5d66(0x11d)](_0x1f5d66(0x102));});a9_0x38e839();function a9_0x5508(_0xe6c47,_0x3d50b8){const _0x2f84a3=a9_0x47f9();return a9_0x5508=function(_0x38e839,_0x5be4b9){_0x38e839=_0x38e839-0xcf;let _0x47f923=_0x2f84a3[_0x38e839];return _0x47f923;},a9_0x5508(_0xe6c47,_0x3d50b8);}'use strict';Object[a9_0x31abe5(0x11a)](exports,a9_0x31abe5(0x11c),{'value':!![]}),exports['default']=default_1;const fs=require('fs'),path_1=require(a9_0x31abe5(0xd9)),helper_1=require(a9_0x31abe5(0xd4));async function default_1({tablestartUp:_0x58c486,tablestartUpShort:_0x389300,basedir:_0x53d9a1,Fields:_0x19bf7a,Comment:_0x569602}){const _0x41189b=a9_0x31abe5,_0x58f3b8=_0x53d9a1+('/searchs/'+_0x389300+_0x41189b(0xff));if(!fs['existsSync'](_0x58f3b8)){let _0x2cf404='',_0x5c107a='';for(let _0x52b671 in _0x19bf7a){let _0x3824f5=_0x19bf7a[_0x52b671],_0x168e2d=(0x0,helper_1['getProp'])(_0x3824f5['Type']);if(_0x3824f5[_0x41189b(0x105)]==_0x41189b(0xdd)||_0x3824f5[_0x41189b(0x105)]=='created_at'||_0x3824f5[_0x41189b(0x105)]==_0x41189b(0x117)||_0x3824f5[_0x41189b(0x105)]==_0x41189b(0x11f))continue;if(_0x168e2d==_0x41189b(0xe1)){}else{if(_0x168e2d==_0x41189b(0xf0)){}else{if(_0x168e2d==_0x41189b(0xe3)){}else[_0x41189b(0x10d),'datetime',_0x41189b(0x114)]['indexOf'](_0x168e2d)>-0x1&&(_0x2cf404+=_0x41189b(0xf7)+_0x3824f5[_0x41189b(0x105)]+_0x41189b(0x10a)+_0x3824f5[_0x41189b(0xe2)]+'在选定时间之内\x27)\x0a',_0x2cf404+=_0x41189b(0x10e)+_0x3824f5[_0x41189b(0x105)]+'_between(query:\x20SelectQueryBuilder<ObjectLiteral>,\x20'+_0x3824f5[_0x41189b(0x105)]+_0x41189b(0xd8),_0x2cf404+=_0x41189b(0xe6)+_0x3824f5[_0x41189b(0x105)]+_0x41189b(0x110),_0x2cf404+=_0x41189b(0xf8)+_0x3824f5[_0x41189b(0x105)]+'_end(query,\x20dayjs('+_0x3824f5[_0x41189b(0x105)]+_0x41189b(0xd3),_0x2cf404+=_0x41189b(0xf8)+_0x3824f5[_0x41189b(0x105)]+_0x41189b(0xe8)+_0x3824f5[_0x41189b(0x105)]+'_between[0]).format(\x27YYYY-MM-DD\x20HH:mm:ss\x27))\x0a',_0x2cf404+=_0x41189b(0x10c),_0x2cf404+=_0x41189b(0xde),_0x2cf404+=_0x41189b(0xf7)+_0x3824f5['Field']+_0x41189b(0x112)+_0x3824f5[_0x41189b(0xe2)]+_0x41189b(0xec),_0x2cf404+=_0x41189b(0x10e)+_0x3824f5[_0x41189b(0x105)]+_0x41189b(0xdf)+_0x3824f5[_0x41189b(0x105)]+_0x41189b(0x121),_0x2cf404+='\x20\x20\x20\x20\x20\x20\x20\x20query.andWhere(`${query.alias}.'+_0x3824f5[_0x41189b(0x105)]+_0x41189b(0xf9)+_0x3824f5[_0x41189b(0x105)]+'_start`,\x20{\x20'+_0x3824f5['Field']+_0x41189b(0xdb),_0x2cf404+=_0x41189b(0xde),_0x2cf404+='\x20\x20\x20\x20@Search(\x27'+_0x3824f5[_0x41189b(0x105)]+_0x41189b(0xda)+_0x3824f5[_0x41189b(0xe2)]+_0x41189b(0xeb),_0x2cf404+=_0x41189b(0x10e)+_0x3824f5['Field']+_0x41189b(0x119)+_0x3824f5[_0x41189b(0x105)]+_0x41189b(0x103),_0x2cf404+=_0x41189b(0x11e)+_0x3824f5[_0x41189b(0x105)]+_0x41189b(0x108)+_0x3824f5[_0x41189b(0x105)]+_0x41189b(0xea)+_0x3824f5['Field']+_0x41189b(0xe0),_0x2cf404+=_0x41189b(0xde));}}}_0x2cf404+=_0x41189b(0xe7),_0x2cf404+='\x20\x20\x20\x20async\x20created_at_between(query:\x20SelectQueryBuilder<ObjectLiteral>,\x20created_at_between:\x20string[])\x20{\x0a',_0x2cf404+=_0x41189b(0xf5),_0x2cf404+=_0x41189b(0xd5),_0x2cf404+='\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20this.created_at_start(query,\x20dayjs(created_at_between[0]).format(\x27YYYY-MM-DD\x20HH:mm:ss\x27))\x0a',_0x2cf404+=_0x41189b(0x10c),_0x2cf404+='\x20\x20\x20\x20}\x0a\x0a',_0x2cf404+=_0x41189b(0xf1),_0x2cf404+='\x20\x20\x20\x20async\x20created_at_start(query:\x20SelectQueryBuilder<ObjectLiteral>,\x20created_at_start:\x20string)\x20{\x0a',_0x2cf404+=_0x41189b(0xfd),_0x2cf404+=_0x41189b(0xde),_0x2cf404+=_0x41189b(0xd7),_0x2cf404+=_0x41189b(0xe4),_0x2cf404+=_0x41189b(0xd6),_0x2cf404+=_0x41189b(0xde),_0x2cf404+=_0x41189b(0x116),_0x2cf404+=_0x41189b(0x106),_0x2cf404+=_0x41189b(0xef),_0x2cf404+='\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20this.updated_at_end(query,\x20dayjs(updated_at_between[1]).format(\x27YYYY-MM-DD\x20HH:mm:ss\x27))\x0a',_0x2cf404+=_0x41189b(0xd0),_0x2cf404+=_0x41189b(0x10c),_0x2cf404+=_0x41189b(0xde),_0x2cf404+=_0x41189b(0x111),_0x2cf404+=_0x41189b(0xdc),_0x2cf404+='\x20\x20\x20\x20\x20\x20\x20\x20query.andWhere(`${query.alias}.updated_at\x20>=\x20:updated_at_start`,\x20{\x20updated_at_start\x20})\x0a',_0x2cf404+=_0x41189b(0xde),_0x2cf404+=_0x41189b(0x107),_0x2cf404+=_0x41189b(0x100),_0x2cf404+='\x20\x20\x20\x20\x20\x20\x20\x20query.andWhere(`${query.alias}.updated_at\x20<=\x20:updated_at_end`,\x20{\x20updated_at_end\x20})\x0a',_0x2cf404+='\x20\x20\x20\x20}\x0a\x0a',_0x5c107a+='import\x20{\x20Provide,\x20Search,\x20ObjectLiteral,\x20SelectQueryBuilder\x20}\x20from\x20\x27@anncic-api/typeorm\x27;\x0a\x0a',_0x5c107a+=_0x41189b(0x10b),_0x5c107a+='\x20*\x20'+_0x569602+_0x41189b(0x10f),_0x5c107a+=_0x41189b(0xf2),_0x5c107a+=_0x41189b(0x113),_0x5c107a+=_0x41189b(0x122)+_0x58c486+'Search\x20{\x0a\x0a',_0x5c107a+=_0x41189b(0x118),_0x5c107a+='}',_0x5c107a=_0x5c107a[_0x41189b(0x120)](_0x41189b(0x118),_0x2cf404),!fs[_0x41189b(0xfe)]((0x0,path_1[_0x41189b(0x101)])(_0x58f3b8))&&fs[_0x41189b(0xfa)]((0x0,path_1[_0x41189b(0x101)])(_0x58f3b8),{'recursive':!![]}),fs[_0x41189b(0xcf)](_0x58f3b8,_0x5c107a,_0x41189b(0xd1));}}
|