anncic-apihelper 3.4.78 → 3.4.79
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_0x225079=a0_0x634f;(function(_0x303c0e,_0x30139d){var _0x3c6e42=a0_0x634f,_0x135dfc=_0x303c0e();while(!![]){try{var _0x5d67bf=-parseInt(_0x3c6e42(0x88))/0x1+-parseInt(_0x3c6e42(0x7f))/0x2*(-parseInt(_0x3c6e42(0x92))/0x3)+parseInt(_0x3c6e42(0x90))/0x4*(-parseInt(_0x3c6e42(0x79))/0x5)+-parseInt(_0x3c6e42(0x78))/0x6+-parseInt(_0x3c6e42(0x91))/0x7+parseInt(_0x3c6e42(0x84))/0x8+parseInt(_0x3c6e42(0x7c))/0x9*(parseInt(_0x3c6e42(0x8f))/0xa);if(_0x5d67bf===_0x30139d)break;else _0x135dfc['push'](_0x135dfc['shift']());}catch(_0x301aa7){_0x135dfc['push'](_0x135dfc['shift']());}}}(a0_0x1ed0,0x92c73));var a0_0x532b7d=(function(){var _0x1068e0=!![];return function(_0x5642a0,_0x522da8){var _0x250eb4=_0x1068e0?function(){var _0x29e5b2=a0_0x634f;if(_0x522da8){var _0x2dcf42=_0x522da8[_0x29e5b2(0x83)](_0x5642a0,arguments);return _0x522da8=null,_0x2dcf42;}}:function(){};return _0x1068e0=![],_0x250eb4;};}()),a0_0x39dee9=a0_0x532b7d(this,function(){var _0x1ca7a7=a0_0x634f;return a0_0x39dee9[_0x1ca7a7(0x7a)]()[_0x1ca7a7(0x7e)](_0x1ca7a7(0x8a))[_0x1ca7a7(0x7a)]()[_0x1ca7a7(0x8c)](a0_0x39dee9)['search'](_0x1ca7a7(0x8a));});a0_0x39dee9();'use strict';function a0_0x634f(_0x57c1ad,_0x1e32d2){var _0x49ea04=a0_0x1ed0();return a0_0x634f=function(_0x39dee9,_0x532b7d){_0x39dee9=_0x39dee9-0x75;var _0x1ed0cb=_0x49ea04[_0x39dee9];return _0x1ed0cb;},a0_0x634f(_0x57c1ad,_0x1e32d2);}var __decorate=this&&this['__decorate']||function(_0x19a0c0,_0x3a5b22,_0x5ce94f,_0xa01be3){var _0x5ee3d3=a0_0x634f,_0x1430e1=arguments[_0x5ee3d3(0x8b)],_0x515b3d=_0x1430e1<0x3?_0x3a5b22:_0xa01be3===null?_0xa01be3=Object['getOwnPropertyDescriptor'](_0x3a5b22,_0x5ce94f):_0xa01be3,_0x22780c;if(typeof Reflect==='object'&&typeof Reflect[_0x5ee3d3(0x85)]==='function')_0x515b3d=Reflect[_0x5ee3d3(0x85)](_0x19a0c0,_0x3a5b22,_0x5ce94f,_0xa01be3);else{for(var _0x565ecc=_0x19a0c0[_0x5ee3d3(0x8b)]-0x1;_0x565ecc>=0x0;_0x565ecc--)if(_0x22780c=_0x19a0c0[_0x565ecc])_0x515b3d=(_0x1430e1<0x3?_0x22780c(_0x515b3d):_0x1430e1>0x3?_0x22780c(_0x3a5b22,_0x5ce94f,_0x515b3d):_0x22780c(_0x3a5b22,_0x5ce94f))||_0x515b3d;}return _0x1430e1>0x3&&_0x515b3d&&Object[_0x5ee3d3(0x82)](_0x3a5b22,_0x5ce94f,_0x515b3d),_0x515b3d;},__metadata=this&&this[a0_0x225079(0x80)]||function(_0xf92f24,_0x2454c2){var _0x342b5a=a0_0x225079;if(typeof Reflect==='object'&&typeof Reflect['metadata']===_0x342b5a(0x8e))return Reflect[_0x342b5a(0x7d)](_0xf92f24,_0x2454c2);};Object['defineProperty'](exports,a0_0x225079(0x94),{'value':!![]}),exports[a0_0x225079(0x75)]=void 0x0;const core_1=require(a0_0x225079(0x86)),core_2=require(a0_0x225079(0x86)),typeorm=require(a0_0x225079(0x77));let CustomConfiguration=class CustomConfiguration{};exports['CustomConfiguration']=CustomConfiguration,__decorate([(0x0,core_1['Inject'])(),__metadata(a0_0x225079(0x76),core_2['MidwayConfigService'])],CustomConfiguration[a0_0x225079(0x7b)],a0_0x225079(0x8d),void 0x0),__decorate([(0x0,core_1[a0_0x225079(0x95)])(),__metadata('design:type',core_2[a0_0x225079(0x89)])],CustomConfiguration[a0_0x225079(0x7b)],'decorator',void 0x0),__decorate([(0x0,core_1[a0_0x225079(0x95)])(),__metadata('design:type',core_2[a0_0x225079(0x81)])],CustomConfiguration[a0_0x225079(0x7b)],'application',void 0x0),exports[a0_0x225079(0x75)]=CustomConfiguration=__decorate([(0x0,core_1[a0_0x225079(0x87)])({'conflictCheck':![],'imports':[typeorm],'namespace':a0_0x225079(0x93)})],CustomConfiguration);function a0_0x1ed0(){var _0x1a0610=['MidwayApplicationManager','defineProperty','apply','6805160PRNtnG','decorate','@midwayjs/core','Configuration','434873CdQExN','MidwayDecoratorService','(((.+)+)+)+$','length','constructor','config','function','10ciPCix','8fqgYHp','6960331onJKOl','16746kMgfoB','anncic-apihelper','__esModule','Inject','CustomConfiguration','design:type','@anncic-api/typeorm','2913852qAaPmb','749655vArYrI','toString','prototype','14371704ESPYxN','metadata','search','132yGmKMp','__metadata'];a0_0x1ed0=function(){return _0x1a0610;};return a0_0x1ed0();}
|
package/dist/helper.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a1_0x2d47d0=a1_0x5a34;function a1_0x2ad8(){const _0x3272c8=['getEnum','hasOwnProperty','timestamp','constructor','search','tinyint','date','string','text','8FQKbLr','split','(((.+)+)+)+$','3ioawuR','datetime','54prYsxa','length','decimal','float','json','longtext','9ttAInh','2665660gnKgeq','4396973ddqYtI','enum','indexOf','getProp','83316iLNuxL','8339SNmqDT','3235606QAaxLd','6128820vnSKZh','toString','359930WUyFuj','substr','replace'];a1_0x2ad8=function(){return _0x3272c8;};return a1_0x2ad8();}(function(_0x30d51f,_0x52d33e){const _0x586a41=a1_0x5a34,_0x46607c=_0x30d51f();while(!![]){try{const _0x5c55cd=parseInt(_0x586a41(0x124))/0x1+-parseInt(_0x586a41(0x123))/0x2+-parseInt(_0x586a41(0x137))/0x3*(-parseInt(_0x586a41(0x11e))/0x4)+parseInt(_0x586a41(0x128))/0x5*(parseInt(_0x586a41(0x139))/0x6)+-parseInt(_0x586a41(0x11f))/0x7*(parseInt(_0x586a41(0x134))/0x8)+parseInt(_0x586a41(0x13f))/0x9*(-parseInt(_0x586a41(0x126))/0xa)+parseInt(_0x586a41(0x125))/0xb;if(_0x5c55cd===_0x52d33e)break;else _0x46607c['push'](_0x46607c['shift']());}catch(_0x2eefe7){_0x46607c['push'](_0x46607c['shift']());}}}(a1_0x2ad8,0x5190f));const a1_0xb54ab6=(function(){let _0x262bb7=!![];return function(_0x50aa99,_0x3ee003){const _0x141638=_0x262bb7?function(){if(_0x3ee003){const _0x7aa558=_0x3ee003['apply'](_0x50aa99,arguments);return _0x3ee003=null,_0x7aa558;}}:function(){};return _0x262bb7=![],_0x141638;};}()),a1_0x26d09a=a1_0xb54ab6(this,function(){const _0xdb677c=a1_0x5a34;return a1_0x26d09a[_0xdb677c(0x127)]()[_0xdb677c(0x12f)](_0xdb677c(0x136))[_0xdb677c(0x127)]()[_0xdb677c(0x12e)](a1_0x26d09a)['search'](_0xdb677c(0x136));});a1_0x26d09a();'use strict';Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[a1_0x2d47d0(0x122)]=getProp,exports[a1_0x2d47d0(0x12b)]=getEnum;function a1_0x5a34(_0xb4db05,_0x21f344){const _0x52ac79=a1_0x2ad8();return a1_0x5a34=function(_0x26d09a,_0xb54ab6){_0x26d09a=_0x26d09a-0x11e;let _0x2ad8ef=_0x52ac79[_0x26d09a];return _0x2ad8ef;},a1_0x5a34(_0xb4db05,_0x21f344);}const columnTypes={'json':a1_0x2d47d0(0x13d),'char':a1_0x2d47d0(0x132),'varchar':a1_0x2d47d0(0x132),'text':a1_0x2d47d0(0x133),'longtext':a1_0x2d47d0(0x13e),'mediumtext':'mediumtext','int':'number','float':'float','double':a1_0x2d47d0(0x13c),'decimal':a1_0x2d47d0(0x13b),'date':a1_0x2d47d0(0x131),'time':a1_0x2d47d0(0x138),'datetime':a1_0x2d47d0(0x138),'timestamp':a1_0x2d47d0(0x12d),'tinyint':a1_0x2d47d0(0x130)};function getProp(_0x129e78){const _0x674740=a1_0x2d47d0;if(columnTypes[_0x674740(0x12c)](_0x129e78))return columnTypes[_0x129e78];else return _0x129e78[_0x674740(0x121)]('(')>-0x1||_0x129e78[_0x674740(0x121)]('\x20')>-0x1?(_0x129e78=_0x129e78[_0x674740(0x129)](0x0,_0x129e78[_0x674740(0x121)]('(')>-0x1?_0x129e78[_0x674740(0x121)]('('):_0x129e78[_0x674740(0x121)]('\x20')),columnTypes[_0x129e78]||_0x129e78):_0x674740(0x132);}function getEnum(_0x33e40d){const _0x2a7dd2=a1_0x2d47d0;if(getProp(_0x33e40d)==_0x2a7dd2(0x120))return _0x33e40d[_0x2a7dd2(0x129)](0x5,_0x33e40d[_0x2a7dd2(0x13a)]-0x6)[_0x2a7dd2(0x12a)](/[\'|\"]/g,'')[_0x2a7dd2(0x135)](',');return[];}
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a2_0x4f8268=a2_0x31bc;(function(_0x296876,_0x653fbb){var _0x1596fc=a2_0x31bc,_0x30240e=_0x296876();while(!![]){try{var _0x185fb4=parseInt(_0x1596fc(0x174))/0x1+parseInt(_0x1596fc(0x17f))/0x2+parseInt(_0x1596fc(0x183))/0x3*(parseInt(_0x1596fc(0x17b))/0x4)+parseInt(_0x1596fc(0x187))/0x5+-parseInt(_0x1596fc(0x186))/0x6*(-parseInt(_0x1596fc(0x184))/0x7)+parseInt(_0x1596fc(0x180))/0x8*(parseInt(_0x1596fc(0x176))/0x9)+-parseInt(_0x1596fc(0x17e))/0xa*(parseInt(_0x1596fc(0x178))/0xb);if(_0x185fb4===_0x653fbb)break;else _0x30240e['push'](_0x30240e['shift']());}catch(_0x20bf69){_0x30240e['push'](_0x30240e['shift']());}}}(a2_0x13d3,0xa166b));var a2_0x31adce=(function(){var _0x1dcd4e=!![];return function(_0x588380,_0x54d340){var _0x5d2c77=_0x1dcd4e?function(){var _0x37427e=a2_0x31bc;if(_0x54d340){var _0x178ec9=_0x54d340[_0x37427e(0x175)](_0x588380,arguments);return _0x54d340=null,_0x178ec9;}}:function(){};return _0x1dcd4e=![],_0x5d2c77;};}()),a2_0x43c3b0=a2_0x31adce(this,function(){var _0x36f533=a2_0x31bc;return a2_0x43c3b0[_0x36f533(0x185)]()[_0x36f533(0x177)]('(((.+)+)+)+$')[_0x36f533(0x185)]()[_0x36f533(0x17a)](a2_0x43c3b0)[_0x36f533(0x177)]('(((.+)+)+)+$');});a2_0x43c3b0();function a2_0x31bc(_0x2007c9,_0xdc5e1){var _0x175f32=a2_0x13d3();return a2_0x31bc=function(_0x43c3b0,_0x31adce){_0x43c3b0=_0x43c3b0-0x174;var _0x13d39e=_0x175f32[_0x43c3b0];return _0x13d39e;},a2_0x31bc(_0x2007c9,_0xdc5e1);}'use strict';Object[a2_0x4f8268(0x182)](exports,a2_0x4f8268(0x17c),{'value':!![]}),exports[a2_0x4f8268(0x179)]=exports[a2_0x4f8268(0x181)]=void 0x0;var ApicreateService_1=require(a2_0x4f8268(0x17d));Object['defineProperty'](exports,a2_0x4f8268(0x181),{'enumerable':!![],'get':function(){var _0x122d76=a2_0x4f8268;return ApicreateService_1[_0x122d76(0x181)];}});var configuration_1=require('./configuration');function a2_0x13d3(){var _0x54166c=['495ooFTlv','Configuration','constructor','20ewbuMX','__esModule','./service/ApicreateService','647470aApaEq','646690DeYDYl','3180432rfcoyN','ApicreateService','defineProperty','22767XJhCTP','7cVabLo','toString','2074326wUfrUU','5450460LkNOqx','982503yOOUWO','apply','18VvfcHz','search'];a2_0x13d3=function(){return _0x54166c;};return a2_0x13d3();}Object[a2_0x4f8268(0x182)](exports,'Configuration',{'enumerable':!![],'get':function(){return configuration_1['CustomConfiguration'];}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a3_0x2b060f=a3_0x3a77;(function(_0x164f03,_0x1f4680){const _0x1a8d52=a3_0x3a77,_0x475998=_0x164f03();while(!![]){try{const _0x2fdc91=-parseInt(_0x1a8d52(0xa2))/0x1+parseInt(_0x1a8d52(0xb1))/0x2+parseInt(_0x1a8d52(0xe2))/0x3+parseInt(_0x1a8d52(0x90))/0x4+parseInt(_0x1a8d52(0x96))/0x5+parseInt(_0x1a8d52(0xcd))/0x6+-parseInt(_0x1a8d52(0xf6))/0x7;if(_0x2fdc91===_0x1f4680)break;else _0x475998['push'](_0x475998['shift']());}catch(_0x4f06c2){_0x475998['push'](_0x475998['shift']());}}}(a3_0x495c,0x6cf3a));const a3_0xa2381=(function(){let _0x5ca29f=!![];return function(_0x40c7f0,_0x30db66){const _0x26185a=_0x5ca29f?function(){const _0x5ac244=a3_0x3a77;if(_0x30db66){const _0x5cff58=_0x30db66[_0x5ac244(0xde)](_0x40c7f0,arguments);return _0x30db66=null,_0x5cff58;}}:function(){};return _0x5ca29f=![],_0x26185a;};}()),a3_0xd1229c=a3_0xa2381(this,function(){const _0x25f042=a3_0x3a77;return a3_0xd1229c[_0x25f042(0x88)]()['search'](_0x25f042(0xec))[_0x25f042(0x88)]()['constructor'](a3_0xd1229c)['search'](_0x25f042(0xec));});a3_0xd1229c();'use strict';var __decorate=this&&this['__decorate']||function(_0x48c72c,_0x24f8aa,_0x84c802,_0x16f078){const _0x2b6f86=a3_0x3a77;var _0x22c1af=arguments['length'],_0x30fff6=_0x22c1af<0x3?_0x24f8aa:_0x16f078===null?_0x16f078=Object[_0x2b6f86(0x8a)](_0x24f8aa,_0x84c802):_0x16f078,_0x473136;if(typeof Reflect===_0x2b6f86(0xb6)&&typeof Reflect[_0x2b6f86(0xc1)]===_0x2b6f86(0x7b))_0x30fff6=Reflect[_0x2b6f86(0xc1)](_0x48c72c,_0x24f8aa,_0x84c802,_0x16f078);else{for(var _0x271a1d=_0x48c72c['length']-0x1;_0x271a1d>=0x0;_0x271a1d--)if(_0x473136=_0x48c72c[_0x271a1d])_0x30fff6=(_0x22c1af<0x3?_0x473136(_0x30fff6):_0x22c1af>0x3?_0x473136(_0x24f8aa,_0x84c802,_0x30fff6):_0x473136(_0x24f8aa,_0x84c802))||_0x30fff6;}return _0x22c1af>0x3&&_0x30fff6&&Object[_0x2b6f86(0xa4)](_0x24f8aa,_0x84c802,_0x30fff6),_0x30fff6;},__metadata=this&&this[a3_0x2b060f(0xab)]||function(_0x1004d7,_0x275875){const _0x25d8cf=a3_0x2b060f;if(typeof Reflect==='object'&&typeof Reflect[_0x25d8cf(0xc4)]==='function')return Reflect[_0x25d8cf(0xc4)](_0x1004d7,_0x275875);};Object[a3_0x2b060f(0xa4)](exports,a3_0x2b060f(0xa5),{'value':!![]}),exports['ApicreateService']=void 0x0;function a3_0x3a77(_0x2342ec,_0x2b8042){const _0x4c065a=a3_0x495c();return a3_0x3a77=function(_0xd1229c,_0xa2381){_0xd1229c=_0xd1229c-0x7a;let _0x495c74=_0x4c065a[_0xd1229c];return _0x495c74;},a3_0x3a77(_0x2342ec,_0x2b8042);}const fs=require('fs'),path=require('path'),core_1=require(a3_0x2b060f(0xb0)),typeorm_1=require('@midwayjs/typeorm'),core_2=require(a3_0x2b060f(0xb0)),Common_1=require(a3_0x2b060f(0x87)),Event_1=require(a3_0x2b060f(0xd8)),Search_1=require(a3_0x2b060f(0xac)),Entities_1=require(a3_0x2b060f(0xc2)),Handler_1=require('../templateFun/Handler'),Validator_1=require(a3_0x2b060f(0xf4)),Action_1=require(a3_0x2b060f(0xd0)),Api_1=require(a3_0x2b060f(0xb5)),Router_1=require(a3_0x2b060f(0x91)),Layout_1=require(a3_0x2b060f(0xae)),LayoutVue_1=require('../templateVue/LayoutVue'),Validator_2=require(a3_0x2b060f(0xe0)),Api_2=require(a3_0x2b060f(0xd6)),Router_2=require(a3_0x2b060f(0xc8)),Layout_2=require('../templateVueV2/Layout'),LayoutVue_2=require('../templateVueV2/LayoutVue'),Validator_3=require(a3_0x2b060f(0xf3)),Api_3=require('../templateVueV3/Api'),Router_3=require('../templateVueV3/Router'),Layout_3=require(a3_0x2b060f(0x85)),LayoutVue_3=require(a3_0x2b060f(0xce)),Validator_4=require(a3_0x2b060f(0xd1));function a3_0x495c(){const _0x3a7583=['../templateVue/Validator','dataSourceManager','1882263PdEVuo','apitest','cwd','toLowerCase','\x27,\x0a\x20\x20\x20\x20description:\x20\x27\x27,\x0a\x20\x20\x20\x20middleware:\x20[],\x0a}','split','export\x20default\x20{\x0a\x20\x20\x20\x20name:\x20\x27','match','design:type','environment','(((.+)+)+)+$','PRI','string','moduleName','app','/exceptions/','tableprefix','../templateVueV2/Validator','../templateFun/Validator','Comment','6470415puVfSR','substr','database','createPlugin','\x20表注释不存在','function','createApp','hasvue','die','config','tablestartUp','hasDataSource','toUpperCase','map','controllers','../templateVueV3/Layout','.ts','../templateFun/Common','toString','/pages/','getOwnPropertyDescriptor','Inject','typeorm\x20未配置数据源\x20','typeorm','table','/apis/','15412iYvOrb','../templateVue/Router','length','TypeORMDataSourceManager','无法生成','apporbasic','2929670glJYMZ','/config.ts','controller','join','\x22\x20AND\x20table_name\x20=\x20\x27','connection','default','.js','/pages/apps/','typeorm\x20数据源\x20','mkdirSync','module','769991VRqJuy','=\x20\x22','defineProperty','__esModule','tablestartLow','getDataSource','\x22\x20AND\x20table_name\x20','dirname','Primary','__metadata','../templateFun/Search','ScopeEnum','../templateVue/Layout','substring','@midwayjs/core','677152sLwOFf','/apis/apps/','App','basedir','../templateVue/Api','object','tablestartUpShort2','isDevelopmentEnvironment','existsSync','tablestart','utf-8','query','\x20不存在','tablestartLowShort','createBasic','filter','decorate','../templateFun/Entities','replace','metadata','tablestartUpShort','comment','checkOption','../templateVueV2/Router','dataSource','SELECT\x20TABLE_COMMENT\x20as\x20`comment`\x20FROM\x20information_schema.TABLES\x20WHERE\x20TABLE_SCHEMA=\x22','basic','Fields','3508908XTucwJ','../templateVueV3/LayoutVue','error','../templateFun/Action','../templateVueV3/Validator','createAction','Key','startsWith','/vue','../templateVueV2/Api','prototype','../templateFun/Event','ApicreateService','/api/','/apps/','\x20未连接','Singleton','apply','isArray'];a3_0x495c=function(){return _0x3a7583;};return a3_0x495c();}let ApicreateService=class ApicreateService{async[a3_0x2b060f(0x7c)](_0x2b4cc8){const _0x11f325=a3_0x2b060f;return await this['checkOption'](_0x2b4cc8),await this[_0x11f325(0xd2)]({..._0x2b4cc8,'apporbasic':'app'});}async[a3_0x2b060f(0xbf)](_0x271f40){const _0x302ac0=a3_0x2b060f;return await this['checkOption'](_0x271f40),await this[_0x302ac0(0xd2)]({..._0x271f40,'apporbasic':_0x302ac0(0xcb)});}async[a3_0x2b060f(0xf9)](_0x4e59f4){const _0x11a97b=a3_0x2b060f;return await this[_0x11a97b(0xc7)](_0x4e59f4),await this[_0x11a97b(0xd2)]({..._0x4e59f4,'module':!![]});}async['createAction'](_0x5d193b){const _0xe0a5b6=a3_0x2b060f;var _0x45bb5c,_0x5515bb;!_0x5d193b[_0xe0a5b6(0x9b)]&&(_0x5d193b[_0xe0a5b6(0x9b)]='default');!_0x5d193b[_0xe0a5b6(0x95)]&&(_0x5d193b[_0xe0a5b6(0x95)]=_0xe0a5b6(0xf0));const _0x446e28=this[_0xe0a5b6(0xf0)]['getBaseDir'](),_0x47c20d=this[_0xe0a5b6(0xe1)][_0xe0a5b6(0xa7)](_0x5d193b[_0xe0a5b6(0x9b)]),_0x9ebc54=await _0x47c20d[_0xe0a5b6(0xbc)]('SELECT\x20TABLE_NAME\x20as\x20`table`\x20FROM\x20information_schema.TABLES\x20WHERE\x20TABLE_SCHEMA=\x22'+this[_0xe0a5b6(0x7f)][_0xe0a5b6(0xc9)][_0x5d193b[_0xe0a5b6(0x9b)]][_0xe0a5b6(0xf8)]+_0xe0a5b6(0xa8)+((_0x5d193b===null||_0x5d193b===void 0x0?void 0x0:_0x5d193b[_0xe0a5b6(0x8e)])?_0xe0a5b6(0xa3)+_0x5d193b[_0xe0a5b6(0x8e)]+'\x22':'LIKE\x20\x22'+(_0x5d193b[_0xe0a5b6(0xf2)]||'')+'%\x22'))||[];for(let _0x3d6c91=0x0;_0x3d6c91<_0x9ebc54['length'];_0x3d6c91++){const _0x52b1f2=_0x9ebc54[_0x3d6c91][_0xe0a5b6(0x8e)];if((_0x5d193b===null||_0x5d193b===void 0x0?void 0x0:_0x5d193b[_0xe0a5b6(0x8e)])&&(_0x5d193b===null||_0x5d193b===void 0x0?void 0x0:_0x5d193b[_0xe0a5b6(0x8e)])!=_0x52b1f2)continue;if((_0x5d193b===null||_0x5d193b===void 0x0?void 0x0:_0x5d193b[_0xe0a5b6(0xf2)])&&!(_0x52b1f2===null||_0x52b1f2===void 0x0?void 0x0:_0x52b1f2[_0xe0a5b6(0xd4)](_0x5d193b[_0xe0a5b6(0xf2)])))continue;const _0x1a0c31=await _0x47c20d['query'](_0xe0a5b6(0xca)+this[_0xe0a5b6(0x7f)][_0xe0a5b6(0xc9)][_0x5d193b['connection']][_0xe0a5b6(0xf8)]+_0xe0a5b6(0x9a)+_0x52b1f2+'\x27')||[];if((_0x45bb5c=_0x1a0c31[0x0])===null||_0x45bb5c===void 0x0?void 0x0:_0x45bb5c[_0xe0a5b6(0xc6)]){const _0x1f1679={'tablename':_0x52b1f2,'Primary':{},'Fields':{},'Comment':(_0x5515bb=_0x1a0c31[0x0])===null||_0x5515bb===void 0x0?void 0x0:_0x5515bb[_0xe0a5b6(0xc6)],'vuedialog':_0x5d193b['vuedialog'],'apporbasic':_0x5d193b[_0xe0a5b6(0x95)]};_0x1f1679[_0xe0a5b6(0xba)]=_0x52b1f2[_0xe0a5b6(0xf7)]((_0x5d193b===null||_0x5d193b===void 0x0?void 0x0:_0x5d193b[_0xe0a5b6(0xf7)])||0x0,_0x52b1f2[_0xe0a5b6(0x92)]),_0x1f1679[_0xe0a5b6(0xb4)]=(_0x5d193b===null||_0x5d193b===void 0x0?void 0x0:_0x5d193b[_0xe0a5b6(0xa1)])?_0x446e28+_0xe0a5b6(0xdb)+_0x1f1679[_0xe0a5b6(0xba)][_0xe0a5b6(0xe7)]('_')[0x0]['toLowerCase']():_0x446e28+'/'+_0x5d193b[_0xe0a5b6(0x95)];const _0x376b12=_0x1f1679[_0xe0a5b6(0xba)][_0xe0a5b6(0xe7)]('_')[_0xe0a5b6(0xc0)](_0x3d9438=>_0x3d9438&&_0x3d9438['trim']());(_0x5d193b===null||_0x5d193b===void 0x0?void 0x0:_0x5d193b[_0xe0a5b6(0xa1)])&&(await this['CreateModuleConfig'](_0x1f1679),_0x1f1679[_0xe0a5b6(0xef)]=_0x376b12[0x0][_0xe0a5b6(0xe5)]());_0x1f1679[_0xe0a5b6(0xa6)]=_0x376b12[_0xe0a5b6(0x83)](_0x5f2c45=>_0x5f2c45[_0xe0a5b6(0xe5)]())['join'](''),_0x1f1679['tablestartUp']=_0x376b12[_0xe0a5b6(0x83)](_0x5e80d1=>''+_0x5e80d1[_0xe0a5b6(0xaf)](0x0,0x1)[_0xe0a5b6(0x82)]()+_0x5e80d1[_0xe0a5b6(0xaf)](0x1)[_0xe0a5b6(0xe5)]())[_0xe0a5b6(0x99)]('');(_0x1f1679===null||_0x1f1679===void 0x0?void 0x0:_0x1f1679[_0xe0a5b6(0xef)])&&_0x376b12['length']>0x1&&_0x376b12[0x0][_0xe0a5b6(0xe5)]()==_0x1f1679[_0xe0a5b6(0xef)]?(_0x1f1679[_0xe0a5b6(0xc5)]=_0x1f1679[_0xe0a5b6(0x80)][_0xe0a5b6(0xaf)](_0x1f1679[_0xe0a5b6(0xef)][_0xe0a5b6(0x92)],_0x1f1679[_0xe0a5b6(0x80)][_0xe0a5b6(0x92)]),_0x1f1679[_0xe0a5b6(0xbe)]=_0x1f1679[_0xe0a5b6(0xa6)][_0xe0a5b6(0xaf)](_0x1f1679[_0xe0a5b6(0xef)][_0xe0a5b6(0x92)],_0x1f1679[_0xe0a5b6(0xa6)][_0xe0a5b6(0x92)])):(_0x1f1679[_0xe0a5b6(0xc5)]=_0x1f1679[_0xe0a5b6(0x80)],_0x1f1679[_0xe0a5b6(0xbe)]=_0x1f1679[_0xe0a5b6(0xa6)]);_0x1f1679[_0xe0a5b6(0xb7)]=_0x1f1679['tablestartUpShort'][_0xe0a5b6(0xc3)](/\/{2,}/g,'/')[_0xe0a5b6(0xe9)](/[\/|A-Z]*[^A-Z]+/g)['join']('-')[_0xe0a5b6(0xe5)]()[_0xe0a5b6(0xc3)](/\/\-/g,'/');for(let _0x54b90c of await _0x47c20d[_0xe0a5b6(0xbc)]('SHOW\x20FULL\x20COLUMNS\x20FROM\x20`'+_0x52b1f2+'`')){_0x54b90c[_0xe0a5b6(0xd3)]==_0xe0a5b6(0xed)?_0x1f1679[_0xe0a5b6(0xaa)]=_0x54b90c:_0x1f1679[_0xe0a5b6(0xcc)][_0x54b90c['Field']]=_0x54b90c;}if((_0x5d193b===null||_0x5d193b===void 0x0?void 0x0:_0x5d193b[_0xe0a5b6(0x98)])&&!fs[_0xe0a5b6(0xb9)](_0x1f1679[_0xe0a5b6(0xb4)]+_0xe0a5b6(0xf1)+_0x1f1679[_0xe0a5b6(0xc5)]+_0xe0a5b6(0x86))){var _0xe6be2a=[];if(typeof(_0x5d193b===null||_0x5d193b===void 0x0?void 0x0:_0x5d193b[_0xe0a5b6(0x98)])==_0xe0a5b6(0xee))_0xe6be2a=[_0x5d193b===null||_0x5d193b===void 0x0?void 0x0:_0x5d193b[_0xe0a5b6(0x98)]];else Array[_0xe0a5b6(0xdf)](_0x5d193b===null||_0x5d193b===void 0x0?void 0x0:_0x5d193b[_0xe0a5b6(0x98)])?_0xe6be2a=_0x5d193b===null||_0x5d193b===void 0x0?void 0x0:_0x5d193b[_0xe0a5b6(0x98)]:_0xe6be2a=[!![]];_0x1f1679[_0xe0a5b6(0x84)]=_0xe6be2a,await(0x0,Search_1[_0xe0a5b6(0x9c)])(_0x1f1679),await(0x0,Entities_1[_0xe0a5b6(0x9c)])(_0x1f1679),await(0x0,Common_1['default'])(_0x1f1679),await(0x0,Event_1['default'])(_0x1f1679),await(0x0,Handler_1[_0xe0a5b6(0x9c)])(_0x1f1679),await(0x0,Validator_1[_0xe0a5b6(0x9c)])(_0x1f1679);for(let _0x26bb9a of _0xe6be2a){_0x1f1679[_0xe0a5b6(0x98)]=_0x26bb9a,await(0x0,Action_1[_0xe0a5b6(0x9c)])(_0x1f1679);}}if(_0x5d193b===null||_0x5d193b===void 0x0?void 0x0:_0x5d193b['hasvue']){var _0xe6be2a=[];if(typeof(_0x5d193b===null||_0x5d193b===void 0x0?void 0x0:_0x5d193b[_0xe0a5b6(0x98)])==_0xe0a5b6(0xee))_0xe6be2a=[_0x5d193b===null||_0x5d193b===void 0x0?void 0x0:_0x5d193b['controller']];else Array['isArray'](_0x5d193b===null||_0x5d193b===void 0x0?void 0x0:_0x5d193b[_0xe0a5b6(0x98)])?_0xe6be2a=_0x5d193b===null||_0x5d193b===void 0x0?void 0x0:_0x5d193b[_0xe0a5b6(0x98)]:_0xe6be2a=[!![]];if(_0x5d193b[_0xe0a5b6(0x7d)]=='v2')for(let _0x212832 of _0xe6be2a){_0x1f1679[_0xe0a5b6(0x98)]=_0x212832;let _0x490e21=process[_0xe0a5b6(0xe4)]()+_0xe0a5b6(0xd5)+(typeof _0x1f1679[_0xe0a5b6(0x98)]=='string'?'/'+_0x1f1679[_0xe0a5b6(0x98)]:'');_0x1f1679[_0xe0a5b6(0xef)]?_0x490e21=_0x490e21+(_0xe0a5b6(0xb2)+_0x1f1679[_0xe0a5b6(0xef)]+'/apis/'+_0x1f1679[_0xe0a5b6(0xc5)]+_0xe0a5b6(0x9d)):_0x490e21=_0x490e21+(_0xe0a5b6(0x8f)+_0x1f1679[_0xe0a5b6(0x95)]+_0xe0a5b6(0x8f)+_0x1f1679[_0xe0a5b6(0xc5)]+_0xe0a5b6(0x9d)),!fs[_0xe0a5b6(0xb9)](_0x490e21)&&(await(0x0,Api_2[_0xe0a5b6(0x9c)])(_0x1f1679),await(0x0,Router_2[_0xe0a5b6(0x9c)])(_0x1f1679),await(0x0,Layout_2['default'])(_0x1f1679),await(0x0,LayoutVue_2[_0xe0a5b6(0x9c)])(_0x1f1679),await(0x0,Validator_3[_0xe0a5b6(0x9c)])(_0x1f1679));}else{if(_0x5d193b[_0xe0a5b6(0x7d)]=='v3')for(let _0x1fde88 of _0xe6be2a){_0x1f1679[_0xe0a5b6(0x98)]=_0x1fde88;let _0x228ddc=process[_0xe0a5b6(0xe4)]()+_0xe0a5b6(0xd5)+(typeof _0x1f1679[_0xe0a5b6(0x98)]==_0xe0a5b6(0xee)?'/'+_0x1f1679['controller']:'');_0x1f1679[_0xe0a5b6(0xef)]?_0x228ddc=_0x228ddc+(_0xe0a5b6(0xb2)+_0x1f1679['moduleName']+_0xe0a5b6(0x8f)+_0x1f1679[_0xe0a5b6(0xc5)]+_0xe0a5b6(0x9d)):_0x228ddc=_0x228ddc+(_0xe0a5b6(0x8f)+_0x1f1679[_0xe0a5b6(0x95)]+_0xe0a5b6(0x8f)+_0x1f1679[_0xe0a5b6(0xc5)]+_0xe0a5b6(0x9d)),!fs[_0xe0a5b6(0xb9)](_0x228ddc)&&(await(0x0,Api_3[_0xe0a5b6(0x9c)])(_0x1f1679),await(0x0,Router_3[_0xe0a5b6(0x9c)])(_0x1f1679),await(0x0,Layout_3[_0xe0a5b6(0x9c)])(_0x1f1679),await(0x0,LayoutVue_3[_0xe0a5b6(0x9c)])(_0x1f1679),await(0x0,Validator_4['default'])(_0x1f1679));}else for(let _0x5cb722 of _0xe6be2a){_0x1f1679[_0xe0a5b6(0x98)]=_0x5cb722;let _0x30010b=process[_0xe0a5b6(0xe4)]()+_0xe0a5b6(0xd5)+(typeof _0x1f1679[_0xe0a5b6(0x98)]=='string'?'/'+_0x1f1679[_0xe0a5b6(0x98)]:'');_0x1f1679[_0xe0a5b6(0xef)]?_0x30010b=_0x30010b+(_0xe0a5b6(0x9e)+_0x1f1679['moduleName']+_0xe0a5b6(0xda)+_0x1f1679[_0xe0a5b6(0xb7)]+_0xe0a5b6(0x9d)):_0x30010b=_0x30010b+(_0xe0a5b6(0x89)+_0x1f1679['apporbasic']+_0xe0a5b6(0xda)+_0x1f1679['tablestartUpShort2']+_0xe0a5b6(0x9d)),!fs[_0xe0a5b6(0xb9)](_0x30010b)&&(await(0x0,Api_1[_0xe0a5b6(0x9c)])(_0x1f1679),await(0x0,Router_1[_0xe0a5b6(0x9c)])(_0x1f1679),await(0x0,Layout_1['default'])(_0x1f1679),await(0x0,LayoutVue_1['default'])(_0x1f1679),await(0x0,Validator_2[_0xe0a5b6(0x9c)])(_0x1f1679));}}}}else console[_0xe0a5b6(0xcf)]('表:'+_0x52b1f2+_0xe0a5b6(0x7a));}return _0xe0a5b6(0x7e);}async[a3_0x2b060f(0xc7)](_0x467da8){const _0x3fa607=a3_0x2b060f;var _0xe62372,_0x52f2be,_0x4b0fca;if(!this[_0x3fa607(0xeb)][_0x3fa607(0xb8)]()||!((_0xe62372=this[_0x3fa607(0x7f)])===null||_0xe62372===void 0x0?void 0x0:_0xe62372[_0x3fa607(0xc9)])||!this[_0x3fa607(0xf0)]['getConfig'](_0x3fa607(0xe3)))throw new Error(_0x3fa607(0x94));!_0x467da8[_0x3fa607(0x9b)]&&(_0x467da8[_0x3fa607(0x9b)]=_0x3fa607(0x9c));if(!((_0x4b0fca=(_0x52f2be=this[_0x3fa607(0x7f)])===null||_0x52f2be===void 0x0?void 0x0:_0x52f2be[_0x3fa607(0xc9)])===null||_0x4b0fca===void 0x0?void 0x0:_0x4b0fca[_0x467da8[_0x3fa607(0x9b)]]))throw new Error(_0x3fa607(0x8c)+_0x467da8['connection']);if(!this['dataSourceManager'][_0x3fa607(0x81)](_0x467da8['connection']))throw new Error(_0x3fa607(0x9f)+_0x467da8[_0x3fa607(0x9b)]+_0x3fa607(0xbd));if(!this[_0x3fa607(0xe1)]['isConnected'](_0x467da8['connection']))throw new Error(_0x3fa607(0x9f)+_0x467da8[_0x3fa607(0x9b)]+_0x3fa607(0xdc));return!![];}async['CreateModuleConfig'](_0x275369){const _0x4b6442=a3_0x2b060f,_0x2614f9=_0x275369[_0x4b6442(0xba)][_0x4b6442(0xe7)]('_')[0x0]['toLowerCase']();if(!fs[_0x4b6442(0xb9)](_0x275369[_0x4b6442(0xb4)]+_0x4b6442(0x97))){let _0x2b74e8=_0x4b6442(0xe8)+(_0x275369[_0x4b6442(0xf5)]||_0x2614f9)+_0x4b6442(0xe6);fs[_0x4b6442(0xa0)](path[_0x4b6442(0xa9)](_0x275369[_0x4b6442(0xb4)]+'/config.ts'),{'recursive':!![]}),fs['writeFileSync'](_0x275369['basedir']+_0x4b6442(0x97),_0x2b74e8,_0x4b6442(0xbb));}}};exports[a3_0x2b060f(0xd9)]=ApicreateService,__decorate([(0x0,core_2[a3_0x2b060f(0xb3)])(),__metadata(a3_0x2b060f(0xea),Object)],ApicreateService[a3_0x2b060f(0xd7)],a3_0x2b060f(0xf0),void 0x0),__decorate([(0x0,core_2['Config'])(a3_0x2b060f(0x8d)),__metadata('design:type',Object)],ApicreateService[a3_0x2b060f(0xd7)],a3_0x2b060f(0x7f),void 0x0),__decorate([(0x0,core_2[a3_0x2b060f(0x8b)])(),__metadata(a3_0x2b060f(0xea),core_1['MidwayEnvironmentService'])],ApicreateService['prototype'],a3_0x2b060f(0xeb),void 0x0),__decorate([(0x0,core_2['Inject'])(),__metadata('design:type',typeorm_1[a3_0x2b060f(0x93)])],ApicreateService[a3_0x2b060f(0xd7)],a3_0x2b060f(0xe1),void 0x0),exports[a3_0x2b060f(0xd9)]=ApicreateService=__decorate([(0x0,core_2['Provide'])(a3_0x2b060f(0xd9)),(0x0,core_2['Scope'])(core_2[a3_0x2b060f(0xad)][a3_0x2b060f(0xdd)])],ApicreateService);
|
|
1
|
+
function a3_0x1c3c(){const _0x3ea755=['existsSync','getDataSource','SHOW\x20FULL\x20COLUMNS\x20FROM\x20`','moduleName','/pages/apps/','../templateVueV2/Api','join','../templateVueV3/Layout','SELECT\x20TABLE_NAME\x20as\x20`table`\x20FROM\x20information_schema.TABLES\x20WHERE\x20TABLE_SCHEMA=\x22','Config','../templateFun/Search','@midwayjs/typeorm','/vue','Fields','LIKE\x20\x22','Field','cwd','typeorm','apporbasic','path','Inject','string','error','/api/','replace','database','table','11zCQcac','isConnected','Provide','\x20未连接','tablestartUpShort2','controller','\x22\x20AND\x20table_name\x20=\x20\x27','isArray','getConfig','App','975342wJEGrp','40LtyRGo','../templateVueV3/Validator','/pages/','default','die','typeorm\x20数据源\x20','module','environment','CreateModuleConfig','toUpperCase','apitest','map','apply','21587844kczABj','/config.ts','\x20不存在','147YRjXxF','dataSource','createApp','__decorate','\x20表注释不存在','createBasic','startsWith','../templateVueV3/Api','../templateVueV2/LayoutVue','createAction','../templateVueV3/LayoutVue','split','/exceptions/','app','.ts','export\x20default\x20{\x0a\x20\x20\x20\x20name:\x20\x27','4pTuVun','/apis/','toString','decorate','toLowerCase','prototype','metadata','ApicreateService','length','../templateVueV2/Router','/apps/','dirname','../templateVue/Layout','266364qvRiUP','hasvue','(((.+)+)+)+$','361038muAUkb','tablestartUp','connection','.js','/apis/apps/','Scope','@midwayjs/core','search','comment','design:type','../templateFun/Entities','substr','createPlugin','../templateVueV2/Layout','26332eIerbt','hasDataSource','tablestartLow','../templateFun/Action','query','filter','dataSourceManager','\x27,\x0a\x20\x20\x20\x20description:\x20\x27\x27,\x0a\x20\x20\x20\x20middleware:\x20[],\x0a}','getOwnPropertyDescriptor','__esModule','mkdirSync','substring','tablestart','isDevelopmentEnvironment','checkOption','SELECT\x20TABLE_COMMENT\x20as\x20`comment`\x20FROM\x20information_schema.TABLES\x20WHERE\x20TABLE_SCHEMA=\x22','tablestartUpShort','tablestartLowShort','无法生成','tableprefix','../templateFun/Common','basedir','155pQUonH','../templateVue/Router','TypeORMDataSourceManager','Key','219768gPUXht','config','../templateVue/Api','constructor','object','defineProperty','../templateFun/Handler','1030051vgqSLN','../templateVue/Validator'];a3_0x1c3c=function(){return _0x3ea755;};return a3_0x1c3c();}const a3_0x3c0aef=a3_0x21e0;(function(_0x408b3f,_0x341af7){const _0x98bf4f=a3_0x21e0,_0x189db6=_0x408b3f();while(!![]){try{const _0x292f3d=parseInt(_0x98bf4f(0x190))/0x1+parseInt(_0x98bf4f(0x151))/0x2*(parseInt(_0x98bf4f(0x130))/0x3)+-parseInt(_0x98bf4f(0x16f))/0x4*(parseInt(_0x98bf4f(0x185))/0x5)+-parseInt(_0x98bf4f(0x161))/0x6*(-parseInt(_0x98bf4f(0x141))/0x7)+parseInt(_0x98bf4f(0x189))/0x8+-parseInt(_0x98bf4f(0x15e))/0x9*(parseInt(_0x98bf4f(0x131))/0xa)+parseInt(_0x98bf4f(0x126))/0xb*(-parseInt(_0x98bf4f(0x13e))/0xc);if(_0x292f3d===_0x341af7)break;else _0x189db6['push'](_0x189db6['shift']());}catch(_0x4f0f84){_0x189db6['push'](_0x189db6['shift']());}}}(a3_0x1c3c,0xcf813));const a3_0x333640=(function(){let _0x5996e9=!![];return function(_0x29b0b7,_0x429135){const _0x52caa7=_0x5996e9?function(){const _0x183b7b=a3_0x21e0;if(_0x429135){const _0x5a8f63=_0x429135[_0x183b7b(0x13d)](_0x29b0b7,arguments);return _0x429135=null,_0x5a8f63;}}:function(){};return _0x5996e9=![],_0x52caa7;};}()),a3_0x49f7ad=a3_0x333640(this,function(){const _0x2863f1=a3_0x21e0;return a3_0x49f7ad[_0x2863f1(0x153)]()['search'](_0x2863f1(0x160))[_0x2863f1(0x153)]()[_0x2863f1(0x18c)](a3_0x49f7ad)[_0x2863f1(0x168)](_0x2863f1(0x160));});function a3_0x21e0(_0x1bf296,_0x34fa27){const _0x44a5e1=a3_0x1c3c();return a3_0x21e0=function(_0x49f7ad,_0x333640){_0x49f7ad=_0x49f7ad-0x124;let _0x1c3c47=_0x44a5e1[_0x49f7ad];return _0x1c3c47;},a3_0x21e0(_0x1bf296,_0x34fa27);}a3_0x49f7ad();'use strict';var __decorate=this&&this[a3_0x3c0aef(0x144)]||function(_0x390771,_0x47db06,_0x54bf39,_0x576adc){const _0x44b1d4=a3_0x3c0aef;var _0x4e2fa7=arguments[_0x44b1d4(0x159)],_0x41e841=_0x4e2fa7<0x3?_0x47db06:_0x576adc===null?_0x576adc=Object[_0x44b1d4(0x177)](_0x47db06,_0x54bf39):_0x576adc,_0x457d32;if(typeof Reflect==='object'&&typeof Reflect[_0x44b1d4(0x154)]==='function')_0x41e841=Reflect[_0x44b1d4(0x154)](_0x390771,_0x47db06,_0x54bf39,_0x576adc);else{for(var _0x77ebfb=_0x390771[_0x44b1d4(0x159)]-0x1;_0x77ebfb>=0x0;_0x77ebfb--)if(_0x457d32=_0x390771[_0x77ebfb])_0x41e841=(_0x4e2fa7<0x3?_0x457d32(_0x41e841):_0x4e2fa7>0x3?_0x457d32(_0x47db06,_0x54bf39,_0x41e841):_0x457d32(_0x47db06,_0x54bf39))||_0x41e841;}return _0x4e2fa7>0x3&&_0x41e841&&Object[_0x44b1d4(0x18e)](_0x47db06,_0x54bf39,_0x41e841),_0x41e841;},__metadata=this&&this['__metadata']||function(_0x547019,_0x3a48ac){const _0x400961=a3_0x3c0aef;if(typeof Reflect===_0x400961(0x18d)&&typeof Reflect[_0x400961(0x157)]==='function')return Reflect[_0x400961(0x157)](_0x547019,_0x3a48ac);};Object[a3_0x3c0aef(0x18e)](exports,a3_0x3c0aef(0x178),{'value':!![]}),exports['ApicreateService']=void 0x0;const fs=require('fs'),path=require(a3_0x3c0aef(0x1a5)),core_1=require(a3_0x3c0aef(0x167)),typeorm_1=require(a3_0x3c0aef(0x19d)),core_2=require(a3_0x3c0aef(0x167)),Common_1=require(a3_0x3c0aef(0x183)),Event_1=require('../templateFun/Event'),Search_1=require(a3_0x3c0aef(0x19c)),Entities_1=require(a3_0x3c0aef(0x16b)),Handler_1=require(a3_0x3c0aef(0x18f)),Validator_1=require('../templateFun/Validator'),Action_1=require(a3_0x3c0aef(0x172)),Api_1=require(a3_0x3c0aef(0x18b)),Router_1=require(a3_0x3c0aef(0x186)),Layout_1=require(a3_0x3c0aef(0x15d)),LayoutVue_1=require('../templateVue/LayoutVue'),Validator_2=require(a3_0x3c0aef(0x191)),Api_2=require(a3_0x3c0aef(0x197)),Router_2=require(a3_0x3c0aef(0x15a)),Layout_2=require(a3_0x3c0aef(0x16e)),LayoutVue_2=require(a3_0x3c0aef(0x149)),Validator_3=require('../templateVueV2/Validator'),Api_3=require(a3_0x3c0aef(0x148)),Router_3=require('../templateVueV3/Router'),Layout_3=require(a3_0x3c0aef(0x199)),LayoutVue_3=require(a3_0x3c0aef(0x14b)),Validator_4=require(a3_0x3c0aef(0x132));let ApicreateService=class ApicreateService{async[a3_0x3c0aef(0x143)](_0x345e20){const _0x6fbfa8=a3_0x3c0aef;return await this[_0x6fbfa8(0x17d)](_0x345e20),await this[_0x6fbfa8(0x14a)]({..._0x345e20,'apporbasic':_0x6fbfa8(0x14e)});}async[a3_0x3c0aef(0x146)](_0x4131a4){const _0x1f5d99=a3_0x3c0aef;return await this[_0x1f5d99(0x17d)](_0x4131a4),await this[_0x1f5d99(0x14a)]({..._0x4131a4,'apporbasic':'basic'});}async[a3_0x3c0aef(0x16d)](_0x3b611c){const _0x4659ad=a3_0x3c0aef;return await this['checkOption'](_0x3b611c),await this[_0x4659ad(0x14a)]({..._0x3b611c,'module':!![]});}async[a3_0x3c0aef(0x14a)](_0x90accf){const _0xa757cb=a3_0x3c0aef;var _0xe4b09a,_0x588182;!_0x90accf[_0xa757cb(0x163)]&&(_0x90accf[_0xa757cb(0x163)]=_0xa757cb(0x134));!_0x90accf[_0xa757cb(0x1a4)]&&(_0x90accf['apporbasic']=_0xa757cb(0x14e));const _0x48ce1a=this['app']['getBaseDir'](),_0x3c12c6=this[_0xa757cb(0x175)][_0xa757cb(0x193)](_0x90accf['connection']),_0x4b0a4a=await _0x3c12c6['query'](_0xa757cb(0x19a)+this[_0xa757cb(0x18a)]['dataSource'][_0x90accf[_0xa757cb(0x163)]][_0xa757cb(0x124)]+'\x22\x20AND\x20table_name\x20'+((_0x90accf===null||_0x90accf===void 0x0?void 0x0:_0x90accf[_0xa757cb(0x125)])?'=\x20\x22'+_0x90accf[_0xa757cb(0x125)]+'\x22':_0xa757cb(0x1a0)+(_0x90accf[_0xa757cb(0x182)]||'')+'%\x22'))||[];for(let _0x7f74c=0x0;_0x7f74c<_0x4b0a4a[_0xa757cb(0x159)];_0x7f74c++){const _0x3a3b28=_0x4b0a4a[_0x7f74c][_0xa757cb(0x125)];if((_0x90accf===null||_0x90accf===void 0x0?void 0x0:_0x90accf[_0xa757cb(0x125)])&&(_0x90accf===null||_0x90accf===void 0x0?void 0x0:_0x90accf[_0xa757cb(0x125)])!=_0x3a3b28)continue;if((_0x90accf===null||_0x90accf===void 0x0?void 0x0:_0x90accf[_0xa757cb(0x182)])&&!(_0x3a3b28===null||_0x3a3b28===void 0x0?void 0x0:_0x3a3b28[_0xa757cb(0x147)](_0x90accf[_0xa757cb(0x182)])))continue;const _0x3dfa7b=await _0x3c12c6[_0xa757cb(0x173)](_0xa757cb(0x17e)+this[_0xa757cb(0x18a)]['dataSource'][_0x90accf[_0xa757cb(0x163)]]['database']+_0xa757cb(0x12c)+_0x3a3b28+'\x27')||[];if((_0xe4b09a=_0x3dfa7b[0x0])===null||_0xe4b09a===void 0x0?void 0x0:_0xe4b09a[_0xa757cb(0x169)]){const _0xa65306={'tablename':_0x3a3b28,'Primary':{},'Fields':{},'Comment':(_0x588182=_0x3dfa7b[0x0])===null||_0x588182===void 0x0?void 0x0:_0x588182[_0xa757cb(0x169)],'vuedialog':_0x90accf['vuedialog'],'apporbasic':_0x90accf[_0xa757cb(0x1a4)]};_0xa65306[_0xa757cb(0x17b)]=_0x3a3b28['substr']((_0x90accf===null||_0x90accf===void 0x0?void 0x0:_0x90accf[_0xa757cb(0x16c)])||0x0,_0x3a3b28[_0xa757cb(0x159)]),_0xa65306[_0xa757cb(0x184)]=(_0x90accf===null||_0x90accf===void 0x0?void 0x0:_0x90accf[_0xa757cb(0x137)])?_0x48ce1a+_0xa757cb(0x15b)+_0xa65306['tablestart'][_0xa757cb(0x14c)]('_')[0x0]['toLowerCase']():_0x48ce1a+'/'+_0x90accf['apporbasic'];const _0x24afe2=_0xa65306[_0xa757cb(0x17b)][_0xa757cb(0x14c)]('_')[_0xa757cb(0x174)](_0x3a1e75=>_0x3a1e75&&_0x3a1e75['trim']());(_0x90accf===null||_0x90accf===void 0x0?void 0x0:_0x90accf['module'])&&(await this['CreateModuleConfig'](_0xa65306),_0xa65306[_0xa757cb(0x195)]=_0x24afe2[0x0][_0xa757cb(0x155)]());_0xa65306['tablestartLow']=_0x24afe2[_0xa757cb(0x13c)](_0x3f591a=>_0x3f591a['toLowerCase']())[_0xa757cb(0x198)](''),_0xa65306['tablestartUp']=_0x24afe2[_0xa757cb(0x13c)](_0x10e8d1=>''+_0x10e8d1[_0xa757cb(0x17a)](0x0,0x1)[_0xa757cb(0x13a)]()+_0x10e8d1[_0xa757cb(0x17a)](0x1)[_0xa757cb(0x155)]())[_0xa757cb(0x198)]('');(_0xa65306===null||_0xa65306===void 0x0?void 0x0:_0xa65306[_0xa757cb(0x195)])&&_0x24afe2[_0xa757cb(0x159)]>0x1&&_0x24afe2[0x0]['toLowerCase']()==_0xa65306[_0xa757cb(0x195)]?(_0xa65306[_0xa757cb(0x17f)]=_0xa65306[_0xa757cb(0x162)]['substring'](_0xa65306[_0xa757cb(0x195)][_0xa757cb(0x159)],_0xa65306['tablestartUp']['length']),_0xa65306[_0xa757cb(0x180)]=_0xa65306[_0xa757cb(0x171)][_0xa757cb(0x17a)](_0xa65306[_0xa757cb(0x195)][_0xa757cb(0x159)],_0xa65306[_0xa757cb(0x171)][_0xa757cb(0x159)])):(_0xa65306['tablestartUpShort']=_0xa65306[_0xa757cb(0x162)],_0xa65306['tablestartLowShort']=_0xa65306[_0xa757cb(0x171)]);_0xa65306[_0xa757cb(0x12a)]=_0xa65306['tablestartUpShort'][_0xa757cb(0x1aa)](/\/{2,}/g,'/')['match'](/[\/|A-Z]*[^A-Z]+/g)[_0xa757cb(0x198)]('-')[_0xa757cb(0x155)]()[_0xa757cb(0x1aa)](/\/\-/g,'/');for(let _0x3352b6 of await _0x3c12c6[_0xa757cb(0x173)](_0xa757cb(0x194)+_0x3a3b28+'`')){_0x3352b6[_0xa757cb(0x188)]=='PRI'?_0xa65306['Primary']=_0x3352b6:_0xa65306[_0xa757cb(0x19f)][_0x3352b6[_0xa757cb(0x1a1)]]=_0x3352b6;}if((_0x90accf===null||_0x90accf===void 0x0?void 0x0:_0x90accf[_0xa757cb(0x12b)])&&!fs[_0xa757cb(0x192)](_0xa65306[_0xa757cb(0x184)]+_0xa757cb(0x14d)+_0xa65306['tablestartUpShort']+_0xa757cb(0x14f))){var _0x31f469=[];if(typeof(_0x90accf===null||_0x90accf===void 0x0?void 0x0:_0x90accf['controller'])==_0xa757cb(0x1a7))_0x31f469=[_0x90accf===null||_0x90accf===void 0x0?void 0x0:_0x90accf['controller']];else Array[_0xa757cb(0x12d)](_0x90accf===null||_0x90accf===void 0x0?void 0x0:_0x90accf[_0xa757cb(0x12b)])?_0x31f469=_0x90accf===null||_0x90accf===void 0x0?void 0x0:_0x90accf['controller']:_0x31f469=[!![]];_0xa65306['controllers']=_0x31f469,await(0x0,Search_1[_0xa757cb(0x134)])(_0xa65306),await(0x0,Entities_1[_0xa757cb(0x134)])(_0xa65306),await(0x0,Common_1[_0xa757cb(0x134)])(_0xa65306),await(0x0,Event_1[_0xa757cb(0x134)])(_0xa65306),await(0x0,Handler_1[_0xa757cb(0x134)])(_0xa65306),await(0x0,Validator_1[_0xa757cb(0x134)])(_0xa65306);for(let _0x2109dd of _0x31f469){_0xa65306[_0xa757cb(0x12b)]=_0x2109dd,await(0x0,Action_1[_0xa757cb(0x134)])(_0xa65306);}}if(_0x90accf===null||_0x90accf===void 0x0?void 0x0:_0x90accf[_0xa757cb(0x15f)]){var _0x31f469=[];if(typeof(_0x90accf===null||_0x90accf===void 0x0?void 0x0:_0x90accf[_0xa757cb(0x12b)])==_0xa757cb(0x1a7))_0x31f469=[_0x90accf===null||_0x90accf===void 0x0?void 0x0:_0x90accf[_0xa757cb(0x12b)]];else Array[_0xa757cb(0x12d)](_0x90accf===null||_0x90accf===void 0x0?void 0x0:_0x90accf['controller'])?_0x31f469=_0x90accf===null||_0x90accf===void 0x0?void 0x0:_0x90accf[_0xa757cb(0x12b)]:_0x31f469=[!![]];if(_0x90accf[_0xa757cb(0x15f)]=='v2')for(let _0x2b5dc6 of _0x31f469){_0xa65306[_0xa757cb(0x12b)]=_0x2b5dc6;let _0x49e97b=process[_0xa757cb(0x1a2)]()+_0xa757cb(0x19e)+(typeof _0xa65306[_0xa757cb(0x12b)]==_0xa757cb(0x1a7)?'/'+_0xa65306['controller']:'');_0xa65306['moduleName']?_0x49e97b=_0x49e97b+(_0xa757cb(0x165)+_0xa65306[_0xa757cb(0x195)]+'/apis/'+_0xa65306[_0xa757cb(0x17f)]+'.js'):_0x49e97b=_0x49e97b+(_0xa757cb(0x152)+_0xa65306[_0xa757cb(0x1a4)]+'/apis/'+_0xa65306['tablestartUpShort']+_0xa757cb(0x164)),!fs[_0xa757cb(0x192)](_0x49e97b)&&(await(0x0,Api_2['default'])(_0xa65306),await(0x0,Router_2['default'])(_0xa65306),await(0x0,Layout_2['default'])(_0xa65306),await(0x0,LayoutVue_2[_0xa757cb(0x134)])(_0xa65306),await(0x0,Validator_3[_0xa757cb(0x134)])(_0xa65306));}else{if(_0x90accf[_0xa757cb(0x15f)]=='v3')for(let _0x414373 of _0x31f469){_0xa65306[_0xa757cb(0x12b)]=_0x414373;let _0x42adce=process[_0xa757cb(0x1a2)]()+'/vue'+(typeof _0xa65306['controller']==_0xa757cb(0x1a7)?'/'+_0xa65306[_0xa757cb(0x12b)]:'');_0xa65306[_0xa757cb(0x195)]?_0x42adce=_0x42adce+(_0xa757cb(0x165)+_0xa65306['moduleName']+'/apis/'+_0xa65306['tablestartUpShort']+_0xa757cb(0x164)):_0x42adce=_0x42adce+(_0xa757cb(0x152)+_0xa65306[_0xa757cb(0x1a4)]+_0xa757cb(0x152)+_0xa65306[_0xa757cb(0x17f)]+_0xa757cb(0x164)),!fs['existsSync'](_0x42adce)&&(await(0x0,Api_3['default'])(_0xa65306),await(0x0,Router_3[_0xa757cb(0x134)])(_0xa65306),await(0x0,Layout_3[_0xa757cb(0x134)])(_0xa65306),await(0x0,LayoutVue_3['default'])(_0xa65306),await(0x0,Validator_4[_0xa757cb(0x134)])(_0xa65306));}else for(let _0x1d4699 of _0x31f469){_0xa65306[_0xa757cb(0x12b)]=_0x1d4699;let _0x5279c8=process[_0xa757cb(0x1a2)]()+_0xa757cb(0x19e)+(typeof _0xa65306[_0xa757cb(0x12b)]==_0xa757cb(0x1a7)?'/'+_0xa65306[_0xa757cb(0x12b)]:'');_0xa65306['moduleName']?_0x5279c8=_0x5279c8+(_0xa757cb(0x196)+_0xa65306[_0xa757cb(0x195)]+_0xa757cb(0x1a9)+_0xa65306[_0xa757cb(0x12a)]+_0xa757cb(0x164)):_0x5279c8=_0x5279c8+(_0xa757cb(0x133)+_0xa65306['apporbasic']+_0xa757cb(0x1a9)+_0xa65306[_0xa757cb(0x12a)]+_0xa757cb(0x164)),!fs[_0xa757cb(0x192)](_0x5279c8)&&(await(0x0,Api_1[_0xa757cb(0x134)])(_0xa65306),await(0x0,Router_1[_0xa757cb(0x134)])(_0xa65306),await(0x0,Layout_1[_0xa757cb(0x134)])(_0xa65306),await(0x0,LayoutVue_1[_0xa757cb(0x134)])(_0xa65306),await(0x0,Validator_2[_0xa757cb(0x134)])(_0xa65306));}}}}else console[_0xa757cb(0x1a8)]('表:'+_0x3a3b28+_0xa757cb(0x145));}return _0xa757cb(0x135);}async['checkOption'](_0x269f55){const _0x7620f0=a3_0x3c0aef;var _0x3f4d6a,_0x5e7a01,_0x337938;if(!this[_0x7620f0(0x138)][_0x7620f0(0x17c)]()||!((_0x3f4d6a=this[_0x7620f0(0x18a)])===null||_0x3f4d6a===void 0x0?void 0x0:_0x3f4d6a[_0x7620f0(0x142)])||!this['app'][_0x7620f0(0x12e)](_0x7620f0(0x13b)))throw new Error(_0x7620f0(0x181));!_0x269f55[_0x7620f0(0x163)]&&(_0x269f55['connection']=_0x7620f0(0x134));if(!((_0x337938=(_0x5e7a01=this[_0x7620f0(0x18a)])===null||_0x5e7a01===void 0x0?void 0x0:_0x5e7a01['dataSource'])===null||_0x337938===void 0x0?void 0x0:_0x337938[_0x269f55[_0x7620f0(0x163)]]))throw new Error('typeorm\x20未配置数据源\x20'+_0x269f55[_0x7620f0(0x163)]);if(!this[_0x7620f0(0x175)][_0x7620f0(0x170)](_0x269f55[_0x7620f0(0x163)]))throw new Error(_0x7620f0(0x136)+_0x269f55[_0x7620f0(0x163)]+_0x7620f0(0x140));if(!this['dataSourceManager'][_0x7620f0(0x127)](_0x269f55[_0x7620f0(0x163)]))throw new Error(_0x7620f0(0x136)+_0x269f55[_0x7620f0(0x163)]+_0x7620f0(0x129));return!![];}async[a3_0x3c0aef(0x139)](_0x22bad2){const _0xe2b4eb=a3_0x3c0aef,_0x13d453=_0x22bad2['tablestart'][_0xe2b4eb(0x14c)]('_')[0x0][_0xe2b4eb(0x155)]();if(!fs[_0xe2b4eb(0x192)](_0x22bad2['basedir']+'/config.ts')){let _0x1bdf27=_0xe2b4eb(0x150)+(_0x22bad2['Comment']||_0x13d453)+_0xe2b4eb(0x176);fs[_0xe2b4eb(0x179)](path[_0xe2b4eb(0x15c)](_0x22bad2['basedir']+_0xe2b4eb(0x13f)),{'recursive':!![]}),fs['writeFileSync'](_0x22bad2[_0xe2b4eb(0x184)]+_0xe2b4eb(0x13f),_0x1bdf27,'utf-8');}}};exports[a3_0x3c0aef(0x158)]=ApicreateService,__decorate([(0x0,core_2[a3_0x3c0aef(0x12f)])(),__metadata(a3_0x3c0aef(0x16a),Object)],ApicreateService['prototype'],'app',void 0x0),__decorate([(0x0,core_2[a3_0x3c0aef(0x19b)])(a3_0x3c0aef(0x1a3)),__metadata(a3_0x3c0aef(0x16a),Object)],ApicreateService[a3_0x3c0aef(0x156)],a3_0x3c0aef(0x18a),void 0x0),__decorate([(0x0,core_2[a3_0x3c0aef(0x1a6)])(),__metadata(a3_0x3c0aef(0x16a),core_1['MidwayEnvironmentService'])],ApicreateService['prototype'],'environment',void 0x0),__decorate([(0x0,core_2[a3_0x3c0aef(0x1a6)])(),__metadata(a3_0x3c0aef(0x16a),typeorm_1[a3_0x3c0aef(0x187)])],ApicreateService['prototype'],a3_0x3c0aef(0x175),void 0x0),exports[a3_0x3c0aef(0x158)]=ApicreateService=__decorate([(0x0,core_2[a3_0x3c0aef(0x128)])(a3_0x3c0aef(0x158)),(0x0,core_2[a3_0x3c0aef(0x166)])(core_2['ScopeEnum']['Singleton'])],ApicreateService);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a4_0x4ae62c=a4_0x9b4e;function a4_0x516b(){const _0x31e814=['Handler.create(params);\x0a\x0a','__esModule','.ts','\x20\x20\x20\x20@Action.get(\x27列表\x27,\x20\x27list\x27)\x0a','substring','\x20\x20\x20\x20@Inject()\x20protected\x20','Handler.list(conditions,\x20pageinfo);\x0a\x0a','\x20\x20\x20\x20@Inject()\x20protected\x20ctx:\x20Context;\x0a\x0a','mediumtext','getProp','/Search\x27;\x0a\x0a','existsSync','DTOUpdate\x20}\x20from\x20\x27','writeFileSync','\x20\x20\x20\x20\x20\x20\x20\x20const\x20removes\x20=\x20await\x20this.','DTOSearch)\x20{\x0a\x0a','import\x20{\x20Context\x20}\x20from\x20\x27@midwayjs/koa\x27;\x0a','10DGndeH','35ukrIqf','Handler.remove(conditions);\x0a\x0a','85758kongMo','import\x20{\x20','\x20\x20\x20\x20\x20\x20\x20\x20const\x20conditions:\x20','\x20\x20\x20\x20async\x20detail(','/validators/','@/apps/','\x20};\x0a\x0a','54nbfWQK','DTOUpdate)\x20{\x0a','69607uWCvzy','@Action(__filename,\x20\x27','number','10515109IbKCik','indexOf','DTOCreate\x20}\x20from\x20\x27','dirname','\x20\x20\x20\x20async\x20update(','path','utf-8','text','toString','constructor','\x20\x20\x20\x20\x20\x20\x20\x20const\x20tmpModel\x20=\x20await\x20this.','Handler\x0a\x0a\x0a','543udzzzL','\x20\x20\x20\x20\x20\x20\x20\x20return\x20this.ctx.ok(tmpModel);\x0a','\x20\x20\x20\x20@Action.post(\x22删除\x22,\x20\x27remove\x27)\x0a','Controller\x20{\x0a\x0a','defineProperty','Field','6250176NLdVNh','\x27;\x0a','Handler.detail(conditions);\x0a\x0a','DTOSearch\x20=\x20{\x20','\x27)\x0a','\x20\x20\x20\x20}\x0a\x0a\x0a','/controller/','string','search','Handler:\x20','toUpperCase','\x20\x20\x20\x20@Action.post(\x27添加\x27,\x20\x27add\x27)\x0a','3353728XeLoJQ','\x20\x20\x20\x20async\x20create(params:\x20','\x20\x20\x20\x20@Action.post(\x27修改\x27,\x20\x27edit/:','\x20\x20\x20\x20\x20\x20\x20\x20const\x20[pagelist,\x20pagetotal]\x20=\x20await\x20this.','12326496OTyJJG','/Update\x27;\x0a','5652ujXYTR'];a4_0x516b=function(){return _0x31e814;};return a4_0x516b();}(function(_0x22b1d0,_0x64698e){const _0x5b7eea=a4_0x9b4e,_0x17c165=_0x22b1d0();while(!![]){try{const _0x489b72=-parseInt(_0x5b7eea(0x150))/0x1*(-parseInt(_0x5b7eea(0x14e))/0x2)+-parseInt(_0x5b7eea(0x15f))/0x3*(parseInt(_0x5b7eea(0x177))/0x4)+-parseInt(_0x5b7eea(0x145))/0x5*(parseInt(_0x5b7eea(0x147))/0x6)+-parseInt(_0x5b7eea(0x175))/0x7+-parseInt(_0x5b7eea(0x171))/0x8+parseInt(_0x5b7eea(0x165))/0x9+parseInt(_0x5b7eea(0x144))/0xa*(parseInt(_0x5b7eea(0x153))/0xb);if(_0x489b72===_0x64698e)break;else _0x17c165['push'](_0x17c165['shift']());}catch(_0x58c3cb){_0x17c165['push'](_0x17c165['shift']());}}}(a4_0x516b,0xf2a20));const a4_0x271b73=(function(){let _0x414c06=!![];return function(_0x105b18,_0x1d8834){const _0x5de8ed=_0x414c06?function(){if(_0x1d8834){const _0xefcfef=_0x1d8834['apply'](_0x105b18,arguments);return _0x1d8834=null,_0xefcfef;}}:function(){};return _0x414c06=![],_0x5de8ed;};}()),a4_0x5231a6=a4_0x271b73(this,function(){const _0x104249=a4_0x9b4e;return a4_0x5231a6[_0x104249(0x15b)]()[_0x104249(0x16d)]('(((.+)+)+)+$')[_0x104249(0x15b)]()[_0x104249(0x15c)](a4_0x5231a6)['search']('(((.+)+)+)+$');});a4_0x5231a6();'use strict';Object[a4_0x4ae62c(0x163)](exports,a4_0x4ae62c(0x179),{'value':!![]}),exports['default']=default_1;const fs=require('fs'),path_1=require(a4_0x4ae62c(0x158)),helper_1=require('../helper');function a4_0x9b4e(_0x54f47e,_0x283829){const _0x4ebfd2=a4_0x516b();return a4_0x9b4e=function(_0x5231a6,_0x271b73){_0x5231a6=_0x5231a6-0x13a;let _0x516b60=_0x4ebfd2[_0x5231a6];return _0x516b60;},a4_0x9b4e(_0x54f47e,_0x283829);}async function default_1({controller:_0x17f8e9,tablestartUp:_0x2c2685,tablestartUpShort:_0xfa46b,basedir:_0x2ab183,Primary:_0x1f9f9b,Comment:_0x165249,moduleName:_0x5441b8,apporbasic:_0x135739}){const _0x5e5956=a4_0x4ae62c;if(_0x17f8e9){const _0x27c8d8=_0x2ab183+(typeof _0x17f8e9==_0x5e5956(0x16c)?_0x5e5956(0x16b)+_0x17f8e9+'/'+_0xfa46b+_0x5e5956(0x17a):_0x5e5956(0x16b)+_0xfa46b+_0x5e5956(0x17a));if(!fs['existsSync'](_0x27c8d8)){let _0xeb9d36='',_0x146d9f=[_0x5e5956(0x15a),_0x5e5956(0x13b),_0x5e5956(0x16c)][_0x5e5956(0x154)]((0x0,helper_1[_0x5e5956(0x13c)])(_0x1f9f9b['Type']))==-0x1;_0xeb9d36+=_0x5e5956(0x143),_0xeb9d36+='import\x20{\x20Inject,\x20Action,\x20PageDTO\x20}\x20from\x20\x27anncic-api\x27;\x0a\x0a',_0xeb9d36+=_0x5e5956(0x148)+_0x2c2685+'Handler\x20}\x20from\x20\x27'+(typeof _0x5441b8==_0x5e5956(0x16c)?_0x5e5956(0x14c)+_0x5441b8:'@/'+_0x135739)+'/handlers/'+_0xfa46b+_0x5e5956(0x166),_0xeb9d36+='import\x20{\x20'+_0x2c2685+_0x5e5956(0x155)+(typeof _0x5441b8==_0x5e5956(0x16c)?_0x5e5956(0x14c)+_0x5441b8:'@/'+_0x135739)+_0x5e5956(0x14b)+_0xfa46b+'/Create\x27;\x0a',_0xeb9d36+=_0x5e5956(0x148)+_0x2c2685+_0x5e5956(0x13f)+(typeof _0x5441b8==_0x5e5956(0x16c)?'@/apps/'+_0x5441b8:'@/'+_0x135739)+'/validators/'+_0xfa46b+_0x5e5956(0x176),_0xeb9d36+=_0x5e5956(0x148)+_0x2c2685+'DTOSearch\x20}\x20from\x20\x27'+(typeof _0x5441b8==_0x5e5956(0x16c)?_0x5e5956(0x14c)+_0x5441b8:'@/'+_0x135739)+'/validators/'+_0xfa46b+_0x5e5956(0x13d),_0xeb9d36+=_0x5e5956(0x151)+_0x165249+_0x5e5956(0x169),_0xeb9d36+='export\x20class\x20'+(typeof _0x17f8e9==_0x5e5956(0x16c)?_0x17f8e9[_0x5e5956(0x17c)](0x0,0x1)[_0x5e5956(0x16f)]()+_0x17f8e9[_0x5e5956(0x17c)](0x1):'')+_0x2c2685+_0x5e5956(0x162),_0xeb9d36+=_0x5e5956(0x13a),_0xeb9d36+=_0x5e5956(0x17d)+_0x2c2685+_0x5e5956(0x16e)+_0x2c2685+_0x5e5956(0x15e),_0xeb9d36+=_0x5e5956(0x17b),_0xeb9d36+='\x20\x20\x20\x20async\x20index(conditions:\x20'+_0x2c2685+'DTOSearch,\x20pageinfo:\x20PageDTO)\x20{\x0a\x0a',_0xeb9d36+=_0x5e5956(0x174)+_0x2c2685+_0x5e5956(0x17e),_0xeb9d36+='\x20\x20\x20\x20\x20\x20\x20\x20return\x20this.ctx.ok(pagelist,\x20{\x20pageinfo,\x20pagetotal\x20});\x0a',_0xeb9d36+=_0x5e5956(0x16a),_0xeb9d36+='\x20\x20\x20\x20@Action.get(\x27详情\x27,\x20\x27detail/:'+_0x1f9f9b['Field']+_0x5e5956(0x169),_0xeb9d36+=_0x5e5956(0x14a)+_0x1f9f9b[_0x5e5956(0x164)]+':\x20'+(_0x146d9f?_0x5e5956(0x152):_0x5e5956(0x16c))+')\x20{\x0a',_0xeb9d36+=_0x5e5956(0x149)+_0x2c2685+_0x5e5956(0x168)+_0x1f9f9b[_0x5e5956(0x164)]+_0x5e5956(0x14d),_0xeb9d36+=_0x5e5956(0x15d)+_0x2c2685+_0x5e5956(0x167),_0xeb9d36+=_0x5e5956(0x160),_0xeb9d36+=_0x5e5956(0x16a),_0xeb9d36+=_0x5e5956(0x170),_0xeb9d36+=_0x5e5956(0x172)+_0x2c2685+'DTOCreate)\x20{\x0a\x0a',_0xeb9d36+=_0x5e5956(0x15d)+_0x2c2685+_0x5e5956(0x178),_0xeb9d36+=_0x5e5956(0x160),_0xeb9d36+=_0x5e5956(0x16a),_0xeb9d36+=_0x5e5956(0x173)+_0x1f9f9b[_0x5e5956(0x164)]+_0x5e5956(0x169),_0xeb9d36+=_0x5e5956(0x157)+_0x1f9f9b[_0x5e5956(0x164)]+':\x20'+(_0x146d9f?_0x5e5956(0x152):'string')+',\x20params:\x20'+_0x2c2685+_0x5e5956(0x14f),_0xeb9d36+=_0x5e5956(0x149)+_0x2c2685+_0x5e5956(0x168)+_0x1f9f9b[_0x5e5956(0x164)]+_0x5e5956(0x14d),_0xeb9d36+=_0x5e5956(0x15d)+_0x2c2685+'Handler.update(conditions,\x20params);\x0a\x0a',_0xeb9d36+=_0x5e5956(0x160),_0xeb9d36+=_0x5e5956(0x16a),_0xeb9d36+=_0x5e5956(0x161),_0xeb9d36+='\x20\x20\x20\x20async\x20remove(conditions:\x20'+_0x2c2685+_0x5e5956(0x142),_0xeb9d36+=_0x5e5956(0x141)+_0x2c2685+_0x5e5956(0x146),_0xeb9d36+='\x20\x20\x20\x20\x20\x20\x20\x20return\x20this.ctx.ok(removes);\x0a',_0xeb9d36+=_0x5e5956(0x16a),_0xeb9d36+='}',!fs[_0x5e5956(0x13e)]((0x0,path_1[_0x5e5956(0x156)])(_0x27c8d8))&&fs['mkdirSync']((0x0,path_1[_0x5e5956(0x156)])(_0x27c8d8),{'recursive':!![]}),fs[_0x5e5956(0x140)](_0x27c8d8,_0xeb9d36,_0x5e5956(0x159));}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a5_0x4033(_0x41d97a,_0x44bbc0){const _0x313646=a5_0x1be4();return a5_0x4033=function(_0x5a1672,_0x136c1f){_0x5a1672=_0x5a1672-0x1aa;let _0x1be464=_0x313646[_0x5a1672];return _0x1be464;},a5_0x4033(_0x41d97a,_0x44bbc0);}const a5_0x3fe811=a5_0x4033;(function(_0x9acf38,_0x5ba20e){const _0x3b9aec=a5_0x4033,_0x232231=_0x9acf38();while(!![]){try{const _0xe712a0=-parseInt(_0x3b9aec(0x1d4))/0x1*(parseInt(_0x3b9aec(0x1c3))/0x2)+parseInt(_0x3b9aec(0x1af))/0x3*(-parseInt(_0x3b9aec(0x1c1))/0x4)+-parseInt(_0x3b9aec(0x1c9))/0x5+parseInt(_0x3b9aec(0x1c4))/0x6+-parseInt(_0x3b9aec(0x1d1))/0x7*(parseInt(_0x3b9aec(0x1b0))/0x8)+parseInt(_0x3b9aec(0x1ba))/0x9+parseInt(_0x3b9aec(0x1cf))/0xa;if(_0xe712a0===_0x5ba20e)break;else _0x232231['push'](_0x232231['shift']());}catch(_0x382bb2){_0x232231['push'](_0x232231['shift']());}}}(a5_0x1be4,0x2fb0f));const a5_0x136c1f=(function(){let _0x290946=!![];return function(_0x31f4d8,_0x14f5b4){const _0x19c8dc=_0x290946?function(){const _0x5e11d9=a5_0x4033;if(_0x14f5b4){const _0x5e9c86=_0x14f5b4[_0x5e11d9(0x1ac)](_0x31f4d8,arguments);return _0x14f5b4=null,_0x5e9c86;}}:function(){};return _0x290946=![],_0x19c8dc;};}()),a5_0x5a1672=a5_0x136c1f(this,function(){const _0x1c6ea6=a5_0x4033;return a5_0x5a1672[_0x1c6ea6(0x1d5)]()[_0x1c6ea6(0x1cc)]('(((.+)+)+)+$')[_0x1c6ea6(0x1d5)]()[_0x1c6ea6(0x1b2)](a5_0x5a1672)[_0x1c6ea6(0x1cc)](_0x1c6ea6(0x1bb));});a5_0x5a1672();'use strict';Object[a5_0x3fe811(0x1be)](exports,a5_0x3fe811(0x1c6),{'value':!![]}),exports[a5_0x3fe811(0x1d2)]=default_1;const fs=require('fs'),path=require(a5_0x3fe811(0x1b3)),helper_1=require(a5_0x3fe811(0x1bf));async function default_1({tablestartUp:_0x4f1995,tablestartUpShort:_0x54c416,basedir:_0x3d4e6,Comment:_0x380a94,Fields:_0x22de44}){await entity_emum({'tablestartUp':_0x4f1995,'tablestartUpShort':_0x54c416,'basedir':_0x3d4e6,'Comment':_0x380a94,'Fields':_0x22de44}),await entity_exceptions({'tablestartUp':_0x4f1995,'tablestartUpShort':_0x54c416,'basedir':_0x3d4e6,'Comment':_0x380a94});}function a5_0x1be4(){const _0x5257ab=['\x20*\x20**/\x0a','defineProperty','../helper','toUpperCase','16EapsiU','\x27)\x0a','892HbqonL','1404534gBHItK','/exceptions/','__esModule','\x20\x20\x20\x20@AnnEnumMsg(\x27','Enum\x20{\x0a\x0a','1785895ELSJUu','tinyint','dirname','search','/enums/','writeFileSync','8181560ZlOInD','\x20\x20\x20\x20static\x20readonly\x20','70sCAfIU','default','export\x20class\x20','194akUNoT','toString','mkdirSync','_ON:\x20number\x20=\x201;\x0a\x0a','existsSync','Comment','apply','\x20*\x20','getProp','54786zEvsks','296200tDzrxa','utf-8','constructor','path','indexOf','Error\x20extends\x20AnnError\x20{\x0a\x0a','\x27,\x20\x27关闭','\x27,\x20\x27开启','/**\x0a','Type','270891BbaEPE','(((.+)+)+)+$','_OFF:\x20number\x20=\x200;\x0a\x0a\x0a'];a5_0x1be4=function(){return _0x5257ab;};return a5_0x1be4();}async function entity_emum({tablestartUp:_0x5585c9,tablestartUpShort:_0x277690,basedir:_0x14658d,Comment:_0x8ce1fa,Fields:_0x8fc4b3}){const _0x3289a9=a5_0x3fe811,_0x3647a0=_0x14658d+(_0x3289a9(0x1cd)+_0x277690+'.ts');if(!fs[_0x3289a9(0x1aa)](_0x3647a0)){let _0x660bd8='';_0x660bd8+=_0x3289a9(0x1b8),_0x660bd8+=_0x3289a9(0x1ad)+_0x8ce1fa+'-常量设置\x0a',_0x660bd8+=_0x3289a9(0x1bd),_0x660bd8+=_0x3289a9(0x1d3)+_0x5585c9+_0x3289a9(0x1c8);for(let _0x395196 in _0x8fc4b3){let _0x50b165=_0x8fc4b3[_0x395196],_0x303907=(0x0,helper_1[_0x3289a9(0x1ae)])(_0x50b165[_0x3289a9(0x1b9)]);[_0x3289a9(0x1ca)][_0x3289a9(0x1b4)](_0x303907)!=-0x1&&(_0x660bd8+=_0x3289a9(0x1c7)+_0x395196+_0x3289a9(0x1b7)+_0x50b165['Comment']+_0x3289a9(0x1c2),_0x660bd8+='\x20\x20\x20\x20static\x20readonly\x20'+_0x395196[_0x3289a9(0x1c0)]()+_0x3289a9(0x1d7),_0x660bd8+=_0x3289a9(0x1c7)+_0x395196+_0x3289a9(0x1b6)+_0x50b165[_0x3289a9(0x1ab)]+_0x3289a9(0x1c2),_0x660bd8+=_0x3289a9(0x1d0)+_0x395196['toUpperCase']()+_0x3289a9(0x1bc));}_0x660bd8+='}',!fs[_0x3289a9(0x1aa)](path[_0x3289a9(0x1cb)](_0x3647a0))&&fs[_0x3289a9(0x1d6)](path[_0x3289a9(0x1cb)](_0x3647a0),{'recursive':!![]}),fs[_0x3289a9(0x1ce)](_0x3647a0,_0x660bd8,_0x3289a9(0x1b1));}}async function entity_exceptions({tablestartUp:_0x483764,tablestartUpShort:_0x572270,basedir:_0x5f19e2,Comment:_0x2be619}){const _0x563427=a5_0x3fe811,_0x3d0e05=_0x5f19e2+(_0x563427(0x1c5)+_0x572270+'.ts');if(!fs['existsSync'](_0x3d0e05)){let _0x3e9caf='';_0x3e9caf+=_0x563427(0x1b8),_0x3e9caf+=_0x563427(0x1ad)+_0x2be619+'-错误信息设置\x0a',_0x3e9caf+=_0x563427(0x1bd),_0x3e9caf+=_0x563427(0x1d3)+_0x483764+_0x563427(0x1b5),_0x3e9caf+='}',!fs[_0x563427(0x1aa)](path['dirname'](_0x3d0e05))&&fs[_0x563427(0x1d6)](path[_0x563427(0x1cb)](_0x3d0e05),{'recursive':!![]}),fs[_0x563427(0x1ce)](_0x3d0e05,_0x3e9caf,_0x563427(0x1b1));}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a6_0x2ae0(_0x243562,_0x58f40e){const _0x4d7481=a6_0x21a8();return a6_0x2ae0=function(_0x742fa6,_0x161b67){_0x742fa6=_0x742fa6-0x8b;let _0x21a867=_0x4d7481[_0x742fa6];return _0x21a867;},a6_0x2ae0(_0x243562,_0x58f40e);}const a6_0x201a52=a6_0x2ae0;(function(_0x573558,_0x593a33){const _0x3e3dd9=a6_0x2ae0,_0x17ac81=_0x573558();while(!![]){try{const _0x4918a4=-parseInt(_0x3e3dd9(0xef))/0x1*(-parseInt(_0x3e3dd9(0xf1))/0x2)+parseInt(_0x3e3dd9(0xa8))/0x3*(-parseInt(_0x3e3dd9(0xa0))/0x4)+-parseInt(_0x3e3dd9(0x92))/0x5*(parseInt(_0x3e3dd9(0x9b))/0x6)+parseInt(_0x3e3dd9(0xad))/0x7*(-parseInt(_0x3e3dd9(0xd5))/0x8)+-parseInt(_0x3e3dd9(0xb9))/0x9*(-parseInt(_0x3e3dd9(0xf9))/0xa)+-parseInt(_0x3e3dd9(0xe7))/0xb*(-parseInt(_0x3e3dd9(0xde))/0xc)+-parseInt(_0x3e3dd9(0xf0))/0xd*(-parseInt(_0x3e3dd9(0x96))/0xe);if(_0x4918a4===_0x593a33)break;else _0x17ac81['push'](_0x17ac81['shift']());}catch(_0x1fd008){_0x17ac81['push'](_0x17ac81['shift']());}}}(a6_0x21a8,0x1eda8));const a6_0x161b67=(function(){let _0x599cd8=!![];return function(_0x2421cf,_0x4c9239){const _0x51dce1=_0x599cd8?function(){const _0x105e2c=a6_0x2ae0;if(_0x4c9239){const _0xf28d5a=_0x4c9239[_0x105e2c(0xb0)](_0x2421cf,arguments);return _0x4c9239=null,_0xf28d5a;}}:function(){};return _0x599cd8=![],_0x51dce1;};}()),a6_0x742fa6=a6_0x161b67(this,function(){const _0x1cd306=a6_0x2ae0;return a6_0x742fa6[_0x1cd306(0xb2)]()[_0x1cd306(0xba)](_0x1cd306(0xf2))[_0x1cd306(0xb2)]()[_0x1cd306(0x91)](a6_0x742fa6)['search'](_0x1cd306(0xf2));});function a6_0x21a8(){const _0x567159=['/entities/','dirname','Type','constructor','156760uzTFUt','\x20\x20\x20\x20@Column({\x20comment:\x20\x27','mediumtext',',\x20unique:\x20false\x20})\x0a','126jGiJli','existsSync','\x20\x20\x20\x20@Column(\x27timestamp\x27,\x20{\x20comment:\x20\x27','Search\x20}\x20from\x20\x27','Comment','42SzwzYM','false','true','YES','\x20\x20\x20\x20','779668SRaYbS','number',',\x20Column\x20}\x20from\x20\x27@anncic-api/typeorm\x27;\x0a\x0a','\x20\x20\x20\x20@Column(\x27enum\x27,\x20{\x20comment:\x20\x27','\x20\x20\x20\x20displayorder:\x20number;\x0a\x0a','../helper',':\x20string;\x0a\x0a','\x20\x20\x20\x20@Column(\x27tinyint\x27,\x20{\x20comment:\x20\x27','3cIFkuz',':\x20number;\x0a\x0a','Entity>{\x0a\x0a','updated_at','default','581aUMsZz','\x20\x20\x20\x20@Column(\x27decimal\x27,\x20{\x20comment:\x20\x27',':\x20\x27','apply','json','toString','/entity.ts','\x27,\x20nullable:\x20','indexOf','import\x20{\x20','\x20\x20\x20\x20@Column(\x27date\x27,\x20{\x20comment:\x20\x27','\x20\x20\x20\x20@Column(\x27longtext\x27,\x20{\x20comment:\x20\x27','20304YRWfsb','search','\x20\x20\x20\x20@Column(\x27float\x27,\x20{\x20comment:\x20\x27','@ProvideRepository(','displayorder','longtext','\x20\x20\x20\x20updated_at:\x20Date;\x0a\x0a','@ProvideEntity({\x20tableName:\x20\x27','\x27,\x20length:\x20188\x20})\x0a','Null','-实体处理器\x0a','path','import\x20{\x20ProvideEntity,\x20ProvideSearch,\x20','\x20\x20\x20\x20@UpdateDateColumn({\x20comment:\x20\x27修改时间\x27,\x20type:\x20\x27timestamp\x27\x20})\x0a','\x20\x20\x20\x20@Column(\x27text\x27,\x20{\x20comment:\x20\x27','\x20})\x0a','replace','__esModule','\x27;\x0a\x0a','date','@/apps/','\x27]\x20})\x0a','\x27\x20},\x20{\x20orderBy:\x20{\x20displayorder:\x20\x27DESC\x27\x20}\x20})\x0a','writeFileSync','@ProvideSearch(','\x20*\x20**/\x0a','-实体\x0a','defineProperty','8984YoKygK','\x27,\x20enum:\x20[\x27','\x20\x20\x20\x20created_at:\x20Date;\x0a\x0a','Entity\x20}\x20from\x20\x27','deleted_at','Field','\x20\x20\x20\x20@PrimaryColumn({\x20comment:\x20\x27','datetime','\x20\x20\x20\x20@Column(\x27json\x27,\x20{\x20comment:\x20\x27','24zTFApx','export\x20class\x20','tinyint','\x20\x20\x20\x20@DeleteDateColumn({\x20comment:\x20\x27删除时间\x27,\x20type:\x20\x27timestamp\x27,\x20select:\x20false\x20})\x0a','getProp','import\x20{\x20ProvideRepository,\x20Repository\x20}\x20from\x20\x27@anncic-api/typeorm\x27;\x0a','%column%','created_at','join','423995dOmLuu','/entity\x27;\x0a\x0a','Entity\x20{\x0a\x0a','import\x20{\x20CreateDateColumn,\x20UpdateDateColumn,\x20DeleteDateColumn\x20}\x20from\x20\x27@anncic-api/typeorm\x27;\x0a','\x20\x20\x20\x20@Column({\x20comment:\x20\x27默认显示排序\x27,\x20nullable:\x20true,\x20unique:\x20false\x20})\x0a','\x27,\x20precision:\x2010,\x20scale:\x202,\x20default:\x200.00,\x20nullable:\x20','\x20\x20\x20\x20@PrimaryGeneratedColumn()\x0a','getEnum','1dpwrMD','181402ZeQXmy','451988WCCFnz','(((.+)+)+)+$','\x27\x20|\x20\x27','mkdirSync','utf-8','\x20\x20\x20\x20deleted_at:\x20Date;\x0a\x0a','enum','\x27,\x20default:\x20\x27','910mAVeMc','\x20\x20\x20\x20@CreateDateColumn({\x20comment:\x20\x27创建时间\x27,\x20type:\x20\x27timestamp\x27\x20})\x0a','Entity)\x0a','PrimaryGeneratedColumn','text','\x20\x20\x20\x20@Column(\x27mediumtext\x27,\x20{\x20comment:\x20\x27','/index.ts','string'];a6_0x21a8=function(){return _0x567159;};return a6_0x21a8();}a6_0x742fa6();'use strict';Object[a6_0x201a52(0xd4)](exports,a6_0x201a52(0xca),{'value':!![]}),exports[a6_0x201a52(0xac)]=default_1;const fs=require('fs'),path_1=require(a6_0x201a52(0xc4)),helper_1=require(a6_0x201a52(0xa5));async function default_1({tablename:_0x2176e8,tablestartUp:_0x227359,tablestartUpShort:_0x547006,basedir:_0x2d4bd9,Primary:_0x4371d1,Fields:_0xd1be3c,Comment:_0x4ffe19,moduleName:_0x703c3d,apporbasic:_0x30aff6}){await entity({'tablename':_0x2176e8,'tablestartUp':_0x227359,'tablestartUpShort':_0x547006,'basedir':_0x2d4bd9,'Primary':_0x4371d1,'Fields':_0xd1be3c,'Comment':_0x4ffe19,'moduleName':_0x703c3d,'apporbasic':_0x30aff6}),await repository({'tablestartUp':_0x227359,'tablestartUpShort':_0x547006,'basedir':_0x2d4bd9,'Comment':_0x4ffe19,'moduleName':_0x703c3d,'apporbasic':_0x30aff6});}async function entity({tablename:_0xc64efc,tablestartUp:_0x48bd1b,tablestartUpShort:_0x140925,basedir:_0x1dec95,Primary:_0x1699b6,Fields:_0x38a2a3,Comment:_0x350967,moduleName:_0x75c248,apporbasic:_0x22c668}){const _0xdf6278=a6_0x201a52,_0x28484a=_0x1dec95+(_0xdf6278(0x8e)+_0x140925+_0xdf6278(0xb3));if(!fs[_0xdf6278(0x97)](_0x28484a)){let _0x24cb6a='',_0x5f0047='',_0x3f3c93=[_0xdf6278(0xfd),_0xdf6278(0x94),'string'][_0xdf6278(0xb5)]((0x0,helper_1[_0xdf6278(0xe2)])(_0x1699b6[_0xdf6278(0x90)]))==-0x1;_0x3f3c93?(_0x24cb6a+=_0xdf6278(0xed),_0x24cb6a+=_0xdf6278(0x9f)+_0x1699b6[_0xdf6278(0xda)]+_0xdf6278(0xa9)):(_0x24cb6a+=_0xdf6278(0xdb)+(_0x1699b6[_0xdf6278(0x9a)]||'标识')+_0xdf6278(0xc1),_0x24cb6a+='\x20\x20\x20\x20'+_0x1699b6[_0xdf6278(0xda)]+_0xdf6278(0xa6));for(let _0x2969a2 in _0x38a2a3){let _0x1414f9=_0x38a2a3[_0x2969a2],_0x3c529a=(0x0,helper_1[_0xdf6278(0xe2)])(_0x1414f9[_0xdf6278(0x90)]);if(_0x1414f9[_0xdf6278(0xda)]==_0xdf6278(0xbd)||_0x1414f9[_0xdf6278(0xda)]==_0xdf6278(0xe5)||_0x1414f9['Field']==_0xdf6278(0xab)||_0x1414f9[_0xdf6278(0xda)]==_0xdf6278(0xd9))continue;if(_0x3c529a==_0xdf6278(0xb1))_0x24cb6a+=_0xdf6278(0xdd)+_0x1414f9['Comment']+_0xdf6278(0xb4)+(_0x1414f9[_0xdf6278(0xc2)]==_0xdf6278(0x9e)?_0xdf6278(0x9d):'false')+',\x20unique:\x20false\x20})\x0a',_0x24cb6a+=_0xdf6278(0x9f)+_0x1414f9[_0xdf6278(0xda)]+':\x20any\x20|\x20any[];\x0a\x0a';else{if(_0x3c529a==_0xdf6278(0xf7)){let _0x3ed89d=(0x0,helper_1[_0xdf6278(0xee)])(_0x1414f9['Type']);_0x24cb6a+=_0xdf6278(0xa3)+_0x1414f9[_0xdf6278(0x9a)]+_0xdf6278(0xf8)+(_0x3ed89d[0x0]||'')+_0xdf6278(0xd6)+_0x3ed89d['join']('\x27,\x20\x27')+_0xdf6278(0xce),_0x24cb6a+=_0xdf6278(0x9f)+_0x1414f9['Field']+_0xdf6278(0xaf)+_0x3ed89d[_0xdf6278(0xe6)](_0xdf6278(0xf3))+_0xdf6278(0xcb);}else{if(_0x3c529a=='float')_0x24cb6a+=_0xdf6278(0xbb)+_0x1414f9['Comment']+_0xdf6278(0xec)+(_0x1414f9[_0xdf6278(0xc2)]=='YES'?_0xdf6278(0x9d):_0xdf6278(0x9c))+_0xdf6278(0xc8),_0x24cb6a+='\x20\x20\x20\x20'+_0x1414f9[_0xdf6278(0xda)]+_0xdf6278(0xa9);else{if(_0x3c529a=='double')_0x24cb6a+='\x20\x20\x20\x20@Column(\x27double\x27,\x20{\x20comment:\x20\x27'+_0x1414f9['Comment']+_0xdf6278(0xec)+(_0x1414f9['Null']==_0xdf6278(0x9e)?_0xdf6278(0x9d):_0xdf6278(0x9c))+_0xdf6278(0xc8),_0x24cb6a+=_0xdf6278(0x9f)+_0x1414f9[_0xdf6278(0xda)]+_0xdf6278(0xa9);else{if(_0x3c529a=='decimal')_0x24cb6a+=_0xdf6278(0xae)+_0x1414f9[_0xdf6278(0x9a)]+'\x27,\x20precision:\x2024,\x20scale:\x202,\x20default:\x200.00,\x20nullable:\x20'+(_0x1414f9[_0xdf6278(0xc2)]==_0xdf6278(0x9e)?_0xdf6278(0x9d):'false')+_0xdf6278(0xc8),_0x24cb6a+=_0xdf6278(0x9f)+_0x1414f9[_0xdf6278(0xda)]+_0xdf6278(0xa9);else{if(_0x3c529a==_0xdf6278(0xa1))_0x24cb6a+=_0xdf6278(0x93)+_0x1414f9[_0xdf6278(0x9a)]+_0xdf6278(0xb4)+(_0x1414f9[_0xdf6278(0xc2)]==_0xdf6278(0x9e)?_0xdf6278(0x9d):_0xdf6278(0x9c))+_0xdf6278(0x95),_0x24cb6a+='\x20\x20\x20\x20'+_0x1414f9['Field']+':\x20number;\x0a\x0a';else{if(_0x3c529a==_0xdf6278(0xe0))_0x24cb6a+=_0xdf6278(0xa7)+_0x1414f9[_0xdf6278(0x9a)]+_0xdf6278(0xb4)+(_0x1414f9[_0xdf6278(0xc2)]==_0xdf6278(0x9e)?_0xdf6278(0x9d):_0xdf6278(0x9c))+',\x20unique:\x20false\x20})\x0a',_0x24cb6a+=_0xdf6278(0x9f)+_0x1414f9[_0xdf6278(0xda)]+_0xdf6278(0xa9);else{if(_0x3c529a==_0xdf6278(0xcc))_0x24cb6a+=_0xdf6278(0xb7)+_0x1414f9['Comment']+_0xdf6278(0xb4)+(_0x1414f9[_0xdf6278(0xc2)]==_0xdf6278(0x9e)?'true':'false')+_0xdf6278(0xc8),_0x24cb6a+='\x20\x20\x20\x20'+_0x1414f9['Field']+':\x20string;\x0a\x0a';else{if(_0x3c529a==_0xdf6278(0xdc))_0x24cb6a+=_0xdf6278(0x98)+_0x1414f9[_0xdf6278(0x9a)]+_0xdf6278(0xb4)+(_0x1414f9[_0xdf6278(0xc2)]==_0xdf6278(0x9e)?'true':_0xdf6278(0x9c))+'\x20})\x0a',_0x24cb6a+=_0xdf6278(0x9f)+_0x1414f9[_0xdf6278(0xda)]+_0xdf6278(0xa6);else{if(_0x3c529a=='timestamp')_0x24cb6a+='\x20\x20\x20\x20@Column(\x27timestamp\x27,\x20{\x20comment:\x20\x27'+_0x1414f9[_0xdf6278(0x9a)]+_0xdf6278(0xb4)+(_0x1414f9['Null']==_0xdf6278(0x9e)?_0xdf6278(0x9d):_0xdf6278(0x9c))+'\x20})\x0a',_0x24cb6a+=_0xdf6278(0x9f)+_0x1414f9[_0xdf6278(0xda)]+':\x20string;\x0a\x0a';else{if(_0x3c529a==_0xdf6278(0xfd))_0x24cb6a+=_0xdf6278(0xc7)+_0x1414f9['Comment']+_0xdf6278(0xb4)+(_0x1414f9[_0xdf6278(0xc2)]==_0xdf6278(0x9e)?_0xdf6278(0x9d):'false')+',\x20unique:\x20false\x20})\x0a',_0x24cb6a+=_0xdf6278(0x9f)+_0x1414f9['Field']+_0xdf6278(0xa6);else{if(_0x3c529a==_0xdf6278(0xbe))_0x24cb6a+=_0xdf6278(0xb8)+_0x1414f9[_0xdf6278(0x9a)]+'\x27,\x20nullable:\x20'+(_0x1414f9[_0xdf6278(0xc2)]==_0xdf6278(0x9e)?'true':'false')+_0xdf6278(0x95),_0x24cb6a+=_0xdf6278(0x9f)+_0x1414f9[_0xdf6278(0xda)]+':\x20string;\x0a\x0a';else _0x3c529a==_0xdf6278(0x94)?(_0x24cb6a+=_0xdf6278(0x8b)+_0x1414f9['Comment']+_0xdf6278(0xb4)+(_0x1414f9['Null']==_0xdf6278(0x9e)?_0xdf6278(0x9d):'false')+',\x20unique:\x20false\x20})\x0a',_0x24cb6a+=_0xdf6278(0x9f)+_0x1414f9['Field']+_0xdf6278(0xa6)):(_0x24cb6a+=_0xdf6278(0x93)+_0x1414f9[_0xdf6278(0x9a)]+_0xdf6278(0xb4)+(_0x1414f9['Null']=='YES'?_0xdf6278(0x9d):_0xdf6278(0x9c))+',\x20unique:\x20false\x20})\x0a',_0x24cb6a+=_0xdf6278(0x9f)+_0x1414f9[_0xdf6278(0xda)]+':\x20string;\x0a\x0a');}}}}}}}}}}}}_0x5f0047+='//\x20import\x20{\x20ManyToOne,\x20JoinColumn\x20}\x20from\x20\x27@anncic-api/typeorm\x27;\x0a',_0x5f0047+=_0xdf6278(0xea),_0x5f0047+=_0xdf6278(0xc5)+(_0x3f3c93?_0xdf6278(0xfc):'PrimaryColumn')+_0xdf6278(0xa2),_0x5f0047+=_0xdf6278(0xb6)+_0x48bd1b+_0xdf6278(0x99)+(typeof _0x75c248==_0xdf6278(0x8d)?'@/apps/'+_0x75c248:'@/'+_0x22c668)+'/searchs/'+_0x140925+'\x27;\x0a\x0a',_0x5f0047+='/**\x0a',_0x5f0047+='\x20*\x20'+_0x350967+_0xdf6278(0xd3),_0x5f0047+=_0xdf6278(0xd2),_0x5f0047+=_0xdf6278(0xd1)+_0x48bd1b+'Search)\x0a',_0x5f0047+=_0xdf6278(0xc0)+_0xc64efc+_0xdf6278(0xcf),_0x5f0047+=_0xdf6278(0xdf)+_0x48bd1b+_0xdf6278(0xe9),_0x5f0047+=_0xdf6278(0xe4),_0x5f0047+=_0xdf6278(0xeb),_0x5f0047+=_0xdf6278(0xa4),_0x5f0047+=_0xdf6278(0xfa),_0x5f0047+=_0xdf6278(0xd7),_0x5f0047+=_0xdf6278(0xc6),_0x5f0047+=_0xdf6278(0xbf),_0x5f0047+=_0xdf6278(0xe1),_0x5f0047+=_0xdf6278(0xf6),_0x5f0047+='}',_0x5f0047=_0x5f0047[_0xdf6278(0xc9)]('%column%',_0x24cb6a),!fs['existsSync']((0x0,path_1['dirname'])(_0x28484a))&&fs[_0xdf6278(0xf4)]((0x0,path_1['dirname'])(_0x28484a),{'recursive':!![]}),fs[_0xdf6278(0xd0)](_0x28484a,_0x5f0047,_0xdf6278(0xf5));}}async function repository({tablestartUp:_0x28e9f5,tablestartUpShort:_0x39c377,basedir:_0x354b3d,Comment:_0x3420ff,moduleName:_0x495f6b,apporbasic:_0x34e2e5}){const _0x562094=a6_0x201a52,_0x46b225=_0x354b3d+(_0x562094(0x8e)+_0x39c377+_0x562094(0x8c));if(!fs[_0x562094(0x97)](_0x46b225)){let _0x10afd9='';_0x10afd9+='/**\x0a',_0x10afd9+='\x20*\x20'+_0x3420ff+_0x562094(0xc3),_0x10afd9+=_0x562094(0xd2),_0x10afd9+=_0x562094(0xe3),_0x10afd9+='import\x20{\x20'+_0x28e9f5+_0x562094(0xd8)+(typeof _0x495f6b==_0x562094(0x8d)?_0x562094(0xcd)+_0x495f6b:'@/'+_0x34e2e5)+_0x562094(0x8e)+_0x39c377+_0x562094(0xe8),_0x10afd9+=_0x562094(0xbc)+_0x28e9f5+_0x562094(0xfb),_0x10afd9+=_0x562094(0xdf)+_0x28e9f5+'\x20extends\x20Repository<'+_0x28e9f5+_0x562094(0xaa),_0x10afd9+='}',!fs['existsSync']((0x0,path_1[_0x562094(0x8f)])(_0x46b225))&&fs['mkdirSync']((0x0,path_1['dirname'])(_0x46b225),{'recursive':!![]}),fs[_0x562094(0xd0)](_0x46b225,_0x10afd9,_0x562094(0xf5));}}
|
|
1
|
+
const a6_0x15f712=a6_0x4283;(function(_0x4600c1,_0x464a52){const _0x1bbbd8=a6_0x4283,_0x17b620=_0x4600c1();while(!![]){try{const _0x545c38=parseInt(_0x1bbbd8(0xe9))/0x1*(-parseInt(_0x1bbbd8(0xb7))/0x2)+-parseInt(_0x1bbbd8(0xa2))/0x3+-parseInt(_0x1bbbd8(0xe4))/0x4*(parseInt(_0x1bbbd8(0xc0))/0x5)+parseInt(_0x1bbbd8(0xf2))/0x6+parseInt(_0x1bbbd8(0xf5))/0x7+parseInt(_0x1bbbd8(0xbb))/0x8*(parseInt(_0x1bbbd8(0xbc))/0x9)+-parseInt(_0x1bbbd8(0xfe))/0xa*(parseInt(_0x1bbbd8(0xb4))/0xb);if(_0x545c38===_0x464a52)break;else _0x17b620['push'](_0x17b620['shift']());}catch(_0x5344dc){_0x17b620['push'](_0x17b620['shift']());}}}(a6_0x12c7,0xab1e3));const a6_0x592f99=(function(){let _0x2575c2=!![];return function(_0x311c12,_0xb8a3c4){const _0x18c013=_0x2575c2?function(){const _0x55831a=a6_0x4283;if(_0xb8a3c4){const _0x38e760=_0xb8a3c4[_0x55831a(0xc8)](_0x311c12,arguments);return _0xb8a3c4=null,_0x38e760;}}:function(){};return _0x2575c2=![],_0x18c013;};}()),a6_0x26149e=a6_0x592f99(this,function(){const _0x477956=a6_0x4283;return a6_0x26149e[_0x477956(0x96)]()[_0x477956(0xd7)](_0x477956(0xe6))[_0x477956(0x96)]()[_0x477956(0xcc)](a6_0x26149e)[_0x477956(0xd7)]('(((.+)+)+)+$');});a6_0x26149e();'use strict';Object[a6_0x15f712(0xb3)](exports,a6_0x15f712(0xa3),{'value':!![]}),exports['default']=default_1;const fs=require('fs'),path_1=require(a6_0x15f712(0xb2)),helper_1=require(a6_0x15f712(0xc1));function a6_0x12c7(){const _0x47e5ab=['\x20\x20\x20\x20@PrimaryGeneratedColumn()\x0a',':\x20\x27','30yxjCTz','\x27,\x20\x27','Field','Comment','toString','writeFileSync',':\x20string;\x0a\x0a','\x20\x20\x20\x20@DeleteDateColumn({\x20comment:\x20\x27删除时间\x27,\x20type:\x20\x27timestamp\x27,\x20select:\x20false\x20})\x0a','timestamp',',\x20unique:\x20false\x20})\x0a','true','\x20\x20\x20\x20','Entity\x20{\x0a\x0a','\x20\x20\x20\x20@Column(\x27text\x27,\x20{\x20comment:\x20\x27','created_at','\x20\x20\x20\x20@PrimaryColumn({\x20comment:\x20\x27','3965715JNKTCt','__esModule','\x20*\x20**/\x0a',',\x20Column\x20}\x20from\x20\x27@anncic-api/typeorm\x27;\x0a\x0a','import\x20{\x20ProvideRepository,\x20Repository\x20}\x20from\x20\x27@anncic-api/typeorm\x27;\x0a','enum','\x27;\x0a\x0a','\x20})\x0a','\x27,\x20precision:\x2010,\x20scale:\x202,\x20default:\x200.00,\x20nullable:\x20','replace','\x20*\x20','//\x20import\x20{\x20ManyToOne,\x20JoinColumn\x20}\x20from\x20\x27@anncic-api/typeorm\x27;\x0a',':\x20any\x20|\x20any[];\x0a\x0a','dirname','json','@ProvideEntity({\x20tableName:\x20\x27','path','defineProperty','3029323WJFMSP','\x20\x20\x20\x20@Column(\x27float\x27,\x20{\x20comment:\x20\x27','\x27,\x20default:\x20\x27','2FjllhS','Entity)\x0a','getEnum','/searchs/','32oYMpqu','2781837LCVErN','tinyint','@ProvideRepository(','Null','226035QHcLeF','../helper','\x27,\x20length:\x20188\x20})\x0a','import\x20{\x20ProvideEntity,\x20ProvideSearch,\x20','utf-8','getProp','displayorder','\x27]\x20})\x0a','apply','\x27,\x20nullable:\x20','@ProvideSearch(','\x20\x20\x20\x20deleted_at:\x20Date;\x0a\x0a','constructor','PrimaryColumn','\x20\x20\x20\x20@Column(\x27timestamp\x27,\x20{\x20comment:\x20\x27','\x20\x20\x20\x20@Column(\x27double\x27,\x20{\x20comment:\x20\x27','/entity\x27;\x0a\x0a',':\x20number;\x0a\x0a','YES','\x20\x20\x20\x20@Column(\x27enum\x27,\x20{\x20comment:\x20\x27','/**\x0a','mediumtext','datetime','search','\x20\x20\x20\x20@UpdateDateColumn({\x20comment:\x20\x27修改时间\x27,\x20type:\x20\x27timestamp\x27\x20})\x0a','import\x20{\x20','string','\x20\x20\x20\x20@Column(\x27date\x27,\x20{\x20comment:\x20\x27','-实体处理器\x0a','\x20\x20\x20\x20@Column({\x20comment:\x20\x27','Search\x20}\x20from\x20\x27','Search)\x0a','existsSync','export\x20class\x20','false','indexOf','4nERMuR','-实体\x0a','(((.+)+)+)+$','/entity.ts','/index.ts','408355xYAXNp','mkdirSync','/entities/','\x20\x20\x20\x20@Column({\x20comment:\x20\x27默认显示排序\x27,\x20nullable:\x20true,\x20unique:\x20false\x20})\x0a','\x20\x20\x20\x20@Column(\x27decimal\x27,\x20{\x20comment:\x20\x27','%column%','\x27,\x20enum:\x20[\x27','\x27\x20|\x20\x27','longtext','3998142FenidP','PrimaryGeneratedColumn','\x20\x20\x20\x20displayorder:\x20number;\x0a\x0a','9798712pDNoyO','Entity\x20}\x20from\x20\x27','join','\x27,\x20precision:\x2024,\x20scale:\x202,\x20default:\x200.00,\x20nullable:\x20','Type','updated_at','@/apps/'];a6_0x12c7=function(){return _0x47e5ab;};return a6_0x12c7();}async function default_1({tablename:_0x31b7f0,tablestartUp:_0x52601f,tablestartUpShort:_0x512d8e,basedir:_0x327236,Primary:_0x4a83e2,Fields:_0x1955e6,Comment:_0x375276,moduleName:_0x2a5711,apporbasic:_0x3b5177}){await entity({'tablename':_0x31b7f0,'tablestartUp':_0x52601f,'tablestartUpShort':_0x512d8e,'basedir':_0x327236,'Primary':_0x4a83e2,'Fields':_0x1955e6,'Comment':_0x375276,'moduleName':_0x2a5711,'apporbasic':_0x3b5177}),await repository({'tablestartUp':_0x52601f,'tablestartUpShort':_0x512d8e,'basedir':_0x327236,'Comment':_0x375276,'moduleName':_0x2a5711,'apporbasic':_0x3b5177});}function a6_0x4283(_0xe396f7,_0x20b2b5){const _0x3ebe3f=a6_0x12c7();return a6_0x4283=function(_0x26149e,_0x592f99){_0x26149e=_0x26149e-0x93;let _0x12c75b=_0x3ebe3f[_0x26149e];return _0x12c75b;},a6_0x4283(_0xe396f7,_0x20b2b5);}async function entity({tablename:_0x463608,tablestartUp:_0x255a39,tablestartUpShort:_0x4eefe7,basedir:_0x11b393,Primary:_0x183239,Fields:_0x53967e,Comment:_0x1a20eb,moduleName:_0x5190a7,apporbasic:_0x45ebd4}){const _0x15e81c=a6_0x15f712,_0x235cd6=_0x11b393+(_0x15e81c(0xeb)+_0x4eefe7+_0x15e81c(0xe7));if(!fs[_0x15e81c(0xe0)](_0x235cd6)){let _0xeffd3c='',_0xc934de='',_0x460eba=['text',_0x15e81c(0xd5),'string'][_0x15e81c(0xe3)]((0x0,helper_1[_0x15e81c(0xc5)])(_0x183239[_0x15e81c(0xf9)]))==-0x1;_0x460eba?(_0xeffd3c+=_0x15e81c(0xfc),_0xeffd3c+=_0x15e81c(0x9d)+_0x183239['Field']+':\x20number;\x0a\x0a'):(_0xeffd3c+=_0x15e81c(0xa1)+(_0x183239['Comment']||'标识')+_0x15e81c(0xc2),_0xeffd3c+=_0x15e81c(0x9d)+_0x183239[_0x15e81c(0x94)]+_0x15e81c(0x98));for(let _0xf5f54 in _0x53967e){let _0x4d465c=_0x53967e[_0xf5f54],_0x31f8b2=(0x0,helper_1[_0x15e81c(0xc5)])(_0x4d465c['Type']);if(_0x4d465c[_0x15e81c(0x94)]==_0x15e81c(0xc6)||_0x4d465c[_0x15e81c(0x94)]==_0x15e81c(0xa0)||_0x4d465c['Field']==_0x15e81c(0xfa)||_0x4d465c[_0x15e81c(0x94)]=='deleted_at')continue;if(_0x31f8b2==_0x15e81c(0xb0))_0xeffd3c+='\x20\x20\x20\x20@Column(\x27json\x27,\x20{\x20comment:\x20\x27'+_0x4d465c[_0x15e81c(0x95)]+_0x15e81c(0xc9)+(_0x4d465c[_0x15e81c(0xbf)]=='YES'?_0x15e81c(0x9c):'false')+_0x15e81c(0x9b),_0xeffd3c+='\x20\x20\x20\x20'+_0x4d465c[_0x15e81c(0x94)]+_0x15e81c(0xae);else{if(_0x31f8b2==_0x15e81c(0xa7)){let _0x1c8891=(0x0,helper_1[_0x15e81c(0xb9)])(_0x4d465c['Type']);_0xeffd3c+=_0x15e81c(0xd3)+_0x4d465c[_0x15e81c(0x95)]+_0x15e81c(0xb6)+(_0x1c8891[0x0]||'')+_0x15e81c(0xef)+_0x1c8891[_0x15e81c(0xf7)](_0x15e81c(0x93))+_0x15e81c(0xc7),_0xeffd3c+=_0x15e81c(0x9d)+_0x4d465c['Field']+_0x15e81c(0xfd)+_0x1c8891[_0x15e81c(0xf7)](_0x15e81c(0xf0))+_0x15e81c(0xa8);}else{if(_0x31f8b2=='float')_0xeffd3c+=_0x15e81c(0xb5)+_0x4d465c[_0x15e81c(0x95)]+_0x15e81c(0xaa)+(_0x4d465c['Null']==_0x15e81c(0xd2)?_0x15e81c(0x9c):_0x15e81c(0xe2))+'\x20})\x0a',_0xeffd3c+='\x20\x20\x20\x20'+_0x4d465c['Field']+':\x20number;\x0a\x0a';else{if(_0x31f8b2=='double')_0xeffd3c+=_0x15e81c(0xcf)+_0x4d465c[_0x15e81c(0x95)]+_0x15e81c(0xaa)+(_0x4d465c[_0x15e81c(0xbf)]==_0x15e81c(0xd2)?_0x15e81c(0x9c):_0x15e81c(0xe2))+_0x15e81c(0xa9),_0xeffd3c+=_0x15e81c(0x9d)+_0x4d465c[_0x15e81c(0x94)]+_0x15e81c(0xd1);else{if(_0x31f8b2=='decimal')_0xeffd3c+=_0x15e81c(0xed)+_0x4d465c[_0x15e81c(0x95)]+_0x15e81c(0xf8)+(_0x4d465c[_0x15e81c(0xbf)]=='YES'?'true':_0x15e81c(0xe2))+_0x15e81c(0xa9),_0xeffd3c+=_0x15e81c(0x9d)+_0x4d465c[_0x15e81c(0x94)]+_0x15e81c(0xd1);else{if(_0x31f8b2=='number')_0xeffd3c+=_0x15e81c(0xdd)+_0x4d465c[_0x15e81c(0x95)]+_0x15e81c(0xc9)+(_0x4d465c[_0x15e81c(0xbf)]==_0x15e81c(0xd2)?_0x15e81c(0x9c):_0x15e81c(0xe2))+_0x15e81c(0x9b),_0xeffd3c+=_0x15e81c(0x9d)+_0x4d465c[_0x15e81c(0x94)]+_0x15e81c(0xd1);else{if(_0x31f8b2==_0x15e81c(0xbd))_0xeffd3c+='\x20\x20\x20\x20@Column(\x27tinyint\x27,\x20{\x20comment:\x20\x27'+_0x4d465c[_0x15e81c(0x95)]+'\x27,\x20nullable:\x20'+(_0x4d465c['Null']=='YES'?_0x15e81c(0x9c):'false')+_0x15e81c(0x9b),_0xeffd3c+=_0x15e81c(0x9d)+_0x4d465c[_0x15e81c(0x94)]+':\x20number;\x0a\x0a';else{if(_0x31f8b2=='date')_0xeffd3c+=_0x15e81c(0xdb)+_0x4d465c[_0x15e81c(0x95)]+_0x15e81c(0xc9)+(_0x4d465c[_0x15e81c(0xbf)]==_0x15e81c(0xd2)?'true':'false')+_0x15e81c(0xa9),_0xeffd3c+=_0x15e81c(0x9d)+_0x4d465c[_0x15e81c(0x94)]+_0x15e81c(0x98);else{if(_0x31f8b2==_0x15e81c(0xd6))_0xeffd3c+=_0x15e81c(0xce)+_0x4d465c['Comment']+'\x27,\x20nullable:\x20'+(_0x4d465c[_0x15e81c(0xbf)]==_0x15e81c(0xd2)?_0x15e81c(0x9c):_0x15e81c(0xe2))+_0x15e81c(0xa9),_0xeffd3c+=_0x15e81c(0x9d)+_0x4d465c[_0x15e81c(0x94)]+_0x15e81c(0x98);else{if(_0x31f8b2==_0x15e81c(0x9a))_0xeffd3c+=_0x15e81c(0xce)+_0x4d465c['Comment']+_0x15e81c(0xc9)+(_0x4d465c[_0x15e81c(0xbf)]=='YES'?_0x15e81c(0x9c):'false')+_0x15e81c(0xa9),_0xeffd3c+=_0x15e81c(0x9d)+_0x4d465c['Field']+':\x20string;\x0a\x0a';else{if(_0x31f8b2=='text')_0xeffd3c+=_0x15e81c(0x9f)+_0x4d465c[_0x15e81c(0x95)]+_0x15e81c(0xc9)+(_0x4d465c['Null']==_0x15e81c(0xd2)?_0x15e81c(0x9c):'false')+_0x15e81c(0x9b),_0xeffd3c+=_0x15e81c(0x9d)+_0x4d465c['Field']+':\x20string;\x0a\x0a';else{if(_0x31f8b2==_0x15e81c(0xf1))_0xeffd3c+='\x20\x20\x20\x20@Column(\x27longtext\x27,\x20{\x20comment:\x20\x27'+_0x4d465c[_0x15e81c(0x95)]+_0x15e81c(0xc9)+(_0x4d465c[_0x15e81c(0xbf)]==_0x15e81c(0xd2)?_0x15e81c(0x9c):_0x15e81c(0xe2))+',\x20unique:\x20false\x20})\x0a',_0xeffd3c+=_0x15e81c(0x9d)+_0x4d465c[_0x15e81c(0x94)]+':\x20string;\x0a\x0a';else _0x31f8b2==_0x15e81c(0xd5)?(_0xeffd3c+='\x20\x20\x20\x20@Column(\x27mediumtext\x27,\x20{\x20comment:\x20\x27'+_0x4d465c['Comment']+_0x15e81c(0xc9)+(_0x4d465c[_0x15e81c(0xbf)]==_0x15e81c(0xd2)?_0x15e81c(0x9c):_0x15e81c(0xe2))+',\x20unique:\x20false\x20})\x0a',_0xeffd3c+=_0x15e81c(0x9d)+_0x4d465c[_0x15e81c(0x94)]+':\x20string;\x0a\x0a'):(_0xeffd3c+=_0x15e81c(0xdd)+_0x4d465c[_0x15e81c(0x95)]+_0x15e81c(0xc9)+(_0x4d465c[_0x15e81c(0xbf)]==_0x15e81c(0xd2)?_0x15e81c(0x9c):'false')+_0x15e81c(0x9b),_0xeffd3c+=_0x15e81c(0x9d)+_0x4d465c['Field']+_0x15e81c(0x98));}}}}}}}}}}}}_0xc934de+=_0x15e81c(0xad),_0xc934de+='import\x20{\x20CreateDateColumn,\x20UpdateDateColumn,\x20DeleteDateColumn\x20}\x20from\x20\x27@anncic-api/typeorm\x27;\x0a',_0xc934de+=_0x15e81c(0xc3)+(_0x460eba?_0x15e81c(0xf3):_0x15e81c(0xcd))+_0x15e81c(0xa5),_0xc934de+=_0x15e81c(0xd9)+_0x255a39+_0x15e81c(0xde)+(typeof _0x5190a7==_0x15e81c(0xda)?_0x15e81c(0xfb)+_0x5190a7:'@/'+_0x45ebd4)+_0x15e81c(0xba)+_0x4eefe7+'\x27;\x0a\x0a',_0xc934de+=_0x15e81c(0xd4),_0xc934de+='\x20*\x20'+_0x1a20eb+_0x15e81c(0xe5),_0xc934de+=_0x15e81c(0xa4),_0xc934de+=_0x15e81c(0xca)+_0x255a39+_0x15e81c(0xdf),_0xc934de+=_0x15e81c(0xb1)+_0x463608+'\x27\x20},\x20{\x20orderBy:\x20{\x20displayorder:\x20\x27DESC\x27\x20}\x20})\x0a',_0xc934de+=_0x15e81c(0xe1)+_0x255a39+_0x15e81c(0x9e),_0xc934de+=_0x15e81c(0xee),_0xc934de+=_0x15e81c(0xec),_0xc934de+=_0x15e81c(0xf4),_0xc934de+='\x20\x20\x20\x20@CreateDateColumn({\x20comment:\x20\x27创建时间\x27,\x20type:\x20\x27timestamp\x27\x20})\x0a',_0xc934de+='\x20\x20\x20\x20created_at:\x20Date;\x0a\x0a',_0xc934de+=_0x15e81c(0xd8),_0xc934de+='\x20\x20\x20\x20updated_at:\x20Date;\x0a\x0a',_0xc934de+=_0x15e81c(0x99),_0xc934de+=_0x15e81c(0xcb),_0xc934de+='}',_0xc934de=_0xc934de[_0x15e81c(0xab)](_0x15e81c(0xee),_0xeffd3c),!fs[_0x15e81c(0xe0)]((0x0,path_1['dirname'])(_0x235cd6))&&fs[_0x15e81c(0xea)]((0x0,path_1[_0x15e81c(0xaf)])(_0x235cd6),{'recursive':!![]}),fs[_0x15e81c(0x97)](_0x235cd6,_0xc934de,'utf-8');}}async function repository({tablestartUp:_0xc9adc5,tablestartUpShort:_0x5649a7,basedir:_0x318835,Comment:_0x2822ae,moduleName:_0x19d25e,apporbasic:_0x3b6f6a}){const _0x32ed76=a6_0x15f712,_0x9e30e0=_0x318835+(_0x32ed76(0xeb)+_0x5649a7+_0x32ed76(0xe8));if(!fs[_0x32ed76(0xe0)](_0x9e30e0)){let _0x25209b='';_0x25209b+='/**\x0a',_0x25209b+=_0x32ed76(0xac)+_0x2822ae+_0x32ed76(0xdc),_0x25209b+=_0x32ed76(0xa4),_0x25209b+=_0x32ed76(0xa6),_0x25209b+='import\x20{\x20'+_0xc9adc5+_0x32ed76(0xf6)+(typeof _0x19d25e==_0x32ed76(0xda)?_0x32ed76(0xfb)+_0x19d25e:'@/'+_0x3b6f6a)+_0x32ed76(0xeb)+_0x5649a7+_0x32ed76(0xd0),_0x25209b+=_0x32ed76(0xbe)+_0xc9adc5+_0x32ed76(0xb8),_0x25209b+=_0x32ed76(0xe1)+_0xc9adc5+'\x20extends\x20Repository<'+_0xc9adc5+'Entity>{\x0a\x0a',_0x25209b+='}',!fs[_0x32ed76(0xe0)]((0x0,path_1[_0x32ed76(0xaf)])(_0x9e30e0))&&fs['mkdirSync']((0x0,path_1[_0x32ed76(0xaf)])(_0x9e30e0),{'recursive':!![]}),fs['writeFileSync'](_0x9e30e0,_0x25209b,_0x32ed76(0xc4));}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a7_0x52e2(_0x1fb018,_0x6d996f){const _0x1d53e3=a7_0x410c();return a7_0x52e2=function(_0x3db165,_0x7d37bb){_0x3db165=_0x3db165-0x1aa;let _0x410cb6=_0x1d53e3[_0x3db165];return _0x410cb6;},a7_0x52e2(_0x1fb018,_0x6d996f);}const a7_0xdead49=a7_0x52e2;(function(_0x39c0c6,_0x2b1e51){const _0xa30972=a7_0x52e2,_0x46e10f=_0x39c0c6();while(!![]){try{const _0x28dcda=parseInt(_0xa30972(0x1c2))/0x1*(parseInt(_0xa30972(0x1c1))/0x2)+-parseInt(_0xa30972(0x1ae))/0x3+-parseInt(_0xa30972(0x1c5))/0x4+parseInt(_0xa30972(0x1bf))/0x5*(parseInt(_0xa30972(0x1b0))/0x6)+-parseInt(_0xa30972(0x1bc))/0x7+parseInt(_0xa30972(0x1af))/0x8+parseInt(_0xa30972(0x1bd))/0x9;if(_0x28dcda===_0x2b1e51)break;else _0x46e10f['push'](_0x46e10f['shift']());}catch(_0x2df9f7){_0x46e10f['push'](_0x46e10f['shift']());}}}(a7_0x410c,0xcadf9));const a7_0x7d37bb=(function(){let _0xd33da7=!![];return function(_0x2a4c89,_0x2f3380){const _0x48496b=_0xd33da7?function(){const _0x18c281=a7_0x52e2;if(_0x2f3380){const _0x2a8694=_0x2f3380[_0x18c281(0x1b7)](_0x2a4c89,arguments);return _0x2f3380=null,_0x2a8694;}}:function(){};return _0xd33da7=![],_0x48496b;};}()),a7_0x3db165=a7_0x7d37bb(this,function(){const _0x4de005=a7_0x52e2;return a7_0x3db165['toString']()[_0x4de005(0x1ba)]('(((.+)+)+)+$')['toString']()[_0x4de005(0x1b8)](a7_0x3db165)['search']('(((.+)+)+)+$');});function a7_0x410c(){const _0x4ce6e0=['1778882HvMOBU','14710572hEPrlf','/listeners/','2280165NcZkNf','\x20\x20\x20\x20@InjectRepository(','781226mulgtm','2HRcRRk','existsSync','path','6411900jKlyRP','@Event()\x0a','default','/entities/','@/apps/',';\x0a\x0a\x0a','dirname','3748062gHNShr','8525256MMHkdH','6yJRhPa','\x20}\x20from\x20\x27','__esModule','utf-8','export\x20class\x20','\x27;\x0a\x0a','Event\x20{\x0a\x0a','apply','constructor',')\x20protected\x20','search','writeFileSync'];a7_0x410c=function(){return _0x4ce6e0;};return a7_0x410c();}a7_0x3db165();'use strict';Object['defineProperty'](exports,a7_0xdead49(0x1b2),{'value':!![]}),exports[a7_0xdead49(0x1c7)]=default_1;const fs=require('fs'),path_1=require(a7_0xdead49(0x1c4));async function default_1({tablestartUp:_0x704e26,tablestartUpShort:_0x599c61,basedir:_0x3689df,moduleName:_0x4b15fb,apporbasic:_0x38f8c1}){const _0x339bc5=a7_0xdead49,_0x3527de=_0x3689df+(_0x339bc5(0x1be)+_0x599c61+'.ts');if(!fs['existsSync'](_0x3527de)){let _0x2b5923='';_0x2b5923+='import\x20{\x20Event,\x20EventService\x20}\x20from\x20\x27@anncic-api/event\x27;\x0a',_0x2b5923+='import\x20{\x20Inject,\x20InjectRepository\x20}\x20from\x20\x27@anncic-api/typeorm\x27;\x0a\x0a',_0x2b5923+='import\x20{\x20'+_0x704e26+_0x339bc5(0x1b1)+(typeof _0x4b15fb=='string'?_0x339bc5(0x1ab)+_0x4b15fb:'@/'+_0x38f8c1)+_0x339bc5(0x1aa)+_0x599c61+_0x339bc5(0x1b5),_0x2b5923+=_0x339bc5(0x1c6),_0x2b5923+=_0x339bc5(0x1b4)+_0x704e26+_0x339bc5(0x1b6),_0x2b5923+='\x20\x20\x20\x20@Inject()\x20protected\x20EventService:\x20EventService;\x0a\x0a',_0x2b5923+=_0x339bc5(0x1c0)+_0x704e26+_0x339bc5(0x1b9)+_0x704e26+':\x20'+_0x704e26+_0x339bc5(0x1ac),_0x2b5923+='}',!fs[_0x339bc5(0x1c3)]((0x0,path_1[_0x339bc5(0x1ad)])(_0x3527de))&&fs['mkdirSync']((0x0,path_1[_0x339bc5(0x1ad)])(_0x3527de),{'recursive':!![]}),fs[_0x339bc5(0x1bb)](_0x3527de,_0x2b5923,_0x339bc5(0x1b3));}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a8_0x1119fb=a8_0xcdc6;(function(_0x486ac7,_0x1b2ee8){const _0x5a3725=a8_0xcdc6,_0x3176b2=_0x486ac7();while(!![]){try{const _0x1aeefc=parseInt(_0x5a3725(0xf5))/0x1*(-parseInt(_0x5a3725(0xde))/0x2)+parseInt(_0x5a3725(0xe7))/0x3+parseInt(_0x5a3725(0x116))/0x4*(parseInt(_0x5a3725(0xe9))/0x5)+-parseInt(_0x5a3725(0xee))/0x6*(-parseInt(_0x5a3725(0xd4))/0x7)+parseInt(_0x5a3725(0x100))/0x8+-parseInt(_0x5a3725(0xc8))/0x9*(parseInt(_0x5a3725(0xd6))/0xa)+-parseInt(_0x5a3725(0x104))/0xb;if(_0x1aeefc===_0x1b2ee8)break;else _0x3176b2['push'](_0x3176b2['shift']());}catch(_0x53f2ec){_0x3176b2['push'](_0x3176b2['shift']());}}}(a8_0x5be3,0x8cf13));function a8_0x5be3(){const _0xfaab23=['Error._NOTFIND_,\x20{\x20message:\x20\x27','existsSync','Entity\x20}\x20from\x20\x27','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\x20deletes.push(await\x20this.','\x20}\x20from\x20\x27','/Update\x27;\x0a','import\x20{\x20','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20throw\x20new\x20','\x20\x20\x20\x20\x20*\x20**/\x0a','\x20\x20\x20\x20\x20\x20\x20\x20});\x0a\x0a','.softRemove(tmpModel))\x0a','\x20\x20\x20\x20\x20\x20\x20\x20return\x20tmpModel\x0a','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20search.withDeleted().andWhere(`${search.alias}.deleted_at\x20IS\x20NOT\x20NULL`);\x0a','/handlers/','string','842612rDyWvG','/entities/','/entity\x27;\x0a','\x20\x20\x20\x20/**\x0a','\x20\x20\x20\x20@Inject()\x20ValidatorService:\x20ValidatorService;\x0a\x0a','\x20\x20\x20\x20\x20*\x20添加数据\x0a','import\x20{\x20CacheService,\x20EventService,\x20ValidatorService\x20}\x20from\x20\x27anncic-api\x27;\x0a','\x20\x20\x20\x20\x20\x20\x20\x20const\x20restores:\x20any\x20=\x20[],\x20tmpModels\x20=\x20await\x20this.','\x20\x20\x20\x20\x20*\x20恢复删除的数据\x0a','\x27;\x0a','\x20\x20\x20\x20async\x20update(conditions:\x20SearchParams<','\x20\x20\x20\x20\x20\x20\x20\x20const\x20tmpModel\x20=\x20this.','18qFQSwx','(((.+)+)+)+$','@Singleton()\x0a','\x20\x20\x20\x20@Inject()\x20EventService:\x20EventService;\x0a','.search(conditions,\x20{},\x20options).then(async\x20search\x20=>\x20{\x0a\x0a','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20return\x20search.getOneOrFail().catch(()\x20=>\x20{\x0a','.recover(tmpModel))\x0a','Entity[],\x20number]>\x20{\x0a','constructor','Entity>,\x20pageinfo?:\x20SearchPaginate,\x20options:\x20SearchOptions\x20=\x20{}):\x20Promise<[','path','\x20\x20\x20\x20\x20\x20\x20\x20return\x20[pagelist,\x20pagetotal];\x0a','3438386YPbVTl','Handler\x20{\x0a\x0a','4337920yCmIKh','\x20\x20\x20\x20\x20\x20\x20\x20const\x20[pagelist,\x20pagetotal]\x20=\x20await\x20this.','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20return\x20search.getMany();\x0a','\x20\x20\x20\x20\x20\x20\x20\x20}\x0a','.ts','.search(conditions,\x20pageinfo,\x20options).then(async\x20search\x20=>\x20{\x0a\x0a','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20});\x0a','\x20\x20\x20\x20\x20*\x20删除数据\x0a','2Xvdcpy','Error(','search','DTOCreate\x20}\x20from\x20\x27','\x20\x20\x20\x20@InjectRepository(','/**\x0a','\x20\x20\x20\x20\x20\x20\x20\x20const\x20tmpModel\x20=\x20await\x20this.','不存在\x27\x20})\x0a','.merge(tmpModel,\x20params);\x0a','2083056BZBKcP','@/apps/','25ppIfih','\x20\x20\x20\x20}\x0a\x0a\x0a','apply','\x20\x20\x20\x20\x20\x20\x20\x20const\x20deletes:\x20any\x20=\x20[],\x20tmpModels\x20=\x20await\x20this.','\x20\x20\x20\x20@Inject()\x20CacheService:\x20CacheService;\x0a','6GyekAz','\x20\x20\x20\x20\x20\x20\x20\x20return\x20deletes\x0a','Entity>,\x20params:\x20','mkdirSync','toString','\x20\x20\x20\x20\x20\x20\x20\x20return\x20await\x20this.','/Create\x27;\x0a','1081631HQbyUq','__esModule','import\x20{\x20Inject,\x20Singleton\x20}\x20from\x20\x27anncic-api\x27;\x0a','Entity>,\x20options:\x20SearchOptions\x20=\x20{})\x20{\x0a','export\x20class\x20','\x20\x20\x20\x20async\x20remove(conditions:\x20SearchParams<','/exceptions/','defineProperty','/validators/','.create(params)\x0a\x0a','.save(tmpModel);\x0a','3333176xcFNTP','\x20\x20\x20\x20\x20\x20\x20\x20return\x20restores\x0a','DTOUpdate\x20}\x20from\x20\x27','dirname','1418428HbZWZO','Error\x20}\x20from\x20\x27'];a8_0x5be3=function(){return _0xfaab23;};return a8_0x5be3();}const a8_0x222512=(function(){let _0x435f60=!![];return function(_0x9453d,_0x4b62ac){const _0x2d1036=_0x435f60?function(){const _0xd2aab6=a8_0xcdc6;if(_0x4b62ac){const _0xdc3537=_0x4b62ac[_0xd2aab6(0xeb)](_0x9453d,arguments);return _0x4b62ac=null,_0xdc3537;}}:function(){};return _0x435f60=![],_0x2d1036;};}()),a8_0x17b489=a8_0x222512(this,function(){const _0x186d39=a8_0xcdc6;return a8_0x17b489[_0x186d39(0xf2)]()[_0x186d39(0xe0)](_0x186d39(0xc9))['toString']()[_0x186d39(0xd0)](a8_0x17b489)[_0x186d39(0xe0)]('(((.+)+)+)+$');});a8_0x17b489();'use strict';Object[a8_0x1119fb(0xfc)](exports,a8_0x1119fb(0xf6),{'value':!![]}),exports['default']=default_1;function a8_0xcdc6(_0x3152ba,_0x36c9ac){const _0x1b7253=a8_0x5be3();return a8_0xcdc6=function(_0x17b489,_0x222512){_0x17b489=_0x17b489-0xc7;let _0x5be372=_0x1b7253[_0x17b489];return _0x5be372;},a8_0xcdc6(_0x3152ba,_0x36c9ac);}const fs=require('fs'),path_1=require(a8_0x1119fb(0xd2));async function default_1({tablestartUp:_0x8cd05c,tablestartUpShort:_0xacb619,basedir:_0x3c8b6e,Primary:_0xa81d18,Comment:_0x2ffc3c,moduleName:_0x5cc50e,apporbasic:_0x2de42c}){const _0x3313ef=a8_0x1119fb,_0x19af4f=_0x3c8b6e+(_0x3313ef(0x114)+_0xacb619+_0x3313ef(0xda));if(!fs[_0x3313ef(0x107)](_0x19af4f)){let _0x28af28='';_0x28af28+=_0x3313ef(0xf7),_0x28af28+=_0x3313ef(0x11c),_0x28af28+=_0x3313ef(0x109),_0x28af28+=_0x3313ef(0x10d)+_0x8cd05c+_0x3313ef(0x10b)+(typeof _0x5cc50e==_0x3313ef(0x115)?_0x3313ef(0xe8)+_0x5cc50e:'@/'+_0x2de42c)+_0x3313ef(0x117)+_0xacb619+_0x3313ef(0x11f),_0x28af28+=_0x3313ef(0x10d)+_0x8cd05c+_0x3313ef(0x105)+(typeof _0x5cc50e==_0x3313ef(0x115)?_0x3313ef(0xe8)+_0x5cc50e:'@/'+_0x2de42c)+_0x3313ef(0xfb)+_0xacb619+_0x3313ef(0x11f),_0x28af28+=_0x3313ef(0x10d)+_0x8cd05c+_0x3313ef(0x108)+(typeof _0x5cc50e==_0x3313ef(0x115)?_0x3313ef(0xe8)+_0x5cc50e:'@/'+_0x2de42c)+_0x3313ef(0x117)+_0xacb619+_0x3313ef(0x118),_0x28af28+='import\x20{\x20'+_0x8cd05c+_0x3313ef(0xe1)+(typeof _0x5cc50e==_0x3313ef(0x115)?'@/apps/'+_0x5cc50e:'@/'+_0x2de42c)+_0x3313ef(0xfd)+_0xacb619+_0x3313ef(0xf4),_0x28af28+=_0x3313ef(0x10d)+_0x8cd05c+_0x3313ef(0x102)+(typeof _0x5cc50e==_0x3313ef(0x115)?_0x3313ef(0xe8)+_0x5cc50e:'@/'+_0x2de42c)+_0x3313ef(0xfd)+_0xacb619+_0x3313ef(0x10c),_0x28af28+='\x0a',_0x28af28+=_0x3313ef(0xe3),_0x28af28+='\x20*\x20'+_0x2ffc3c+'\x0a',_0x28af28+='\x20*\x20**/\x0a',_0x28af28+=_0x3313ef(0xca),_0x28af28+=_0x3313ef(0xf9)+_0x8cd05c+_0x3313ef(0xd5),_0x28af28+=_0x3313ef(0xed),_0x28af28+=_0x3313ef(0xcb),_0x28af28+=_0x3313ef(0x11a),_0x28af28+=_0x3313ef(0xe2)+_0x8cd05c+')\x20'+_0xacb619+':\x20'+_0x8cd05c+';\x0a\x0a\x0a',_0x28af28+=_0x3313ef(0x119),_0x28af28+='\x20\x20\x20\x20\x20*\x20数据列表\x0a',_0x28af28+='\x20\x20\x20\x20\x20*\x20**/\x0a',_0x28af28+='\x20\x20\x20\x20async\x20list(conditions?:\x20SearchParams<'+_0x8cd05c+_0x3313ef(0xd1)+_0x8cd05c+_0x3313ef(0xcf),_0x28af28+=_0x3313ef(0xd7)+_0xacb619+_0x3313ef(0xdb),_0x28af28+='\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20return\x20search.getManyAndCount();\x0a',_0x28af28+=_0x3313ef(0x110),_0x28af28+=_0x3313ef(0xd3),_0x28af28+='\x20\x20\x20\x20}\x0a\x0a\x0a',_0x28af28+='\x20\x20\x20\x20/**\x0a',_0x28af28+='\x20\x20\x20\x20\x20*\x20数据详情\x0a',_0x28af28+='\x20\x20\x20\x20\x20*\x20**/\x0a',_0x28af28+='\x20\x20\x20\x20async\x20detail(conditions?:\x20SearchParams<'+_0x8cd05c+_0x3313ef(0xf8),_0x28af28+=_0x3313ef(0xe4)+_0xacb619+_0x3313ef(0xcc),_0x28af28+=_0x3313ef(0xcd),_0x28af28+=_0x3313ef(0x10e)+_0x8cd05c+_0x3313ef(0xdf)+_0x8cd05c+_0x3313ef(0x106)+_0x2ffc3c+_0x3313ef(0xe5),_0x28af28+=_0x3313ef(0xdc),_0x28af28+=_0x3313ef(0x110),_0x28af28+=_0x3313ef(0x112),_0x28af28+=_0x3313ef(0xea),_0x28af28+=_0x3313ef(0x119),_0x28af28+=_0x3313ef(0x11b),_0x28af28+=_0x3313ef(0x10f),_0x28af28+='\x20\x20\x20\x20async\x20create(params:\x20'+_0x8cd05c+'DTOCreate)\x20{\x0a',_0x28af28+=_0x3313ef(0xc7)+_0xacb619+_0x3313ef(0xfe),_0x28af28+='\x20\x20\x20\x20\x20\x20\x20\x20return\x20await\x20this.'+_0xacb619+_0x3313ef(0xff),_0x28af28+='\x20\x20\x20\x20}\x0a\x0a\x0a',_0x28af28+=_0x3313ef(0x119),_0x28af28+='\x20\x20\x20\x20\x20*\x20修改数据\x0a',_0x28af28+=_0x3313ef(0x10f),_0x28af28+=_0x3313ef(0x120)+_0x8cd05c+_0x3313ef(0xf0)+_0x8cd05c+'DTOUpdate,\x20options:\x20SearchOptions\x20=\x20{})\x20{\x0a',_0x28af28+=_0x3313ef(0xe4)+_0xacb619+'.search(conditions,\x20{},\x20options).then(async\x20search\x20=>\x20{\x0a\x0a',_0x28af28+='\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20return\x20search.getOneOrFail().catch(()\x20=>\x20{\x0a',_0x28af28+=_0x3313ef(0x10e)+_0x8cd05c+_0x3313ef(0xdf)+_0x8cd05c+_0x3313ef(0x106)+_0x2ffc3c+'不存在\x27\x20})\x0a',_0x28af28+='\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20});\x0a',_0x28af28+=_0x3313ef(0x110),_0x28af28+='\x20\x20\x20\x20\x20\x20\x20\x20this.'+_0xacb619+_0x3313ef(0xe6),_0x28af28+=_0x3313ef(0xf3)+_0xacb619+'.save(tmpModel);\x0a',_0x28af28+=_0x3313ef(0xea),_0x28af28+=_0x3313ef(0x119),_0x28af28+=_0x3313ef(0xdd),_0x28af28+='\x20\x20\x20\x20\x20*\x20**/\x0a',_0x28af28+=_0x3313ef(0xfa)+_0x8cd05c+_0x3313ef(0xf8),_0x28af28+=_0x3313ef(0xec)+_0xacb619+_0x3313ef(0xcc),_0x28af28+=_0x3313ef(0xd8),_0x28af28+=_0x3313ef(0x110),_0x28af28+='\x20\x20\x20\x20\x20\x20\x20\x20for\x20(let\x20tmpModel\x20of\x20tmpModels)\x20{\x0a',_0x28af28+=_0x3313ef(0x10a)+_0xacb619+_0x3313ef(0x111),_0x28af28+=_0x3313ef(0xd9),_0x28af28+=_0x3313ef(0xef),_0x28af28+=_0x3313ef(0xea),_0x28af28+=_0x3313ef(0x119),_0x28af28+=_0x3313ef(0x11e),_0x28af28+=_0x3313ef(0x10f),_0x28af28+='\x20\x20\x20\x20async\x20restores(conditions:\x20SearchParams<'+_0x8cd05c+_0x3313ef(0xf8),_0x28af28+=_0x3313ef(0x11d)+_0xacb619+_0x3313ef(0xcc),_0x28af28+=_0x3313ef(0x113),_0x28af28+='\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20return\x20search.getMany();\x0a',_0x28af28+=_0x3313ef(0x110),_0x28af28+='\x20\x20\x20\x20\x20\x20\x20\x20for\x20(let\x20tmpModel\x20of\x20tmpModels)\x20{\x0a',_0x28af28+='\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20restores.push(await\x20this.'+_0xacb619+_0x3313ef(0xce),_0x28af28+=_0x3313ef(0xd9),_0x28af28+=_0x3313ef(0x101),_0x28af28+=_0x3313ef(0xea),_0x28af28+='}',!fs[_0x3313ef(0x107)]((0x0,path_1[_0x3313ef(0x103)])(_0x19af4f))&&fs[_0x3313ef(0xf1)]((0x0,path_1[_0x3313ef(0x103)])(_0x19af4f),{'recursive':!![]}),fs['writeFileSync'](_0x19af4f,_0x28af28,'utf-8');}}
|
|
1
|
+
const a8_0x2b5868=a8_0x43b4;(function(_0x82316e,_0x40d938){const _0x4e8cce=a8_0x43b4,_0x4167e2=_0x82316e();while(!![]){try{const _0x14b327=parseInt(_0x4e8cce(0x13c))/0x1+parseInt(_0x4e8cce(0x111))/0x2*(parseInt(_0x4e8cce(0x116))/0x3)+parseInt(_0x4e8cce(0x14b))/0x4*(-parseInt(_0x4e8cce(0x163))/0x5)+-parseInt(_0x4e8cce(0x126))/0x6*(parseInt(_0x4e8cce(0x140))/0x7)+parseInt(_0x4e8cce(0x13a))/0x8+-parseInt(_0x4e8cce(0x14c))/0x9*(-parseInt(_0x4e8cce(0x13e))/0xa)+-parseInt(_0x4e8cce(0x158))/0xb*(parseInt(_0x4e8cce(0x138))/0xc);if(_0x14b327===_0x40d938)break;else _0x4167e2['push'](_0x4167e2['shift']());}catch(_0x3696be){_0x4167e2['push'](_0x4167e2['shift']());}}}(a8_0x2cfe,0xf00f9));const a8_0x4b264c=(function(){let _0x335860=!![];return function(_0x327145,_0x9b0273){const _0x178334=_0x335860?function(){if(_0x9b0273){const _0x5d97df=_0x9b0273['apply'](_0x327145,arguments);return _0x9b0273=null,_0x5d97df;}}:function(){};return _0x335860=![],_0x178334;};}()),a8_0x3537d2=a8_0x4b264c(this,function(){const _0x454fa6=a8_0x43b4;return a8_0x3537d2[_0x454fa6(0x129)]()['search'](_0x454fa6(0x11e))[_0x454fa6(0x129)]()[_0x454fa6(0x13f)](a8_0x3537d2)[_0x454fa6(0x152)](_0x454fa6(0x11e));});a8_0x3537d2();'use strict';function a8_0x2cfe(){const _0x538aa9=['import\x20{\x20','\x20\x20\x20\x20@Inject()\x20EventService:\x20EventService;\x0a','\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\x20\x20\x20\x20\x20});\x0a','DTOCreate\x20}\x20from\x20\x27','13153164dKZtZk','\x20\x20\x20\x20async\x20restores(conditions:\x20SearchParams<','11542640DKglAe','/exceptions/','1939545UmDBQz','\x20\x20\x20\x20\x20\x20\x20\x20}\x0a','403030SnKUFf','constructor','140Lfcttf','\x20\x20\x20\x20\x20*\x20删除数据\x0a','\x20\x20\x20\x20\x20\x20\x20\x20return\x20restores\x0a','\x20\x20\x20\x20\x20\x20\x20\x20const\x20tmpModel\x20=\x20await\x20this.','\x20\x20\x20\x20\x20\x20\x20\x20return\x20[pagelist,\x20pagetotal];\x0a','import\x20{\x20CacheService,\x20EventService,\x20ValidatorService\x20}\x20from\x20\x27anncic-api\x27;\x0a','DTOUpdate,\x20options:\x20SearchOptions\x20=\x20{})\x20{\x0a','.ts','import\x20{\x20InjectRepository,\x20SearchParams,\x20SearchPaginate,\x20SearchOptions\x20}\x20from\x20\x27@anncic-api/typeorm\x27;\x0a\x0a','defineProperty','\x20\x20\x20\x20\x20\x20\x20\x20const\x20restores:\x20any\x20=\x20[],\x20tmpModels\x20=\x20await\x20this.','2876JUcqlr','189lfWgAG','不存在\x27\x20})\x0a','\x20\x20\x20\x20\x20*\x20**/\x0a','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20restores.push(await\x20this.','/entities/','Entity[],\x20number]>\x20{\x0a','search','default','\x20\x20\x20\x20\x20*\x20修改数据\x0a','dirname','\x20\x20\x20\x20async\x20detail(conditions?:\x20SearchParams<','.save(tmpModel);\x0a','11caeldC','export\x20class\x20','\x20\x20\x20\x20async\x20list(conditions?:\x20SearchParams<','\x20\x20\x20\x20\x20\x20\x20\x20});\x0a\x0a','Entity>,\x20params:\x20','string','\x20\x20\x20\x20/**\x0a','\x20\x20\x20\x20\x20\x20\x20\x20return\x20tmpModel\x0a','Handler\x20{\x0a\x0a','\x20\x20\x20\x20@Inject()\x20CacheService:\x20CacheService;\x0a','\x20\x20\x20\x20@InjectRepository(','8345TSjaSP','.recover(tmpModel))\x0a','\x20\x20\x20\x20\x20*\x20添加数据\x0a','\x20\x20\x20\x20async\x20update(conditions:\x20SearchParams<',';\x0a\x0a\x0a','\x27;\x0a','utf-8','.create(params)\x0a\x0a','14TmdrEV','@/apps/','mkdirSync','\x20\x20\x20\x20}\x0a\x0a\x0a','.search(conditions,\x20{},\x20options).then(async\x20search\x20=>\x20{\x0a\x0a','77991xBstWL','Entity\x20}\x20from\x20\x27','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20throw\x20new\x20','existsSync','DTOCreate)\x20{\x0a','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20return\x20search.getManyAndCount();\x0a','\x20\x20\x20\x20\x20\x20\x20\x20const\x20tmpModel\x20=\x20this.','__esModule','(((.+)+)+)+$','@Singleton()\x0a','Error(','\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\x20\x20this.','/handlers/','Entity>,\x20options:\x20SearchOptions\x20=\x20{})\x20{\x0a','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20return\x20search.getMany();\x0a','339396aPDySk','\x20\x20\x20\x20\x20*\x20数据列表\x0a','\x20\x20\x20\x20\x20\x20\x20\x20return\x20deletes\x0a','toString','.search(conditions,\x20pageinfo,\x20options).then(async\x20search\x20=>\x20{\x0a\x0a','writeFileSync','Error._NOTFIND_,\x20{\x20message:\x20\x27','\x20\x20\x20\x20\x20\x20\x20\x20for\x20(let\x20tmpModel\x20of\x20tmpModels)\x20{\x0a','\x20\x20\x20\x20\x20*\x20恢复删除的数据\x0a','Entity>,\x20pageinfo?:\x20SearchPaginate,\x20options:\x20SearchOptions\x20=\x20{}):\x20Promise<[','import\x20{\x20Inject,\x20Singleton\x20}\x20from\x20\x27anncic-api\x27;\x0a','/**\x0a','/Update\x27;\x0a'];a8_0x2cfe=function(){return _0x538aa9;};return a8_0x2cfe();}function a8_0x43b4(_0x37ef30,_0x3e243a){const _0xe48dc0=a8_0x2cfe();return a8_0x43b4=function(_0x3537d2,_0x4b264c){_0x3537d2=_0x3537d2-0x10a;let _0x2cfe42=_0xe48dc0[_0x3537d2];return _0x2cfe42;},a8_0x43b4(_0x37ef30,_0x3e243a);}Object[a8_0x2b5868(0x149)](exports,a8_0x2b5868(0x11d),{'value':!![]}),exports[a8_0x2b5868(0x153)]=default_1;const fs=require('fs'),path_1=require('path');async function default_1({tablestartUp:_0x185522,tablestartUpShort:_0x4ab780,basedir:_0x7cf3f6,Primary:_0x33e424,Comment:_0x3e2215,moduleName:_0x32fae4,apporbasic:_0x2d0df3}){const _0x5e2f5c=a8_0x2b5868,_0x1769a8=_0x7cf3f6+(_0x5e2f5c(0x123)+_0x4ab780+_0x5e2f5c(0x147));if(!fs[_0x5e2f5c(0x119)](_0x1769a8)){let _0x4f80c0='';_0x4f80c0+=_0x5e2f5c(0x130),_0x4f80c0+=_0x5e2f5c(0x145),_0x4f80c0+=_0x5e2f5c(0x148),_0x4f80c0+=_0x5e2f5c(0x133)+_0x185522+'\x20}\x20from\x20\x27'+(typeof _0x32fae4==_0x5e2f5c(0x15d)?_0x5e2f5c(0x112)+_0x32fae4:'@/'+_0x2d0df3)+_0x5e2f5c(0x150)+_0x4ab780+_0x5e2f5c(0x10e),_0x4f80c0+=_0x5e2f5c(0x133)+_0x185522+'Error\x20}\x20from\x20\x27'+(typeof _0x32fae4=='string'?_0x5e2f5c(0x112)+_0x32fae4:'@/'+_0x2d0df3)+_0x5e2f5c(0x13b)+_0x4ab780+_0x5e2f5c(0x10e),_0x4f80c0+='import\x20{\x20'+_0x185522+_0x5e2f5c(0x117)+(typeof _0x32fae4=='string'?'@/apps/'+_0x32fae4:'@/'+_0x2d0df3)+_0x5e2f5c(0x150)+_0x4ab780+'/entity\x27;\x0a',_0x4f80c0+='import\x20{\x20'+_0x185522+_0x5e2f5c(0x137)+(typeof _0x32fae4==_0x5e2f5c(0x15d)?_0x5e2f5c(0x112)+_0x32fae4:'@/'+_0x2d0df3)+'/validators/'+_0x4ab780+'/Create\x27;\x0a',_0x4f80c0+=_0x5e2f5c(0x133)+_0x185522+'DTOUpdate\x20}\x20from\x20\x27'+(typeof _0x32fae4==_0x5e2f5c(0x15d)?'@/apps/'+_0x32fae4:'@/'+_0x2d0df3)+'/validators/'+_0x4ab780+_0x5e2f5c(0x132),_0x4f80c0+='\x0a',_0x4f80c0+=_0x5e2f5c(0x131),_0x4f80c0+='\x20*\x20'+_0x3e2215+'\x0a',_0x4f80c0+='\x20*\x20**/\x0a',_0x4f80c0+=_0x5e2f5c(0x11f),_0x4f80c0+=_0x5e2f5c(0x159)+_0x185522+_0x5e2f5c(0x160),_0x4f80c0+=_0x5e2f5c(0x161),_0x4f80c0+=_0x5e2f5c(0x134),_0x4f80c0+='\x20\x20\x20\x20@Inject()\x20ValidatorService:\x20ValidatorService;\x0a\x0a',_0x4f80c0+=_0x5e2f5c(0x162)+_0x185522+')\x20'+_0x4ab780+':\x20'+_0x185522+_0x5e2f5c(0x10d),_0x4f80c0+=_0x5e2f5c(0x15e),_0x4f80c0+=_0x5e2f5c(0x127),_0x4f80c0+=_0x5e2f5c(0x14e),_0x4f80c0+=_0x5e2f5c(0x15a)+_0x185522+_0x5e2f5c(0x12f)+_0x185522+_0x5e2f5c(0x151),_0x4f80c0+='\x20\x20\x20\x20\x20\x20\x20\x20const\x20[pagelist,\x20pagetotal]\x20=\x20await\x20this.'+_0x4ab780+_0x5e2f5c(0x12a),_0x4f80c0+=_0x5e2f5c(0x11b),_0x4f80c0+=_0x5e2f5c(0x15b),_0x4f80c0+=_0x5e2f5c(0x144),_0x4f80c0+=_0x5e2f5c(0x114),_0x4f80c0+='\x20\x20\x20\x20/**\x0a',_0x4f80c0+='\x20\x20\x20\x20\x20*\x20数据详情\x0a',_0x4f80c0+=_0x5e2f5c(0x14e),_0x4f80c0+=_0x5e2f5c(0x156)+_0x185522+_0x5e2f5c(0x124),_0x4f80c0+=_0x5e2f5c(0x143)+_0x4ab780+_0x5e2f5c(0x115),_0x4f80c0+=_0x5e2f5c(0x135),_0x4f80c0+='\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20throw\x20new\x20'+_0x185522+_0x5e2f5c(0x120)+_0x185522+_0x5e2f5c(0x12c)+_0x3e2215+_0x5e2f5c(0x14d),_0x4f80c0+=_0x5e2f5c(0x136),_0x4f80c0+=_0x5e2f5c(0x15b),_0x4f80c0+=_0x5e2f5c(0x15f),_0x4f80c0+='\x20\x20\x20\x20}\x0a\x0a\x0a',_0x4f80c0+=_0x5e2f5c(0x15e),_0x4f80c0+=_0x5e2f5c(0x10b),_0x4f80c0+=_0x5e2f5c(0x14e),_0x4f80c0+='\x20\x20\x20\x20async\x20create(params:\x20'+_0x185522+_0x5e2f5c(0x11a),_0x4f80c0+=_0x5e2f5c(0x11c)+_0x4ab780+_0x5e2f5c(0x110),_0x4f80c0+='\x20\x20\x20\x20\x20\x20\x20\x20return\x20await\x20this.'+_0x4ab780+_0x5e2f5c(0x157),_0x4f80c0+=_0x5e2f5c(0x114),_0x4f80c0+=_0x5e2f5c(0x15e),_0x4f80c0+=_0x5e2f5c(0x154),_0x4f80c0+=_0x5e2f5c(0x14e),_0x4f80c0+=_0x5e2f5c(0x10c)+_0x185522+_0x5e2f5c(0x15c)+_0x185522+_0x5e2f5c(0x146),_0x4f80c0+=_0x5e2f5c(0x143)+_0x4ab780+_0x5e2f5c(0x115),_0x4f80c0+='\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20return\x20search.getOneOrFail().catch(()\x20=>\x20{\x0a',_0x4f80c0+=_0x5e2f5c(0x118)+_0x185522+_0x5e2f5c(0x120)+_0x185522+_0x5e2f5c(0x12c)+_0x3e2215+'不存在\x27\x20})\x0a',_0x4f80c0+=_0x5e2f5c(0x136),_0x4f80c0+=_0x5e2f5c(0x15b),_0x4f80c0+=_0x5e2f5c(0x122)+_0x4ab780+'.merge(tmpModel,\x20params);\x0a',_0x4f80c0+='\x20\x20\x20\x20\x20\x20\x20\x20return\x20await\x20this.'+_0x4ab780+_0x5e2f5c(0x157),_0x4f80c0+=_0x5e2f5c(0x114),_0x4f80c0+=_0x5e2f5c(0x15e),_0x4f80c0+=_0x5e2f5c(0x141),_0x4f80c0+=_0x5e2f5c(0x14e),_0x4f80c0+='\x20\x20\x20\x20async\x20remove(conditions:\x20SearchParams<'+_0x185522+_0x5e2f5c(0x124),_0x4f80c0+='\x20\x20\x20\x20\x20\x20\x20\x20const\x20deletes:\x20any\x20=\x20[],\x20tmpModels\x20=\x20await\x20this.'+_0x4ab780+_0x5e2f5c(0x115),_0x4f80c0+=_0x5e2f5c(0x125),_0x4f80c0+=_0x5e2f5c(0x15b),_0x4f80c0+=_0x5e2f5c(0x12d),_0x4f80c0+='\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20deletes.push(await\x20this.'+_0x4ab780+'.softRemove(tmpModel))\x0a',_0x4f80c0+=_0x5e2f5c(0x13d),_0x4f80c0+=_0x5e2f5c(0x128),_0x4f80c0+='\x20\x20\x20\x20}\x0a\x0a\x0a',_0x4f80c0+=_0x5e2f5c(0x15e),_0x4f80c0+=_0x5e2f5c(0x12e),_0x4f80c0+=_0x5e2f5c(0x14e),_0x4f80c0+=_0x5e2f5c(0x139)+_0x185522+'Entity>,\x20options:\x20SearchOptions\x20=\x20{})\x20{\x0a',_0x4f80c0+=_0x5e2f5c(0x14a)+_0x4ab780+_0x5e2f5c(0x115),_0x4f80c0+=_0x5e2f5c(0x121),_0x4f80c0+='\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20return\x20search.getMany();\x0a',_0x4f80c0+=_0x5e2f5c(0x15b),_0x4f80c0+=_0x5e2f5c(0x12d),_0x4f80c0+=_0x5e2f5c(0x14f)+_0x4ab780+_0x5e2f5c(0x10a),_0x4f80c0+=_0x5e2f5c(0x13d),_0x4f80c0+=_0x5e2f5c(0x142),_0x4f80c0+='\x20\x20\x20\x20}\x0a\x0a\x0a',_0x4f80c0+='}',!fs[_0x5e2f5c(0x119)]((0x0,path_1[_0x5e2f5c(0x155)])(_0x1769a8))&&fs[_0x5e2f5c(0x113)]((0x0,path_1[_0x5e2f5c(0x155)])(_0x1769a8),{'recursive':!![]}),fs[_0x5e2f5c(0x12b)](_0x1769a8,_0x4f80c0,_0x5e2f5c(0x10f));}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a9_0x5555b6=a9_0x5973;(function(_0x5df8ef,_0x458e48){const _0x4d0c92=a9_0x5973,_0x475173=_0x5df8ef();while(!![]){try{const _0x184ff2=-parseInt(_0x4d0c92(0x16c))/0x1*(parseInt(_0x4d0c92(0x14d))/0x2)+parseInt(_0x4d0c92(0x17b))/0x3*(parseInt(_0x4d0c92(0x173))/0x4)+-parseInt(_0x4d0c92(0x183))/0x5*(parseInt(_0x4d0c92(0x187))/0x6)+-parseInt(_0x4d0c92(0x16b))/0x7+parseInt(_0x4d0c92(0x179))/0x8*(-parseInt(_0x4d0c92(0x155))/0x9)+parseInt(_0x4d0c92(0x18e))/0xa+parseInt(_0x4d0c92(0x199))/0xb*(parseInt(_0x4d0c92(0x191))/0xc);if(_0x184ff2===_0x458e48)break;else _0x475173['push'](_0x475173['shift']());}catch(_0x147293){_0x475173['push'](_0x475173['shift']());}}}(a9_0x39b2,0x27433));const a9_0x4b75aa=(function(){let _0xf2b6d5=!![];return function(_0x150f0a,_0x243bea){const _0x360198=_0xf2b6d5?function(){const _0x37dcc3=a9_0x5973;if(_0x243bea){const _0x42084b=_0x243bea[_0x37dcc3(0x174)](_0x150f0a,arguments);return _0x243bea=null,_0x42084b;}}:function(){};return _0xf2b6d5=![],_0x360198;};}()),a9_0x50a6b1=a9_0x4b75aa(this,function(){const _0x5429d8=a9_0x5973;return a9_0x50a6b1['toString']()['search'](_0x5429d8(0x18d))[_0x5429d8(0x192)]()['constructor'](a9_0x50a6b1)[_0x5429d8(0x17e)](_0x5429d8(0x18d));});a9_0x50a6b1();'use strict';function a9_0x39b2(){const _0xd18c52=['\x20\x20\x20\x20\x20\x20\x20\x20query.andWhere(`${query.alias}.created_at\x20>=\x20:created_at_start`,\x20{\x20created_at_start\x20})\x0a','在选定时间之内\x27)\x0a','timestamp','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20this.','defineProperty','\x20>=\x20:','displayorder','_start(query:\x20SelectQueryBuilder<ObjectLiteral>,\x20','\x20\x20\x20\x20\x20\x20\x20\x20query.andWhere(`${query.alias}.updated_at\x20>=\x20:updated_at_start`,\x20{\x20updated_at_start\x20})\x0a','/searchs/','longtext','1126762nawveU','5MVPbDt','\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','default','\x20*\x20**/\x0a','indexOf','date','\x20\x20\x20\x20async\x20created_at_start(query:\x20SelectQueryBuilder<ObjectLiteral>,\x20created_at_start:\x20string)\x20{\x0a','1250844bimjll','apply','_start`,\x20{\x20','_start\x20})\x0a','_between:\x20string[])\x20{\x0a','_start(query,\x20dayjs(','159928xImSbG','\x20\x20\x20\x20async\x20updated_at_start(query:\x20SelectQueryBuilder<ObjectLiteral>,\x20updated_at_start:\x20string)\x20{\x0a','3lljBAy','\x20\x20\x20\x20async\x20','%column%','search','getProp','__esModule','Type','_between.length\x20==\x202\x20){\x0a','320wWudVD','\x20\x20\x20\x20\x20\x20\x20\x20if(\x20','\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\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','15654NbkYgw','\x20*\x20','_end(query,\x20dayjs(','Comment','utf-8','mkdirSync','(((.+)+)+)+$','1644930dObvVU','\x20\x20\x20\x20async\x20updated_at_end(query:\x20SelectQueryBuilder<ObjectLiteral>,\x20updated_at_end:\x20string)\x20{\x0a','-自定义检索\x0a','1248VzuzkS','toString','updated_at','\x20\x20\x20\x20}\x0a\x0a','\x20\x20\x20\x20\x20\x20\x20\x20}\x0a','export\x20class\x20','@Provide()\x0a','_between\x27,\x20\x27','35849oEwwcw','replace','import\x20{\x20Provide,\x20Search,\x20ObjectLiteral,\x20SelectQueryBuilder\x20}\x20from\x20\x27@anncic-api/typeorm\x27;\x0a\x0a','_end\x27,\x20\x27','\x20\x20\x20\x20@Search(\x27updated_at_between\x27,\x20\x27修改时间在选定时间之内\x27)\x0a','existsSync','_end\x20})\x0a','deleted_at','_start:\x20string)\x20{\x0a','writeFileSync',':>=\x20起始时间(之后)\x27)\x0a','Search\x20{\x0a\x0a','98966Bgljya','\x20\x20\x20\x20async\x20created_at_end(query:\x20SelectQueryBuilder<ObjectLiteral>,\x20created_at_end:\x20string)\x20{\x0a','_end`,\x20{\x20','text','\x20\x20\x20\x20@Search(\x27created_at_between\x27,\x20\x27创建时间在选定时间之内\x27)\x0a','Field','_between[1]).format(\x27YYYY-MM-DD\x20HH:mm:ss\x27))\x0a','_end:\x20string)\x20{\x0a','36nBrFWq','\x20\x20\x20\x20async\x20created_at_between(query:\x20SelectQueryBuilder<ObjectLiteral>,\x20created_at_between:\x20string[])\x20{\x0a','\x20\x20\x20\x20@Search(\x27','\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','../helper','\x20\x20\x20\x20\x20\x20\x20\x20query.andWhere(`${query.alias}.updated_at\x20<=\x20:updated_at_end`,\x20{\x20updated_at_end\x20})\x0a','\x20\x20\x20\x20\x20\x20\x20\x20query.andWhere(`${query.alias}.','dirname','\x20\x20\x20\x20@Search(\x27created_at_start\x27,\x20\x27创建时间:>=\x20起始时间(之后)\x27)\x0a','_between[0]).format(\x27YYYY-MM-DD\x20HH:mm:ss\x27))\x0a','datetime'];a9_0x39b2=function(){return _0xd18c52;};return a9_0x39b2();}Object[a9_0x5555b6(0x164)](exports,a9_0x5555b6(0x180),{'value':!![]}),exports[a9_0x5555b6(0x16e)]=default_1;function a9_0x5973(_0x5db372,_0x26a9c4){const _0x428b65=a9_0x39b2();return a9_0x5973=function(_0x50a6b1,_0x4b75aa){_0x50a6b1=_0x50a6b1-0x148;let _0x39b231=_0x428b65[_0x50a6b1];return _0x39b231;},a9_0x5973(_0x5db372,_0x26a9c4);}const fs=require('fs'),path_1=require('path'),helper_1=require(a9_0x5555b6(0x159));async function default_1({tablestartUp:_0xb4ca81,tablestartUpShort:_0x5095d0,basedir:_0x28817f,Fields:_0x3322e5,Comment:_0x3cd53e}){const _0x60919=a9_0x5555b6,_0x497b1c=_0x28817f+(_0x60919(0x169)+_0x5095d0+'.ts');if(!fs[_0x60919(0x19e)](_0x497b1c)){let _0x103508='',_0x585c19='';for(let _0x3b42ef in _0x3322e5){let _0x3fee85=_0x3322e5[_0x3b42ef],_0x2c4ef8=(0x0,helper_1[_0x60919(0x17f)])(_0x3fee85[_0x60919(0x181)]);if(_0x3fee85['Field']==_0x60919(0x166)||_0x3fee85['Field']=='created_at'||_0x3fee85[_0x60919(0x152)]==_0x60919(0x193)||_0x3fee85[_0x60919(0x152)]==_0x60919(0x148))continue;if(_0x2c4ef8=='json'){}else{if(_0x2c4ef8==_0x60919(0x150)){}else{if(_0x2c4ef8==_0x60919(0x16a)){}else[_0x60919(0x171),_0x60919(0x15f),_0x60919(0x162)][_0x60919(0x170)](_0x2c4ef8)>-0x1&&(_0x103508+='\x20\x20\x20\x20@Search(\x27'+_0x3fee85['Field']+_0x60919(0x198)+_0x3fee85[_0x60919(0x18a)]+_0x60919(0x161),_0x103508+=_0x60919(0x17c)+_0x3fee85[_0x60919(0x152)]+'_between(query:\x20SelectQueryBuilder<ObjectLiteral>,\x20'+_0x3fee85[_0x60919(0x152)]+_0x60919(0x177),_0x103508+=_0x60919(0x184)+_0x3fee85[_0x60919(0x152)]+_0x60919(0x182),_0x103508+=_0x60919(0x163)+_0x3fee85[_0x60919(0x152)]+_0x60919(0x189)+_0x3fee85['Field']+_0x60919(0x153),_0x103508+=_0x60919(0x163)+_0x3fee85[_0x60919(0x152)]+_0x60919(0x178)+_0x3fee85[_0x60919(0x152)]+_0x60919(0x15e),_0x103508+='\x20\x20\x20\x20\x20\x20\x20\x20}\x0a',_0x103508+=_0x60919(0x194),_0x103508+=_0x60919(0x157)+_0x3fee85['Field']+'_start\x27,\x20\x27'+_0x3fee85['Comment']+_0x60919(0x14b),_0x103508+='\x20\x20\x20\x20async\x20'+_0x3fee85[_0x60919(0x152)]+_0x60919(0x167)+_0x3fee85[_0x60919(0x152)]+_0x60919(0x149),_0x103508+='\x20\x20\x20\x20\x20\x20\x20\x20query.andWhere(`${query.alias}.'+_0x3fee85[_0x60919(0x152)]+_0x60919(0x165)+_0x3fee85[_0x60919(0x152)]+_0x60919(0x175)+_0x3fee85['Field']+_0x60919(0x176),_0x103508+='\x20\x20\x20\x20}\x0a\x0a',_0x103508+=_0x60919(0x157)+_0x3fee85[_0x60919(0x152)]+_0x60919(0x19c)+_0x3fee85[_0x60919(0x18a)]+':<=\x20起始时间(之前)\x27)\x0a',_0x103508+=_0x60919(0x17c)+_0x3fee85['Field']+'_end(query:\x20SelectQueryBuilder<ObjectLiteral>,\x20'+_0x3fee85[_0x60919(0x152)]+_0x60919(0x154),_0x103508+=_0x60919(0x15b)+_0x3fee85[_0x60919(0x152)]+'\x20<=\x20:'+_0x3fee85[_0x60919(0x152)]+_0x60919(0x14f)+_0x3fee85[_0x60919(0x152)]+_0x60919(0x19f),_0x103508+=_0x60919(0x194));}}}_0x103508+=_0x60919(0x151),_0x103508+=_0x60919(0x156),_0x103508+='\x20\x20\x20\x20\x20\x20\x20\x20if(\x20created_at_between.length\x20==\x202\x20){\x0a',_0x103508+=_0x60919(0x186),_0x103508+=_0x60919(0x158),_0x103508+=_0x60919(0x195),_0x103508+='\x20\x20\x20\x20}\x0a\x0a',_0x103508+=_0x60919(0x15d),_0x103508+=_0x60919(0x172),_0x103508+=_0x60919(0x160),_0x103508+=_0x60919(0x194),_0x103508+='\x20\x20\x20\x20@Search(\x27created_at_end\x27,\x20\x27创建时间:<=\x20起始时间(之前)\x27)\x0a',_0x103508+=_0x60919(0x14e),_0x103508+=_0x60919(0x185),_0x103508+=_0x60919(0x194),_0x103508+=_0x60919(0x19d),_0x103508+='\x20\x20\x20\x20async\x20updated_at_between(query:\x20SelectQueryBuilder<ObjectLiteral>,\x20updated_at_between:\x20string[])\x20{\x0a',_0x103508+='\x20\x20\x20\x20\x20\x20\x20\x20if(\x20updated_at_between.length\x20==\x202\x20){\x0a',_0x103508+='\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',_0x103508+=_0x60919(0x16d),_0x103508+=_0x60919(0x195),_0x103508+=_0x60919(0x194),_0x103508+='\x20\x20\x20\x20@Search(\x27updated_at_start\x27,\x20\x27修改时间:>=\x20起始时间(之后)\x27)\x0a',_0x103508+=_0x60919(0x17a),_0x103508+=_0x60919(0x168),_0x103508+=_0x60919(0x194),_0x103508+='\x20\x20\x20\x20@Search(\x27updated_at_end\x27,\x20\x27修改时间:<=\x20起始时间(之前)\x27)\x0a',_0x103508+=_0x60919(0x18f),_0x103508+=_0x60919(0x15a),_0x103508+=_0x60919(0x194),_0x585c19+=_0x60919(0x19b),_0x585c19+='/**\x0a',_0x585c19+=_0x60919(0x188)+_0x3cd53e+_0x60919(0x190),_0x585c19+=_0x60919(0x16f),_0x585c19+=_0x60919(0x197),_0x585c19+=_0x60919(0x196)+_0xb4ca81+_0x60919(0x14c),_0x585c19+='%column%',_0x585c19+='}',_0x585c19=_0x585c19[_0x60919(0x19a)](_0x60919(0x17d),_0x103508),!fs[_0x60919(0x19e)]((0x0,path_1['dirname'])(_0x497b1c))&&fs[_0x60919(0x18c)]((0x0,path_1[_0x60919(0x15c)])(_0x497b1c),{'recursive':!![]}),fs[_0x60919(0x14a)](_0x497b1c,_0x585c19,_0x60919(0x18b));}}
|