anncic-apihelper 3.4.44 → 3.4.48
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_0x5c3b9b=a0_0x7efc;(function(_0x26ca1d,_0x239744){var _0x1b53f7=a0_0x7efc,_0x32a006=_0x26ca1d();while(!![]){try{var _0x446a90=parseInt(_0x1b53f7(0xf3))/0x1+-parseInt(_0x1b53f7(0xed))/0x2+parseInt(_0x1b53f7(0xe4))/0x3+-parseInt(_0x1b53f7(0xe1))/0x4*(parseInt(_0x1b53f7(0xd6))/0x5)+parseInt(_0x1b53f7(0xd7))/0x6*(-parseInt(_0x1b53f7(0xd9))/0x7)+parseInt(_0x1b53f7(0xdd))/0x8*(parseInt(_0x1b53f7(0xe3))/0x9)+-parseInt(_0x1b53f7(0xe5))/0xa*(-parseInt(_0x1b53f7(0xee))/0xb);if(_0x446a90===_0x239744)break;else _0x32a006['push'](_0x32a006['shift']());}catch(_0x58f263){_0x32a006['push'](_0x32a006['shift']());}}}(a0_0x5952,0x80d70));var a0_0x633d78=(function(){var _0x427eae=!![];return function(_0x22be27,_0x3445e9){var _0x3fe0b3=_0x427eae?function(){var _0x56a833=a0_0x7efc;if(_0x3445e9){var _0x17c964=_0x3445e9[_0x56a833(0xea)](_0x22be27,arguments);return _0x3445e9=null,_0x17c964;}}:function(){};return _0x427eae=![],_0x3fe0b3;};}()),a0_0x2e1eeb=a0_0x633d78(this,function(){var _0x86e473=a0_0x7efc;return a0_0x2e1eeb['toString']()[_0x86e473(0xe0)](_0x86e473(0xe6))[_0x86e473(0xdb)]()['constructor'](a0_0x2e1eeb)[_0x86e473(0xe0)](_0x86e473(0xe6));});a0_0x2e1eeb();'use strict';var __decorate=this&&this[a0_0x5c3b9b(0xd3)]||function(_0x25f785,_0x4d1fa9,_0x56e3bd,_0x83b79d){var _0xfcc6dd=a0_0x5c3b9b,_0x3b8bcf=arguments['length'],_0x2896b9=_0x3b8bcf<0x3?_0x4d1fa9:_0x83b79d===null?_0x83b79d=Object['getOwnPropertyDescriptor'](_0x4d1fa9,_0x56e3bd):_0x83b79d,_0x266482;if(typeof Reflect==='object'&&typeof Reflect['decorate']===_0xfcc6dd(0xd4))_0x2896b9=Reflect[_0xfcc6dd(0xdf)](_0x25f785,_0x4d1fa9,_0x56e3bd,_0x83b79d);else{for(var _0x2329eb=_0x25f785[_0xfcc6dd(0xef)]-0x1;_0x2329eb>=0x0;_0x2329eb--)if(_0x266482=_0x25f785[_0x2329eb])_0x2896b9=(_0x3b8bcf<0x3?_0x266482(_0x2896b9):_0x3b8bcf>0x3?_0x266482(_0x4d1fa9,_0x56e3bd,_0x2896b9):_0x266482(_0x4d1fa9,_0x56e3bd))||_0x2896b9;}return _0x3b8bcf>0x3&&_0x2896b9&&Object[_0xfcc6dd(0xda)](_0x4d1fa9,_0x56e3bd,_0x2896b9),_0x2896b9;},__metadata=this&&this['__metadata']||function(_0x24dd52,_0x3b4710){var _0x2c69f9=a0_0x5c3b9b;if(typeof Reflect===_0x2c69f9(0xf4)&&typeof Reflect['metadata']==='function')return Reflect[_0x2c69f9(0xd5)](_0x24dd52,_0x3b4710);};Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports['CustomConfiguration']=void 0x0;const core_1=require(a0_0x5c3b9b(0xde)),core_2=require(a0_0x5c3b9b(0xde)),typeorm=require(a0_0x5c3b9b(0xe9));let CustomConfiguration=class CustomConfiguration{};function a0_0x7efc(_0x786fab,_0x187d64){var _0x8b3add=a0_0x5952();return a0_0x7efc=function(_0x2e1eeb,_0x633d78){_0x2e1eeb=_0x2e1eeb-0xd3;var _0x5952fe=_0x8b3add[_0x2e1eeb];return _0x5952fe;},a0_0x7efc(_0x786fab,_0x187d64);}function a0_0x5952(){var _0x44744b=['design:type','Configuration','application','755052sPyLVw','object','__decorate','function','metadata','4195VMFcYd','5865546cKHyXq','decorator','7ZMLdJK','defineProperty','toString','CustomConfiguration','47928HJKGvP','@midwayjs/core','decorate','search','4772aqoJpG','MidwayDecoratorService','729MgcJdX','835296lSWarm','190DwRiuv','(((.+)+)+)+$','MidwayConfigService','config','@anncic-api/typeorm','apply','MidwayApplicationManager','prototype','236656PAbeOa','640211WydtgX','length'];a0_0x5952=function(){return _0x44744b;};return a0_0x5952();}exports['CustomConfiguration']=CustomConfiguration,__decorate([(0x0,core_1['Inject'])(),__metadata(a0_0x5c3b9b(0xf0),core_2[a0_0x5c3b9b(0xe7)])],CustomConfiguration['prototype'],a0_0x5c3b9b(0xe8),void 0x0),__decorate([(0x0,core_1['Inject'])(),__metadata('design:type',core_2[a0_0x5c3b9b(0xe2)])],CustomConfiguration[a0_0x5c3b9b(0xec)],a0_0x5c3b9b(0xd8),void 0x0),__decorate([(0x0,core_1['Inject'])(),__metadata(a0_0x5c3b9b(0xf0),core_2[a0_0x5c3b9b(0xeb)])],CustomConfiguration[a0_0x5c3b9b(0xec)],a0_0x5c3b9b(0xf2),void 0x0),exports[a0_0x5c3b9b(0xdc)]=CustomConfiguration=__decorate([(0x0,core_1[a0_0x5c3b9b(0xf1)])({'conflictCheck':![],'imports':[typeorm],'namespace':'anncic-apihelper'})],CustomConfiguration);
|
package/dist/helper.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a1_0x5eb645=a1_0x35f9;(function(_0x2a08a8,_0x56d996){const _0x4c3ea1=a1_0x35f9,_0x1c5b78=_0x2a08a8();while(!![]){try{const _0x420309=parseInt(_0x4c3ea1(0xb7))/0x1+parseInt(_0x4c3ea1(0xc5))/0x2+-parseInt(_0x4c3ea1(0xc1))/0x3*(parseInt(_0x4c3ea1(0xcd))/0x4)+parseInt(_0x4c3ea1(0xbd))/0x5+parseInt(_0x4c3ea1(0xb5))/0x6*(-parseInt(_0x4c3ea1(0xc8))/0x7)+-parseInt(_0x4c3ea1(0xb8))/0x8+-parseInt(_0x4c3ea1(0xce))/0x9*(-parseInt(_0x4c3ea1(0xcb))/0xa);if(_0x420309===_0x56d996)break;else _0x1c5b78['push'](_0x1c5b78['shift']());}catch(_0x3efc9e){_0x1c5b78['push'](_0x1c5b78['shift']());}}}(a1_0x1d35,0x716cb));function a1_0x35f9(_0x4a4178,_0x3bcef8){const _0xd6b0b7=a1_0x1d35();return a1_0x35f9=function(_0x378b5b,_0x1beb73){_0x378b5b=_0x378b5b-0xb4;let _0x1d35c8=_0xd6b0b7[_0x378b5b];return _0x1d35c8;},a1_0x35f9(_0x4a4178,_0x3bcef8);}const a1_0x1beb73=(function(){let _0x556480=!![];return function(_0x4a2ca1,_0x3fca97){const _0x486a9f=_0x556480?function(){const _0x327702=a1_0x35f9;if(_0x3fca97){const _0x250dd4=_0x3fca97[_0x327702(0xbf)](_0x4a2ca1,arguments);return _0x3fca97=null,_0x250dd4;}}:function(){};return _0x556480=![],_0x486a9f;};}()),a1_0x378b5b=a1_0x1beb73(this,function(){const _0x3e540b=a1_0x35f9;return a1_0x378b5b[_0x3e540b(0xcf)]()[_0x3e540b(0xc0)](_0x3e540b(0xd3))[_0x3e540b(0xcf)]()[_0x3e540b(0xb9)](a1_0x378b5b)['search']('(((.+)+)+)+$');});a1_0x378b5b();'use strict';Object['defineProperty'](exports,a1_0x5eb645(0xd1),{'value':!![]}),exports['getProp']=getProp,exports[a1_0x5eb645(0xb6)]=getEnum;function a1_0x1d35(){const _0x413ada=['3818860JxjLtA','hasOwnProperty','apply','search','93AjlZse','substr','json','mediumtext','349348nevrDL','number','enum','9758JWnphd','tinyint','split','3249430hCbBoc','datetime','18828AFDWng','9EouFob','toString','length','__esModule','indexOf','(((.+)+)+)+$','string','18CFZzSg','getEnum','110638oPJHGv','6074728xYLBDB','constructor','text','float','date'];a1_0x1d35=function(){return _0x413ada;};return a1_0x1d35();}const columnTypes={'json':a1_0x5eb645(0xc3),'char':a1_0x5eb645(0xb4),'varchar':a1_0x5eb645(0xb4),'text':a1_0x5eb645(0xba),'longtext':'longtext','mediumtext':a1_0x5eb645(0xc4),'int':a1_0x5eb645(0xc6),'float':a1_0x5eb645(0xbb),'double':'float','decimal':'decimal','date':a1_0x5eb645(0xbc),'time':a1_0x5eb645(0xcc),'datetime':'datetime','timestamp':'timestamp','tinyint':a1_0x5eb645(0xc9)};function getProp(_0x125ac4){const _0x356dd9=a1_0x5eb645;if(columnTypes[_0x356dd9(0xbe)](_0x125ac4))return columnTypes[_0x125ac4];else return _0x125ac4[_0x356dd9(0xd2)]('(')>-0x1||_0x125ac4[_0x356dd9(0xd2)]('\x20')>-0x1?(_0x125ac4=_0x125ac4[_0x356dd9(0xc2)](0x0,_0x125ac4[_0x356dd9(0xd2)]('(')>-0x1?_0x125ac4[_0x356dd9(0xd2)]('('):_0x125ac4[_0x356dd9(0xd2)]('\x20')),columnTypes[_0x125ac4]||_0x125ac4):_0x356dd9(0xb4);}function getEnum(_0x37ce1a){const _0x2fdc58=a1_0x5eb645;if(getProp(_0x37ce1a)==_0x2fdc58(0xc7))return _0x37ce1a[_0x2fdc58(0xc2)](0x5,_0x37ce1a[_0x2fdc58(0xd0)]-0x6)['replace'](/[\'|\"]/g,'')[_0x2fdc58(0xca)](',');return[];}
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a2_0x3f5784=a2_0x1812;function a2_0x25b7(){var _0x5ab278=['27OemewQ','20744xvjXOT','Configuration','3451820qOwCgA','13635ReXfqu','507911WRIPuG','apply','628fEgdus','9216LYazfZ','35JvNliP','toString','2317932ljWtzJ','ApicreateService','__esModule','defineProperty','22242tcSjOv','search','CustomConfiguration','./configuration','1360XCMqki','(((.+)+)+)+$','2358088QBNrKp'];a2_0x25b7=function(){return _0x5ab278;};return a2_0x25b7();}(function(_0x3361cb,_0x4b922a){var _0xc76722=a2_0x1812,_0x2a7cc4=_0x3361cb();while(!![]){try{var _0x356100=-parseInt(_0xc76722(0xc4))/0x1+-parseInt(_0xc76722(0xc6))/0x2*(parseInt(_0xc76722(0xc3))/0x3)+parseInt(_0xc76722(0xc0))/0x4*(parseInt(_0xc76722(0xbc))/0x5)+parseInt(_0xc76722(0xca))/0x6+parseInt(_0xc76722(0xc8))/0x7*(parseInt(_0xc76722(0xbe))/0x8)+parseInt(_0xc76722(0xbf))/0x9*(parseInt(_0xc76722(0xc2))/0xa)+parseInt(_0xc76722(0xb8))/0xb*(-parseInt(_0xc76722(0xc7))/0xc);if(_0x356100===_0x4b922a)break;else _0x2a7cc4['push'](_0x2a7cc4['shift']());}catch(_0x5f433a){_0x2a7cc4['push'](_0x2a7cc4['shift']());}}}(a2_0x25b7,0xc7c98));var a2_0x926408=(function(){var _0x507db2=!![];return function(_0x1abe55,_0x5bf4a6){var _0x41ee2d=_0x507db2?function(){var _0x5ab0da=a2_0x1812;if(_0x5bf4a6){var _0x23ed3a=_0x5bf4a6[_0x5ab0da(0xc5)](_0x1abe55,arguments);return _0x5bf4a6=null,_0x23ed3a;}}:function(){};return _0x507db2=![],_0x41ee2d;};}()),a2_0x3c2121=a2_0x926408(this,function(){var _0x301c53=a2_0x1812;return a2_0x3c2121[_0x301c53(0xc9)]()[_0x301c53(0xb9)](_0x301c53(0xbd))[_0x301c53(0xc9)]()['constructor'](a2_0x3c2121)[_0x301c53(0xb9)](_0x301c53(0xbd));});function a2_0x1812(_0x4d1388,_0x1c34ec){var _0x12068e=a2_0x25b7();return a2_0x1812=function(_0x3c2121,_0x926408){_0x3c2121=_0x3c2121-0xb8;var _0x25b73e=_0x12068e[_0x3c2121];return _0x25b73e;},a2_0x1812(_0x4d1388,_0x1c34ec);}a2_0x3c2121();'use strict';Object[a2_0x3f5784(0xcd)](exports,a2_0x3f5784(0xcc),{'value':!![]}),exports[a2_0x3f5784(0xc1)]=exports[a2_0x3f5784(0xcb)]=void 0x0;var ApicreateService_1=require('./service/ApicreateService');Object[a2_0x3f5784(0xcd)](exports,a2_0x3f5784(0xcb),{'enumerable':!![],'get':function(){var _0x4ade43=a2_0x3f5784;return ApicreateService_1[_0x4ade43(0xcb)];}});var configuration_1=require(a2_0x3f5784(0xbb));Object[a2_0x3f5784(0xcd)](exports,a2_0x3f5784(0xc1),{'enumerable':!![],'get':function(){var _0x283617=a2_0x3f5784;return configuration_1[_0x283617(0xba)];}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a3_0x3cbfce=a3_0x2e90;function a3_0xab6d(){const _0x22b93a=['apply','516WVOYSG','tablestartLowShort','config','tablestartUpShort','Config','vuedialog','../templateVueV2/Layout','Comment','\x20未连接','App','ScopeEnum','controller','defineProperty','../templateVue/Api','isArray','Key','188631leBhFM','TypeORMDataSourceManager','writeFileSync','/config.ts','dirname','/apis/apps/','toLowerCase','function','/pages/','object','tablestartUp','basedir','Primary','module','8312wJWwve','15NDJmVZ','createApp','replace','tableprefix','\x27,\x0a\x20\x20\x20\x20description:\x20\x27\x27,\x0a\x20\x20\x20\x20middleware:\x20[],\x0a}','string','../templateVueV3/Layout','query','tablestartUpShort2','SELECT\x20TABLE_NAME\x20as\x20`table`\x20FROM\x20information_schema.TABLES\x20WHERE\x20TABLE_SCHEMA=\x22','../templateVue/Validator','getBaseDir','../templateFun/Validator','34110TvWEbL','=\x20\x22','__decorate','../templateVueV2/LayoutVue','createPlugin','environment','tablestart','/vue','/api/','\x22\x20AND\x20table_name\x20','__esModule','Scope','design:type','PRI','path','die','comment','Inject','startsWith','apitest','../templateFun/Action','240GhGHqX','dataSourceManager','mkdirSync','getDataSource','toUpperCase','/pages/apps/','.ts','../templateFun/Common','../templateFun/Handler','typeorm\x20数据源\x20','filter','Singleton','/exceptions/','decorate','app','.js','trim','ApicreateService','error','join','cwd','hasDataSource','160uyucdM','createBasic','CreateModuleConfig','default','tablestartLow','@midwayjs/core','isDevelopmentEnvironment','length','(((.+)+)+)+$','\x22\x20AND\x20table_name\x20=\x20\x27','../templateVueV3/Validator','LIKE\x20\x22','../templateFun/Event','2191cgPtlk','map','dataSource','createAction','search','toString','prototype','constructor','substring','1295cwcdlz','table','getConfig','checkOption','getOwnPropertyDescriptor','260rKjHup','../templateFun/Search','database','145691EuWBKK','../templateVue/LayoutVue','export\x20default\x20{\x0a\x20\x20\x20\x20name:\x20\x27','moduleName','connection','SELECT\x20TABLE_COMMENT\x20as\x20`comment`\x20FROM\x20information_schema.TABLES\x20WHERE\x20TABLE_SCHEMA=\x22','substr','isConnected','basic','/apps/','SHOW\x20FULL\x20COLUMNS\x20FROM\x20`','../templateVueV2/Api','controllers','existsSync','hasvue','split','/apis/','metadata','320353HiRNkr','match','../templateVueV3/Router','284996AQYYRr','typeorm','apporbasic','Fields'];a3_0xab6d=function(){return _0x22b93a;};return a3_0xab6d();}(function(_0xe6f14,_0x10ed68){const _0x2bf0ac=a3_0x2e90,_0x1ce559=_0xe6f14();while(!![]){try{const _0x2dd17c=parseInt(_0x2bf0ac(0x205))/0x1*(-parseInt(_0x2bf0ac(0x1ef))/0x2)+parseInt(_0x2bf0ac(0x1b7))/0x3*(parseInt(_0x2bf0ac(0x222))/0x4)+-parseInt(_0x2bf0ac(0x1d9))/0x5*(-parseInt(_0x2bf0ac(0x1c4))/0x6)+parseInt(_0x2bf0ac(0x1fc))/0x7*(-parseInt(_0x2bf0ac(0x1b6))/0x8)+parseInt(_0x2bf0ac(0x1a8))/0x9*(parseInt(_0x2bf0ac(0x20a))/0xa)+parseInt(_0x2bf0ac(0x21f))/0xb+-parseInt(_0x2bf0ac(0x227))/0xc*(parseInt(_0x2bf0ac(0x20d))/0xd);if(_0x2dd17c===_0x10ed68)break;else _0x1ce559['push'](_0x1ce559['shift']());}catch(_0x3286c7){_0x1ce559['push'](_0x1ce559['shift']());}}}(a3_0xab6d,0x4767a));const a3_0x4155ad=(function(){let _0x5334c6=!![];return function(_0x32906f,_0x50b0ed){const _0x27a727=_0x5334c6?function(){const _0x2c5df1=a3_0x2e90;if(_0x50b0ed){const _0x24f8ca=_0x50b0ed[_0x2c5df1(0x226)](_0x32906f,arguments);return _0x50b0ed=null,_0x24f8ca;}}:function(){};return _0x5334c6=![],_0x27a727;};}()),a3_0x472efa=a3_0x4155ad(this,function(){const _0x3fcf88=a3_0x2e90;return a3_0x472efa[_0x3fcf88(0x201)]()[_0x3fcf88(0x200)](_0x3fcf88(0x1f7))[_0x3fcf88(0x201)]()[_0x3fcf88(0x203)](a3_0x472efa)['search'](_0x3fcf88(0x1f7));});a3_0x472efa();'use strict';var __decorate=this&&this[a3_0x3cbfce(0x1c6)]||function(_0x1ba6dd,_0x34ce13,_0x34c370,_0x3ade72){const _0x12b831=a3_0x3cbfce;var _0x2a717a=arguments[_0x12b831(0x1f6)],_0x4fc6a7=_0x2a717a<0x3?_0x34ce13:_0x3ade72===null?_0x3ade72=Object[_0x12b831(0x209)](_0x34ce13,_0x34c370):_0x3ade72,_0x16df5e;if(typeof Reflect===_0x12b831(0x1b1)&&typeof Reflect[_0x12b831(0x1e6)]===_0x12b831(0x1af))_0x4fc6a7=Reflect[_0x12b831(0x1e6)](_0x1ba6dd,_0x34ce13,_0x34c370,_0x3ade72);else{for(var _0x5c985b=_0x1ba6dd[_0x12b831(0x1f6)]-0x1;_0x5c985b>=0x0;_0x5c985b--)if(_0x16df5e=_0x1ba6dd[_0x5c985b])_0x4fc6a7=(_0x2a717a<0x3?_0x16df5e(_0x4fc6a7):_0x2a717a>0x3?_0x16df5e(_0x34ce13,_0x34c370,_0x4fc6a7):_0x16df5e(_0x34ce13,_0x34c370))||_0x4fc6a7;}return _0x2a717a>0x3&&_0x4fc6a7&&Object[_0x12b831(0x1a4)](_0x34ce13,_0x34c370,_0x4fc6a7),_0x4fc6a7;},__metadata=this&&this['__metadata']||function(_0x3fc577,_0x12b8ac){const _0x377f37=a3_0x3cbfce;if(typeof Reflect===_0x377f37(0x1b1)&&typeof Reflect[_0x377f37(0x21e)]===_0x377f37(0x1af))return Reflect['metadata'](_0x3fc577,_0x12b8ac);};function a3_0x2e90(_0x27b980,_0x2d6468){const _0x4e6355=a3_0xab6d();return a3_0x2e90=function(_0x472efa,_0x4155ad){_0x472efa=_0x472efa-0x19e;let _0xab6db4=_0x4e6355[_0x472efa];return _0xab6db4;},a3_0x2e90(_0x27b980,_0x2d6468);}Object[a3_0x3cbfce(0x1a4)](exports,a3_0x3cbfce(0x1ce),{'value':!![]}),exports[a3_0x3cbfce(0x1ea)]=void 0x0;const fs=require('fs'),path=require(a3_0x3cbfce(0x1d2)),core_1=require(a3_0x3cbfce(0x1f4)),typeorm_1=require('@midwayjs/typeorm'),core_2=require(a3_0x3cbfce(0x1f4)),Common_1=require(a3_0x3cbfce(0x1e0)),Event_1=require(a3_0x3cbfce(0x1fb)),Search_1=require(a3_0x3cbfce(0x20b)),Entities_1=require('../templateFun/Entities'),Handler_1=require(a3_0x3cbfce(0x1e1)),Validator_1=require(a3_0x3cbfce(0x1c3)),Action_1=require(a3_0x3cbfce(0x1d8)),Api_1=require(a3_0x3cbfce(0x1a5)),Router_1=require('../templateVue/Router'),Layout_1=require('../templateVue/Layout'),LayoutVue_1=require(a3_0x3cbfce(0x20e)),Validator_2=require(a3_0x3cbfce(0x1c1)),Api_2=require(a3_0x3cbfce(0x218)),Router_2=require('../templateVueV2/Router'),Layout_2=require(a3_0x3cbfce(0x19e)),LayoutVue_2=require(a3_0x3cbfce(0x1c7)),Validator_3=require('../templateVueV2/Validator'),Api_3=require('../templateVueV3/Api'),Router_3=require(a3_0x3cbfce(0x221)),Layout_3=require(a3_0x3cbfce(0x1bd)),LayoutVue_3=require('../templateVueV3/LayoutVue'),Validator_4=require(a3_0x3cbfce(0x1f9));let ApicreateService=class ApicreateService{async[a3_0x3cbfce(0x1b8)](_0x1e00d4){const _0x570355=a3_0x3cbfce;return await this['checkOption'](_0x1e00d4),await this['createAction']({..._0x1e00d4,'apporbasic':_0x570355(0x1e7)});}async[a3_0x3cbfce(0x1f0)](_0x247db5){const _0x6b8dd2=a3_0x3cbfce;return await this['checkOption'](_0x247db5),await this[_0x6b8dd2(0x1ff)]({..._0x247db5,'apporbasic':_0x6b8dd2(0x215)});}async[a3_0x3cbfce(0x1c8)](_0x28a40b){const _0x19aef8=a3_0x3cbfce;return await this[_0x19aef8(0x208)](_0x28a40b),await this['createAction']({..._0x28a40b,'module':!![]});}async[a3_0x3cbfce(0x1ff)](_0x308df7){const _0x2f5064=a3_0x3cbfce;var _0x4add16,_0x4ce2dd;!_0x308df7[_0x2f5064(0x211)]&&(_0x308df7['connection']=_0x2f5064(0x1f2));!_0x308df7[_0x2f5064(0x224)]&&(_0x308df7['apporbasic']=_0x2f5064(0x1e7));const _0xf11a36=this[_0x2f5064(0x1e7)][_0x2f5064(0x1c2)](),_0xc8437e=this[_0x2f5064(0x1da)][_0x2f5064(0x1dc)](_0x308df7[_0x2f5064(0x211)]),_0x1c950c=await _0xc8437e[_0x2f5064(0x1be)](_0x2f5064(0x1c0)+this[_0x2f5064(0x229)][_0x2f5064(0x1fe)][_0x308df7['connection']][_0x2f5064(0x20c)]+_0x2f5064(0x1cd)+((_0x308df7===null||_0x308df7===void 0x0?void 0x0:_0x308df7[_0x2f5064(0x206)])?_0x2f5064(0x1c5)+_0x308df7[_0x2f5064(0x206)]+'\x22':_0x2f5064(0x1fa)+(_0x308df7[_0x2f5064(0x1ba)]||'')+'%\x22'))||[];for(let _0x54e77f=0x0;_0x54e77f<_0x1c950c[_0x2f5064(0x1f6)];_0x54e77f++){const _0x3ff983=_0x1c950c[_0x54e77f]['table'];if((_0x308df7===null||_0x308df7===void 0x0?void 0x0:_0x308df7['table'])&&(_0x308df7===null||_0x308df7===void 0x0?void 0x0:_0x308df7[_0x2f5064(0x206)])!=_0x3ff983)continue;if((_0x308df7===null||_0x308df7===void 0x0?void 0x0:_0x308df7[_0x2f5064(0x1ba)])&&!(_0x3ff983===null||_0x3ff983===void 0x0?void 0x0:_0x3ff983[_0x2f5064(0x1d6)](_0x308df7[_0x2f5064(0x1ba)])))continue;const _0x3e2f7e=await _0xc8437e[_0x2f5064(0x1be)](_0x2f5064(0x212)+this[_0x2f5064(0x229)]['dataSource'][_0x308df7[_0x2f5064(0x211)]][_0x2f5064(0x20c)]+_0x2f5064(0x1f8)+_0x3ff983+'\x27')||[];if((_0x4add16=_0x3e2f7e[0x0])===null||_0x4add16===void 0x0?void 0x0:_0x4add16[_0x2f5064(0x1d4)]){const _0x1472ed={'tablename':_0x3ff983,'Primary':{},'Fields':{},'Comment':(_0x4ce2dd=_0x3e2f7e[0x0])===null||_0x4ce2dd===void 0x0?void 0x0:_0x4ce2dd[_0x2f5064(0x1d4)],'vuedialog':_0x308df7[_0x2f5064(0x22c)],'apporbasic':_0x308df7[_0x2f5064(0x224)]};_0x1472ed[_0x2f5064(0x1ca)]=_0x3ff983[_0x2f5064(0x213)]((_0x308df7===null||_0x308df7===void 0x0?void 0x0:_0x308df7[_0x2f5064(0x213)])||0x0,_0x3ff983[_0x2f5064(0x1f6)]),_0x1472ed[_0x2f5064(0x1b3)]=(_0x308df7===null||_0x308df7===void 0x0?void 0x0:_0x308df7[_0x2f5064(0x1b5)])?_0xf11a36+_0x2f5064(0x216)+_0x1472ed[_0x2f5064(0x1ca)][_0x2f5064(0x21c)]('_')[0x0][_0x2f5064(0x1ae)]():_0xf11a36+'/'+_0x308df7[_0x2f5064(0x224)];const _0x5b5648=_0x1472ed['tablestart'][_0x2f5064(0x21c)]('_')[_0x2f5064(0x1e3)](_0x5e7703=>_0x5e7703&&_0x5e7703[_0x2f5064(0x1e9)]());(_0x308df7===null||_0x308df7===void 0x0?void 0x0:_0x308df7[_0x2f5064(0x1b5)])&&(await this[_0x2f5064(0x1f1)](_0x1472ed),_0x1472ed[_0x2f5064(0x210)]=_0x5b5648[0x0][_0x2f5064(0x1ae)]());_0x1472ed['tablestartLow']=_0x5b5648[_0x2f5064(0x1fd)](_0x4aa7cb=>_0x4aa7cb[_0x2f5064(0x1ae)]())['join'](''),_0x1472ed[_0x2f5064(0x1b2)]=_0x5b5648[_0x2f5064(0x1fd)](_0x373eeb=>''+_0x373eeb[_0x2f5064(0x204)](0x0,0x1)[_0x2f5064(0x1dd)]()+_0x373eeb[_0x2f5064(0x204)](0x1)[_0x2f5064(0x1ae)]())[_0x2f5064(0x1ec)]('');(_0x1472ed===null||_0x1472ed===void 0x0?void 0x0:_0x1472ed[_0x2f5064(0x210)])&&_0x5b5648[_0x2f5064(0x1f6)]>0x1&&_0x5b5648[0x0][_0x2f5064(0x1ae)]()==_0x1472ed[_0x2f5064(0x210)]?(_0x1472ed[_0x2f5064(0x22a)]=_0x1472ed['tablestartUp']['substring'](_0x1472ed[_0x2f5064(0x210)][_0x2f5064(0x1f6)],_0x1472ed['tablestartUp']['length']),_0x1472ed[_0x2f5064(0x228)]=_0x1472ed[_0x2f5064(0x1f3)][_0x2f5064(0x204)](_0x1472ed[_0x2f5064(0x210)][_0x2f5064(0x1f6)],_0x1472ed[_0x2f5064(0x1f3)][_0x2f5064(0x1f6)])):(_0x1472ed[_0x2f5064(0x22a)]=_0x1472ed[_0x2f5064(0x1b2)],_0x1472ed[_0x2f5064(0x228)]=_0x1472ed['tablestartLow']);_0x1472ed['tablestartUpShort2']=_0x1472ed[_0x2f5064(0x22a)][_0x2f5064(0x1b9)](/\/{2,}/g,'/')[_0x2f5064(0x220)](/[\/|A-Z]*[^A-Z]+/g)[_0x2f5064(0x1ec)]('-')[_0x2f5064(0x1ae)]()[_0x2f5064(0x1b9)](/\/\-/g,'/');for(let _0xaf6ff2 of await _0xc8437e[_0x2f5064(0x1be)](_0x2f5064(0x217)+_0x3ff983+'`')){_0xaf6ff2[_0x2f5064(0x1a7)]==_0x2f5064(0x1d1)?_0x1472ed[_0x2f5064(0x1b4)]=_0xaf6ff2:_0x1472ed[_0x2f5064(0x225)][_0xaf6ff2['Field']]=_0xaf6ff2;}if((_0x308df7===null||_0x308df7===void 0x0?void 0x0:_0x308df7[_0x2f5064(0x1a3)])&&!fs[_0x2f5064(0x21a)](_0x1472ed['basedir']+_0x2f5064(0x1e5)+_0x1472ed[_0x2f5064(0x22a)]+_0x2f5064(0x1df))){var _0x5e6881=[];if(typeof(_0x308df7===null||_0x308df7===void 0x0?void 0x0:_0x308df7[_0x2f5064(0x1a3)])=='string')_0x5e6881=[_0x308df7===null||_0x308df7===void 0x0?void 0x0:_0x308df7['controller']];else Array[_0x2f5064(0x1a6)](_0x308df7===null||_0x308df7===void 0x0?void 0x0:_0x308df7[_0x2f5064(0x1a3)])?_0x5e6881=_0x308df7===null||_0x308df7===void 0x0?void 0x0:_0x308df7[_0x2f5064(0x1a3)]:_0x5e6881=[!![]];_0x1472ed[_0x2f5064(0x219)]=_0x5e6881,await(0x0,Search_1[_0x2f5064(0x1f2)])(_0x1472ed),await(0x0,Entities_1[_0x2f5064(0x1f2)])(_0x1472ed),await(0x0,Common_1[_0x2f5064(0x1f2)])(_0x1472ed),await(0x0,Event_1[_0x2f5064(0x1f2)])(_0x1472ed),await(0x0,Handler_1[_0x2f5064(0x1f2)])(_0x1472ed),await(0x0,Validator_1[_0x2f5064(0x1f2)])(_0x1472ed);for(let _0x559f49 of _0x5e6881){_0x1472ed[_0x2f5064(0x1a3)]=_0x559f49,await(0x0,Action_1['default'])(_0x1472ed);}}if(_0x308df7===null||_0x308df7===void 0x0?void 0x0:_0x308df7[_0x2f5064(0x21b)]){var _0x5e6881=[];if(typeof(_0x308df7===null||_0x308df7===void 0x0?void 0x0:_0x308df7[_0x2f5064(0x1a3)])=='string')_0x5e6881=[_0x308df7===null||_0x308df7===void 0x0?void 0x0:_0x308df7[_0x2f5064(0x1a3)]];else Array[_0x2f5064(0x1a6)](_0x308df7===null||_0x308df7===void 0x0?void 0x0:_0x308df7[_0x2f5064(0x1a3)])?_0x5e6881=_0x308df7===null||_0x308df7===void 0x0?void 0x0:_0x308df7['controller']:_0x5e6881=[!![]];if(_0x308df7[_0x2f5064(0x21b)]=='v2')for(let _0x157d91 of _0x5e6881){_0x1472ed[_0x2f5064(0x1a3)]=_0x157d91;let _0x53aad8=process['cwd']()+_0x2f5064(0x1cb)+(typeof _0x1472ed[_0x2f5064(0x1a3)]==_0x2f5064(0x1bc)?'/'+_0x1472ed['controller']:'');_0x1472ed['moduleName']?_0x53aad8=_0x53aad8+(_0x2f5064(0x1ad)+_0x1472ed[_0x2f5064(0x210)]+_0x2f5064(0x21d)+_0x1472ed[_0x2f5064(0x22a)]+_0x2f5064(0x1e8)):_0x53aad8=_0x53aad8+(_0x2f5064(0x21d)+_0x1472ed[_0x2f5064(0x224)]+_0x2f5064(0x21d)+_0x1472ed[_0x2f5064(0x22a)]+_0x2f5064(0x1e8)),!fs['existsSync'](_0x53aad8)&&(await(0x0,Api_2[_0x2f5064(0x1f2)])(_0x1472ed),await(0x0,Router_2[_0x2f5064(0x1f2)])(_0x1472ed),await(0x0,Layout_2['default'])(_0x1472ed),await(0x0,LayoutVue_2[_0x2f5064(0x1f2)])(_0x1472ed),await(0x0,Validator_3[_0x2f5064(0x1f2)])(_0x1472ed));}else{if(_0x308df7['hasvue']=='v3')for(let _0x1b6132 of _0x5e6881){_0x1472ed[_0x2f5064(0x1a3)]=_0x1b6132;let _0xc13079=process[_0x2f5064(0x1ed)]()+'/vue'+(typeof _0x1472ed[_0x2f5064(0x1a3)]=='string'?'/'+_0x1472ed[_0x2f5064(0x1a3)]:'');_0x1472ed['moduleName']?_0xc13079=_0xc13079+('/apis/apps/'+_0x1472ed[_0x2f5064(0x210)]+_0x2f5064(0x21d)+_0x1472ed[_0x2f5064(0x22a)]+'.js'):_0xc13079=_0xc13079+(_0x2f5064(0x21d)+_0x1472ed['apporbasic']+'/apis/'+_0x1472ed[_0x2f5064(0x22a)]+'.js'),!fs[_0x2f5064(0x21a)](_0xc13079)&&(await(0x0,Api_3[_0x2f5064(0x1f2)])(_0x1472ed),await(0x0,Router_3[_0x2f5064(0x1f2)])(_0x1472ed),await(0x0,Layout_3['default'])(_0x1472ed),await(0x0,LayoutVue_3[_0x2f5064(0x1f2)])(_0x1472ed),await(0x0,Validator_4['default'])(_0x1472ed));}else for(let _0x38b9ad of _0x5e6881){_0x1472ed[_0x2f5064(0x1a3)]=_0x38b9ad;let _0x178578=process['cwd']()+_0x2f5064(0x1cb)+(typeof _0x1472ed[_0x2f5064(0x1a3)]==_0x2f5064(0x1bc)?'/'+_0x1472ed['controller']:'');_0x1472ed[_0x2f5064(0x210)]?_0x178578=_0x178578+(_0x2f5064(0x1de)+_0x1472ed[_0x2f5064(0x210)]+_0x2f5064(0x1cc)+_0x1472ed[_0x2f5064(0x1bf)]+_0x2f5064(0x1e8)):_0x178578=_0x178578+(_0x2f5064(0x1b0)+_0x1472ed[_0x2f5064(0x224)]+_0x2f5064(0x1cc)+_0x1472ed[_0x2f5064(0x1bf)]+_0x2f5064(0x1e8)),!fs[_0x2f5064(0x21a)](_0x178578)&&(await(0x0,Api_1[_0x2f5064(0x1f2)])(_0x1472ed),await(0x0,Router_1['default'])(_0x1472ed),await(0x0,Layout_1[_0x2f5064(0x1f2)])(_0x1472ed),await(0x0,LayoutVue_1['default'])(_0x1472ed),await(0x0,Validator_2[_0x2f5064(0x1f2)])(_0x1472ed));}}}}else console[_0x2f5064(0x1eb)]('表:'+_0x3ff983+'\x20表注释不存在');}return _0x2f5064(0x1d3);}async['checkOption'](_0x177349){const _0x450eb3=a3_0x3cbfce;var _0xdf78b4,_0x5916cc,_0x20d234;if(!this[_0x450eb3(0x1c9)][_0x450eb3(0x1f5)]()||!((_0xdf78b4=this['config'])===null||_0xdf78b4===void 0x0?void 0x0:_0xdf78b4[_0x450eb3(0x1fe)])||!this[_0x450eb3(0x1e7)][_0x450eb3(0x207)](_0x450eb3(0x1d7)))throw new Error('无法生成');!_0x177349['connection']&&(_0x177349[_0x450eb3(0x211)]=_0x450eb3(0x1f2));if(!((_0x20d234=(_0x5916cc=this[_0x450eb3(0x229)])===null||_0x5916cc===void 0x0?void 0x0:_0x5916cc['dataSource'])===null||_0x20d234===void 0x0?void 0x0:_0x20d234[_0x177349['connection']]))throw new Error('typeorm\x20未配置数据源\x20'+_0x177349[_0x450eb3(0x211)]);if(!this[_0x450eb3(0x1da)][_0x450eb3(0x1ee)](_0x177349[_0x450eb3(0x211)]))throw new Error(_0x450eb3(0x1e2)+_0x177349[_0x450eb3(0x211)]+'\x20不存在');if(!this['dataSourceManager'][_0x450eb3(0x214)](_0x177349['connection']))throw new Error(_0x450eb3(0x1e2)+_0x177349[_0x450eb3(0x211)]+_0x450eb3(0x1a0));return!![];}async['CreateModuleConfig'](_0x3ab409){const _0x352d16=a3_0x3cbfce,_0x53c33a=_0x3ab409[_0x352d16(0x1ca)][_0x352d16(0x21c)]('_')[0x0][_0x352d16(0x1ae)]();if(!fs[_0x352d16(0x21a)](_0x3ab409['basedir']+_0x352d16(0x1ab))){let _0x1897e8=_0x352d16(0x20f)+(_0x3ab409[_0x352d16(0x19f)]||_0x53c33a)+_0x352d16(0x1bb);fs[_0x352d16(0x1db)](path[_0x352d16(0x1ac)](_0x3ab409['basedir']+_0x352d16(0x1ab)),{'recursive':!![]}),fs[_0x352d16(0x1aa)](_0x3ab409[_0x352d16(0x1b3)]+_0x352d16(0x1ab),_0x1897e8,'utf-8');}}};exports[a3_0x3cbfce(0x1ea)]=ApicreateService,__decorate([(0x0,core_2[a3_0x3cbfce(0x1a1)])(),__metadata(a3_0x3cbfce(0x1d0),Object)],ApicreateService[a3_0x3cbfce(0x202)],a3_0x3cbfce(0x1e7),void 0x0),__decorate([(0x0,core_2[a3_0x3cbfce(0x22b)])(a3_0x3cbfce(0x223)),__metadata(a3_0x3cbfce(0x1d0),Object)],ApicreateService[a3_0x3cbfce(0x202)],a3_0x3cbfce(0x229),void 0x0),__decorate([(0x0,core_2[a3_0x3cbfce(0x1d5)])(),__metadata(a3_0x3cbfce(0x1d0),core_1['MidwayEnvironmentService'])],ApicreateService[a3_0x3cbfce(0x202)],a3_0x3cbfce(0x1c9),void 0x0),__decorate([(0x0,core_2[a3_0x3cbfce(0x1d5)])(),__metadata(a3_0x3cbfce(0x1d0),typeorm_1[a3_0x3cbfce(0x1a9)])],ApicreateService[a3_0x3cbfce(0x202)],a3_0x3cbfce(0x1da),void 0x0),exports['ApicreateService']=ApicreateService=__decorate([(0x0,core_2['Provide'])(a3_0x3cbfce(0x1ea)),(0x0,core_2[a3_0x3cbfce(0x1cf)])(core_2[a3_0x3cbfce(0x1a2)][a3_0x3cbfce(0x1e4)])],ApicreateService);
|
|
1
|
+
const a3_0x519330=a3_0x5cf5;(function(_0xdc000f,_0x2d5e13){const _0x9531ac=a3_0x5cf5,_0x37e17f=_0xdc000f();while(!![]){try{const _0x335242=-parseInt(_0x9531ac(0x123))/0x1+-parseInt(_0x9531ac(0xfa))/0x2+-parseInt(_0x9531ac(0x106))/0x3+parseInt(_0x9531ac(0x15f))/0x4+-parseInt(_0x9531ac(0x13e))/0x5*(-parseInt(_0x9531ac(0x16c))/0x6)+parseInt(_0x9531ac(0x138))/0x7*(-parseInt(_0x9531ac(0x161))/0x8)+-parseInt(_0x9531ac(0x14c))/0x9*(-parseInt(_0x9531ac(0x11e))/0xa);if(_0x335242===_0x2d5e13)break;else _0x37e17f['push'](_0x37e17f['shift']());}catch(_0x425d1b){_0x37e17f['push'](_0x37e17f['shift']());}}}(a3_0x3b9b,0xc59d6));const a3_0x10bdee=(function(){let _0x266bc4=!![];return function(_0x5bf6a2,_0x25f255){const _0x1712cf=_0x266bc4?function(){if(_0x25f255){const _0x5a9509=_0x25f255['apply'](_0x5bf6a2,arguments);return _0x25f255=null,_0x5a9509;}}:function(){};return _0x266bc4=![],_0x1712cf;};}()),a3_0x21b4bf=a3_0x10bdee(this,function(){const _0x2257b5=a3_0x5cf5;return a3_0x21b4bf[_0x2257b5(0x131)]()[_0x2257b5(0x114)](_0x2257b5(0xf7))[_0x2257b5(0x131)]()[_0x2257b5(0x168)](a3_0x21b4bf)['search'](_0x2257b5(0xf7));});a3_0x21b4bf();'use strict';var __decorate=this&&this[a3_0x519330(0x11d)]||function(_0x2f0a3e,_0x4ba09b,_0x347df1,_0x1b314e){const _0x1cdcc1=a3_0x519330;var _0x4b3544=arguments[_0x1cdcc1(0x12d)],_0x2e9f5d=_0x4b3544<0x3?_0x4ba09b:_0x1b314e===null?_0x1b314e=Object[_0x1cdcc1(0xf6)](_0x4ba09b,_0x347df1):_0x1b314e,_0x4b4fae;if(typeof Reflect==='object'&&typeof Reflect[_0x1cdcc1(0x11b)]==='function')_0x2e9f5d=Reflect[_0x1cdcc1(0x11b)](_0x2f0a3e,_0x4ba09b,_0x347df1,_0x1b314e);else{for(var _0x304555=_0x2f0a3e[_0x1cdcc1(0x12d)]-0x1;_0x304555>=0x0;_0x304555--)if(_0x4b4fae=_0x2f0a3e[_0x304555])_0x2e9f5d=(_0x4b3544<0x3?_0x4b4fae(_0x2e9f5d):_0x4b3544>0x3?_0x4b4fae(_0x4ba09b,_0x347df1,_0x2e9f5d):_0x4b4fae(_0x4ba09b,_0x347df1))||_0x2e9f5d;}return _0x4b3544>0x3&&_0x2e9f5d&&Object['defineProperty'](_0x4ba09b,_0x347df1,_0x2e9f5d),_0x2e9f5d;},__metadata=this&&this[a3_0x519330(0x157)]||function(_0x1be918,_0x2df7bc){const _0x3427cf=a3_0x519330;if(typeof Reflect===_0x3427cf(0x171)&&typeof Reflect[_0x3427cf(0x13d)]===_0x3427cf(0x11c))return Reflect[_0x3427cf(0x13d)](_0x1be918,_0x2df7bc);};function a3_0x5cf5(_0x5cc449,_0x1f9e1f){const _0x55c8cc=a3_0x3b9b();return a3_0x5cf5=function(_0x21b4bf,_0x10bdee){_0x21b4bf=_0x21b4bf-0xeb;let _0x3b9b31=_0x55c8cc[_0x21b4bf];return _0x3b9b31;},a3_0x5cf5(_0x5cc449,_0x1f9e1f);}Object[a3_0x519330(0x118)](exports,a3_0x519330(0x142),{'value':!![]}),exports[a3_0x519330(0x122)]=void 0x0;const fs=require('fs'),path=require(a3_0x519330(0x16e)),core_1=require(a3_0x519330(0x10f)),typeorm_1=require(a3_0x519330(0x16d)),core_2=require(a3_0x519330(0x10f)),Common_1=require(a3_0x519330(0xf0)),Event_1=require(a3_0x519330(0x15c)),Search_1=require(a3_0x519330(0x127)),Entities_1=require('../templateFun/Entities'),Handler_1=require(a3_0x519330(0x132)),Validator_1=require(a3_0x519330(0xeb)),Action_1=require(a3_0x519330(0xfd)),Api_1=require(a3_0x519330(0x15b)),Router_1=require(a3_0x519330(0x12c)),Layout_1=require(a3_0x519330(0x154)),LayoutVue_1=require(a3_0x519330(0x141)),Validator_2=require(a3_0x519330(0x117)),Api_2=require(a3_0x519330(0x145)),Router_2=require(a3_0x519330(0x11a)),Layout_2=require(a3_0x519330(0x129)),LayoutVue_2=require(a3_0x519330(0x14a)),Validator_3=require(a3_0x519330(0x119)),Api_3=require('../templateVueV3/Api'),Router_3=require('../templateVueV3/Router'),Layout_3=require('../templateVueV3/Layout'),LayoutVue_3=require(a3_0x519330(0x100)),Validator_4=require(a3_0x519330(0x121));let ApicreateService=class ApicreateService{async['createApp'](_0x438362){const _0x570cf6=a3_0x519330;return await this[_0x570cf6(0x10e)](_0x438362),await this[_0x570cf6(0x158)]({..._0x438362,'apporbasic':_0x570cf6(0x148)});}async['createBasic'](_0xc511e5){const _0x430842=a3_0x519330;return await this['checkOption'](_0xc511e5),await this['createAction']({..._0xc511e5,'apporbasic':_0x430842(0x111)});}async[a3_0x519330(0x103)](_0x3ea193){const _0x475141=a3_0x519330;return await this[_0x475141(0x10e)](_0x3ea193),await this[_0x475141(0x158)]({..._0x3ea193,'module':!![]});}async[a3_0x519330(0x158)](_0x2eeb71){const _0x51fd1c=a3_0x519330;var _0x3e50f2,_0x1bf13a;!_0x2eeb71['connection']&&(_0x2eeb71[_0x51fd1c(0x12f)]='default');!_0x2eeb71[_0x51fd1c(0xfb)]&&(_0x2eeb71[_0x51fd1c(0xfb)]=_0x51fd1c(0x148));const _0x39a9fd=this['app'][_0x51fd1c(0x105)](),_0x1b23fd=this[_0x51fd1c(0xfc)]['getDataSource'](_0x2eeb71[_0x51fd1c(0x12f)]),_0x40bc53=await _0x1b23fd[_0x51fd1c(0x136)](_0x51fd1c(0x116)+this['config'][_0x51fd1c(0x152)][_0x2eeb71[_0x51fd1c(0x12f)]][_0x51fd1c(0xff)]+_0x51fd1c(0x137)+((_0x2eeb71===null||_0x2eeb71===void 0x0?void 0x0:_0x2eeb71[_0x51fd1c(0x153)])?_0x51fd1c(0x10b)+_0x2eeb71[_0x51fd1c(0x153)]+'\x22':_0x51fd1c(0xf2)+(_0x2eeb71[_0x51fd1c(0x10d)]||'')+'%\x22'))||[];for(let _0x10f7b1=0x0;_0x10f7b1<_0x40bc53[_0x51fd1c(0x12d)];_0x10f7b1++){const _0x221b36=_0x40bc53[_0x10f7b1]['table'];if((_0x2eeb71===null||_0x2eeb71===void 0x0?void 0x0:_0x2eeb71[_0x51fd1c(0x153)])&&(_0x2eeb71===null||_0x2eeb71===void 0x0?void 0x0:_0x2eeb71['table'])!=_0x221b36)continue;if((_0x2eeb71===null||_0x2eeb71===void 0x0?void 0x0:_0x2eeb71[_0x51fd1c(0x10d)])&&!(_0x221b36===null||_0x221b36===void 0x0?void 0x0:_0x221b36['startsWith'](_0x2eeb71['tableprefix'])))continue;const _0x405dd1=await _0x1b23fd[_0x51fd1c(0x136)](_0x51fd1c(0x12a)+this[_0x51fd1c(0x15d)]['dataSource'][_0x2eeb71[_0x51fd1c(0x12f)]][_0x51fd1c(0xff)]+_0x51fd1c(0x170)+_0x221b36+'\x27')||[];if((_0x3e50f2=_0x405dd1[0x0])===null||_0x3e50f2===void 0x0?void 0x0:_0x3e50f2[_0x51fd1c(0x130)]){const _0x2691a0={'tablename':_0x221b36,'Primary':{},'Fields':{},'Comment':(_0x1bf13a=_0x405dd1[0x0])===null||_0x1bf13a===void 0x0?void 0x0:_0x1bf13a[_0x51fd1c(0x130)],'vuedialog':_0x2eeb71[_0x51fd1c(0xf3)],'apporbasic':_0x2eeb71[_0x51fd1c(0xfb)]};_0x2691a0[_0x51fd1c(0x151)]=_0x221b36['substr']((_0x2eeb71===null||_0x2eeb71===void 0x0?void 0x0:_0x2eeb71['substr'])||0x0,_0x221b36[_0x51fd1c(0x12d)]),_0x2691a0[_0x51fd1c(0x163)]=(_0x2eeb71===null||_0x2eeb71===void 0x0?void 0x0:_0x2eeb71['module'])?_0x39a9fd+'/apps/'+_0x2691a0['tablestart'][_0x51fd1c(0x113)]('_')[0x0][_0x51fd1c(0x115)]():_0x39a9fd+'/'+_0x2eeb71[_0x51fd1c(0xfb)];const _0x458824=_0x2691a0[_0x51fd1c(0x151)][_0x51fd1c(0x113)]('_')['filter'](_0xac70d1=>_0xac70d1&&_0xac70d1[_0x51fd1c(0x16b)]());(_0x2eeb71===null||_0x2eeb71===void 0x0?void 0x0:_0x2eeb71[_0x51fd1c(0x110)])&&(await this[_0x51fd1c(0x16a)](_0x2691a0),_0x2691a0[_0x51fd1c(0x149)]=_0x458824[0x0][_0x51fd1c(0x115)]());_0x2691a0[_0x51fd1c(0xee)]=_0x458824['map'](_0x545ef6=>_0x545ef6[_0x51fd1c(0x115)]())[_0x51fd1c(0x109)](''),_0x2691a0[_0x51fd1c(0x169)]=_0x458824[_0x51fd1c(0x14e)](_0x1e2bea=>''+_0x1e2bea['substring'](0x0,0x1)[_0x51fd1c(0x11f)]()+_0x1e2bea[_0x51fd1c(0x15e)](0x1)['toLowerCase']())[_0x51fd1c(0x109)]('');(_0x2691a0===null||_0x2691a0===void 0x0?void 0x0:_0x2691a0[_0x51fd1c(0x149)])&&_0x458824[_0x51fd1c(0x12d)]>0x1&&_0x458824[0x0]['toLowerCase']()==_0x2691a0[_0x51fd1c(0x149)]?(_0x2691a0[_0x51fd1c(0x14d)]=_0x2691a0['tablestartUp']['substring'](_0x2691a0['moduleName'][_0x51fd1c(0x12d)],_0x2691a0[_0x51fd1c(0x169)][_0x51fd1c(0x12d)]),_0x2691a0[_0x51fd1c(0x13b)]=_0x2691a0[_0x51fd1c(0xee)]['substring'](_0x2691a0[_0x51fd1c(0x149)][_0x51fd1c(0x12d)],_0x2691a0[_0x51fd1c(0xee)][_0x51fd1c(0x12d)])):(_0x2691a0[_0x51fd1c(0x14d)]=_0x2691a0[_0x51fd1c(0x169)],_0x2691a0[_0x51fd1c(0x13b)]=_0x2691a0[_0x51fd1c(0xee)]);_0x2691a0[_0x51fd1c(0x160)]=_0x2691a0[_0x51fd1c(0x14d)][_0x51fd1c(0x150)](/\/{2,}/g,'/')[_0x51fd1c(0x143)](/[\/|A-Z]*[^A-Z]+/g)[_0x51fd1c(0x109)]('-')['toLowerCase']()[_0x51fd1c(0x150)](/\/\-/g,'/');for(let _0x207811 of await _0x1b23fd[_0x51fd1c(0x136)](_0x51fd1c(0x10c)+_0x221b36+'`')){_0x207811[_0x51fd1c(0xf5)]==_0x51fd1c(0x10a)?_0x2691a0[_0x51fd1c(0x159)]=_0x207811:_0x2691a0[_0x51fd1c(0x166)][_0x207811[_0x51fd1c(0x133)]]=_0x207811;}if((_0x2eeb71===null||_0x2eeb71===void 0x0?void 0x0:_0x2eeb71[_0x51fd1c(0x13a)])&&!fs['existsSync'](_0x2691a0[_0x51fd1c(0x163)]+_0x51fd1c(0x135)+_0x2691a0[_0x51fd1c(0x14d)]+_0x51fd1c(0x12e))){var _0x3dec31=[];if(typeof(_0x2eeb71===null||_0x2eeb71===void 0x0?void 0x0:_0x2eeb71[_0x51fd1c(0x13a)])==_0x51fd1c(0x126))_0x3dec31=[_0x2eeb71===null||_0x2eeb71===void 0x0?void 0x0:_0x2eeb71[_0x51fd1c(0x13a)]];else Array[_0x51fd1c(0x164)](_0x2eeb71===null||_0x2eeb71===void 0x0?void 0x0:_0x2eeb71[_0x51fd1c(0x13a)])?_0x3dec31=_0x2eeb71===null||_0x2eeb71===void 0x0?void 0x0:_0x2eeb71['controller']:_0x3dec31=[!![]];_0x2691a0[_0x51fd1c(0xf4)]=_0x3dec31,await(0x0,Search_1[_0x51fd1c(0x14f)])(_0x2691a0),await(0x0,Entities_1[_0x51fd1c(0x14f)])(_0x2691a0),await(0x0,Common_1[_0x51fd1c(0x14f)])(_0x2691a0),await(0x0,Event_1['default'])(_0x2691a0),await(0x0,Handler_1[_0x51fd1c(0x14f)])(_0x2691a0),await(0x0,Validator_1[_0x51fd1c(0x14f)])(_0x2691a0);for(let _0x5a2ae8 of _0x3dec31){_0x2691a0[_0x51fd1c(0x13a)]=_0x5a2ae8,await(0x0,Action_1[_0x51fd1c(0x14f)])(_0x2691a0);}}if(_0x2eeb71===null||_0x2eeb71===void 0x0?void 0x0:_0x2eeb71[_0x51fd1c(0x124)]){var _0x3dec31=[];if(typeof(_0x2eeb71===null||_0x2eeb71===void 0x0?void 0x0:_0x2eeb71[_0x51fd1c(0x13a)])==_0x51fd1c(0x126))_0x3dec31=[_0x2eeb71===null||_0x2eeb71===void 0x0?void 0x0:_0x2eeb71[_0x51fd1c(0x13a)]];else Array['isArray'](_0x2eeb71===null||_0x2eeb71===void 0x0?void 0x0:_0x2eeb71[_0x51fd1c(0x13a)])?_0x3dec31=_0x2eeb71===null||_0x2eeb71===void 0x0?void 0x0:_0x2eeb71[_0x51fd1c(0x13a)]:_0x3dec31=[!![]];if(_0x2eeb71[_0x51fd1c(0x124)]=='v2')for(let _0x31e5bc of _0x3dec31){_0x2691a0[_0x51fd1c(0x13a)]=_0x31e5bc;let _0x437d53=process['cwd']()+_0x51fd1c(0x146)+(typeof _0x2691a0['controller']==_0x51fd1c(0x126)?'/'+_0x2691a0[_0x51fd1c(0x13a)]:'');_0x2691a0[_0x51fd1c(0x149)]?_0x437d53=_0x437d53+(_0x51fd1c(0x125)+_0x2691a0[_0x51fd1c(0x149)]+_0x51fd1c(0x102)+_0x2691a0['tablestartUpShort']+_0x51fd1c(0x13c)):_0x437d53=_0x437d53+(_0x51fd1c(0x102)+_0x2691a0['apporbasic']+_0x51fd1c(0x102)+_0x2691a0[_0x51fd1c(0x14d)]+_0x51fd1c(0x13c)),!fs[_0x51fd1c(0x16f)](_0x437d53)&&(await(0x0,Api_2['default'])(_0x2691a0),await(0x0,Router_2[_0x51fd1c(0x14f)])(_0x2691a0),await(0x0,Layout_2['default'])(_0x2691a0),await(0x0,LayoutVue_2[_0x51fd1c(0x14f)])(_0x2691a0),await(0x0,Validator_3['default'])(_0x2691a0));}else{if(_0x2eeb71[_0x51fd1c(0x124)]=='v3')for(let _0xa4f148 of _0x3dec31){_0x2691a0['controller']=_0xa4f148;let _0x4cdfb8=process['cwd']()+_0x51fd1c(0x146)+(typeof _0x2691a0[_0x51fd1c(0x13a)]==_0x51fd1c(0x126)?'/'+_0x2691a0['controller']:'');_0x2691a0['moduleName']?_0x4cdfb8=_0x4cdfb8+(_0x51fd1c(0x125)+_0x2691a0[_0x51fd1c(0x149)]+_0x51fd1c(0x102)+_0x2691a0[_0x51fd1c(0x14d)]+'.js'):_0x4cdfb8=_0x4cdfb8+(_0x51fd1c(0x102)+_0x2691a0[_0x51fd1c(0xfb)]+'/apis/'+_0x2691a0[_0x51fd1c(0x14d)]+_0x51fd1c(0x13c)),!fs['existsSync'](_0x4cdfb8)&&(await(0x0,Api_3[_0x51fd1c(0x14f)])(_0x2691a0),await(0x0,Router_3['default'])(_0x2691a0),await(0x0,Layout_3[_0x51fd1c(0x14f)])(_0x2691a0),await(0x0,LayoutVue_3['default'])(_0x2691a0),await(0x0,Validator_4['default'])(_0x2691a0));}else for(let _0x3378d3 of _0x3dec31){_0x2691a0[_0x51fd1c(0x13a)]=_0x3378d3;let _0x1aed39=process['cwd']()+_0x51fd1c(0x146)+(typeof _0x2691a0[_0x51fd1c(0x13a)]==_0x51fd1c(0x126)?'/'+_0x2691a0[_0x51fd1c(0x13a)]:'');_0x2691a0[_0x51fd1c(0x149)]?_0x1aed39=_0x1aed39+(_0x51fd1c(0x139)+_0x2691a0[_0x51fd1c(0x149)]+_0x51fd1c(0x107)+_0x2691a0[_0x51fd1c(0x160)]+_0x51fd1c(0x13c)):_0x1aed39=_0x1aed39+(_0x51fd1c(0x144)+_0x2691a0['apporbasic']+_0x51fd1c(0x107)+_0x2691a0[_0x51fd1c(0x160)]+_0x51fd1c(0x13c)),!fs['existsSync'](_0x1aed39)&&(await(0x0,Api_1['default'])(_0x2691a0),await(0x0,Router_1['default'])(_0x2691a0),await(0x0,Layout_1[_0x51fd1c(0x14f)])(_0x2691a0),await(0x0,LayoutVue_1[_0x51fd1c(0x14f)])(_0x2691a0),await(0x0,Validator_2[_0x51fd1c(0x14f)])(_0x2691a0));}}}}else console[_0x51fd1c(0xf9)]('表:'+_0x221b36+'\x20表注释不存在');}return'die';}async[a3_0x519330(0x10e)](_0x2f81c3){const _0x4c71c1=a3_0x519330;var _0x393c32,_0x1b6cb3,_0x2381b7;if(!this['environment'][_0x4c71c1(0x101)]()||!((_0x393c32=this['config'])===null||_0x393c32===void 0x0?void 0x0:_0x393c32[_0x4c71c1(0x152)])||!this[_0x4c71c1(0x148)]['getConfig']('apitest'))throw new Error(_0x4c71c1(0x15a));!_0x2f81c3['connection']&&(_0x2f81c3[_0x4c71c1(0x12f)]='default');if(!((_0x2381b7=(_0x1b6cb3=this[_0x4c71c1(0x15d)])===null||_0x1b6cb3===void 0x0?void 0x0:_0x1b6cb3[_0x4c71c1(0x152)])===null||_0x2381b7===void 0x0?void 0x0:_0x2381b7[_0x2f81c3[_0x4c71c1(0x12f)]]))throw new Error(_0x4c71c1(0xfe)+_0x2f81c3[_0x4c71c1(0x12f)]);if(!this[_0x4c71c1(0xfc)][_0x4c71c1(0x165)](_0x2f81c3[_0x4c71c1(0x12f)]))throw new Error(_0x4c71c1(0x13f)+_0x2f81c3['connection']+_0x4c71c1(0x147));if(!this[_0x4c71c1(0xfc)][_0x4c71c1(0x12b)](_0x2f81c3[_0x4c71c1(0x12f)]))throw new Error(_0x4c71c1(0x13f)+_0x2f81c3[_0x4c71c1(0x12f)]+_0x4c71c1(0xf8));return!![];}async[a3_0x519330(0x16a)](_0x2a185c){const _0xc1525d=a3_0x519330,_0x350315=_0x2a185c[_0xc1525d(0x151)]['split']('_')[0x0][_0xc1525d(0x115)]();if(!fs[_0xc1525d(0x16f)](_0x2a185c[_0xc1525d(0x163)]+'/config.ts')){let _0x69b3ea=_0xc1525d(0x134)+(_0x2a185c[_0xc1525d(0x14b)]||_0x350315)+_0xc1525d(0x104);fs[_0xc1525d(0x112)](path[_0xc1525d(0xec)](_0x2a185c[_0xc1525d(0x163)]+_0xc1525d(0xf1)),{'recursive':!![]}),fs['writeFileSync'](_0x2a185c[_0xc1525d(0x163)]+_0xc1525d(0xf1),_0x69b3ea,_0xc1525d(0x120));}}};exports['ApicreateService']=ApicreateService,__decorate([(0x0,core_2[a3_0x519330(0x156)])(),__metadata(a3_0x519330(0x167),Object)],ApicreateService[a3_0x519330(0x128)],'app',void 0x0),__decorate([(0x0,core_2['Config'])(a3_0x519330(0x155)),__metadata(a3_0x519330(0x167),Object)],ApicreateService['prototype'],'config',void 0x0),__decorate([(0x0,core_2[a3_0x519330(0x108)])(),__metadata(a3_0x519330(0x167),core_1['MidwayEnvironmentService'])],ApicreateService[a3_0x519330(0x128)],a3_0x519330(0xed),void 0x0),__decorate([(0x0,core_2['Inject'])(),__metadata('design:type',typeorm_1[a3_0x519330(0xef)])],ApicreateService[a3_0x519330(0x128)],a3_0x519330(0xfc),void 0x0),exports['ApicreateService']=ApicreateService=__decorate([(0x0,core_2[a3_0x519330(0x162)])(a3_0x519330(0x122)),(0x0,core_2[a3_0x519330(0x140)])(core_2['ScopeEnum']['Singleton'])],ApicreateService);function a3_0x3b9b(){const _0x189407=['\x22\x20AND\x20table_name\x20=\x20\x27','object','../templateFun/Validator','dirname','environment','tablestartLow','TypeORMDataSourceManager','../templateFun/Common','/config.ts','LIKE\x20\x22','vuedialog','controllers','Key','getOwnPropertyDescriptor','(((.+)+)+)+$','\x20未连接','error','2876454iQcLbX','apporbasic','dataSourceManager','../templateFun/Action','typeorm\x20未配置数据源\x20','database','../templateVueV3/LayoutVue','isDevelopmentEnvironment','/apis/','createPlugin','\x27,\x0a\x20\x20\x20\x20description:\x20\x27\x27,\x0a\x20\x20\x20\x20middleware:\x20[],\x0a}','getBaseDir','4144779anFXem','/api/','Inject','join','PRI','=\x20\x22','SHOW\x20FULL\x20COLUMNS\x20FROM\x20`','tableprefix','checkOption','@midwayjs/core','module','basic','mkdirSync','split','search','toLowerCase','SELECT\x20TABLE_NAME\x20as\x20`table`\x20FROM\x20information_schema.TABLES\x20WHERE\x20TABLE_SCHEMA=\x22','../templateVue/Validator','defineProperty','../templateVueV2/Validator','../templateVueV2/Router','decorate','function','__decorate','38850530fBYFna','toUpperCase','utf-8','../templateVueV3/Validator','ApicreateService','1116087gazLsa','hasvue','/apis/apps/','string','../templateFun/Search','prototype','../templateVueV2/Layout','SELECT\x20TABLE_COMMENT\x20as\x20`comment`\x20FROM\x20information_schema.TABLES\x20WHERE\x20TABLE_SCHEMA=\x22','isConnected','../templateVue/Router','length','.ts','connection','comment','toString','../templateFun/Handler','Field','export\x20default\x20{\x0a\x20\x20\x20\x20name:\x20\x27','/exceptions/','query','\x22\x20AND\x20table_name\x20','959FofeZJ','/pages/apps/','controller','tablestartLowShort','.js','metadata','19790yEruES','typeorm\x20数据源\x20','Scope','../templateVue/LayoutVue','__esModule','match','/pages/','../templateVueV2/Api','/vue','\x20不存在','app','moduleName','../templateVueV2/LayoutVue','Comment','9hKavMO','tablestartUpShort','map','default','replace','tablestart','dataSource','table','../templateVue/Layout','typeorm','App','__metadata','createAction','Primary','无法生成','../templateVue/Api','../templateFun/Event','config','substring','3320496XXYige','tablestartUpShort2','50704qlUzyR','Provide','basedir','isArray','hasDataSource','Fields','design:type','constructor','tablestartUp','CreateModuleConfig','trim','1362Zfqspy','@midwayjs/typeorm','path','existsSync'];a3_0x3b9b=function(){return _0x189407;};return a3_0x3b9b();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a4_0x4772(){const _0x128bc3=['DTOSearch\x20}\x20from\x20\x27','DTOSearch,\x20pageinfo:\x20PageDTO)\x20{\x0a\x0a','mkdirSync','\x20\x20\x20\x20@Inject()\x20protected\x20ctx:\x20Context;\x0a\x0a','\x20\x20\x20\x20\x20\x20\x20\x20const\x20[pagelist,\x20pagetotal]\x20=\x20await\x20this.','defineProperty','toUpperCase','substring','Handler.list(conditions,\x20pageinfo);\x0a\x0a','Field','Handler.update(conditions,\x20params);\x0a\x0a','\x20\x20\x20\x20async\x20create(params:\x20','DTOSearch\x20=\x20{\x20','dirname','existsSync','2005645wgGVzZ','\x20\x20\x20\x20async\x20update(','utf-8','/Create\x27;\x0a','number','DTOCreate\x20}\x20from\x20\x27','\x20\x20\x20\x20@Action.post(\x22删除\x22,\x20\x27remove\x27)\x0a','toString','\x20\x20\x20\x20@Inject()\x20protected\x20','586140VTuzbW','mediumtext','text','\x20\x20\x20\x20@Action.post(\x27添加\x27,\x20\x27add\x27)\x0a','apply','default','@Action(__filename,\x20\x27','(((.+)+)+)+$','\x20\x20\x20\x20\x20\x20\x20\x20return\x20this.ctx.ok(tmpModel);\x0a','151798CsaFKe','/controller/','3742056CcIWhN','Handler\x20}\x20from\x20\x27','67308zLMIFO','search','112470dLvjSL','\x27)\x0a','DTOUpdate)\x20{\x0a','Handler.remove(conditions);\x0a\x0a','Handler:\x20','@/apps/','import\x20{\x20Inject,\x20Action,\x20PageDTO\x20}\x20from\x20\x27anncic-api\x27;\x0a\x0a','\x20\x20\x20\x20}\x0a\x0a\x0a','\x20\x20\x20\x20async\x20index(conditions:\x20','import\x20{\x20','/Update\x27;\x0a','\x20\x20\x20\x20async\x20detail(',',\x20params:\x20','DTOSearch)\x20{\x0a\x0a','../helper','constructor','51NPMUBE','path','Type','Controller\x20{\x0a\x0a','\x20\x20\x20\x20\x20\x20\x20\x20return\x20this.ctx.ok(removes);\x0a','writeFileSync','\x27;\x0a','Handler.create(params);\x0a\x0a','string','\x20\x20\x20\x20\x20\x20\x20\x20const\x20tmpModel\x20=\x20await\x20this.','DTOUpdate\x20}\x20from\x20\x27','\x20\x20\x20\x20@Action.get(\x27列表\x27,\x20\x27list\x27)\x0a','\x20\x20\x20\x20\x20\x20\x20\x20const\x20conditions:\x20','.ts','/handlers/','/Search\x27;\x0a\x0a','__esModule','\x20};\x0a\x0a','2031694ABiylu','\x20\x20\x20\x20\x20\x20\x20\x20const\x20removes\x20=\x20await\x20this.'];a4_0x4772=function(){return _0x128bc3;};return a4_0x4772();}function a4_0x37d2(_0x74c021,_0x3e50c7){const _0xd4796c=a4_0x4772();return a4_0x37d2=function(_0x59775a,_0x321705){_0x59775a=_0x59775a-0x11c;let _0x4772e5=_0xd4796c[_0x59775a];return _0x4772e5;},a4_0x37d2(_0x74c021,_0x3e50c7);}const a4_0xad7acc=a4_0x37d2;(function(_0x48dc67,_0x1d1795){const _0x445d98=a4_0x37d2,_0x1bc488=_0x48dc67();while(!![]){try{const _0x257be6=-parseInt(_0x445d98(0x126))/0x1+-parseInt(_0x445d98(0x120))/0x2+parseInt(_0x445d98(0x136))/0x3*(-parseInt(_0x445d98(0x124))/0x4)+parseInt(_0x445d98(0x159))/0x5+parseInt(_0x445d98(0x162))/0x6+-parseInt(_0x445d98(0x148))/0x7+parseInt(_0x445d98(0x122))/0x8;if(_0x257be6===_0x1d1795)break;else _0x1bc488['push'](_0x1bc488['shift']());}catch(_0xb13416){_0x1bc488['push'](_0x1bc488['shift']());}}}(a4_0x4772,0x314b2));const a4_0x321705=(function(){let _0xd86c35=!![];return function(_0x5e5c17,_0x499df3){const _0xc22e88=_0xd86c35?function(){const _0x3a6153=a4_0x37d2;if(_0x499df3){const _0xf630c2=_0x499df3[_0x3a6153(0x166)](_0x5e5c17,arguments);return _0x499df3=null,_0xf630c2;}}:function(){};return _0xd86c35=![],_0xc22e88;};}()),a4_0x59775a=a4_0x321705(this,function(){const _0x78b1a0=a4_0x37d2;return a4_0x59775a[_0x78b1a0(0x160)]()[_0x78b1a0(0x125)](_0x78b1a0(0x11e))[_0x78b1a0(0x160)]()[_0x78b1a0(0x135)](a4_0x59775a)['search'](_0x78b1a0(0x11e));});a4_0x59775a();'use strict';Object[a4_0xad7acc(0x14f)](exports,a4_0xad7acc(0x146),{'value':!![]}),exports[a4_0xad7acc(0x11c)]=default_1;const fs=require('fs'),path_1=require(a4_0xad7acc(0x137)),helper_1=require(a4_0xad7acc(0x134));async function default_1({controller:_0xace35d,tablestartUp:_0x3d12e0,tablestartUpShort:_0x201787,basedir:_0x3319fa,Primary:_0x35492c,Comment:_0x209dc2,moduleName:_0x11998f,apporbasic:_0xd10649}){const _0x278172=a4_0xad7acc;if(_0xace35d){const _0x2f1e8f=_0x3319fa+(typeof _0xace35d=='string'?_0x278172(0x121)+_0xace35d+'/'+_0x201787+_0x278172(0x143):_0x278172(0x121)+_0x201787+_0x278172(0x143));if(!fs[_0x278172(0x158)](_0x2f1e8f)){let _0x587489='',_0x5129e3=[_0x278172(0x164),_0x278172(0x163),_0x278172(0x13e)]['indexOf']((0x0,helper_1['getProp'])(_0x35492c[_0x278172(0x138)]))==-0x1;_0x587489+='import\x20{\x20Context\x20}\x20from\x20\x27@midwayjs/koa\x27;\x0a',_0x587489+=_0x278172(0x12c),_0x587489+='import\x20{\x20'+_0x3d12e0+_0x278172(0x123)+(typeof _0x11998f=='string'?_0x278172(0x12b)+_0x11998f:'@/'+_0xd10649)+_0x278172(0x144)+_0x201787+_0x278172(0x13c),_0x587489+=_0x278172(0x12f)+_0x3d12e0+_0x278172(0x15e)+(typeof _0x11998f==_0x278172(0x13e)?_0x278172(0x12b)+_0x11998f:'@/'+_0xd10649)+'/validators/'+_0x201787+_0x278172(0x15c),_0x587489+='import\x20{\x20'+_0x3d12e0+_0x278172(0x140)+(typeof _0x11998f==_0x278172(0x13e)?_0x278172(0x12b)+_0x11998f:'@/'+_0xd10649)+'/validators/'+_0x201787+_0x278172(0x130),_0x587489+=_0x278172(0x12f)+_0x3d12e0+_0x278172(0x14a)+(typeof _0x11998f==_0x278172(0x13e)?'@/apps/'+_0x11998f:'@/'+_0xd10649)+'/validators/'+_0x201787+_0x278172(0x145),_0x587489+=_0x278172(0x11d)+_0x209dc2+'\x27)\x0a',_0x587489+='export\x20class\x20'+(typeof _0xace35d==_0x278172(0x13e)?_0xace35d[_0x278172(0x151)](0x0,0x1)[_0x278172(0x150)]()+_0xace35d[_0x278172(0x151)](0x1):'')+_0x3d12e0+_0x278172(0x139),_0x587489+=_0x278172(0x14d),_0x587489+=_0x278172(0x161)+_0x3d12e0+_0x278172(0x12a)+_0x3d12e0+'Handler\x0a\x0a\x0a',_0x587489+=_0x278172(0x141),_0x587489+=_0x278172(0x12e)+_0x3d12e0+_0x278172(0x14b),_0x587489+=_0x278172(0x14e)+_0x3d12e0+_0x278172(0x152),_0x587489+='\x20\x20\x20\x20\x20\x20\x20\x20return\x20this.ctx.ok(pagelist,\x20{\x20pageinfo,\x20pagetotal\x20});\x0a',_0x587489+=_0x278172(0x12d),_0x587489+='\x20\x20\x20\x20@Action.get(\x27详情\x27,\x20\x27detail/:'+_0x35492c[_0x278172(0x153)]+_0x278172(0x127),_0x587489+=_0x278172(0x131)+_0x35492c[_0x278172(0x153)]+':\x20'+(_0x5129e3?_0x278172(0x15d):_0x278172(0x13e))+')\x20{\x0a',_0x587489+=_0x278172(0x142)+_0x3d12e0+'DTOSearch\x20=\x20{\x20'+_0x35492c[_0x278172(0x153)]+_0x278172(0x147),_0x587489+='\x20\x20\x20\x20\x20\x20\x20\x20const\x20tmpModel\x20=\x20await\x20this.'+_0x3d12e0+'Handler.detail(conditions);\x0a\x0a',_0x587489+=_0x278172(0x11f),_0x587489+=_0x278172(0x12d),_0x587489+=_0x278172(0x165),_0x587489+=_0x278172(0x155)+_0x3d12e0+'DTOCreate)\x20{\x0a\x0a',_0x587489+=_0x278172(0x13f)+_0x3d12e0+_0x278172(0x13d),_0x587489+=_0x278172(0x11f),_0x587489+=_0x278172(0x12d),_0x587489+='\x20\x20\x20\x20@Action.post(\x27修改\x27,\x20\x27edit/:'+_0x35492c[_0x278172(0x153)]+_0x278172(0x127),_0x587489+=_0x278172(0x15a)+_0x35492c[_0x278172(0x153)]+':\x20'+(_0x5129e3?'number':'string')+_0x278172(0x132)+_0x3d12e0+_0x278172(0x128),_0x587489+=_0x278172(0x142)+_0x3d12e0+_0x278172(0x156)+_0x35492c['Field']+_0x278172(0x147),_0x587489+=_0x278172(0x13f)+_0x3d12e0+_0x278172(0x154),_0x587489+=_0x278172(0x11f),_0x587489+=_0x278172(0x12d),_0x587489+=_0x278172(0x15f),_0x587489+='\x20\x20\x20\x20async\x20remove(conditions:\x20'+_0x3d12e0+_0x278172(0x133),_0x587489+=_0x278172(0x149)+_0x3d12e0+_0x278172(0x129),_0x587489+=_0x278172(0x13a),_0x587489+='\x20\x20\x20\x20}\x0a\x0a\x0a',_0x587489+='}',!fs[_0x278172(0x158)]((0x0,path_1['dirname'])(_0x2f1e8f))&&fs[_0x278172(0x14c)]((0x0,path_1[_0x278172(0x157)])(_0x2f1e8f),{'recursive':!![]}),fs[_0x278172(0x13b)](_0x2f1e8f,_0x587489,_0x278172(0x15b));}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a5_0x2383aa=a5_0x2ad9;function a5_0x2ad9(_0x207a9e,_0x402675){const _0x56b63c=a5_0xe070();return a5_0x2ad9=function(_0x4061c4,_0x15a92e){_0x4061c4=_0x4061c4-0xb1;let _0xe0709b=_0x56b63c[_0x4061c4];return _0xe0709b;},a5_0x2ad9(_0x207a9e,_0x402675);}function a5_0xe070(){const _0x1b9d36=['8278656gwZquh','__esModule','utf-8','search','\x20*\x20**/\x0a','582060hQHFHz','89202fpzaRQ','-错误信息设置\x0a','32105392AJaFBE','../helper','\x20\x20\x20\x20static\x20readonly\x20','1030740pvZBMf','dirname','\x20\x20\x20\x20@AnnEnumMsg(\x27','4Pbfkfk','constructor','Comment','/exceptions/','toUpperCase','Error\x20extends\x20AnnError\x20{\x0a\x0a','_ON:\x20number\x20=\x201;\x0a\x0a','203ZeWlqk','1273008WApkPa','indexOf','tinyint','writeFileSync','_OFF:\x20number\x20=\x200;\x0a\x0a\x0a','default','\x20*\x20','mkdirSync','\x27)\x0a','apply','Type','/enums/','-常量设置\x0a','export\x20class\x20','3MBQurY','.ts','/**\x0a','1022046UedgSb','toString','defineProperty','getProp','\x27,\x20\x27开启','9gHepeh','existsSync','path'];a5_0xe070=function(){return _0x1b9d36;};return a5_0xe070();}(function(_0xe7d642,_0x4af8f1){const _0xb2833a=a5_0x2ad9,_0x32bf62=_0xe7d642();while(!![]){try{const _0x3ecefe=-parseInt(_0xb2833a(0xb1))/0x1+parseInt(_0xb2833a(0xc2))/0x2*(parseInt(_0xb2833a(0xbf))/0x3)+parseInt(_0xb2833a(0xd8))/0x4*(parseInt(_0xb2833a(0xd5))/0x5)+-parseInt(_0xb2833a(0xd0))/0x6*(parseInt(_0xb2833a(0xdf))/0x7)+-parseInt(_0xb2833a(0xca))/0x8*(parseInt(_0xb2833a(0xc7))/0x9)+parseInt(_0xb2833a(0xcf))/0xa+parseInt(_0xb2833a(0xd2))/0xb;if(_0x3ecefe===_0x4af8f1)break;else _0x32bf62['push'](_0x32bf62['shift']());}catch(_0x4c4615){_0x32bf62['push'](_0x32bf62['shift']());}}}(a5_0xe070,0xe92ba));const a5_0x15a92e=(function(){let _0x5734bf=!![];return function(_0x58c5f6,_0x3bfd7a){const _0x54be58=_0x5734bf?function(){const _0x16bcbd=a5_0x2ad9;if(_0x3bfd7a){const _0x471f1d=_0x3bfd7a[_0x16bcbd(0xba)](_0x58c5f6,arguments);return _0x3bfd7a=null,_0x471f1d;}}:function(){};return _0x5734bf=![],_0x54be58;};}()),a5_0x4061c4=a5_0x15a92e(this,function(){const _0x313256=a5_0x2ad9;return a5_0x4061c4[_0x313256(0xc3)]()[_0x313256(0xcd)]('(((.+)+)+)+$')[_0x313256(0xc3)]()[_0x313256(0xd9)](a5_0x4061c4)['search']('(((.+)+)+)+$');});a5_0x4061c4();'use strict';Object[a5_0x2383aa(0xc4)](exports,a5_0x2383aa(0xcb),{'value':!![]}),exports[a5_0x2383aa(0xb6)]=default_1;const fs=require('fs'),path=require(a5_0x2383aa(0xc9)),helper_1=require(a5_0x2383aa(0xd3));async function default_1({tablestartUp:_0x246b58,tablestartUpShort:_0x54386e,basedir:_0x505d43,Comment:_0x35f1b2,Fields:_0x484f52}){await entity_emum({'tablestartUp':_0x246b58,'tablestartUpShort':_0x54386e,'basedir':_0x505d43,'Comment':_0x35f1b2,'Fields':_0x484f52}),await entity_exceptions({'tablestartUp':_0x246b58,'tablestartUpShort':_0x54386e,'basedir':_0x505d43,'Comment':_0x35f1b2});}async function entity_emum({tablestartUp:_0x1ad781,tablestartUpShort:_0x126ca1,basedir:_0x33c7aa,Comment:_0x436043,Fields:_0x427a1a}){const _0x152ab4=a5_0x2383aa,_0x4c77ff=_0x33c7aa+(_0x152ab4(0xbc)+_0x126ca1+_0x152ab4(0xc0));if(!fs['existsSync'](_0x4c77ff)){let _0x5bbf9f='';_0x5bbf9f+=_0x152ab4(0xc1),_0x5bbf9f+=_0x152ab4(0xb7)+_0x436043+_0x152ab4(0xbd),_0x5bbf9f+='\x20*\x20**/\x0a',_0x5bbf9f+=_0x152ab4(0xbe)+_0x1ad781+'Enum\x20{\x0a\x0a';for(let _0x581a73 in _0x427a1a){let _0x754bcd=_0x427a1a[_0x581a73],_0x3c1f22=(0x0,helper_1[_0x152ab4(0xc5)])(_0x754bcd[_0x152ab4(0xbb)]);[_0x152ab4(0xb3)][_0x152ab4(0xb2)](_0x3c1f22)!=-0x1&&(_0x5bbf9f+=_0x152ab4(0xd7)+_0x581a73+_0x152ab4(0xc6)+_0x754bcd[_0x152ab4(0xda)]+_0x152ab4(0xb9),_0x5bbf9f+=_0x152ab4(0xd4)+_0x581a73[_0x152ab4(0xdc)]()+_0x152ab4(0xde),_0x5bbf9f+='\x20\x20\x20\x20@AnnEnumMsg(\x27'+_0x581a73+'\x27,\x20\x27关闭'+_0x754bcd[_0x152ab4(0xda)]+_0x152ab4(0xb9),_0x5bbf9f+=_0x152ab4(0xd4)+_0x581a73[_0x152ab4(0xdc)]()+_0x152ab4(0xb5));}_0x5bbf9f+='}',!fs[_0x152ab4(0xc8)](path[_0x152ab4(0xd6)](_0x4c77ff))&&fs[_0x152ab4(0xb8)](path[_0x152ab4(0xd6)](_0x4c77ff),{'recursive':!![]}),fs[_0x152ab4(0xb4)](_0x4c77ff,_0x5bbf9f,_0x152ab4(0xcc));}}async function entity_exceptions({tablestartUp:_0x4c7f3e,tablestartUpShort:_0x4d782c,basedir:_0x4190ba,Comment:_0x3256b9}){const _0x854d92=a5_0x2383aa,_0x46a88f=_0x4190ba+(_0x854d92(0xdb)+_0x4d782c+_0x854d92(0xc0));if(!fs['existsSync'](_0x46a88f)){let _0x4590d3='';_0x4590d3+=_0x854d92(0xc1),_0x4590d3+=_0x854d92(0xb7)+_0x3256b9+_0x854d92(0xd1),_0x4590d3+=_0x854d92(0xce),_0x4590d3+=_0x854d92(0xbe)+_0x4c7f3e+_0x854d92(0xdd),_0x4590d3+='}',!fs['existsSync'](path[_0x854d92(0xd6)](_0x46a88f))&&fs[_0x854d92(0xb8)](path[_0x854d92(0xd6)](_0x46a88f),{'recursive':!![]}),fs[_0x854d92(0xb4)](_0x46a88f,_0x4590d3,_0x854d92(0xcc));}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a6_0x4f3a53=a6_0x17d0;(function(_0x2ef37b,_0x149572){const _0x41b1ab=a6_0x17d0,_0x83000b=_0x2ef37b();while(!![]){try{const _0x48487d=-parseInt(_0x41b1ab(0x1ee))/0x1+parseInt(_0x41b1ab(0x1dd))/0x2*(parseInt(_0x41b1ab(0x1a0))/0x3)+-parseInt(_0x41b1ab(0x1e4))/0x4*(-parseInt(_0x41b1ab(0x1a3))/0x5)+-parseInt(_0x41b1ab(0x1f2))/0x6*(-parseInt(_0x41b1ab(0x1e9))/0x7)+parseInt(_0x41b1ab(0x1d3))/0x8*(parseInt(_0x41b1ab(0x1d1))/0x9)+parseInt(_0x41b1ab(0x1e2))/0xa*(parseInt(_0x41b1ab(0x1d9))/0xb)+-parseInt(_0x41b1ab(0x1b3))/0xc;if(_0x48487d===_0x149572)break;else _0x83000b['push'](_0x83000b['shift']());}catch(_0x59ebae){_0x83000b['push'](_0x83000b['shift']());}}}(a6_0x12ff,0x55977));function a6_0x17d0(_0x3bd709,_0x31f92d){const _0x849d74=a6_0x12ff();return a6_0x17d0=function(_0xce4a03,_0x1b2cca){_0xce4a03=_0xce4a03-0x194;let _0x12ffa2=_0x849d74[_0xce4a03];return _0x12ffa2;},a6_0x17d0(_0x3bd709,_0x31f92d);}const a6_0x1b2cca=(function(){let _0x2a2348=!![];return function(_0x22124e,_0x1c9b2b){const _0x37d047=_0x2a2348?function(){if(_0x1c9b2b){const _0x305a41=_0x1c9b2b['apply'](_0x22124e,arguments);return _0x1c9b2b=null,_0x305a41;}}:function(){};return _0x2a2348=![],_0x37d047;};}()),a6_0xce4a03=a6_0x1b2cca(this,function(){const _0x193a4a=a6_0x17d0;return a6_0xce4a03[_0x193a4a(0x198)]()[_0x193a4a(0x1ec)]('(((.+)+)+)+$')[_0x193a4a(0x198)]()[_0x193a4a(0x19e)](a6_0xce4a03)['search'](_0x193a4a(0x1e6));});a6_0xce4a03();'use strict';function a6_0x12ff(){const _0x175754=[':\x20string;\x0a\x0a','text','@ProvideEntity({\x20tableName:\x20\x27','\x27,\x20length:\x20188\x20})\x0a','date','\x20\x20\x20\x20@DeleteDateColumn({\x20comment:\x20\x27删除时间\x27,\x20type:\x20\x27timestamp\x27,\x20select:\x20false\x20})\x0a','/searchs/','float','/entities/','\x20*\x20','\x20\x20\x20\x20@Column(\x27mediumtext\x27,\x20{\x20comment:\x20\x27','@ProvideSearch(','\x20\x20\x20\x20@Column(\x27enum\x27,\x20{\x20comment:\x20\x27','\x20*\x20**/\x0a','mkdirSync','displayorder','default','export\x20class\x20','YES','\x20\x20\x20\x20@Column({\x20comment:\x20\x27默认显示排序\x27,\x20nullable:\x20true,\x20unique:\x20false\x20})\x0a',',\x20unique:\x20false\x20})\x0a','dirname',',\x20Column\x20}\x20from\x20\x27@anncic-api/typeorm\x27;\x0a\x0a','getEnum','63IfClKJ','-实体处理器\x0a','339752bCFePz','import\x20{\x20','import\x20{\x20ProvideEntity,\x20ProvideSearch,\x20','created_at','updated_at','enum','82049WzSrjg','string','existsSync','writeFileSync','2OkZrWD','Entity>{\x0a\x0a','true','timestamp','\x20\x20\x20\x20@UpdateDateColumn({\x20comment:\x20\x27修改时间\x27,\x20type:\x20\x27timestamp\x27\x20})\x0a','530CvTCfM','\x20\x20\x20\x20','77312JTrtcD','mediumtext','(((.+)+)+)+$','/**\x0a','import\x20{\x20CreateDateColumn,\x20UpdateDateColumn,\x20DeleteDateColumn\x20}\x20from\x20\x27@anncic-api/typeorm\x27;\x0a','2042047tSAfPw','@/apps/','Comment','search','\x27\x20|\x20\x27','431832rzPlwm','/index.ts','join','\x20})\x0a','12oZDGbl','\x27\x20},\x20{\x20orderBy:\x20{\x20displayorder:\x20\x27DESC\x27\x20}\x20})\x0a','Entity\x20}\x20from\x20\x27','Entity)\x0a','\x20\x20\x20\x20@Column({\x20comment:\x20\x27','@ProvideRepository(','defineProperty',':\x20\x27','\x20\x20\x20\x20@Column(\x27tinyint\x27,\x20{\x20comment:\x20\x27','toString','\x27,\x20\x27','longtext','false','//\x20import\x20{\x20ManyToOne,\x20JoinColumn\x20}\x20from\x20\x27@anncic-api/typeorm\x27;\x0a','\x20\x20\x20\x20@Column(\x27timestamp\x27,\x20{\x20comment:\x20\x27','constructor','\x20\x20\x20\x20created_at:\x20Date;\x0a\x0a','366423aOycvk','\x27]\x20})\x0a','Field','25KFPQki','__esModule','Null','%column%','getProp','Type','\x27,\x20nullable:\x20','\x20\x20\x20\x20@Column(\x27json\x27,\x20{\x20comment:\x20\x27',':\x20number;\x0a\x0a','path','\x27,\x20precision:\x2010,\x20scale:\x202,\x20default:\x200.00,\x20nullable:\x20','decimal','\x27,\x20enum:\x20[\x27','/entity\x27;\x0a\x0a','Search\x20}\x20from\x20\x27','json','8549016udAwgU','\x27;\x0a\x0a','tinyint','Search)\x0a','\x20\x20\x20\x20deleted_at:\x20Date;\x0a\x0a','/entity.ts'];a6_0x12ff=function(){return _0x175754;};return a6_0x12ff();}Object[a6_0x4f3a53(0x195)](exports,a6_0x4f3a53(0x1a4),{'value':!![]}),exports[a6_0x4f3a53(0x1c9)]=default_1;const fs=require('fs'),path_1=require(a6_0x4f3a53(0x1ac)),helper_1=require('../helper');async function default_1({tablename:_0x41f175,tablestartUp:_0x31f14a,tablestartUpShort:_0x5c6070,basedir:_0x5625b9,Primary:_0x5d886a,Fields:_0x5508ff,Comment:_0x133a3a,moduleName:_0x2e2964,apporbasic:_0xe87588}){await entity({'tablename':_0x41f175,'tablestartUp':_0x31f14a,'tablestartUpShort':_0x5c6070,'basedir':_0x5625b9,'Primary':_0x5d886a,'Fields':_0x5508ff,'Comment':_0x133a3a,'moduleName':_0x2e2964,'apporbasic':_0xe87588}),await repository({'tablestartUp':_0x31f14a,'tablestartUpShort':_0x5c6070,'basedir':_0x5625b9,'Comment':_0x133a3a,'moduleName':_0x2e2964,'apporbasic':_0xe87588});}async function entity({tablename:_0x5c2942,tablestartUp:_0x54898a,tablestartUpShort:_0x2e0ed5,basedir:_0x37cc04,Primary:_0x22acc3,Fields:_0x306722,Comment:_0x36e6ac,moduleName:_0x3ddbdd,apporbasic:_0x38e23c}){const _0x4817f4=a6_0x4f3a53,_0x31c984=_0x37cc04+(_0x4817f4(0x1c1)+_0x2e0ed5+_0x4817f4(0x1b8));if(!fs[_0x4817f4(0x1db)](_0x31c984)){let _0x488ba8='',_0x2e9e37='',_0x308dfe=['text',_0x4817f4(0x1e5),_0x4817f4(0x1da)]['indexOf']((0x0,helper_1[_0x4817f4(0x1a7)])(_0x22acc3[_0x4817f4(0x1a8)]))==-0x1;_0x308dfe?(_0x488ba8+='\x20\x20\x20\x20@PrimaryGeneratedColumn()\x0a',_0x488ba8+='\x20\x20\x20\x20'+_0x22acc3[_0x4817f4(0x1a2)]+':\x20number;\x0a\x0a'):(_0x488ba8+='\x20\x20\x20\x20@PrimaryColumn({\x20comment:\x20\x27'+(_0x22acc3[_0x4817f4(0x1eb)]||'标识')+_0x4817f4(0x1bc),_0x488ba8+=_0x4817f4(0x1e3)+_0x22acc3[_0x4817f4(0x1a2)]+_0x4817f4(0x1b9));for(let _0x561def in _0x306722){let _0x413e96=_0x306722[_0x561def],_0x356b9e=(0x0,helper_1[_0x4817f4(0x1a7)])(_0x413e96['Type']);if(_0x413e96[_0x4817f4(0x1a2)]==_0x4817f4(0x1c8)||_0x413e96[_0x4817f4(0x1a2)]==_0x4817f4(0x1d6)||_0x413e96['Field']==_0x4817f4(0x1d7)||_0x413e96[_0x4817f4(0x1a2)]=='deleted_at')continue;if(_0x356b9e==_0x4817f4(0x1b2))_0x488ba8+=_0x4817f4(0x1aa)+_0x413e96[_0x4817f4(0x1eb)]+_0x4817f4(0x1a9)+(_0x413e96[_0x4817f4(0x1a5)]==_0x4817f4(0x1cb)?_0x4817f4(0x1df):_0x4817f4(0x19b))+_0x4817f4(0x1cd),_0x488ba8+=_0x4817f4(0x1e3)+_0x413e96[_0x4817f4(0x1a2)]+':\x20any\x20|\x20any[];\x0a\x0a';else{if(_0x356b9e==_0x4817f4(0x1d8)){let _0x870d9c=(0x0,helper_1[_0x4817f4(0x1d0)])(_0x413e96[_0x4817f4(0x1a8)]);_0x488ba8+=_0x4817f4(0x1c5)+_0x413e96[_0x4817f4(0x1eb)]+'\x27,\x20default:\x20\x27'+(_0x870d9c[0x0]||'')+_0x4817f4(0x1af)+_0x870d9c[_0x4817f4(0x1f0)](_0x4817f4(0x199))+_0x4817f4(0x1a1),_0x488ba8+='\x20\x20\x20\x20'+_0x413e96[_0x4817f4(0x1a2)]+_0x4817f4(0x196)+_0x870d9c['join'](_0x4817f4(0x1ed))+'\x27;\x0a\x0a';}else{if(_0x356b9e==_0x4817f4(0x1c0))_0x488ba8+='\x20\x20\x20\x20@Column(\x27float\x27,\x20{\x20comment:\x20\x27'+_0x413e96[_0x4817f4(0x1eb)]+_0x4817f4(0x1ad)+(_0x413e96[_0x4817f4(0x1a5)]==_0x4817f4(0x1cb)?'true':_0x4817f4(0x19b))+_0x4817f4(0x1f1),_0x488ba8+=_0x4817f4(0x1e3)+_0x413e96[_0x4817f4(0x1a2)]+_0x4817f4(0x1ab);else{if(_0x356b9e=='double')_0x488ba8+='\x20\x20\x20\x20@Column(\x27double\x27,\x20{\x20comment:\x20\x27'+_0x413e96[_0x4817f4(0x1eb)]+_0x4817f4(0x1ad)+(_0x413e96[_0x4817f4(0x1a5)]=='YES'?_0x4817f4(0x1df):_0x4817f4(0x19b))+_0x4817f4(0x1f1),_0x488ba8+=_0x4817f4(0x1e3)+_0x413e96['Field']+_0x4817f4(0x1ab);else{if(_0x356b9e==_0x4817f4(0x1ae))_0x488ba8+='\x20\x20\x20\x20@Column(\x27decimal\x27,\x20{\x20comment:\x20\x27'+_0x413e96[_0x4817f4(0x1eb)]+'\x27,\x20precision:\x2024,\x20scale:\x202,\x20default:\x200.00,\x20nullable:\x20'+(_0x413e96[_0x4817f4(0x1a5)]==_0x4817f4(0x1cb)?_0x4817f4(0x1df):_0x4817f4(0x19b))+_0x4817f4(0x1f1),_0x488ba8+=_0x4817f4(0x1e3)+_0x413e96[_0x4817f4(0x1a2)]+_0x4817f4(0x1ab);else{if(_0x356b9e=='number')_0x488ba8+='\x20\x20\x20\x20@Column({\x20comment:\x20\x27'+_0x413e96['Comment']+_0x4817f4(0x1a9)+(_0x413e96[_0x4817f4(0x1a5)]=='YES'?_0x4817f4(0x1df):_0x4817f4(0x19b))+',\x20unique:\x20false\x20})\x0a',_0x488ba8+=_0x4817f4(0x1e3)+_0x413e96['Field']+_0x4817f4(0x1ab);else{if(_0x356b9e==_0x4817f4(0x1b5))_0x488ba8+=_0x4817f4(0x197)+_0x413e96[_0x4817f4(0x1eb)]+_0x4817f4(0x1a9)+(_0x413e96[_0x4817f4(0x1a5)]=='YES'?_0x4817f4(0x1df):_0x4817f4(0x19b))+',\x20unique:\x20false\x20})\x0a',_0x488ba8+=_0x4817f4(0x1e3)+_0x413e96[_0x4817f4(0x1a2)]+':\x20number;\x0a\x0a';else{if(_0x356b9e==_0x4817f4(0x1bd))_0x488ba8+='\x20\x20\x20\x20@Column(\x27date\x27,\x20{\x20comment:\x20\x27'+_0x413e96[_0x4817f4(0x1eb)]+'\x27,\x20nullable:\x20'+(_0x413e96[_0x4817f4(0x1a5)]==_0x4817f4(0x1cb)?_0x4817f4(0x1df):_0x4817f4(0x19b))+_0x4817f4(0x1f1),_0x488ba8+='\x20\x20\x20\x20'+_0x413e96[_0x4817f4(0x1a2)]+':\x20string;\x0a\x0a';else{if(_0x356b9e=='datetime')_0x488ba8+=_0x4817f4(0x19d)+_0x413e96[_0x4817f4(0x1eb)]+_0x4817f4(0x1a9)+(_0x413e96[_0x4817f4(0x1a5)]==_0x4817f4(0x1cb)?_0x4817f4(0x1df):_0x4817f4(0x19b))+'\x20})\x0a',_0x488ba8+=_0x4817f4(0x1e3)+_0x413e96[_0x4817f4(0x1a2)]+_0x4817f4(0x1b9);else{if(_0x356b9e==_0x4817f4(0x1e0))_0x488ba8+=_0x4817f4(0x19d)+_0x413e96[_0x4817f4(0x1eb)]+_0x4817f4(0x1a9)+(_0x413e96[_0x4817f4(0x1a5)]==_0x4817f4(0x1cb)?'true':_0x4817f4(0x19b))+_0x4817f4(0x1f1),_0x488ba8+=_0x4817f4(0x1e3)+_0x413e96['Field']+_0x4817f4(0x1b9);else{if(_0x356b9e==_0x4817f4(0x1ba))_0x488ba8+='\x20\x20\x20\x20@Column(\x27text\x27,\x20{\x20comment:\x20\x27'+_0x413e96[_0x4817f4(0x1eb)]+_0x4817f4(0x1a9)+(_0x413e96[_0x4817f4(0x1a5)]=='YES'?_0x4817f4(0x1df):_0x4817f4(0x19b))+_0x4817f4(0x1cd),_0x488ba8+='\x20\x20\x20\x20'+_0x413e96['Field']+_0x4817f4(0x1b9);else{if(_0x356b9e==_0x4817f4(0x19a))_0x488ba8+='\x20\x20\x20\x20@Column(\x27longtext\x27,\x20{\x20comment:\x20\x27'+_0x413e96[_0x4817f4(0x1eb)]+'\x27,\x20nullable:\x20'+(_0x413e96['Null']==_0x4817f4(0x1cb)?_0x4817f4(0x1df):_0x4817f4(0x19b))+',\x20unique:\x20false\x20})\x0a',_0x488ba8+=_0x4817f4(0x1e3)+_0x413e96[_0x4817f4(0x1a2)]+_0x4817f4(0x1b9);else _0x356b9e==_0x4817f4(0x1e5)?(_0x488ba8+=_0x4817f4(0x1c3)+_0x413e96['Comment']+'\x27,\x20nullable:\x20'+(_0x413e96['Null']==_0x4817f4(0x1cb)?_0x4817f4(0x1df):_0x4817f4(0x19b))+_0x4817f4(0x1cd),_0x488ba8+=_0x4817f4(0x1e3)+_0x413e96[_0x4817f4(0x1a2)]+_0x4817f4(0x1b9)):(_0x488ba8+=_0x4817f4(0x1f6)+_0x413e96[_0x4817f4(0x1eb)]+_0x4817f4(0x1a9)+(_0x413e96[_0x4817f4(0x1a5)]==_0x4817f4(0x1cb)?_0x4817f4(0x1df):_0x4817f4(0x19b))+_0x4817f4(0x1cd),_0x488ba8+=_0x4817f4(0x1e3)+_0x413e96['Field']+_0x4817f4(0x1b9));}}}}}}}}}}}}_0x2e9e37+=_0x4817f4(0x19c),_0x2e9e37+=_0x4817f4(0x1e8),_0x2e9e37+=_0x4817f4(0x1d5)+(_0x308dfe?'PrimaryGeneratedColumn':'PrimaryColumn')+_0x4817f4(0x1cf),_0x2e9e37+=_0x4817f4(0x1d4)+_0x54898a+_0x4817f4(0x1b1)+(typeof _0x3ddbdd==_0x4817f4(0x1da)?_0x4817f4(0x1ea)+_0x3ddbdd:'@/'+_0x38e23c)+_0x4817f4(0x1bf)+_0x2e0ed5+_0x4817f4(0x1b4),_0x2e9e37+=_0x4817f4(0x1e7),_0x2e9e37+=_0x4817f4(0x1c2)+_0x36e6ac+'-实体\x0a',_0x2e9e37+='\x20*\x20**/\x0a',_0x2e9e37+=_0x4817f4(0x1c4)+_0x54898a+_0x4817f4(0x1b6),_0x2e9e37+=_0x4817f4(0x1bb)+_0x5c2942+_0x4817f4(0x1f3),_0x2e9e37+=_0x4817f4(0x1ca)+_0x54898a+'Entity\x20{\x0a\x0a',_0x2e9e37+=_0x4817f4(0x1a6),_0x2e9e37+=_0x4817f4(0x1cc),_0x2e9e37+='\x20\x20\x20\x20displayorder:\x20number;\x0a\x0a',_0x2e9e37+='\x20\x20\x20\x20@CreateDateColumn({\x20comment:\x20\x27创建时间\x27,\x20type:\x20\x27timestamp\x27\x20})\x0a',_0x2e9e37+=_0x4817f4(0x19f),_0x2e9e37+=_0x4817f4(0x1e1),_0x2e9e37+='\x20\x20\x20\x20updated_at:\x20Date;\x0a\x0a',_0x2e9e37+=_0x4817f4(0x1be),_0x2e9e37+=_0x4817f4(0x1b7),_0x2e9e37+='}',_0x2e9e37=_0x2e9e37['replace']('%column%',_0x488ba8),!fs[_0x4817f4(0x1db)]((0x0,path_1[_0x4817f4(0x1ce)])(_0x31c984))&&fs['mkdirSync']((0x0,path_1[_0x4817f4(0x1ce)])(_0x31c984),{'recursive':!![]}),fs[_0x4817f4(0x1dc)](_0x31c984,_0x2e9e37,'utf-8');}}async function repository({tablestartUp:_0x49ff16,tablestartUpShort:_0x429a3d,basedir:_0x14c6e8,Comment:_0x1a556b,moduleName:_0x47199f,apporbasic:_0x129ee8}){const _0x41c4bc=a6_0x4f3a53,_0x1ac14d=_0x14c6e8+('/entities/'+_0x429a3d+_0x41c4bc(0x1ef));if(!fs[_0x41c4bc(0x1db)](_0x1ac14d)){let _0x5b6d24='';_0x5b6d24+=_0x41c4bc(0x1e7),_0x5b6d24+=_0x41c4bc(0x1c2)+_0x1a556b+_0x41c4bc(0x1d2),_0x5b6d24+=_0x41c4bc(0x1c6),_0x5b6d24+='import\x20{\x20ProvideRepository,\x20Repository\x20}\x20from\x20\x27@anncic-api/typeorm\x27;\x0a',_0x5b6d24+='import\x20{\x20'+_0x49ff16+_0x41c4bc(0x1f4)+(typeof _0x47199f==_0x41c4bc(0x1da)?_0x41c4bc(0x1ea)+_0x47199f:'@/'+_0x129ee8)+_0x41c4bc(0x1c1)+_0x429a3d+_0x41c4bc(0x1b0),_0x5b6d24+=_0x41c4bc(0x194)+_0x49ff16+_0x41c4bc(0x1f5),_0x5b6d24+=_0x41c4bc(0x1ca)+_0x49ff16+'\x20extends\x20Repository<'+_0x49ff16+_0x41c4bc(0x1de),_0x5b6d24+='}',!fs[_0x41c4bc(0x1db)]((0x0,path_1[_0x41c4bc(0x1ce)])(_0x1ac14d))&&fs[_0x41c4bc(0x1c7)]((0x0,path_1[_0x41c4bc(0x1ce)])(_0x1ac14d),{'recursive':!![]}),fs['writeFileSync'](_0x1ac14d,_0x5b6d24,'utf-8');}}
|
|
1
|
+
function a6_0x45e2(_0x47a9a4,_0x3e6cf7){const _0x394d84=a6_0xa655();return a6_0x45e2=function(_0x387605,_0x54261b){_0x387605=_0x387605-0xe2;let _0xa655be=_0x394d84[_0x387605];return _0xa655be;},a6_0x45e2(_0x47a9a4,_0x3e6cf7);}const a6_0x5efd2d=a6_0x45e2;(function(_0x5e5ad9,_0x36cc74){const _0x1d0d5a=a6_0x45e2,_0x58ce95=_0x5e5ad9();while(!![]){try{const _0x2a9944=-parseInt(_0x1d0d5a(0x12a))/0x1*(parseInt(_0x1d0d5a(0x12c))/0x2)+parseInt(_0x1d0d5a(0x143))/0x3+parseInt(_0x1d0d5a(0x12b))/0x4+parseInt(_0x1d0d5a(0x135))/0x5*(parseInt(_0x1d0d5a(0xec))/0x6)+parseInt(_0x1d0d5a(0x114))/0x7+-parseInt(_0x1d0d5a(0xfd))/0x8*(parseInt(_0x1d0d5a(0xf4))/0x9)+-parseInt(_0x1d0d5a(0xe6))/0xa*(parseInt(_0x1d0d5a(0xe2))/0xb);if(_0x2a9944===_0x36cc74)break;else _0x58ce95['push'](_0x58ce95['shift']());}catch(_0x476727){_0x58ce95['push'](_0x58ce95['shift']());}}}(a6_0xa655,0x45f59));const a6_0x54261b=(function(){let _0xaa6cb7=!![];return function(_0x1c08b5,_0x5b734c){const _0x1b0c89=_0xaa6cb7?function(){if(_0x5b734c){const _0x249a78=_0x5b734c['apply'](_0x1c08b5,arguments);return _0x5b734c=null,_0x249a78;}}:function(){};return _0xaa6cb7=![],_0x1b0c89;};}()),a6_0x387605=a6_0x54261b(this,function(){const _0x3a097a=a6_0x45e2;return a6_0x387605[_0x3a097a(0x121)]()[_0x3a097a(0x103)](_0x3a097a(0xef))[_0x3a097a(0x121)]()[_0x3a097a(0x139)](a6_0x387605)['search']('(((.+)+)+)+$');});a6_0x387605();'use strict';Object[a6_0x5efd2d(0x145)](exports,a6_0x5efd2d(0xe5),{'value':!![]}),exports[a6_0x5efd2d(0x112)]=default_1;const fs=require('fs'),path_1=require(a6_0x5efd2d(0xeb)),helper_1=require(a6_0x5efd2d(0xfb));async function default_1({tablename:_0x111bc4,tablestartUp:_0x427157,tablestartUpShort:_0x2ed75c,basedir:_0x263196,Primary:_0x46c213,Fields:_0x1034bb,Comment:_0x1d1505,moduleName:_0x409555,apporbasic:_0x48891f}){await entity({'tablename':_0x111bc4,'tablestartUp':_0x427157,'tablestartUpShort':_0x2ed75c,'basedir':_0x263196,'Primary':_0x46c213,'Fields':_0x1034bb,'Comment':_0x1d1505,'moduleName':_0x409555,'apporbasic':_0x48891f}),await repository({'tablestartUp':_0x427157,'tablestartUpShort':_0x2ed75c,'basedir':_0x263196,'Comment':_0x1d1505,'moduleName':_0x409555,'apporbasic':_0x48891f});}function a6_0xa655(){const _0x2b7dff=['703182XByqzP','float','\x20*\x20**/\x0a','(((.+)+)+)+$','\x20\x20\x20\x20','PrimaryColumn','enum','-实体\x0a','18YZMgoE',',\x20Column\x20}\x20from\x20\x27@anncic-api/typeorm\x27;\x0a\x0a','import\x20{\x20','/entities/','Comment','updated_at','\x20\x20\x20\x20@Column(\x27double\x27,\x20{\x20comment:\x20\x27','../helper','Null','765736NrEXRv','deleted_at','\x27\x20|\x20\x27','@/apps/',',\x20unique:\x20false\x20})\x0a','import\x20{\x20CreateDateColumn,\x20UpdateDateColumn,\x20DeleteDateColumn\x20}\x20from\x20\x27@anncic-api/typeorm\x27;\x0a','search','\x27,\x20enum:\x20[\x27',':\x20string;\x0a\x0a','\x20\x20\x20\x20@CreateDateColumn({\x20comment:\x20\x27创建时间\x27,\x20type:\x20\x27timestamp\x27\x20})\x0a','\x20\x20\x20\x20@Column(\x27json\x27,\x20{\x20comment:\x20\x27','PrimaryGeneratedColumn','Entity\x20}\x20from\x20\x27','\x27,\x20\x27','YES','\x20\x20\x20\x20@Column(\x27timestamp\x27,\x20{\x20comment:\x20\x27','\x27,\x20precision:\x2010,\x20scale:\x202,\x20default:\x200.00,\x20nullable:\x20','created_at','//\x20import\x20{\x20ManyToOne,\x20JoinColumn\x20}\x20from\x20\x27@anncic-api/typeorm\x27;\x0a','/entity\x27;\x0a\x0a','\x27,\x20nullable:\x20','default','\x20\x20\x20\x20@Column(\x27decimal\x27,\x20{\x20comment:\x20\x27','3051146EeQJJn',':\x20number;\x0a\x0a','\x20\x20\x20\x20created_at:\x20Date;\x0a\x0a','Search)\x0a','tinyint','\x20\x20\x20\x20@Column(\x27enum\x27,\x20{\x20comment:\x20\x27',':\x20\x27','datetime',':\x20any\x20|\x20any[];\x0a\x0a','existsSync','Type','writeFileSync','\x20\x20\x20\x20updated_at:\x20Date;\x0a\x0a','toString','json','Entity\x20{\x0a\x0a','\x20\x20\x20\x20@DeleteDateColumn({\x20comment:\x20\x27删除时间\x27,\x20type:\x20\x27timestamp\x27,\x20select:\x20false\x20})\x0a','dirname','utf-8','import\x20{\x20ProvideEntity,\x20ProvideSearch,\x20','\x27,\x20length:\x20188\x20})\x0a','/entity.ts','8kxOQyZ','140592vJWRLs','85686mcyWcc','%column%','\x27,\x20precision:\x2024,\x20scale:\x202,\x20default:\x200.00,\x20nullable:\x20','/**\x0a','@ProvideEntity({\x20tableName:\x20\x27','-实体处理器\x0a','\x20\x20\x20\x20@Column({\x20comment:\x20\x27','Entity>{\x0a\x0a','join','5VKsnkg','\x27\x20},\x20{\x20orderBy:\x20{\x20displayorder:\x20\x27DESC\x27\x20}\x20})\x0a','string','date','constructor','false','\x20\x20\x20\x20@Column(\x27longtext\x27,\x20{\x20comment:\x20\x27','true','text','displayorder','import\x20{\x20ProvideRepository,\x20Repository\x20}\x20from\x20\x27@anncic-api/typeorm\x27;\x0a','/index.ts','number','getProp','805320RprxqA','\x20*\x20','defineProperty','\x20})\x0a','Field','timestamp','30404xjISed','\x20\x20\x20\x20deleted_at:\x20Date;\x0a\x0a','mediumtext','__esModule','130rmONig','\x27;\x0a\x0a','\x20\x20\x20\x20@Column({\x20comment:\x20\x27默认显示排序\x27,\x20nullable:\x20true,\x20unique:\x20false\x20})\x0a','getEnum','export\x20class\x20','path'];a6_0xa655=function(){return _0x2b7dff;};return a6_0xa655();}async function entity({tablename:_0x11e4e6,tablestartUp:_0x3752a0,tablestartUpShort:_0x3267dc,basedir:_0x1fcd8a,Primary:_0x3f809b,Fields:_0x57d357,Comment:_0x56e79c,moduleName:_0x19b691,apporbasic:_0x4789d1}){const _0x3da36d=a6_0x5efd2d,_0x2feac1=_0x1fcd8a+(_0x3da36d(0xf7)+_0x3267dc+_0x3da36d(0x129));if(!fs[_0x3da36d(0x11d)](_0x2feac1)){let _0x1c3931='',_0x227202='',_0x428af5=[_0x3da36d(0x13d),_0x3da36d(0xe4),'string']['indexOf']((0x0,helper_1[_0x3da36d(0x142)])(_0x3f809b[_0x3da36d(0x11e)]))==-0x1;_0x428af5?(_0x1c3931+='\x20\x20\x20\x20@PrimaryGeneratedColumn()\x0a',_0x1c3931+=_0x3da36d(0xf0)+_0x3f809b[_0x3da36d(0x147)]+':\x20number;\x0a\x0a'):(_0x1c3931+='\x20\x20\x20\x20@PrimaryColumn({\x20comment:\x20\x27'+(_0x3f809b[_0x3da36d(0xf8)]||'标识')+_0x3da36d(0x128),_0x1c3931+='\x20\x20\x20\x20'+_0x3f809b[_0x3da36d(0x147)]+_0x3da36d(0x105));for(let _0x52fd2c in _0x57d357){let _0x2a70a1=_0x57d357[_0x52fd2c],_0x389781=(0x0,helper_1['getProp'])(_0x2a70a1[_0x3da36d(0x11e)]);if(_0x2a70a1['Field']==_0x3da36d(0x13e)||_0x2a70a1[_0x3da36d(0x147)]==_0x3da36d(0x10e)||_0x2a70a1[_0x3da36d(0x147)]==_0x3da36d(0xf9)||_0x2a70a1[_0x3da36d(0x147)]==_0x3da36d(0xfe))continue;if(_0x389781==_0x3da36d(0x122))_0x1c3931+=_0x3da36d(0x107)+_0x2a70a1[_0x3da36d(0xf8)]+'\x27,\x20nullable:\x20'+(_0x2a70a1[_0x3da36d(0xfc)]=='YES'?_0x3da36d(0x13c):_0x3da36d(0x13a))+_0x3da36d(0x101),_0x1c3931+=_0x3da36d(0xf0)+_0x2a70a1[_0x3da36d(0x147)]+_0x3da36d(0x11c);else{if(_0x389781==_0x3da36d(0xf2)){let _0x58841e=(0x0,helper_1[_0x3da36d(0xe9)])(_0x2a70a1[_0x3da36d(0x11e)]);_0x1c3931+=_0x3da36d(0x119)+_0x2a70a1[_0x3da36d(0xf8)]+'\x27,\x20default:\x20\x27'+(_0x58841e[0x0]||'')+_0x3da36d(0x104)+_0x58841e[_0x3da36d(0x134)](_0x3da36d(0x10a))+'\x27]\x20})\x0a',_0x1c3931+=_0x3da36d(0xf0)+_0x2a70a1['Field']+_0x3da36d(0x11a)+_0x58841e[_0x3da36d(0x134)](_0x3da36d(0xff))+'\x27;\x0a\x0a';}else{if(_0x389781==_0x3da36d(0xed))_0x1c3931+='\x20\x20\x20\x20@Column(\x27float\x27,\x20{\x20comment:\x20\x27'+_0x2a70a1[_0x3da36d(0xf8)]+_0x3da36d(0x10d)+(_0x2a70a1[_0x3da36d(0xfc)]==_0x3da36d(0x10b)?_0x3da36d(0x13c):_0x3da36d(0x13a))+_0x3da36d(0x146),_0x1c3931+='\x20\x20\x20\x20'+_0x2a70a1[_0x3da36d(0x147)]+_0x3da36d(0x115);else{if(_0x389781=='double')_0x1c3931+=_0x3da36d(0xfa)+_0x2a70a1[_0x3da36d(0xf8)]+_0x3da36d(0x10d)+(_0x2a70a1[_0x3da36d(0xfc)]=='YES'?_0x3da36d(0x13c):_0x3da36d(0x13a))+_0x3da36d(0x146),_0x1c3931+=_0x3da36d(0xf0)+_0x2a70a1[_0x3da36d(0x147)]+_0x3da36d(0x115);else{if(_0x389781=='decimal')_0x1c3931+=_0x3da36d(0x113)+_0x2a70a1[_0x3da36d(0xf8)]+_0x3da36d(0x12e)+(_0x2a70a1[_0x3da36d(0xfc)]=='YES'?_0x3da36d(0x13c):_0x3da36d(0x13a))+_0x3da36d(0x146),_0x1c3931+=_0x3da36d(0xf0)+_0x2a70a1[_0x3da36d(0x147)]+_0x3da36d(0x115);else{if(_0x389781==_0x3da36d(0x141))_0x1c3931+=_0x3da36d(0x132)+_0x2a70a1[_0x3da36d(0xf8)]+_0x3da36d(0x111)+(_0x2a70a1[_0x3da36d(0xfc)]==_0x3da36d(0x10b)?_0x3da36d(0x13c):_0x3da36d(0x13a))+_0x3da36d(0x101),_0x1c3931+='\x20\x20\x20\x20'+_0x2a70a1[_0x3da36d(0x147)]+_0x3da36d(0x115);else{if(_0x389781==_0x3da36d(0x118))_0x1c3931+='\x20\x20\x20\x20@Column(\x27tinyint\x27,\x20{\x20comment:\x20\x27'+_0x2a70a1[_0x3da36d(0xf8)]+_0x3da36d(0x111)+(_0x2a70a1['Null']==_0x3da36d(0x10b)?_0x3da36d(0x13c):_0x3da36d(0x13a))+_0x3da36d(0x101),_0x1c3931+='\x20\x20\x20\x20'+_0x2a70a1[_0x3da36d(0x147)]+_0x3da36d(0x115);else{if(_0x389781==_0x3da36d(0x138))_0x1c3931+='\x20\x20\x20\x20@Column(\x27date\x27,\x20{\x20comment:\x20\x27'+_0x2a70a1[_0x3da36d(0xf8)]+_0x3da36d(0x111)+(_0x2a70a1[_0x3da36d(0xfc)]==_0x3da36d(0x10b)?_0x3da36d(0x13c):'false')+_0x3da36d(0x146),_0x1c3931+='\x20\x20\x20\x20'+_0x2a70a1[_0x3da36d(0x147)]+_0x3da36d(0x105);else{if(_0x389781==_0x3da36d(0x11b))_0x1c3931+=_0x3da36d(0x10c)+_0x2a70a1['Comment']+_0x3da36d(0x111)+(_0x2a70a1[_0x3da36d(0xfc)]==_0x3da36d(0x10b)?_0x3da36d(0x13c):'false')+_0x3da36d(0x146),_0x1c3931+=_0x3da36d(0xf0)+_0x2a70a1[_0x3da36d(0x147)]+_0x3da36d(0x105);else{if(_0x389781==_0x3da36d(0x148))_0x1c3931+='\x20\x20\x20\x20@Column(\x27timestamp\x27,\x20{\x20comment:\x20\x27'+_0x2a70a1[_0x3da36d(0xf8)]+_0x3da36d(0x111)+(_0x2a70a1['Null']=='YES'?'true':_0x3da36d(0x13a))+_0x3da36d(0x146),_0x1c3931+='\x20\x20\x20\x20'+_0x2a70a1['Field']+_0x3da36d(0x105);else{if(_0x389781==_0x3da36d(0x13d))_0x1c3931+='\x20\x20\x20\x20@Column(\x27text\x27,\x20{\x20comment:\x20\x27'+_0x2a70a1['Comment']+_0x3da36d(0x111)+(_0x2a70a1['Null']==_0x3da36d(0x10b)?_0x3da36d(0x13c):_0x3da36d(0x13a))+_0x3da36d(0x101),_0x1c3931+='\x20\x20\x20\x20'+_0x2a70a1[_0x3da36d(0x147)]+_0x3da36d(0x105);else{if(_0x389781=='longtext')_0x1c3931+=_0x3da36d(0x13b)+_0x2a70a1[_0x3da36d(0xf8)]+'\x27,\x20nullable:\x20'+(_0x2a70a1['Null']==_0x3da36d(0x10b)?_0x3da36d(0x13c):'false')+_0x3da36d(0x101),_0x1c3931+=_0x3da36d(0xf0)+_0x2a70a1[_0x3da36d(0x147)]+_0x3da36d(0x105);else _0x389781=='mediumtext'?(_0x1c3931+='\x20\x20\x20\x20@Column(\x27mediumtext\x27,\x20{\x20comment:\x20\x27'+_0x2a70a1['Comment']+'\x27,\x20nullable:\x20'+(_0x2a70a1[_0x3da36d(0xfc)]==_0x3da36d(0x10b)?'true':'false')+',\x20unique:\x20false\x20})\x0a',_0x1c3931+=_0x3da36d(0xf0)+_0x2a70a1[_0x3da36d(0x147)]+':\x20string;\x0a\x0a'):(_0x1c3931+=_0x3da36d(0x132)+_0x2a70a1[_0x3da36d(0xf8)]+_0x3da36d(0x111)+(_0x2a70a1[_0x3da36d(0xfc)]==_0x3da36d(0x10b)?_0x3da36d(0x13c):'false')+_0x3da36d(0x101),_0x1c3931+=_0x3da36d(0xf0)+_0x2a70a1[_0x3da36d(0x147)]+_0x3da36d(0x105));}}}}}}}}}}}}_0x227202+=_0x3da36d(0x10f),_0x227202+=_0x3da36d(0x102),_0x227202+=_0x3da36d(0x127)+(_0x428af5?_0x3da36d(0x108):_0x3da36d(0xf1))+_0x3da36d(0xf5),_0x227202+=_0x3da36d(0xf6)+_0x3752a0+'Search\x20}\x20from\x20\x27'+(typeof _0x19b691==_0x3da36d(0x137)?_0x3da36d(0x100)+_0x19b691:'@/'+_0x4789d1)+'/searchs/'+_0x3267dc+_0x3da36d(0xe7),_0x227202+=_0x3da36d(0x12f),_0x227202+=_0x3da36d(0x144)+_0x56e79c+_0x3da36d(0xf3),_0x227202+=_0x3da36d(0xee),_0x227202+='@ProvideSearch('+_0x3752a0+_0x3da36d(0x117),_0x227202+=_0x3da36d(0x130)+_0x11e4e6+_0x3da36d(0x136),_0x227202+=_0x3da36d(0xea)+_0x3752a0+_0x3da36d(0x123),_0x227202+='%column%',_0x227202+=_0x3da36d(0xe8),_0x227202+='\x20\x20\x20\x20displayorder:\x20number;\x0a\x0a',_0x227202+=_0x3da36d(0x106),_0x227202+=_0x3da36d(0x116),_0x227202+='\x20\x20\x20\x20@UpdateDateColumn({\x20comment:\x20\x27修改时间\x27,\x20type:\x20\x27timestamp\x27\x20})\x0a',_0x227202+=_0x3da36d(0x120),_0x227202+=_0x3da36d(0x124),_0x227202+=_0x3da36d(0xe3),_0x227202+='}',_0x227202=_0x227202['replace'](_0x3da36d(0x12d),_0x1c3931),!fs[_0x3da36d(0x11d)]((0x0,path_1[_0x3da36d(0x125)])(_0x2feac1))&&fs['mkdirSync']((0x0,path_1[_0x3da36d(0x125)])(_0x2feac1),{'recursive':!![]}),fs['writeFileSync'](_0x2feac1,_0x227202,_0x3da36d(0x126));}}async function repository({tablestartUp:_0x1fbd93,tablestartUpShort:_0xcff001,basedir:_0x54dfaf,Comment:_0x2221fb,moduleName:_0x56d8dc,apporbasic:_0x448166}){const _0x3a712d=a6_0x5efd2d,_0x126f19=_0x54dfaf+(_0x3a712d(0xf7)+_0xcff001+_0x3a712d(0x140));if(!fs['existsSync'](_0x126f19)){let _0x12c812='';_0x12c812+=_0x3a712d(0x12f),_0x12c812+=_0x3a712d(0x144)+_0x2221fb+_0x3a712d(0x131),_0x12c812+=_0x3a712d(0xee),_0x12c812+=_0x3a712d(0x13f),_0x12c812+=_0x3a712d(0xf6)+_0x1fbd93+_0x3a712d(0x109)+(typeof _0x56d8dc==_0x3a712d(0x137)?_0x3a712d(0x100)+_0x56d8dc:'@/'+_0x448166)+_0x3a712d(0xf7)+_0xcff001+_0x3a712d(0x110),_0x12c812+='@ProvideRepository('+_0x1fbd93+'Entity)\x0a',_0x12c812+=_0x3a712d(0xea)+_0x1fbd93+'\x20extends\x20Repository<'+_0x1fbd93+_0x3a712d(0x133),_0x12c812+='}',!fs['existsSync']((0x0,path_1[_0x3a712d(0x125)])(_0x126f19))&&fs['mkdirSync']((0x0,path_1[_0x3a712d(0x125)])(_0x126f19),{'recursive':!![]}),fs[_0x3a712d(0x11f)](_0x126f19,_0x12c812,'utf-8');}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a7_0x30fa7a=a7_0x2133;(function(_0x14e0eb,_0x4f1a06){const _0x15a467=a7_0x2133,_0x14618a=_0x14e0eb();while(!![]){try{const _0x472f56=parseInt(_0x15a467(0x163))/0x1*(-parseInt(_0x15a467(0x151))/0x2)+-parseInt(_0x15a467(0x162))/0x3+-parseInt(_0x15a467(0x16e))/0x4*(-parseInt(_0x15a467(0x15e))/0x5)+-parseInt(_0x15a467(0x156))/0x6+parseInt(_0x15a467(0x15a))/0x7+-parseInt(_0x15a467(0x158))/0x8*(-parseInt(_0x15a467(0x165))/0x9)+-parseInt(_0x15a467(0x14d))/0xa*(parseInt(_0x15a467(0x161))/0xb);if(_0x472f56===_0x4f1a06)break;else _0x14618a['push'](_0x14618a['shift']());}catch(_0x1c4438){_0x14618a['push'](_0x14618a['shift']());}}}(a7_0x5d78,0xad9a2));const a7_0x47ee5c=(function(){let _0x12a43e=!![];return function(_0x13f3f5,_0xd571d){const _0x171d57=_0x12a43e?function(){if(_0xd571d){const _0x300999=_0xd571d['apply'](_0x13f3f5,arguments);return _0xd571d=null,_0x300999;}}:function(){};return _0x12a43e=![],_0x171d57;};}()),a7_0x59a135=a7_0x47ee5c(this,function(){const _0x1f2678=a7_0x2133;return a7_0x59a135[_0x1f2678(0x153)]()[_0x1f2678(0x167)](_0x1f2678(0x15f))[_0x1f2678(0x153)]()[_0x1f2678(0x169)](a7_0x59a135)['search']('(((.+)+)+)+$');});function a7_0x2133(_0x4ec9d4,_0x43f33c){const _0xca3e5f=a7_0x5d78();return a7_0x2133=function(_0x59a135,_0x47ee5c){_0x59a135=_0x59a135-0x14d;let _0x5d784a=_0xca3e5f[_0x59a135];return _0x5d784a;},a7_0x2133(_0x4ec9d4,_0x43f33c);}a7_0x59a135();'use strict';function a7_0x5d78(){const _0x1fb314=['export\x20class\x20','import\x20{\x20Inject,\x20InjectRepository\x20}\x20from\x20\x27@anncic-api/typeorm\x27;\x0a\x0a','writeFileSync','676620bAtsxQ','.ts','367210iIggUC','__esModule','\x20}\x20from\x20\x27','import\x20{\x20Event,\x20EventService\x20}\x20from\x20\x27@anncic-api/event\x27;\x0a','2hQgyUU','dirname','toString','@Event()\x0a','mkdirSync','1016058QBoZFd','@/apps/','54864IXmqRc','\x20\x20\x20\x20@Inject()\x20protected\x20EventService:\x20EventService;\x0a\x0a','6429353dzEYNM','Event\x20{\x0a\x0a','existsSync','/listeners/','5gpScRq','(((.+)+)+)+$','path','132JQqQYO','300591iEPEBa','400174ohdloC','\x20\x20\x20\x20@InjectRepository(','963VbRmqA','/entities/','search','defineProperty','constructor','utf-8'];a7_0x5d78=function(){return _0x1fb314;};return a7_0x5d78();}Object[a7_0x30fa7a(0x168)](exports,a7_0x30fa7a(0x14e),{'value':!![]}),exports['default']=default_1;const fs=require('fs'),path_1=require(a7_0x30fa7a(0x160));async function default_1({tablestartUp:_0x420708,tablestartUpShort:_0x746cd5,basedir:_0x26ba3c,moduleName:_0x53e846,apporbasic:_0x3931ad}){const _0x573c40=a7_0x30fa7a,_0x36a4c5=_0x26ba3c+(_0x573c40(0x15d)+_0x746cd5+_0x573c40(0x16f));if(!fs[_0x573c40(0x15c)](_0x36a4c5)){let _0x1ddf06='';_0x1ddf06+=_0x573c40(0x150),_0x1ddf06+=_0x573c40(0x16c),_0x1ddf06+='import\x20{\x20'+_0x420708+_0x573c40(0x14f)+(typeof _0x53e846=='string'?_0x573c40(0x157)+_0x53e846:'@/'+_0x3931ad)+_0x573c40(0x166)+_0x746cd5+'\x27;\x0a\x0a',_0x1ddf06+=_0x573c40(0x154),_0x1ddf06+=_0x573c40(0x16b)+_0x420708+_0x573c40(0x15b),_0x1ddf06+=_0x573c40(0x159),_0x1ddf06+=_0x573c40(0x164)+_0x420708+')\x20protected\x20'+_0x420708+':\x20'+_0x420708+';\x0a\x0a\x0a',_0x1ddf06+='}',!fs[_0x573c40(0x15c)]((0x0,path_1['dirname'])(_0x36a4c5))&&fs[_0x573c40(0x155)]((0x0,path_1[_0x573c40(0x152)])(_0x36a4c5),{'recursive':!![]}),fs[_0x573c40(0x16d)](_0x36a4c5,_0x1ddf06,_0x573c40(0x16a));}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a8_0x3b1bdd=a8_0x5c78;function a8_0x5c78(_0x4ce71a,_0x5b8b2f){const _0x4106c4=a8_0x3759();return a8_0x5c78=function(_0xfcc4d6,_0x2199dc){_0xfcc4d6=_0xfcc4d6-0x1d8;let _0x3759d5=_0x4106c4[_0xfcc4d6];return _0x3759d5;},a8_0x5c78(_0x4ce71a,_0x5b8b2f);}(function(_0x26b18d,_0x3d7bf8){const _0x2cceec=a8_0x5c78,_0x30d53b=_0x26b18d();while(!![]){try{const _0x22c977=parseInt(_0x2cceec(0x1dc))/0x1*(parseInt(_0x2cceec(0x1e6))/0x2)+parseInt(_0x2cceec(0x225))/0x3+parseInt(_0x2cceec(0x1f8))/0x4*(-parseInt(_0x2cceec(0x21a))/0x5)+parseInt(_0x2cceec(0x200))/0x6+parseInt(_0x2cceec(0x22b))/0x7+-parseInt(_0x2cceec(0x1db))/0x8*(-parseInt(_0x2cceec(0x20b))/0x9)+-parseInt(_0x2cceec(0x233))/0xa;if(_0x22c977===_0x3d7bf8)break;else _0x30d53b['push'](_0x30d53b['shift']());}catch(_0xc5ea84){_0x30d53b['push'](_0x30d53b['shift']());}}}(a8_0x3759,0x51875));const a8_0x2199dc=(function(){let _0x4bfdea=!![];return function(_0x3de952,_0x2845d1){const _0x44f048=_0x4bfdea?function(){const _0x1766ca=a8_0x5c78;if(_0x2845d1){const _0x1c0266=_0x2845d1[_0x1766ca(0x1d9)](_0x3de952,arguments);return _0x2845d1=null,_0x1c0266;}}:function(){};return _0x4bfdea=![],_0x44f048;};}()),a8_0xfcc4d6=a8_0x2199dc(this,function(){const _0x3e34bb=a8_0x5c78;return a8_0xfcc4d6[_0x3e34bb(0x1d8)]()[_0x3e34bb(0x1dd)](_0x3e34bb(0x227))[_0x3e34bb(0x1d8)]()[_0x3e34bb(0x211)](a8_0xfcc4d6)[_0x3e34bb(0x1dd)](_0x3e34bb(0x227));});a8_0xfcc4d6();'use strict';Object['defineProperty'](exports,a8_0x3b1bdd(0x237),{'value':!![]}),exports[a8_0x3b1bdd(0x1f1)]=default_1;const fs=require('fs'),path_1=require(a8_0x3b1bdd(0x1fc));function a8_0x3759(){const _0x2191d8=['\x20\x20\x20\x20@InjectRepository(','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20throw\x20new\x20','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20return\x20search.getManyAndCount();\x0a','\x20*\x20**/\x0a','\x20\x20\x20\x20@Inject()\x20CacheService:\x20CacheService;\x0a','\x20\x20\x20\x20\x20\x20\x20\x20this.','12602250ewNxEv','\x20\x20\x20\x20\x20\x20\x20\x20const\x20restores:\x20any\x20=\x20[],\x20tmpModels\x20=\x20await\x20this.','\x20\x20\x20\x20\x20\x20\x20\x20const\x20deletes:\x20any\x20=\x20[],\x20tmpModels\x20=\x20await\x20this.','\x20\x20\x20\x20\x20\x20\x20\x20for\x20(let\x20tmpModel\x20of\x20tmpModels)\x20{\x0a','__esModule','toString','apply','Entity>,\x20pageinfo?:\x20SearchPaginate,\x20options:\x20SearchOptions\x20=\x20{}):\x20Promise<[','80JywiOw','9059VHikVG','search','\x20\x20\x20\x20\x20\x20\x20\x20return\x20await\x20this.','string','\x20\x20\x20\x20async\x20create(params:\x20',';\x0a\x0a\x0a','Error._NOTFIND_,\x20{\x20message:\x20\x27','/Update\x27;\x0a','import\x20{\x20','Error(','26rdcpAp','\x20\x20\x20\x20\x20\x20\x20\x20});\x0a\x0a','.search(conditions,\x20{},\x20options).then(async\x20search\x20=>\x20{\x0a\x0a','\x20\x20\x20\x20/**\x0a','Entity>,\x20options:\x20SearchOptions\x20=\x20{})\x20{\x0a','existsSync','\x20\x20\x20\x20\x20\x20\x20\x20return\x20restores\x0a','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20});\x0a','\x20\x20\x20\x20async\x20detail(conditions?:\x20SearchParams<','DTOCreate\x20}\x20from\x20\x27','\x20\x20\x20\x20\x20\x20\x20\x20return\x20deletes\x0a','default','Entity[],\x20number]>\x20{\x0a','\x20\x20\x20\x20\x20*\x20恢复删除的数据\x0a','\x20\x20\x20\x20\x20*\x20数据详情\x0a','@/apps/','DTOCreate)\x20{\x0a','\x20\x20\x20\x20async\x20remove(conditions:\x20SearchParams<','780484umZKMe','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20return\x20search.getOneOrFail().catch(()\x20=>\x20{\x0a','import\x20{\x20CacheService,\x20EventService,\x20ValidatorService\x20}\x20from\x20\x27anncic-api\x27;\x0a','.save(tmpModel);\x0a','path','Handler\x20{\x0a\x0a','\x20\x20\x20\x20async\x20update(conditions:\x20SearchParams<','\x20\x20\x20\x20@Inject()\x20EventService:\x20EventService;\x0a','2887536sNWZKR','/Create\x27;\x0a','@Singleton()\x0a','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20search.withDeleted().andWhere(`${search.alias}.deleted_at\x20IS\x20NOT\x20NULL`);\x0a','\x20\x20\x20\x20\x20\x20\x20\x20const\x20[pagelist,\x20pagetotal]\x20=\x20await\x20this.','/entities/','/entity\x27;\x0a','.merge(tmpModel,\x20params);\x0a','.search(conditions,\x20pageinfo,\x20options).then(async\x20search\x20=>\x20{\x0a\x0a','/handlers/','mkdirSync','497142baatBO','\x20\x20\x20\x20\x20*\x20修改数据\x0a','\x20\x20\x20\x20\x20*\x20删除数据\x0a','export\x20class\x20','\x20\x20\x20\x20\x20*\x20**/\x0a','\x27;\x0a','constructor','\x20\x20\x20\x20\x20\x20\x20\x20const\x20tmpModel\x20=\x20await\x20this.','Entity\x20}\x20from\x20\x27','\x20\x20\x20\x20\x20\x20\x20\x20const\x20tmpModel\x20=\x20this.','\x20\x20\x20\x20\x20\x20\x20\x20}\x0a','\x20\x20\x20\x20}\x0a\x0a\x0a','utf-8','.softRemove(tmpModel))\x0a','.create(params)\x0a\x0a','5GyDcRx','/validators/','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20restores.push(await\x20this.','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20deletes.push(await\x20this.','\x20}\x20from\x20\x27','writeFileSync','\x20\x20\x20\x20\x20*\x20添加数据\x0a','\x20\x20\x20\x20async\x20list(conditions?:\x20SearchParams<','/exceptions/','DTOUpdate\x20}\x20from\x20\x27','不存在\x27\x20})\x0a','1151787kcNDum','\x20\x20\x20\x20\x20\x20\x20\x20return\x20[pagelist,\x20pagetotal];\x0a','(((.+)+)+)+$','dirname','\x20\x20\x20\x20async\x20restores(conditions:\x20SearchParams<','Error\x20}\x20from\x20\x27','1777685CSfSVt','\x20*\x20'];a8_0x3759=function(){return _0x2191d8;};return a8_0x3759();}async function default_1({tablestartUp:_0x17d79c,tablestartUpShort:_0x509078,basedir:_0x3f1d45,Primary:_0x5a9ff7,Comment:_0x64ac84,moduleName:_0x57e4d4,apporbasic:_0x3caf97}){const _0x462902=a8_0x3b1bdd,_0x420a38=_0x3f1d45+(_0x462902(0x209)+_0x509078+'.ts');if(!fs['existsSync'](_0x420a38)){let _0xd42352='';_0xd42352+='import\x20{\x20Inject,\x20Singleton\x20}\x20from\x20\x27anncic-api\x27;\x0a',_0xd42352+=_0x462902(0x1fa),_0xd42352+='import\x20{\x20InjectRepository,\x20SearchParams,\x20SearchPaginate,\x20SearchOptions\x20}\x20from\x20\x27@anncic-api/typeorm\x27;\x0a\x0a',_0xd42352+=_0x462902(0x1e4)+_0x17d79c+_0x462902(0x21e)+(typeof _0x57e4d4==_0x462902(0x1df)?_0x462902(0x1f5)+_0x57e4d4:'@/'+_0x3caf97)+'/entities/'+_0x509078+_0x462902(0x210),_0xd42352+='import\x20{\x20'+_0x17d79c+_0x462902(0x22a)+(typeof _0x57e4d4==_0x462902(0x1df)?_0x462902(0x1f5)+_0x57e4d4:'@/'+_0x3caf97)+_0x462902(0x222)+_0x509078+_0x462902(0x210),_0xd42352+='import\x20{\x20'+_0x17d79c+_0x462902(0x213)+(typeof _0x57e4d4==_0x462902(0x1df)?_0x462902(0x1f5)+_0x57e4d4:'@/'+_0x3caf97)+_0x462902(0x205)+_0x509078+_0x462902(0x206),_0xd42352+='import\x20{\x20'+_0x17d79c+_0x462902(0x1ef)+(typeof _0x57e4d4=='string'?_0x462902(0x1f5)+_0x57e4d4:'@/'+_0x3caf97)+_0x462902(0x21b)+_0x509078+_0x462902(0x201),_0xd42352+='import\x20{\x20'+_0x17d79c+_0x462902(0x223)+(typeof _0x57e4d4==_0x462902(0x1df)?_0x462902(0x1f5)+_0x57e4d4:'@/'+_0x3caf97)+_0x462902(0x21b)+_0x509078+_0x462902(0x1e3),_0xd42352+='\x0a',_0xd42352+='/**\x0a',_0xd42352+=_0x462902(0x22c)+_0x64ac84+'\x0a',_0xd42352+=_0x462902(0x230),_0xd42352+=_0x462902(0x202),_0xd42352+=_0x462902(0x20e)+_0x17d79c+_0x462902(0x1fd),_0xd42352+=_0x462902(0x231),_0xd42352+=_0x462902(0x1ff),_0xd42352+='\x20\x20\x20\x20@Inject()\x20ValidatorService:\x20ValidatorService;\x0a\x0a',_0xd42352+=_0x462902(0x22d)+_0x17d79c+')\x20'+_0x509078+':\x20'+_0x17d79c+_0x462902(0x1e1),_0xd42352+='\x20\x20\x20\x20/**\x0a',_0xd42352+='\x20\x20\x20\x20\x20*\x20数据列表\x0a',_0xd42352+=_0x462902(0x20f),_0xd42352+=_0x462902(0x221)+_0x17d79c+_0x462902(0x1da)+_0x17d79c+_0x462902(0x1f2),_0xd42352+=_0x462902(0x204)+_0x509078+_0x462902(0x208),_0xd42352+=_0x462902(0x22f),_0xd42352+=_0x462902(0x1e7),_0xd42352+=_0x462902(0x226),_0xd42352+='\x20\x20\x20\x20}\x0a\x0a\x0a',_0xd42352+='\x20\x20\x20\x20/**\x0a',_0xd42352+=_0x462902(0x1f4),_0xd42352+=_0x462902(0x20f),_0xd42352+=_0x462902(0x1ee)+_0x17d79c+'Entity>,\x20options:\x20SearchOptions\x20=\x20{})\x20{\x0a',_0xd42352+=_0x462902(0x212)+_0x509078+'.search(conditions,\x20{},\x20options).then(async\x20search\x20=>\x20{\x0a\x0a',_0xd42352+='\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20return\x20search.getOneOrFail().catch(()\x20=>\x20{\x0a',_0xd42352+=_0x462902(0x22e)+_0x17d79c+'Error('+_0x17d79c+_0x462902(0x1e2)+_0x64ac84+_0x462902(0x224),_0xd42352+=_0x462902(0x1ed),_0xd42352+=_0x462902(0x1e7),_0xd42352+='\x20\x20\x20\x20\x20\x20\x20\x20return\x20tmpModel\x0a',_0xd42352+=_0x462902(0x216),_0xd42352+='\x20\x20\x20\x20/**\x0a',_0xd42352+=_0x462902(0x220),_0xd42352+='\x20\x20\x20\x20\x20*\x20**/\x0a',_0xd42352+=_0x462902(0x1e0)+_0x17d79c+_0x462902(0x1f6),_0xd42352+=_0x462902(0x214)+_0x509078+_0x462902(0x219),_0xd42352+=_0x462902(0x1de)+_0x509078+_0x462902(0x1fb),_0xd42352+=_0x462902(0x216),_0xd42352+=_0x462902(0x1e9),_0xd42352+=_0x462902(0x20c),_0xd42352+=_0x462902(0x20f),_0xd42352+=_0x462902(0x1fe)+_0x17d79c+'Entity>,\x20params:\x20'+_0x17d79c+'DTOUpdate,\x20options:\x20SearchOptions\x20=\x20{})\x20{\x0a',_0xd42352+=_0x462902(0x212)+_0x509078+_0x462902(0x1e8),_0xd42352+=_0x462902(0x1f9),_0xd42352+=_0x462902(0x22e)+_0x17d79c+_0x462902(0x1e5)+_0x17d79c+_0x462902(0x1e2)+_0x64ac84+_0x462902(0x224),_0xd42352+=_0x462902(0x1ed),_0xd42352+=_0x462902(0x1e7),_0xd42352+=_0x462902(0x232)+_0x509078+_0x462902(0x207),_0xd42352+=_0x462902(0x1de)+_0x509078+_0x462902(0x1fb),_0xd42352+='\x20\x20\x20\x20}\x0a\x0a\x0a',_0xd42352+=_0x462902(0x1e9),_0xd42352+=_0x462902(0x20d),_0xd42352+='\x20\x20\x20\x20\x20*\x20**/\x0a',_0xd42352+=_0x462902(0x1f7)+_0x17d79c+_0x462902(0x1ea),_0xd42352+=_0x462902(0x235)+_0x509078+_0x462902(0x1e8),_0xd42352+='\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20return\x20search.getMany();\x0a',_0xd42352+=_0x462902(0x1e7),_0xd42352+=_0x462902(0x236),_0xd42352+=_0x462902(0x21d)+_0x509078+_0x462902(0x218),_0xd42352+=_0x462902(0x215),_0xd42352+=_0x462902(0x1f0),_0xd42352+=_0x462902(0x216),_0xd42352+=_0x462902(0x1e9),_0xd42352+=_0x462902(0x1f3),_0xd42352+=_0x462902(0x20f),_0xd42352+=_0x462902(0x229)+_0x17d79c+_0x462902(0x1ea),_0xd42352+=_0x462902(0x234)+_0x509078+_0x462902(0x1e8),_0xd42352+=_0x462902(0x203),_0xd42352+='\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20return\x20search.getMany();\x0a',_0xd42352+=_0x462902(0x1e7),_0xd42352+=_0x462902(0x236),_0xd42352+=_0x462902(0x21c)+_0x509078+'.recover(tmpModel))\x0a',_0xd42352+=_0x462902(0x215),_0xd42352+=_0x462902(0x1ec),_0xd42352+=_0x462902(0x216),_0xd42352+='}',!fs[_0x462902(0x1eb)]((0x0,path_1['dirname'])(_0x420a38))&&fs[_0x462902(0x20a)]((0x0,path_1[_0x462902(0x228)])(_0x420a38),{'recursive':!![]}),fs[_0x462902(0x21f)](_0x420a38,_0xd42352,_0x462902(0x217));}}
|
|
1
|
+
const a8_0x167a67=a8_0x9813;(function(_0x2caea6,_0x223fea){const _0x54a6ee=a8_0x9813,_0x31501c=_0x2caea6();while(!![]){try{const _0x3aa85a=-parseInt(_0x54a6ee(0xb6))/0x1+parseInt(_0x54a6ee(0x8e))/0x2+-parseInt(_0x54a6ee(0xb0))/0x3+-parseInt(_0x54a6ee(0xa8))/0x4*(-parseInt(_0x54a6ee(0xae))/0x5)+-parseInt(_0x54a6ee(0xc8))/0x6+parseInt(_0x54a6ee(0xa7))/0x7+parseInt(_0x54a6ee(0xc7))/0x8;if(_0x3aa85a===_0x223fea)break;else _0x31501c['push'](_0x31501c['shift']());}catch(_0x1724f1){_0x31501c['push'](_0x31501c['shift']());}}}(a8_0x1b98,0xed29f));const a8_0x1efe3f=(function(){let _0x3da55a=!![];return function(_0x5ea7cf,_0x11b511){const _0x96cc6=_0x3da55a?function(){const _0x7fd62e=a8_0x9813;if(_0x11b511){const _0x33877a=_0x11b511[_0x7fd62e(0x92)](_0x5ea7cf,arguments);return _0x11b511=null,_0x33877a;}}:function(){};return _0x3da55a=![],_0x96cc6;};}()),a8_0x14a95d=a8_0x1efe3f(this,function(){const _0xb20ece=a8_0x9813;return a8_0x14a95d[_0xb20ece(0x93)]()[_0xb20ece(0xc3)](_0xb20ece(0xa3))[_0xb20ece(0x93)]()['constructor'](a8_0x14a95d)['search']('(((.+)+)+)+$');});a8_0x14a95d();'use strict';function a8_0x1b98(){const _0x35b85a=['import\x20{\x20InjectRepository,\x20SearchParams,\x20SearchPaginate,\x20SearchOptions\x20}\x20from\x20\x27@anncic-api/typeorm\x27;\x0a\x0a','\x20\x20\x20\x20\x20\x20\x20\x20const\x20deletes:\x20any\x20=\x20[],\x20tmpModels\x20=\x20await\x20this.','\x20\x20\x20\x20/**\x0a','mkdirSync','DTOCreate)\x20{\x0a','\x20\x20\x20\x20\x20*\x20数据详情\x0a','Error(','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20return\x20search.getManyAndCount();\x0a','search','\x20*\x20','Entity>,\x20options:\x20SearchOptions\x20=\x20{})\x20{\x0a','Handler\x20{\x0a\x0a','13214128EBAKeO','2394648mTNlhw','export\x20class\x20','.ts','/Create\x27;\x0a','\x20\x20\x20\x20async\x20restores(conditions:\x20SearchParams<','default','\x20\x20\x20\x20\x20\x20\x20\x20return\x20await\x20this.','\x20\x20\x20\x20@Inject()\x20ValidatorService:\x20ValidatorService;\x0a\x0a','/validators/','\x20\x20\x20\x20}\x0a\x0a\x0a','.create(params)\x0a\x0a','\x27;\x0a','.search(conditions,\x20{},\x20options).then(async\x20search\x20=>\x20{\x0a\x0a','Entity>,\x20pageinfo?:\x20SearchPaginate,\x20options:\x20SearchOptions\x20=\x20{}):\x20Promise<[','DTOUpdate\x20}\x20from\x20\x27','string','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20deletes.push(await\x20this.','import\x20{\x20CacheService,\x20EventService,\x20ValidatorService\x20}\x20from\x20\x27anncic-api\x27;\x0a','\x20\x20\x20\x20\x20\x20\x20\x20}\x0a','\x20\x20\x20\x20\x20*\x20恢复删除的数据\x0a','\x20\x20\x20\x20\x20\x20\x20\x20return\x20tmpModel\x0a','__esModule','Entity[],\x20number]>\x20{\x0a','\x20\x20\x20\x20\x20\x20\x20\x20const\x20restores:\x20any\x20=\x20[],\x20tmpModels\x20=\x20await\x20this.','\x20\x20\x20\x20async\x20update(conditions:\x20SearchParams<','.merge(tmpModel,\x20params);\x0a','1968470dPphfU','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20search.withDeleted().andWhere(`${search.alias}.deleted_at\x20IS\x20NOT\x20NULL`);\x0a','\x20}\x20from\x20\x27','\x20\x20\x20\x20\x20\x20\x20\x20});\x0a\x0a','apply','toString','import\x20{\x20','\x20\x20\x20\x20\x20*\x20**/\x0a','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20return\x20search.getOneOrFail().catch(()\x20=>\x20{\x0a','.search(conditions,\x20pageinfo,\x20options).then(async\x20search\x20=>\x20{\x0a\x0a','Error._NOTFIND_,\x20{\x20message:\x20\x27','/exceptions/','Entity>,\x20params:\x20','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20});\x0a','/**\x0a','Error\x20}\x20from\x20\x27','\x20\x20\x20\x20\x20\x20\x20\x20const\x20tmpModel\x20=\x20this.','dirname','\x20\x20\x20\x20\x20\x20\x20\x20const\x20tmpModel\x20=\x20await\x20this.','\x20\x20\x20\x20async\x20list(conditions?:\x20SearchParams<','/handlers/','(((.+)+)+)+$',';\x0a\x0a\x0a','.recover(tmpModel))\x0a','/entity\x27;\x0a','6444382HWUsRf','4tsCaCK','import\x20{\x20Inject,\x20Singleton\x20}\x20from\x20\x27anncic-api\x27;\x0a','DTOUpdate,\x20options:\x20SearchOptions\x20=\x20{})\x20{\x0a','不存在\x27\x20})\x0a','@/apps/','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20restores.push(await\x20this.','126425tyHIqZ','\x20\x20\x20\x20@Inject()\x20EventService:\x20EventService;\x0a','4010661ATXdNB','\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\x20\x20\x20\x20\x20throw\x20new\x20','existsSync','.save(tmpModel);\x0a','\x20\x20\x20\x20@Inject()\x20CacheService:\x20CacheService;\x0a','874494bvCNtd','path','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20return\x20search.getMany();\x0a','\x20\x20\x20\x20async\x20remove(conditions:\x20SearchParams<','\x20\x20\x20\x20async\x20create(params:\x20'];a8_0x1b98=function(){return _0x35b85a;};return a8_0x1b98();}Object['defineProperty'](exports,a8_0x167a67(0x89),{'value':!![]}),exports[a8_0x167a67(0xcd)]=default_1;function a8_0x9813(_0x493c10,_0x32ae52){const _0x3354cf=a8_0x1b98();return a8_0x9813=function(_0x14a95d,_0x1efe3f){_0x14a95d=_0x14a95d-0x83;let _0x1b980a=_0x3354cf[_0x14a95d];return _0x1b980a;},a8_0x9813(_0x493c10,_0x32ae52);}const fs=require('fs'),path_1=require(a8_0x167a67(0xb7));async function default_1({tablestartUp:_0x49fcde,tablestartUpShort:_0x4ad298,basedir:_0x95d85e,Primary:_0x53f032,Comment:_0x269839,moduleName:_0x4a938e,apporbasic:_0x5a444f}){const _0x2b6b74=a8_0x167a67,_0x5dca80=_0x95d85e+(_0x2b6b74(0xa2)+_0x4ad298+_0x2b6b74(0xca));if(!fs[_0x2b6b74(0xb3)](_0x5dca80)){let _0x3f3f23='';_0x3f3f23+=_0x2b6b74(0xa9),_0x3f3f23+=_0x2b6b74(0x85),_0x3f3f23+=_0x2b6b74(0xbb),_0x3f3f23+=_0x2b6b74(0x94)+_0x49fcde+_0x2b6b74(0x90)+(typeof _0x4a938e==_0x2b6b74(0x83)?'@/apps/'+_0x4a938e:'@/'+_0x5a444f)+'/entities/'+_0x4ad298+_0x2b6b74(0xd3),_0x3f3f23+='import\x20{\x20'+_0x49fcde+_0x2b6b74(0x9d)+(typeof _0x4a938e==_0x2b6b74(0x83)?_0x2b6b74(0xac)+_0x4a938e:'@/'+_0x5a444f)+_0x2b6b74(0x99)+_0x4ad298+_0x2b6b74(0xd3),_0x3f3f23+=_0x2b6b74(0x94)+_0x49fcde+'Entity\x20}\x20from\x20\x27'+(typeof _0x4a938e==_0x2b6b74(0x83)?_0x2b6b74(0xac)+_0x4a938e:'@/'+_0x5a444f)+'/entities/'+_0x4ad298+_0x2b6b74(0xa6),_0x3f3f23+='import\x20{\x20'+_0x49fcde+'DTOCreate\x20}\x20from\x20\x27'+(typeof _0x4a938e==_0x2b6b74(0x83)?_0x2b6b74(0xac)+_0x4a938e:'@/'+_0x5a444f)+_0x2b6b74(0xd0)+_0x4ad298+_0x2b6b74(0xcb),_0x3f3f23+=_0x2b6b74(0x94)+_0x49fcde+_0x2b6b74(0xd6)+(typeof _0x4a938e==_0x2b6b74(0x83)?_0x2b6b74(0xac)+_0x4a938e:'@/'+_0x5a444f)+'/validators/'+_0x4ad298+'/Update\x27;\x0a',_0x3f3f23+='\x0a',_0x3f3f23+=_0x2b6b74(0x9c),_0x3f3f23+=_0x2b6b74(0xc4)+_0x269839+'\x0a',_0x3f3f23+='\x20*\x20**/\x0a',_0x3f3f23+='@Singleton()\x0a',_0x3f3f23+=_0x2b6b74(0xc9)+_0x49fcde+_0x2b6b74(0xc6),_0x3f3f23+=_0x2b6b74(0xb5),_0x3f3f23+=_0x2b6b74(0xaf),_0x3f3f23+=_0x2b6b74(0xcf),_0x3f3f23+='\x20\x20\x20\x20@InjectRepository('+_0x49fcde+')\x20'+_0x4ad298+':\x20'+_0x49fcde+_0x2b6b74(0xa4),_0x3f3f23+=_0x2b6b74(0xbd),_0x3f3f23+='\x20\x20\x20\x20\x20*\x20数据列表\x0a',_0x3f3f23+=_0x2b6b74(0x95),_0x3f3f23+=_0x2b6b74(0xa1)+_0x49fcde+_0x2b6b74(0xd5)+_0x49fcde+_0x2b6b74(0x8a),_0x3f3f23+=_0x2b6b74(0xb1)+_0x4ad298+_0x2b6b74(0x97),_0x3f3f23+=_0x2b6b74(0xc2),_0x3f3f23+=_0x2b6b74(0x91),_0x3f3f23+='\x20\x20\x20\x20\x20\x20\x20\x20return\x20[pagelist,\x20pagetotal];\x0a',_0x3f3f23+=_0x2b6b74(0xd1),_0x3f3f23+=_0x2b6b74(0xbd),_0x3f3f23+=_0x2b6b74(0xc0),_0x3f3f23+=_0x2b6b74(0x95),_0x3f3f23+='\x20\x20\x20\x20async\x20detail(conditions?:\x20SearchParams<'+_0x49fcde+'Entity>,\x20options:\x20SearchOptions\x20=\x20{})\x20{\x0a',_0x3f3f23+=_0x2b6b74(0xa0)+_0x4ad298+_0x2b6b74(0xd4),_0x3f3f23+=_0x2b6b74(0x96),_0x3f3f23+=_0x2b6b74(0xb2)+_0x49fcde+_0x2b6b74(0xc1)+_0x49fcde+'Error._NOTFIND_,\x20{\x20message:\x20\x27'+_0x269839+_0x2b6b74(0xab),_0x3f3f23+='\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20});\x0a',_0x3f3f23+=_0x2b6b74(0x91),_0x3f3f23+=_0x2b6b74(0x88),_0x3f3f23+=_0x2b6b74(0xd1),_0x3f3f23+=_0x2b6b74(0xbd),_0x3f3f23+='\x20\x20\x20\x20\x20*\x20添加数据\x0a',_0x3f3f23+='\x20\x20\x20\x20\x20*\x20**/\x0a',_0x3f3f23+=_0x2b6b74(0xba)+_0x49fcde+_0x2b6b74(0xbf),_0x3f3f23+=_0x2b6b74(0x9e)+_0x4ad298+_0x2b6b74(0xd2),_0x3f3f23+=_0x2b6b74(0xce)+_0x4ad298+_0x2b6b74(0xb4),_0x3f3f23+=_0x2b6b74(0xd1),_0x3f3f23+=_0x2b6b74(0xbd),_0x3f3f23+='\x20\x20\x20\x20\x20*\x20修改数据\x0a',_0x3f3f23+=_0x2b6b74(0x95),_0x3f3f23+=_0x2b6b74(0x8c)+_0x49fcde+_0x2b6b74(0x9a)+_0x49fcde+_0x2b6b74(0xaa),_0x3f3f23+='\x20\x20\x20\x20\x20\x20\x20\x20const\x20tmpModel\x20=\x20await\x20this.'+_0x4ad298+'.search(conditions,\x20{},\x20options).then(async\x20search\x20=>\x20{\x0a\x0a',_0x3f3f23+='\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20return\x20search.getOneOrFail().catch(()\x20=>\x20{\x0a',_0x3f3f23+='\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20throw\x20new\x20'+_0x49fcde+_0x2b6b74(0xc1)+_0x49fcde+_0x2b6b74(0x98)+_0x269839+_0x2b6b74(0xab),_0x3f3f23+=_0x2b6b74(0x9b),_0x3f3f23+=_0x2b6b74(0x91),_0x3f3f23+='\x20\x20\x20\x20\x20\x20\x20\x20this.'+_0x4ad298+_0x2b6b74(0x8d),_0x3f3f23+=_0x2b6b74(0xce)+_0x4ad298+_0x2b6b74(0xb4),_0x3f3f23+='\x20\x20\x20\x20}\x0a\x0a\x0a',_0x3f3f23+='\x20\x20\x20\x20/**\x0a',_0x3f3f23+='\x20\x20\x20\x20\x20*\x20删除数据\x0a',_0x3f3f23+=_0x2b6b74(0x95),_0x3f3f23+=_0x2b6b74(0xb9)+_0x49fcde+_0x2b6b74(0xc5),_0x3f3f23+=_0x2b6b74(0xbc)+_0x4ad298+_0x2b6b74(0xd4),_0x3f3f23+=_0x2b6b74(0xb8),_0x3f3f23+=_0x2b6b74(0x91),_0x3f3f23+='\x20\x20\x20\x20\x20\x20\x20\x20for\x20(let\x20tmpModel\x20of\x20tmpModels)\x20{\x0a',_0x3f3f23+=_0x2b6b74(0x84)+_0x4ad298+'.softRemove(tmpModel))\x0a',_0x3f3f23+=_0x2b6b74(0x86),_0x3f3f23+='\x20\x20\x20\x20\x20\x20\x20\x20return\x20deletes\x0a',_0x3f3f23+=_0x2b6b74(0xd1),_0x3f3f23+=_0x2b6b74(0xbd),_0x3f3f23+=_0x2b6b74(0x87),_0x3f3f23+=_0x2b6b74(0x95),_0x3f3f23+=_0x2b6b74(0xcc)+_0x49fcde+'Entity>,\x20options:\x20SearchOptions\x20=\x20{})\x20{\x0a',_0x3f3f23+=_0x2b6b74(0x8b)+_0x4ad298+'.search(conditions,\x20{},\x20options).then(async\x20search\x20=>\x20{\x0a\x0a',_0x3f3f23+=_0x2b6b74(0x8f),_0x3f3f23+='\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20return\x20search.getMany();\x0a',_0x3f3f23+=_0x2b6b74(0x91),_0x3f3f23+='\x20\x20\x20\x20\x20\x20\x20\x20for\x20(let\x20tmpModel\x20of\x20tmpModels)\x20{\x0a',_0x3f3f23+=_0x2b6b74(0xad)+_0x4ad298+_0x2b6b74(0xa5),_0x3f3f23+=_0x2b6b74(0x86),_0x3f3f23+='\x20\x20\x20\x20\x20\x20\x20\x20return\x20restores\x0a',_0x3f3f23+=_0x2b6b74(0xd1),_0x3f3f23+='}',!fs[_0x2b6b74(0xb3)]((0x0,path_1['dirname'])(_0x5dca80))&&fs[_0x2b6b74(0xbe)]((0x0,path_1[_0x2b6b74(0x9f)])(_0x5dca80),{'recursive':!![]}),fs['writeFileSync'](_0x5dca80,_0x3f3f23,'utf-8');}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a9_0x3351c7=a9_0x535c;(function(_0x8517f5,_0xfbeb6f){const _0x4ec0c2=a9_0x535c,_0x3c24b3=_0x8517f5();while(!![]){try{const _0x274037=-parseInt(_0x4ec0c2(0x1d8))/0x1+-parseInt(_0x4ec0c2(0x202))/0x2*(-parseInt(_0x4ec0c2(0x1e2))/0x3)+parseInt(_0x4ec0c2(0x1e3))/0x4*(parseInt(_0x4ec0c2(0x1cd))/0x5)+parseInt(_0x4ec0c2(0x1f9))/0x6*(parseInt(_0x4ec0c2(0x1bd))/0x7)+parseInt(_0x4ec0c2(0x1f0))/0x8+-parseInt(_0x4ec0c2(0x1ef))/0x9*(-parseInt(_0x4ec0c2(0x1c3))/0xa)+-parseInt(_0x4ec0c2(0x1fb))/0xb;if(_0x274037===_0xfbeb6f)break;else _0x3c24b3['push'](_0x3c24b3['shift']());}catch(_0x10584f){_0x3c24b3['push'](_0x3c24b3['shift']());}}}(a9_0x304e,0x290e4));const a9_0x12cfc2=(function(){let _0x42114d=!![];return function(_0x485ade,_0xfff98c){const _0xb3aef7=_0x42114d?function(){const _0x15f20f=a9_0x535c;if(_0xfff98c){const _0x1ecb29=_0xfff98c[_0x15f20f(0x1c7)](_0x485ade,arguments);return _0xfff98c=null,_0x1ecb29;}}:function(){};return _0x42114d=![],_0xb3aef7;};}()),a9_0x50b7d6=a9_0x12cfc2(this,function(){const _0x93aff=a9_0x535c;return a9_0x50b7d6[_0x93aff(0x1cc)]()[_0x93aff(0x1ee)](_0x93aff(0x1c1))[_0x93aff(0x1cc)]()[_0x93aff(0x1f1)](a9_0x50b7d6)[_0x93aff(0x1ee)](_0x93aff(0x1c1));});function a9_0x535c(_0x455596,_0x59d7ce){const _0x191c89=a9_0x304e();return a9_0x535c=function(_0x50b7d6,_0x12cfc2){_0x50b7d6=_0x50b7d6-0x1ba;let _0x304e24=_0x191c89[_0x50b7d6];return _0x304e24;},a9_0x535c(_0x455596,_0x59d7ce);}a9_0x50b7d6();'use strict';function a9_0x304e(){const _0x3e8492=['__esModule','mkdirSync','date','_start\x27,\x20\x27','_between[1]).format(\x27YYYY-MM-DD\x20HH:mm:ss\x27))\x0a','indexOf','30021rGMsCb','1888vRGTmI','utf-8','\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起始时间(之后)\x27)\x0a','Comment','_end(query:\x20SelectQueryBuilder<ObjectLiteral>,\x20','/**\x0a','_end`,\x20{\x20','path','%column%','created_at','search','11961gqJxxl','2063584SbULEl','constructor','\x20\x20\x20\x20@Search(\x27updated_at_start\x27,\x20\x27修改时间:>=\x20起始时间(之后)\x27)\x0a','_start(query,\x20dayjs(','deleted_at','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20this.','\x20\x20\x20\x20\x20\x20\x20\x20query.andWhere(`${query.alias}.updated_at\x20>=\x20:updated_at_start`,\x20{\x20updated_at_start\x20})\x0a','\x20\x20\x20\x20}\x0a\x0a',':<=\x20起始时间(之前)\x27)\x0a','12MIoMnN','\x20\x20\x20\x20@Search(\x27','9460110hrPxJr','\x20\x20\x20\x20async\x20created_at_start(query:\x20SelectQueryBuilder<ObjectLiteral>,\x20created_at_start:\x20string)\x20{\x0a','_end\x27,\x20\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','.ts','\x20\x20\x20\x20\x20\x20\x20\x20query.andWhere(`${query.alias}.updated_at\x20<=\x20:updated_at_end`,\x20{\x20updated_at_end\x20})\x0a','import\x20{\x20Provide,\x20Search,\x20ObjectLiteral,\x20SelectQueryBuilder\x20}\x20from\x20\x27@anncic-api/typeorm\x27;\x0a\x0a','56nAsWCv','export\x20class\x20','text','\x20\x20\x20\x20@Search(\x27updated_at_between\x27,\x20\x27修改时间在选定时间之内\x27)\x0a','json','Type','\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','\x20\x20\x20\x20\x20\x20\x20\x20query.andWhere(`${query.alias}.','\x20\x20\x20\x20@Search(\x27created_at_end\x27,\x20\x27创建时间:<=\x20起始时间(之前)\x27)\x0a','_start\x20})\x0a','-自定义检索\x0a','displayorder','\x20\x20\x20\x20@Search(\x27created_at_between\x27,\x20\x27创建时间在选定时间之内\x27)\x0a','\x20\x20\x20\x20async\x20created_at_between(query:\x20SelectQueryBuilder<ObjectLiteral>,\x20created_at_between:\x20string[])\x20{\x0a','replace','getProp','_start:\x20string)\x20{\x0a','\x20\x20\x20\x20@Search(\x27created_at_start\x27,\x20\x27创建时间:>=\x20起始时间(之后)\x27)\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','141155jqOzFp','timestamp','default','\x20>=\x20:','(((.+)+)+)+$','defineProperty','1940iLOWHh','\x20\x20\x20\x20@Search(\x27updated_at_end\x27,\x20\x27修改时间:<=\x20起始时间(之前)\x27)\x0a','\x20\x20\x20\x20\x20\x20\x20\x20}\x0a','dirname','apply','\x20<=\x20:','\x20\x20\x20\x20async\x20','_start(query:\x20SelectQueryBuilder<ObjectLiteral>,\x20','\x20\x20\x20\x20\x20\x20\x20\x20if(\x20','toString','3085hKaiMF','_between[0]).format(\x27YYYY-MM-DD\x20HH:mm:ss\x27))\x0a','_between\x27,\x20\x27','_end\x20})\x0a','_between.length\x20==\x202\x20){\x0a','Field','datetime','writeFileSync','\x20\x20\x20\x20async\x20updated_at_start(query:\x20SelectQueryBuilder<ObjectLiteral>,\x20updated_at_start:\x20string)\x20{\x0a','\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','existsSync','99350MeALul','_end:\x20string)\x20{\x0a','Search\x20{\x0a\x0a','\x20\x20\x20\x20\x20\x20\x20\x20if(\x20updated_at_between.length\x20==\x202\x20){\x0a'];a9_0x304e=function(){return _0x3e8492;};return a9_0x304e();}Object[a9_0x3351c7(0x1c2)](exports,a9_0x3351c7(0x1dc),{'value':!![]}),exports[a9_0x3351c7(0x1bf)]=default_1;const fs=require('fs'),path_1=require(a9_0x3351c7(0x1eb)),helper_1=require('../helper');async function default_1({tablestartUp:_0x2837d9,tablestartUpShort:_0x433336,basedir:_0x367d2a,Fields:_0x120451,Comment:_0x3184ae}){const _0x6a5e91=a9_0x3351c7,_0x59499d=_0x367d2a+('/searchs/'+_0x433336+_0x6a5e91(0x1ff));if(!fs[_0x6a5e91(0x1d7)](_0x59499d)){let _0x9e15ca='',_0x231fad='';for(let _0x45e3e5 in _0x120451){let _0x4487d3=_0x120451[_0x45e3e5],_0x3569ad=(0x0,helper_1[_0x6a5e91(0x211)])(_0x4487d3[_0x6a5e91(0x207)]);if(_0x4487d3[_0x6a5e91(0x1d2)]==_0x6a5e91(0x20d)||_0x4487d3[_0x6a5e91(0x1d2)]==_0x6a5e91(0x1ed)||_0x4487d3[_0x6a5e91(0x1d2)]=='updated_at'||_0x4487d3[_0x6a5e91(0x1d2)]==_0x6a5e91(0x1f4))continue;if(_0x3569ad==_0x6a5e91(0x206)){}else{if(_0x3569ad==_0x6a5e91(0x204)){}else{if(_0x3569ad=='longtext'){}else[_0x6a5e91(0x1de),_0x6a5e91(0x1d3),_0x6a5e91(0x1be)][_0x6a5e91(0x1e1)](_0x3569ad)>-0x1&&(_0x9e15ca+=_0x6a5e91(0x1fa)+_0x4487d3[_0x6a5e91(0x1d2)]+_0x6a5e91(0x1cf)+_0x4487d3[_0x6a5e91(0x1e7)]+'在选定时间之内\x27)\x0a',_0x9e15ca+=_0x6a5e91(0x1c9)+_0x4487d3[_0x6a5e91(0x1d2)]+'_between(query:\x20SelectQueryBuilder<ObjectLiteral>,\x20'+_0x4487d3[_0x6a5e91(0x1d2)]+'_between:\x20string[])\x20{\x0a',_0x9e15ca+=_0x6a5e91(0x1cb)+_0x4487d3[_0x6a5e91(0x1d2)]+_0x6a5e91(0x1d1),_0x9e15ca+='\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20this.'+_0x4487d3[_0x6a5e91(0x1d2)]+'_end(query,\x20dayjs('+_0x4487d3['Field']+_0x6a5e91(0x1e0),_0x9e15ca+=_0x6a5e91(0x1f5)+_0x4487d3[_0x6a5e91(0x1d2)]+_0x6a5e91(0x1f3)+_0x4487d3[_0x6a5e91(0x1d2)]+_0x6a5e91(0x1ce),_0x9e15ca+='\x20\x20\x20\x20\x20\x20\x20\x20}\x0a',_0x9e15ca+=_0x6a5e91(0x1f7),_0x9e15ca+=_0x6a5e91(0x1fa)+_0x4487d3['Field']+_0x6a5e91(0x1df)+_0x4487d3[_0x6a5e91(0x1e7)]+_0x6a5e91(0x1e6),_0x9e15ca+=_0x6a5e91(0x1c9)+_0x4487d3['Field']+_0x6a5e91(0x1ca)+_0x4487d3[_0x6a5e91(0x1d2)]+_0x6a5e91(0x1ba),_0x9e15ca+=_0x6a5e91(0x209)+_0x4487d3[_0x6a5e91(0x1d2)]+_0x6a5e91(0x1c0)+_0x4487d3[_0x6a5e91(0x1d2)]+'_start`,\x20{\x20'+_0x4487d3[_0x6a5e91(0x1d2)]+_0x6a5e91(0x20b),_0x9e15ca+='\x20\x20\x20\x20}\x0a\x0a',_0x9e15ca+='\x20\x20\x20\x20@Search(\x27'+_0x4487d3[_0x6a5e91(0x1d2)]+_0x6a5e91(0x1fd)+_0x4487d3['Comment']+_0x6a5e91(0x1f8),_0x9e15ca+=_0x6a5e91(0x1c9)+_0x4487d3['Field']+_0x6a5e91(0x1e8)+_0x4487d3[_0x6a5e91(0x1d2)]+_0x6a5e91(0x1d9),_0x9e15ca+=_0x6a5e91(0x209)+_0x4487d3[_0x6a5e91(0x1d2)]+_0x6a5e91(0x1c8)+_0x4487d3[_0x6a5e91(0x1d2)]+_0x6a5e91(0x1ea)+_0x4487d3[_0x6a5e91(0x1d2)]+_0x6a5e91(0x1d0),_0x9e15ca+=_0x6a5e91(0x1f7));}}}_0x9e15ca+=_0x6a5e91(0x20e),_0x9e15ca+=_0x6a5e91(0x20f),_0x9e15ca+='\x20\x20\x20\x20\x20\x20\x20\x20if(\x20created_at_between.length\x20==\x202\x20){\x0a',_0x9e15ca+=_0x6a5e91(0x1bc),_0x9e15ca+=_0x6a5e91(0x1fe),_0x9e15ca+=_0x6a5e91(0x1c5),_0x9e15ca+='\x20\x20\x20\x20}\x0a\x0a',_0x9e15ca+=_0x6a5e91(0x1bb),_0x9e15ca+=_0x6a5e91(0x1fc),_0x9e15ca+='\x20\x20\x20\x20\x20\x20\x20\x20query.andWhere(`${query.alias}.created_at\x20>=\x20:created_at_start`,\x20{\x20created_at_start\x20})\x0a',_0x9e15ca+=_0x6a5e91(0x1f7),_0x9e15ca+=_0x6a5e91(0x20a),_0x9e15ca+='\x20\x20\x20\x20async\x20created_at_end(query:\x20SelectQueryBuilder<ObjectLiteral>,\x20created_at_end:\x20string)\x20{\x0a',_0x9e15ca+=_0x6a5e91(0x1e5),_0x9e15ca+=_0x6a5e91(0x1f7),_0x9e15ca+=_0x6a5e91(0x205),_0x9e15ca+='\x20\x20\x20\x20async\x20updated_at_between(query:\x20SelectQueryBuilder<ObjectLiteral>,\x20updated_at_between:\x20string[])\x20{\x0a',_0x9e15ca+=_0x6a5e91(0x1db),_0x9e15ca+=_0x6a5e91(0x208),_0x9e15ca+=_0x6a5e91(0x1d6),_0x9e15ca+=_0x6a5e91(0x1c5),_0x9e15ca+='\x20\x20\x20\x20}\x0a\x0a',_0x9e15ca+=_0x6a5e91(0x1f2),_0x9e15ca+=_0x6a5e91(0x1d5),_0x9e15ca+=_0x6a5e91(0x1f6),_0x9e15ca+=_0x6a5e91(0x1f7),_0x9e15ca+=_0x6a5e91(0x1c4),_0x9e15ca+='\x20\x20\x20\x20async\x20updated_at_end(query:\x20SelectQueryBuilder<ObjectLiteral>,\x20updated_at_end:\x20string)\x20{\x0a',_0x9e15ca+=_0x6a5e91(0x200),_0x9e15ca+=_0x6a5e91(0x1f7),_0x231fad+=_0x6a5e91(0x201),_0x231fad+=_0x6a5e91(0x1e9),_0x231fad+='\x20*\x20'+_0x3184ae+_0x6a5e91(0x20c),_0x231fad+='\x20*\x20**/\x0a',_0x231fad+='@Provide()\x0a',_0x231fad+=_0x6a5e91(0x203)+_0x2837d9+_0x6a5e91(0x1da),_0x231fad+='%column%',_0x231fad+='}',_0x231fad=_0x231fad[_0x6a5e91(0x210)](_0x6a5e91(0x1ec),_0x9e15ca),!fs[_0x6a5e91(0x1d7)]((0x0,path_1[_0x6a5e91(0x1c6)])(_0x59499d))&&fs[_0x6a5e91(0x1dd)]((0x0,path_1['dirname'])(_0x59499d),{'recursive':!![]}),fs[_0x6a5e91(0x1d4)](_0x59499d,_0x231fad,_0x6a5e91(0x1e4));}}
|