anncic-apihelper 3.7.9 → 3.7.10
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_0x432303=a0_0x3a4f;(function(_0x1998cd,_0x47082e){var _0x443902=a0_0x3a4f,_0x387813=_0x1998cd();while(!![]){try{var _0x4278dc=-parseInt(_0x443902(0x1cc))/0x1+-parseInt(_0x443902(0x1c1))/0x2*(parseInt(_0x443902(0x1c3))/0x3)+-parseInt(_0x443902(0x1bf))/0x4*(-parseInt(_0x443902(0x1d3))/0x5)+-parseInt(_0x443902(0x1c4))/0x6+parseInt(_0x443902(0x1da))/0x7*(parseInt(_0x443902(0x1cb))/0x8)+parseInt(_0x443902(0x1d6))/0x9*(-parseInt(_0x443902(0x1d4))/0xa)+-parseInt(_0x443902(0x1d1))/0xb*(-parseInt(_0x443902(0x1c7))/0xc);if(_0x4278dc===_0x47082e)break;else _0x387813['push'](_0x387813['shift']());}catch(_0x108376){_0x387813['push'](_0x387813['shift']());}}}(a0_0x23e0,0x5fdd7));function a0_0x23e0(){var _0x1342d7=['object','getOwnPropertyDescriptor','1947dnOiMY','MidwayConfigService','145770vNUTgq','1340NDIdLT','__esModule','47673oojZPJ','design:type','MidwayApplicationManager','defineProperty','1815562oJvsGF','metadata','__decorate','decorate','prototype','(((.+)+)+)+$','Inject','104VoIAVY','@anncic-api/typeorm','6OnxMAo','application','632781aCANyS','3742986MSAwML','CustomConfiguration','@midwayjs/core','87336RTHqHL','MidwayDecoratorService','toString','decorator','16DFHAmP','205869Trqsrs','search','length'];a0_0x23e0=function(){return _0x1342d7;};return a0_0x23e0();}var a0_0xa7843d=(function(){var _0x512b66=!![];return function(_0x4db3f0,_0x238f65){var _0x465835=_0x512b66?function(){if(_0x238f65){var _0x5a1238=_0x238f65['apply'](_0x4db3f0,arguments);return _0x238f65=null,_0x5a1238;}}:function(){};return _0x512b66=![],_0x465835;};}()),a0_0x6443c1=a0_0xa7843d(this,function(){var _0x51503f=a0_0x3a4f;return a0_0x6443c1[_0x51503f(0x1c9)]()[_0x51503f(0x1cd)](_0x51503f(0x1bd))[_0x51503f(0x1c9)]()['constructor'](a0_0x6443c1)[_0x51503f(0x1cd)]('(((.+)+)+)+$');});a0_0x6443c1();'use strict';var __decorate=this&&this[a0_0x432303(0x1dc)]||function(_0x456995,_0x55be63,_0x53fd0e,_0x4c96b4){var _0x5186a8=a0_0x432303,_0x5371f7=arguments[_0x5186a8(0x1ce)],_0x5edae8=_0x5371f7<0x3?_0x55be63:_0x4c96b4===null?_0x4c96b4=Object[_0x5186a8(0x1d0)](_0x55be63,_0x53fd0e):_0x4c96b4,_0xa63c0a;if(typeof Reflect===_0x5186a8(0x1cf)&&typeof Reflect['decorate']==='function')_0x5edae8=Reflect[_0x5186a8(0x1dd)](_0x456995,_0x55be63,_0x53fd0e,_0x4c96b4);else{for(var _0x2fe727=_0x456995[_0x5186a8(0x1ce)]-0x1;_0x2fe727>=0x0;_0x2fe727--)if(_0xa63c0a=_0x456995[_0x2fe727])_0x5edae8=(_0x5371f7<0x3?_0xa63c0a(_0x5edae8):_0x5371f7>0x3?_0xa63c0a(_0x55be63,_0x53fd0e,_0x5edae8):_0xa63c0a(_0x55be63,_0x53fd0e))||_0x5edae8;}return _0x5371f7>0x3&&_0x5edae8&&Object[_0x5186a8(0x1d9)](_0x55be63,_0x53fd0e,_0x5edae8),_0x5edae8;},__metadata=this&&this['__metadata']||function(_0x11606a,_0x2d759a){var _0x346c58=a0_0x432303;if(typeof Reflect===_0x346c58(0x1cf)&&typeof Reflect[_0x346c58(0x1db)]==='function')return Reflect[_0x346c58(0x1db)](_0x11606a,_0x2d759a);};Object[a0_0x432303(0x1d9)](exports,a0_0x432303(0x1d5),{'value':!![]}),exports[a0_0x432303(0x1c5)]=void 0x0;function a0_0x3a4f(_0x47c5ce,_0x21fb89){var _0x24e28b=a0_0x23e0();return a0_0x3a4f=function(_0x6443c1,_0xa7843d){_0x6443c1=_0x6443c1-0x1bd;var _0x23e0c7=_0x24e28b[_0x6443c1];return _0x23e0c7;},a0_0x3a4f(_0x47c5ce,_0x21fb89);}const core_1=require(a0_0x432303(0x1c6)),core_2=require('@midwayjs/core'),typeorm=require(a0_0x432303(0x1c0));let CustomConfiguration=class CustomConfiguration{};exports['CustomConfiguration']=CustomConfiguration,__decorate([(0x0,core_1[a0_0x432303(0x1be)])(),__metadata(a0_0x432303(0x1d7),core_2[a0_0x432303(0x1d2)])],CustomConfiguration[a0_0x432303(0x1de)],'config',void 0x0),__decorate([(0x0,core_1['Inject'])(),__metadata(a0_0x432303(0x1d7),core_2[a0_0x432303(0x1c8)])],CustomConfiguration[a0_0x432303(0x1de)],a0_0x432303(0x1ca),void 0x0),__decorate([(0x0,core_1[a0_0x432303(0x1be)])(),__metadata(a0_0x432303(0x1d7),core_2[a0_0x432303(0x1d8)])],CustomConfiguration[a0_0x432303(0x1de)],a0_0x432303(0x1c2),void 0x0),exports[a0_0x432303(0x1c5)]=CustomConfiguration=__decorate([(0x0,core_1['Configuration'])({'conflictCheck':![],'imports':[typeorm],'namespace':'anncic-apihelper'})],CustomConfiguration);
|
package/dist/helper.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a1_0x24042a=a1_0x3d75;(function(_0x81868d,_0x485fec){const _0x1269f1=a1_0x3d75,_0x4ea661=_0x81868d();while(!![]){try{const _0x3e56e7=-parseInt(_0x1269f1(0xca))/0x1*(-parseInt(_0x1269f1(0xcf))/0x2)+parseInt(_0x1269f1(0xce))/0x3+parseInt(_0x1269f1(0xd5))/0x4+parseInt(_0x1269f1(0xbe))/0x5*(-parseInt(_0x1269f1(0xd9))/0x6)+-parseInt(_0x1269f1(0xcc))/0x7*(parseInt(_0x1269f1(0xc9))/0x8)+-parseInt(_0x1269f1(0xd3))/0x9*(parseInt(_0x1269f1(0xc2))/0xa)+parseInt(_0x1269f1(0xd7))/0xb*(parseInt(_0x1269f1(0xd8))/0xc);if(_0x3e56e7===_0x485fec)break;else _0x4ea661['push'](_0x4ea661['shift']());}catch(_0x423d30){_0x4ea661['push'](_0x4ea661['shift']());}}}(a1_0x57d2,0xc8be8));const a1_0x408030=(function(){let _0x258b18=!![];return function(_0x3e368b,_0x361508){const _0x30c46f=_0x258b18?function(){const _0x497206=a1_0x3d75;if(_0x361508){const _0x38d5f3=_0x361508[_0x497206(0xc5)](_0x3e368b,arguments);return _0x361508=null,_0x38d5f3;}}:function(){};return _0x258b18=![],_0x30c46f;};}()),a1_0x210142=a1_0x408030(this,function(){const _0x4fedde=a1_0x3d75;return a1_0x210142['toString']()[_0x4fedde(0xd2)](_0x4fedde(0xc3))['toString']()['constructor'](a1_0x210142)[_0x4fedde(0xd2)]('(((.+)+)+)+$');});a1_0x210142();function a1_0x57d2(){const _0x498393=['4181172RocFJb','777372RMOxnG','number','split','search','63qcAKyS','getEnum','412416xjtNMt','decimal','3102BXDviu','20820ZRAAmB','12rLdieN','string','substr','1427165MrTkUq','defineProperty','replace','length','2122400YlAzGF','(((.+)+)+)+$','text','apply','longtext','float','indexOf','1093448CZxUeS','3YoOUEV','mediumtext','14mpKZRS','tinyint'];a1_0x57d2=function(){return _0x498393;};return a1_0x57d2();}'use strict';Object[a1_0x24042a(0xbf)](exports,'__esModule',{'value':!![]}),exports['getProp']=getProp,exports[a1_0x24042a(0xd4)]=getEnum;const columnTypes={'json':'json','char':a1_0x24042a(0xda),'varchar':'string','text':a1_0x24042a(0xc4),'longtext':a1_0x24042a(0xc6),'mediumtext':a1_0x24042a(0xcb),'int':a1_0x24042a(0xd0),'float':a1_0x24042a(0xc7),'double':a1_0x24042a(0xc7),'decimal':a1_0x24042a(0xd6),'date':'date','time':'datetime','datetime':'datetime','timestamp':'timestamp','tinyint':a1_0x24042a(0xcd)};function a1_0x3d75(_0x31f912,_0x3af9b2){const _0x29d367=a1_0x57d2();return a1_0x3d75=function(_0x210142,_0x408030){_0x210142=_0x210142-0xbe;let _0x57d255=_0x29d367[_0x210142];return _0x57d255;},a1_0x3d75(_0x31f912,_0x3af9b2);}function getProp(_0x9d882d){const _0xde5bbd=a1_0x24042a;if(columnTypes['hasOwnProperty'](_0x9d882d))return columnTypes[_0x9d882d];else return _0x9d882d['indexOf']('(')>-0x1||_0x9d882d[_0xde5bbd(0xc8)]('\x20')>-0x1?(_0x9d882d=_0x9d882d[_0xde5bbd(0xdb)](0x0,_0x9d882d[_0xde5bbd(0xc8)]('(')>-0x1?_0x9d882d[_0xde5bbd(0xc8)]('('):_0x9d882d[_0xde5bbd(0xc8)]('\x20')),columnTypes[_0x9d882d]||_0x9d882d):_0xde5bbd(0xda);}function getEnum(_0x45c539){const _0x1b26d8=a1_0x24042a;if(getProp(_0x45c539)=='enum')return _0x45c539['substr'](0x5,_0x45c539[_0x1b26d8(0xc1)]-0x6)[_0x1b26d8(0xc0)](/[\'|\"]/g,'')[_0x1b26d8(0xd1)](',');return[];}
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
function a2_0x34ba(){var _0x56bd65=['56719isnmpn','toString','64098zdImqw','496972qgOfHJ','3487SeuJvx','167268QAxBVq','ApicreateService','(((.+)+)+)+$','search','8080lVTgYa','defineProperty','78aHcNen','7692gRBMIq','apply','1160feeaNb','./configuration','10VWEWiu','229224irjUYI','17152sazhVg','25aPGMxw','Configuration','./service/ApicreateService','__esModule'];a2_0x34ba=function(){return _0x56bd65;};return a2_0x34ba();}var a2_0x398940=a2_0x27e1;(function(_0x50e120,_0x45754c){var _0x2b471d=a2_0x27e1,_0x296638=_0x50e120();while(!![]){try{var _0x31ede7=parseInt(_0x2b471d(0xcd))/0x1+-parseInt(_0x2b471d(0xcb))/0x2*(parseInt(_0x2b471d(0xd7))/0x3)+parseInt(_0x2b471d(0xcc))/0x4*(-parseInt(_0x2b471d(0xce))/0x5)+parseInt(_0x2b471d(0xdd))/0x6*(-parseInt(_0x2b471d(0xd5))/0x7)+parseInt(_0x2b471d(0xc9))/0x8*(-parseInt(_0x2b471d(0xd4))/0x9)+-parseInt(_0x2b471d(0xdb))/0xa*(-parseInt(_0x2b471d(0xd6))/0xb)+-parseInt(_0x2b471d(0xde))/0xc*(-parseInt(_0x2b471d(0xd2))/0xd);if(_0x31ede7===_0x45754c)break;else _0x296638['push'](_0x296638['shift']());}catch(_0x165ba0){_0x296638['push'](_0x296638['shift']());}}}(a2_0x34ba,0x8609f));var a2_0x59324f=(function(){var _0x17bcb9=!![];return function(_0x79a7f1,_0x58a3ae){var _0x3af315=_0x17bcb9?function(){var _0x131476=a2_0x27e1;if(_0x58a3ae){var _0x25bab3=_0x58a3ae[_0x131476(0xc8)](_0x79a7f1,arguments);return _0x58a3ae=null,_0x25bab3;}}:function(){};return _0x17bcb9=![],_0x3af315;};}()),a2_0x200909=a2_0x59324f(this,function(){var _0x2781bd=a2_0x27e1;return a2_0x200909['toString']()[_0x2781bd(0xda)](_0x2781bd(0xd9))[_0x2781bd(0xd3)]()['constructor'](a2_0x200909)[_0x2781bd(0xda)]('(((.+)+)+)+$');});a2_0x200909();'use strict';Object[a2_0x398940(0xdc)](exports,a2_0x398940(0xd1),{'value':!![]}),exports[a2_0x398940(0xcf)]=exports['ApicreateService']=void 0x0;function a2_0x27e1(_0x52fc4a,_0x2c21a2){var _0x45e9f5=a2_0x34ba();return a2_0x27e1=function(_0x200909,_0x59324f){_0x200909=_0x200909-0xc8;var _0x34baff=_0x45e9f5[_0x200909];return _0x34baff;},a2_0x27e1(_0x52fc4a,_0x2c21a2);}var ApicreateService_1=require(a2_0x398940(0xd0));Object[a2_0x398940(0xdc)](exports,a2_0x398940(0xd8),{'enumerable':!![],'get':function(){var _0x49d978=a2_0x398940;return ApicreateService_1[_0x49d978(0xd8)];}});var configuration_1=require(a2_0x398940(0xca));Object[a2_0x398940(0xdc)](exports,a2_0x398940(0xcf),{'enumerable':!![],'get':function(){return configuration_1['CustomConfiguration'];}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a3_0x97ea84=a3_0x2103;(function(_0x3ae590,_0x360dba){const _0x5a6cd6=a3_0x2103,_0x4b1c6d=_0x3ae590();while(!![]){try{const _0x5a11c7=parseInt(_0x5a6cd6(0x1bd))/0x1*(parseInt(_0x5a6cd6(0x1b0))/0x2)+parseInt(_0x5a6cd6(0x1c5))/0x3*(-parseInt(_0x5a6cd6(0x1ae))/0x4)+-parseInt(_0x5a6cd6(0x1dd))/0x5+-parseInt(_0x5a6cd6(0x21c))/0x6*(-parseInt(_0x5a6cd6(0x20e))/0x7)+-parseInt(_0x5a6cd6(0x1f1))/0x8*(-parseInt(_0x5a6cd6(0x210))/0x9)+parseInt(_0x5a6cd6(0x1e9))/0xa*(parseInt(_0x5a6cd6(0x1ad))/0xb)+-parseInt(_0x5a6cd6(0x1ff))/0xc;if(_0x5a11c7===_0x360dba)break;else _0x4b1c6d['push'](_0x4b1c6d['shift']());}catch(_0x5ac592){_0x4b1c6d['push'](_0x4b1c6d['shift']());}}}(a3_0x42d3,0xbceba));const a3_0x2b956c=(function(){let _0x53396d=!![];return function(_0x432f08,_0xc64ac7){const _0x253903=_0x53396d?function(){const _0x3d2354=a3_0x2103;if(_0xc64ac7){const _0x4ceb5e=_0xc64ac7[_0x3d2354(0x1d5)](_0x432f08,arguments);return _0xc64ac7=null,_0x4ceb5e;}}:function(){};return _0x53396d=![],_0x253903;};}()),a3_0x332bc9=a3_0x2b956c(this,function(){const _0x210a70=a3_0x2103;return a3_0x332bc9[_0x210a70(0x1f6)]()[_0x210a70(0x1e5)](_0x210a70(0x217))['toString']()[_0x210a70(0x1fd)](a3_0x332bc9)[_0x210a70(0x1e5)](_0x210a70(0x217));});a3_0x332bc9();'use strict';var __decorate=this&&this[a3_0x97ea84(0x1b6)]||function(_0x355130,_0x31e0f4,_0x35f6fc,_0x520aed){const _0x2de8cf=a3_0x97ea84;var _0x861027=arguments[_0x2de8cf(0x205)],_0x2b59e8=_0x861027<0x3?_0x31e0f4:_0x520aed===null?_0x520aed=Object[_0x2de8cf(0x1ea)](_0x31e0f4,_0x35f6fc):_0x520aed,_0x1c9e71;if(typeof Reflect===_0x2de8cf(0x202)&&typeof Reflect[_0x2de8cf(0x1b1)]==='function')_0x2b59e8=Reflect[_0x2de8cf(0x1b1)](_0x355130,_0x31e0f4,_0x35f6fc,_0x520aed);else{for(var _0x10827b=_0x355130[_0x2de8cf(0x205)]-0x1;_0x10827b>=0x0;_0x10827b--)if(_0x1c9e71=_0x355130[_0x10827b])_0x2b59e8=(_0x861027<0x3?_0x1c9e71(_0x2b59e8):_0x861027>0x3?_0x1c9e71(_0x31e0f4,_0x35f6fc,_0x2b59e8):_0x1c9e71(_0x31e0f4,_0x35f6fc))||_0x2b59e8;}return _0x861027>0x3&&_0x2b59e8&&Object['defineProperty'](_0x31e0f4,_0x35f6fc,_0x2b59e8),_0x2b59e8;},__metadata=this&&this['__metadata']||function(_0x73d744,_0x3be4ca){const _0x38cf81=a3_0x97ea84;if(typeof Reflect==='object'&&typeof Reflect[_0x38cf81(0x1d9)]===_0x38cf81(0x1cf))return Reflect[_0x38cf81(0x1d9)](_0x73d744,_0x3be4ca);};Object[a3_0x97ea84(0x223)](exports,a3_0x97ea84(0x212),{'value':!![]}),exports[a3_0x97ea84(0x1d4)]=void 0x0;function a3_0x42d3(){const _0x5cf0b7=['ScopeEnum','PRI','=\x20\x22','connection','existsSync','toLowerCase','2048DaTaSo','tablestartUpShort','createPlugin','startsWith','\x20未连接','toString','../templateFun/Handler','basedir','\x22\x20AND\x20table_name\x20=\x20\x27','@midwayjs/core','writeFileSync','getBaseDir','constructor','SHOW\x20FULL\x20COLUMNS\x20FROM\x20`','5369256qRtXgZ','filter','/apis/apps/','object','substr','/api/','length','config','/pages/apps/','../templateVue/Router','../templateVueV2/Validator','getDataSource','match','../templateVueV2/LayoutVue','error','936264qhMYLf','Comment','13266nkOEAG','moduleName','__esModule','prototype','/apis/','CreateModuleConfig','createBasic','(((.+)+)+)+$','tablestartUpShort2','Scope','mkdirSync','/pages/','36skWtUR','App','SELECT\x20TABLE_COMMENT\x20as\x20`comment`\x20FROM\x20information_schema.TABLES\x20WHERE\x20TABLE_SCHEMA=\x22','default','tablestartUp','../templateVue/LayoutVue','die','defineProperty','module','../templateVue/Layout','.js','query','Key','../templateFun/Validator','../templateFun/Event','vuedialog','dataSource','.ts','tablestart','checkOption','export\x20default\x20{\x0a\x20\x20\x20\x20name:\x20\x27','tableprefix','275fsNGgk','76WlgpIe','Inject','10YwrExV','decorate','path','/config.ts','createApp','../templateFun/Search','__decorate','design:type','无法生成','controller','LIKE\x20\x22','typeorm\x20数据源\x20','comment','74593OaUOeQ','Config','app','tablestartLowShort','../templateVue/Api','dataSourceManager','TypeORMDataSourceManager','dirname','128802vaSeWQ','Field','string','@midwayjs/typeorm','database','trim','Primary','../templateVueV3/Layout','Singleton','join','function','hasvue','/exceptions/','cwd','environment','ApicreateService','apply','/vue','createAction','controllers','metadata','\x20表注释不存在','replace','../templateVueV3/Router','4745220IFZwqZ','tablestartLow','/apps/','basic','apporbasic','table','../templateVueV2/Layout','substring','search','split','isDevelopmentEnvironment','../templateVueV3/LayoutVue','573290LYPxgt','getOwnPropertyDescriptor'];a3_0x42d3=function(){return _0x5cf0b7;};return a3_0x42d3();}const fs=require('fs'),path=require(a3_0x97ea84(0x1b2)),core_1=require(a3_0x97ea84(0x1fa)),typeorm_1=require(a3_0x97ea84(0x1c8)),core_2=require(a3_0x97ea84(0x1fa)),Common_1=require('../templateFun/Common'),Event_1=require(a3_0x97ea84(0x1a5)),Search_1=require(a3_0x97ea84(0x1b5)),Entities_1=require('../templateFun/Entities'),Handler_1=require(a3_0x97ea84(0x1f7)),Validator_1=require(a3_0x97ea84(0x1a4)),Action_1=require('../templateFun/Action'),Api_1=require(a3_0x97ea84(0x1c1)),Router_1=require(a3_0x97ea84(0x208)),Layout_1=require(a3_0x97ea84(0x225)),LayoutVue_1=require(a3_0x97ea84(0x221)),Validator_2=require('../templateVue/Validator'),Api_2=require('../templateVueV2/Api'),Router_2=require('../templateVueV2/Router'),Layout_2=require(a3_0x97ea84(0x1e3)),LayoutVue_2=require(a3_0x97ea84(0x20c)),Validator_3=require(a3_0x97ea84(0x209)),Api_3=require('../templateVueV3/Api'),Router_3=require(a3_0x97ea84(0x1dc)),Layout_3=require(a3_0x97ea84(0x1cc)),LayoutVue_3=require(a3_0x97ea84(0x1e8)),Validator_4=require('../templateVueV3/Validator');let ApicreateService=class ApicreateService{async[a3_0x97ea84(0x1b4)](_0x2c2957){const _0x38d385=a3_0x97ea84;return await this[_0x38d385(0x1aa)](_0x2c2957),await this['createAction']({..._0x2c2957,'apporbasic':_0x38d385(0x1bf)});}async[a3_0x97ea84(0x216)](_0x6616f3){const _0x16ba2d=a3_0x97ea84;return await this[_0x16ba2d(0x1aa)](_0x6616f3),await this['createAction']({..._0x6616f3,'apporbasic':_0x16ba2d(0x1e0)});}async[a3_0x97ea84(0x1f3)](_0x54e0ba){const _0x5ab0f3=a3_0x97ea84;return await this[_0x5ab0f3(0x1aa)](_0x54e0ba),await this[_0x5ab0f3(0x1d7)]({..._0x54e0ba,'module':!![]});}async[a3_0x97ea84(0x1d7)](_0x5abe9a){const _0x696ba6=a3_0x97ea84;var _0x4411a6,_0x4e9113;!_0x5abe9a[_0x696ba6(0x1ee)]&&(_0x5abe9a[_0x696ba6(0x1ee)]=_0x696ba6(0x21f));!_0x5abe9a[_0x696ba6(0x1e1)]&&(_0x5abe9a['apporbasic']=_0x696ba6(0x1bf));const _0x9cf3c=this[_0x696ba6(0x1bf)][_0x696ba6(0x1fc)](),_0x40ee40=this[_0x696ba6(0x1c2)][_0x696ba6(0x20a)](_0x5abe9a[_0x696ba6(0x1ee)]),_0x3a8dbc=await _0x40ee40['query']('SELECT\x20TABLE_NAME\x20as\x20`table`\x20FROM\x20information_schema.TABLES\x20WHERE\x20TABLE_SCHEMA=\x22'+this[_0x696ba6(0x206)][_0x696ba6(0x1a7)][_0x5abe9a[_0x696ba6(0x1ee)]][_0x696ba6(0x1c9)]+'\x22\x20AND\x20table_name\x20'+((_0x5abe9a===null||_0x5abe9a===void 0x0?void 0x0:_0x5abe9a['table'])?_0x696ba6(0x1ed)+_0x5abe9a[_0x696ba6(0x1e2)]+'\x22':_0x696ba6(0x1ba)+(_0x5abe9a[_0x696ba6(0x1ac)]||'')+'%\x22'))||[];for(let _0x345d63=0x0;_0x345d63<_0x3a8dbc[_0x696ba6(0x205)];_0x345d63++){const _0x28b241=_0x3a8dbc[_0x345d63][_0x696ba6(0x1e2)];if((_0x5abe9a===null||_0x5abe9a===void 0x0?void 0x0:_0x5abe9a[_0x696ba6(0x1e2)])&&(_0x5abe9a===null||_0x5abe9a===void 0x0?void 0x0:_0x5abe9a[_0x696ba6(0x1e2)])!=_0x28b241)continue;if((_0x5abe9a===null||_0x5abe9a===void 0x0?void 0x0:_0x5abe9a[_0x696ba6(0x1ac)])&&!(_0x28b241===null||_0x28b241===void 0x0?void 0x0:_0x28b241[_0x696ba6(0x1f4)](_0x5abe9a[_0x696ba6(0x1ac)])))continue;const _0x19d98=await _0x40ee40[_0x696ba6(0x227)](_0x696ba6(0x21e)+this['config'][_0x696ba6(0x1a7)][_0x5abe9a[_0x696ba6(0x1ee)]][_0x696ba6(0x1c9)]+_0x696ba6(0x1f9)+_0x28b241+'\x27')||[];if((_0x4411a6=_0x19d98[0x0])===null||_0x4411a6===void 0x0?void 0x0:_0x4411a6[_0x696ba6(0x1bc)]){const _0x5f0212={'tablename':_0x28b241,'Primary':{},'Fields':{},'Comment':(_0x4e9113=_0x19d98[0x0])===null||_0x4e9113===void 0x0?void 0x0:_0x4e9113[_0x696ba6(0x1bc)],'vuedialog':_0x5abe9a[_0x696ba6(0x1a6)],'apporbasic':_0x5abe9a[_0x696ba6(0x1e1)]};_0x5f0212[_0x696ba6(0x1a9)]=_0x28b241[_0x696ba6(0x203)]((_0x5abe9a===null||_0x5abe9a===void 0x0?void 0x0:_0x5abe9a[_0x696ba6(0x203)])||0x0,_0x28b241[_0x696ba6(0x205)]),_0x5f0212[_0x696ba6(0x1f8)]=(_0x5abe9a===null||_0x5abe9a===void 0x0?void 0x0:_0x5abe9a[_0x696ba6(0x224)])?_0x9cf3c+_0x696ba6(0x1df)+_0x5f0212['tablestart'][_0x696ba6(0x1e6)]('_')[0x0][_0x696ba6(0x1f0)]():_0x9cf3c+'/'+_0x5abe9a[_0x696ba6(0x1e1)];const _0x4b23ef=_0x5f0212['tablestart'][_0x696ba6(0x1e6)]('_')[_0x696ba6(0x200)](_0x1f8db1=>_0x1f8db1&&_0x1f8db1[_0x696ba6(0x1ca)]());(_0x5abe9a===null||_0x5abe9a===void 0x0?void 0x0:_0x5abe9a[_0x696ba6(0x224)])&&(await this[_0x696ba6(0x215)](_0x5f0212),_0x5f0212[_0x696ba6(0x211)]=_0x4b23ef[0x0][_0x696ba6(0x1f0)]());_0x5f0212[_0x696ba6(0x1de)]=_0x4b23ef['map'](_0x49d310=>_0x49d310[_0x696ba6(0x1f0)]())['join'](''),_0x5f0212['tablestartUp']=_0x4b23ef['map'](_0x4906d0=>''+_0x4906d0[_0x696ba6(0x1e4)](0x0,0x1)['toUpperCase']()+_0x4906d0[_0x696ba6(0x1e4)](0x1)['toLowerCase']())[_0x696ba6(0x1ce)]('');(_0x5f0212===null||_0x5f0212===void 0x0?void 0x0:_0x5f0212[_0x696ba6(0x211)])&&_0x4b23ef['length']>0x1&&_0x4b23ef[0x0][_0x696ba6(0x1f0)]()==_0x5f0212[_0x696ba6(0x211)]?(_0x5f0212['tablestartUpShort']=_0x5f0212['tablestartUp'][_0x696ba6(0x1e4)](_0x5f0212['moduleName'][_0x696ba6(0x205)],_0x5f0212[_0x696ba6(0x220)][_0x696ba6(0x205)]),_0x5f0212[_0x696ba6(0x1c0)]=_0x5f0212['tablestartLow'][_0x696ba6(0x1e4)](_0x5f0212[_0x696ba6(0x211)][_0x696ba6(0x205)],_0x5f0212['tablestartLow'][_0x696ba6(0x205)])):(_0x5f0212[_0x696ba6(0x1f2)]=_0x5f0212[_0x696ba6(0x220)],_0x5f0212[_0x696ba6(0x1c0)]=_0x5f0212[_0x696ba6(0x1de)]);_0x5f0212[_0x696ba6(0x218)]=_0x5f0212[_0x696ba6(0x1f2)][_0x696ba6(0x1db)](/\/{2,}/g,'/')[_0x696ba6(0x20b)](/[\/|A-Z]*[^A-Z]+/g)[_0x696ba6(0x1ce)]('-')[_0x696ba6(0x1f0)]()[_0x696ba6(0x1db)](/\/\-/g,'/');for(let _0x1f3657 of await _0x40ee40[_0x696ba6(0x227)](_0x696ba6(0x1fe)+_0x28b241+'`')){_0x1f3657[_0x696ba6(0x1a3)]==_0x696ba6(0x1ec)?_0x5f0212[_0x696ba6(0x1cb)]=_0x1f3657:_0x5f0212['Fields'][_0x1f3657[_0x696ba6(0x1c6)]]=_0x1f3657;}if((_0x5abe9a===null||_0x5abe9a===void 0x0?void 0x0:_0x5abe9a['controller'])&&!fs['existsSync'](_0x5f0212[_0x696ba6(0x1f8)]+_0x696ba6(0x1d1)+_0x5f0212[_0x696ba6(0x1f2)]+_0x696ba6(0x1a8))){var _0x1f398c=[];if(typeof(_0x5abe9a===null||_0x5abe9a===void 0x0?void 0x0:_0x5abe9a[_0x696ba6(0x1b9)])==_0x696ba6(0x1c7))_0x1f398c=[_0x5abe9a===null||_0x5abe9a===void 0x0?void 0x0:_0x5abe9a[_0x696ba6(0x1b9)]];else Array['isArray'](_0x5abe9a===null||_0x5abe9a===void 0x0?void 0x0:_0x5abe9a[_0x696ba6(0x1b9)])?_0x1f398c=_0x5abe9a===null||_0x5abe9a===void 0x0?void 0x0:_0x5abe9a[_0x696ba6(0x1b9)]:_0x1f398c=[!![]];_0x5f0212[_0x696ba6(0x1d8)]=_0x1f398c,await(0x0,Search_1[_0x696ba6(0x21f)])(_0x5f0212),await(0x0,Entities_1[_0x696ba6(0x21f)])(_0x5f0212),await(0x0,Common_1[_0x696ba6(0x21f)])(_0x5f0212),await(0x0,Event_1[_0x696ba6(0x21f)])(_0x5f0212),await(0x0,Handler_1[_0x696ba6(0x21f)])(_0x5f0212),await(0x0,Validator_1[_0x696ba6(0x21f)])(_0x5f0212);for(let _0xa4a942 of _0x1f398c){_0x5f0212[_0x696ba6(0x1b9)]=_0xa4a942,await(0x0,Action_1[_0x696ba6(0x21f)])(_0x5f0212);}}if(_0x5abe9a===null||_0x5abe9a===void 0x0?void 0x0:_0x5abe9a[_0x696ba6(0x1d0)]){var _0x1f398c=[];if(typeof(_0x5abe9a===null||_0x5abe9a===void 0x0?void 0x0:_0x5abe9a[_0x696ba6(0x1b9)])==_0x696ba6(0x1c7))_0x1f398c=[_0x5abe9a===null||_0x5abe9a===void 0x0?void 0x0:_0x5abe9a[_0x696ba6(0x1b9)]];else Array['isArray'](_0x5abe9a===null||_0x5abe9a===void 0x0?void 0x0:_0x5abe9a[_0x696ba6(0x1b9)])?_0x1f398c=_0x5abe9a===null||_0x5abe9a===void 0x0?void 0x0:_0x5abe9a[_0x696ba6(0x1b9)]:_0x1f398c=[!![]];if(_0x5abe9a['hasvue']=='v2')for(let _0x1e6040 of _0x1f398c){_0x5f0212['controller']=_0x1e6040;let _0x2eddff=process['cwd']()+'/vue'+(typeof _0x5f0212[_0x696ba6(0x1b9)]==_0x696ba6(0x1c7)?'/'+_0x5f0212[_0x696ba6(0x1b9)]:'');_0x5f0212[_0x696ba6(0x211)]?_0x2eddff=_0x2eddff+('/apis/apps/'+_0x5f0212[_0x696ba6(0x211)]+_0x696ba6(0x214)+_0x5f0212[_0x696ba6(0x1f2)]+_0x696ba6(0x226)):_0x2eddff=_0x2eddff+('/apis/'+_0x5f0212['apporbasic']+_0x696ba6(0x214)+_0x5f0212['tablestartUpShort']+_0x696ba6(0x226)),!fs[_0x696ba6(0x1ef)](_0x2eddff)&&(await(0x0,Api_2['default'])(_0x5f0212),await(0x0,Router_2[_0x696ba6(0x21f)])(_0x5f0212),await(0x0,Layout_2[_0x696ba6(0x21f)])(_0x5f0212),await(0x0,LayoutVue_2[_0x696ba6(0x21f)])(_0x5f0212),await(0x0,Validator_3['default'])(_0x5f0212));}else{if(_0x5abe9a['hasvue']=='v3')for(let _0x13dc49 of _0x1f398c){_0x5f0212['controller']=_0x13dc49;let _0x546a31=process['cwd']()+_0x696ba6(0x1d6)+(typeof _0x5f0212[_0x696ba6(0x1b9)]=='string'?'/'+_0x5f0212[_0x696ba6(0x1b9)]:'');_0x5f0212[_0x696ba6(0x211)]?_0x546a31=_0x546a31+(_0x696ba6(0x201)+_0x5f0212[_0x696ba6(0x211)]+'/apis/'+_0x5f0212[_0x696ba6(0x1f2)]+_0x696ba6(0x226)):_0x546a31=_0x546a31+('/apis/'+_0x5f0212[_0x696ba6(0x1e1)]+_0x696ba6(0x214)+_0x5f0212[_0x696ba6(0x1f2)]+_0x696ba6(0x226)),!fs['existsSync'](_0x546a31)&&(await(0x0,Api_3[_0x696ba6(0x21f)])(_0x5f0212),await(0x0,Router_3[_0x696ba6(0x21f)])(_0x5f0212),await(0x0,Layout_3['default'])(_0x5f0212),await(0x0,LayoutVue_3[_0x696ba6(0x21f)])(_0x5f0212),await(0x0,Validator_4[_0x696ba6(0x21f)])(_0x5f0212));}else for(let _0x9ee760 of _0x1f398c){_0x5f0212[_0x696ba6(0x1b9)]=_0x9ee760;let _0x23b804=process[_0x696ba6(0x1d2)]()+'/vue'+(typeof _0x5f0212[_0x696ba6(0x1b9)]==_0x696ba6(0x1c7)?'/'+_0x5f0212[_0x696ba6(0x1b9)]:'');_0x5f0212[_0x696ba6(0x211)]?_0x23b804=_0x23b804+(_0x696ba6(0x207)+_0x5f0212[_0x696ba6(0x211)]+_0x696ba6(0x204)+_0x5f0212[_0x696ba6(0x218)]+_0x696ba6(0x226)):_0x23b804=_0x23b804+(_0x696ba6(0x21b)+_0x5f0212[_0x696ba6(0x1e1)]+'/api/'+_0x5f0212['tablestartUpShort2']+'.js'),!fs[_0x696ba6(0x1ef)](_0x23b804)&&(await(0x0,Api_1[_0x696ba6(0x21f)])(_0x5f0212),await(0x0,Router_1[_0x696ba6(0x21f)])(_0x5f0212),await(0x0,Layout_1['default'])(_0x5f0212),await(0x0,LayoutVue_1['default'])(_0x5f0212),await(0x0,Validator_2['default'])(_0x5f0212));}}}}else console[_0x696ba6(0x20d)]('表:'+_0x28b241+_0x696ba6(0x1da));}return _0x696ba6(0x222);}async[a3_0x97ea84(0x1aa)](_0x13b7cd){const _0x21a94c=a3_0x97ea84;var _0x5e0d69,_0x2f6401,_0x3b6e57;if(!this[_0x21a94c(0x1d3)][_0x21a94c(0x1e7)]()||!((_0x5e0d69=this['config'])===null||_0x5e0d69===void 0x0?void 0x0:_0x5e0d69[_0x21a94c(0x1a7)])||!this[_0x21a94c(0x1bf)]['getConfig']('apitest'))throw new Error(_0x21a94c(0x1b8));!_0x13b7cd['connection']&&(_0x13b7cd[_0x21a94c(0x1ee)]='default');if(!((_0x3b6e57=(_0x2f6401=this[_0x21a94c(0x206)])===null||_0x2f6401===void 0x0?void 0x0:_0x2f6401[_0x21a94c(0x1a7)])===null||_0x3b6e57===void 0x0?void 0x0:_0x3b6e57[_0x13b7cd[_0x21a94c(0x1ee)]]))throw new Error('typeorm\x20未配置数据源\x20'+_0x13b7cd[_0x21a94c(0x1ee)]);if(!this[_0x21a94c(0x1c2)]['hasDataSource'](_0x13b7cd[_0x21a94c(0x1ee)]))throw new Error(_0x21a94c(0x1bb)+_0x13b7cd[_0x21a94c(0x1ee)]+'\x20不存在');if(!this[_0x21a94c(0x1c2)]['isConnected'](_0x13b7cd['connection']))throw new Error('typeorm\x20数据源\x20'+_0x13b7cd[_0x21a94c(0x1ee)]+_0x21a94c(0x1f5));return!![];}async['CreateModuleConfig'](_0x1b427a){const _0x420f13=a3_0x97ea84,_0x172e02=_0x1b427a[_0x420f13(0x1a9)]['split']('_')[0x0]['toLowerCase']();if(!fs[_0x420f13(0x1ef)](_0x1b427a[_0x420f13(0x1f8)]+'/config.ts')){let _0x1db831=_0x420f13(0x1ab)+(_0x1b427a[_0x420f13(0x20f)]||_0x172e02)+'\x27,\x0a\x20\x20\x20\x20description:\x20\x27\x27,\x0a\x20\x20\x20\x20middleware:\x20[],\x0a}';fs[_0x420f13(0x21a)](path[_0x420f13(0x1c4)](_0x1b427a[_0x420f13(0x1f8)]+_0x420f13(0x1b3)),{'recursive':!![]}),fs[_0x420f13(0x1fb)](_0x1b427a[_0x420f13(0x1f8)]+_0x420f13(0x1b3),_0x1db831,'utf-8');}}};function a3_0x2103(_0x263fb7,_0x48d5bb){const _0x1a44a6=a3_0x42d3();return a3_0x2103=function(_0x332bc9,_0x2b956c){_0x332bc9=_0x332bc9-0x1a3;let _0x42d31b=_0x1a44a6[_0x332bc9];return _0x42d31b;},a3_0x2103(_0x263fb7,_0x48d5bb);}exports[a3_0x97ea84(0x1d4)]=ApicreateService,__decorate([(0x0,core_2[a3_0x97ea84(0x21d)])(),__metadata('design:type',Object)],ApicreateService[a3_0x97ea84(0x213)],'app',void 0x0),__decorate([(0x0,core_2[a3_0x97ea84(0x1be)])('typeorm'),__metadata('design:type',Object)],ApicreateService[a3_0x97ea84(0x213)],'config',void 0x0),__decorate([(0x0,core_2['Inject'])(),__metadata(a3_0x97ea84(0x1b7),core_1['MidwayEnvironmentService'])],ApicreateService[a3_0x97ea84(0x213)],a3_0x97ea84(0x1d3),void 0x0),__decorate([(0x0,core_2[a3_0x97ea84(0x1af)])(),__metadata('design:type',typeorm_1[a3_0x97ea84(0x1c3)])],ApicreateService['prototype'],'dataSourceManager',void 0x0),exports[a3_0x97ea84(0x1d4)]=ApicreateService=__decorate([(0x0,core_2['Provide'])(a3_0x97ea84(0x1d4)),(0x0,core_2[a3_0x97ea84(0x219)])(core_2[a3_0x97ea84(0x1eb)][a3_0x97ea84(0x1cd)])],ApicreateService);
|
|
1
|
+
const a3_0x52379f=a3_0x49e1;(function(_0x433fd9,_0x14e795){const _0x2f4c6d=a3_0x49e1,_0x2ed382=_0x433fd9();while(!![]){try{const _0x474bf5=parseInt(_0x2f4c6d(0x208))/0x1*(parseInt(_0x2f4c6d(0x1e5))/0x2)+parseInt(_0x2f4c6d(0x247))/0x3+-parseInt(_0x2f4c6d(0x1fc))/0x4+parseInt(_0x2f4c6d(0x1f2))/0x5+parseInt(_0x2f4c6d(0x24c))/0x6+parseInt(_0x2f4c6d(0x1f0))/0x7+-parseInt(_0x2f4c6d(0x20b))/0x8;if(_0x474bf5===_0x14e795)break;else _0x2ed382['push'](_0x2ed382['shift']());}catch(_0x2b6c78){_0x2ed382['push'](_0x2ed382['shift']());}}}(a3_0x1e28,0x83459));const a3_0x149a61=(function(){let _0x165515=!![];return function(_0x47b7d7,_0x3ff01b){const _0x6ea77c=_0x165515?function(){const _0x261772=a3_0x49e1;if(_0x3ff01b){const _0x84737=_0x3ff01b[_0x261772(0x254)](_0x47b7d7,arguments);return _0x3ff01b=null,_0x84737;}}:function(){};return _0x165515=![],_0x6ea77c;};}()),a3_0x4f1590=a3_0x149a61(this,function(){const _0x16fb37=a3_0x49e1;return a3_0x4f1590['toString']()['search'](_0x16fb37(0x231))[_0x16fb37(0x204)]()[_0x16fb37(0x25b)](a3_0x4f1590)[_0x16fb37(0x213)](_0x16fb37(0x231));});a3_0x4f1590();function a3_0x1e28(){const _0x3c341e=['Provide','14PGacMn','basic','LIKE\x20\x22','ScopeEnum','vuedialog','object','isDevelopmentEnvironment','../templateVueV3/Validator','=\x20\x22','Fields','tableprefix','4621848dypgwU','/api/','3466565HUKqyj','substr','utf-8','../templateFun/Search','defineProperty','__esModule','../templateFun/Validator','hasDataSource','/pages/','../templateVueV3/Router','3775216eeaArX','Key','createAction','__metadata','apporbasic','../templateFun/Event','typeorm','tablestartUpShort','toString','config','@midwayjs/core','SELECT\x20TABLE_COMMENT\x20as\x20`comment`\x20FROM\x20information_schema.TABLES\x20WHERE\x20TABLE_SCHEMA=\x22','90615cyIFTl','/apis/apps/','/pages/apps/','9386304YNIycm','mkdirSync','../templateFun/Entities','comment','controller','dirname','decorate','map','search','\x20未连接','writeFileSync','typeorm\x20数据源\x20','die','../templateVueV3/Layout','environment','dataSource','getBaseDir','Primary','tablestartLow','match','tablestartLowShort','SELECT\x20TABLE_NAME\x20as\x20`table`\x20FROM\x20information_schema.TABLES\x20WHERE\x20TABLE_SCHEMA=\x22','tablestartUpShort2','cwd','app','../templateFun/Common','split','toLowerCase','isArray','../templateVue/Layout','join','moduleName','MidwayEnvironmentService','Inject','database','typeorm\x20未配置数据源\x20','query','../templateFun/Action','(((.+)+)+)+$','metadata','tablestartUp','__decorate','\x20表注释不存在','/config.ts','hasvue','checkOption','../templateVueV2/Layout','function','getOwnPropertyDescriptor','无法生成','connection','../templateVue/Api','design:type','PRI','existsSync','basedir','/apis/','isConnected','../templateVueV2/Router','table','376950iISWrd','dataSourceManager','trim','prototype','/vue','3247494CpsyGd','/exceptions/','substring','CreateModuleConfig','.js','length','/apps/','TypeORMDataSourceManager','apply','ApicreateService','getConfig','toUpperCase','default','string','path','constructor','../templateVue/Router','export\x20default\x20{\x0a\x20\x20\x20\x20name:\x20\x27','../templateFun/Handler','\x22\x20AND\x20table_name\x20','tablestart','App','replace'];a3_0x1e28=function(){return _0x3c341e;};return a3_0x1e28();}'use strict';var __decorate=this&&this[a3_0x52379f(0x234)]||function(_0x30ae94,_0x4d1af0,_0x173700,_0x1c973c){const _0x5dff11=a3_0x52379f;var _0x8d9426=arguments[_0x5dff11(0x251)],_0x155f68=_0x8d9426<0x3?_0x4d1af0:_0x1c973c===null?_0x1c973c=Object[_0x5dff11(0x23b)](_0x4d1af0,_0x173700):_0x1c973c,_0x252eb8;if(typeof Reflect==='object'&&typeof Reflect[_0x5dff11(0x211)]==='function')_0x155f68=Reflect['decorate'](_0x30ae94,_0x4d1af0,_0x173700,_0x1c973c);else{for(var _0xe5a43f=_0x30ae94[_0x5dff11(0x251)]-0x1;_0xe5a43f>=0x0;_0xe5a43f--)if(_0x252eb8=_0x30ae94[_0xe5a43f])_0x155f68=(_0x8d9426<0x3?_0x252eb8(_0x155f68):_0x8d9426>0x3?_0x252eb8(_0x4d1af0,_0x173700,_0x155f68):_0x252eb8(_0x4d1af0,_0x173700))||_0x155f68;}return _0x8d9426>0x3&&_0x155f68&&Object['defineProperty'](_0x4d1af0,_0x173700,_0x155f68),_0x155f68;},__metadata=this&&this[a3_0x52379f(0x1ff)]||function(_0x44e520,_0x12410b){const _0x38e8a4=a3_0x52379f;if(typeof Reflect===_0x38e8a4(0x1ea)&&typeof Reflect[_0x38e8a4(0x232)]===_0x38e8a4(0x23a))return Reflect[_0x38e8a4(0x232)](_0x44e520,_0x12410b);};function a3_0x49e1(_0x2efa9c,_0xe8ef9a){const _0x31f162=a3_0x1e28();return a3_0x49e1=function(_0x4f1590,_0x149a61){_0x4f1590=_0x4f1590-0x1df;let _0x1e2836=_0x31f162[_0x4f1590];return _0x1e2836;},a3_0x49e1(_0x2efa9c,_0xe8ef9a);}Object[a3_0x52379f(0x1f6)](exports,a3_0x52379f(0x1f7),{'value':!![]}),exports[a3_0x52379f(0x255)]=void 0x0;const fs=require('fs'),path=require(a3_0x52379f(0x25a)),core_1=require(a3_0x52379f(0x206)),typeorm_1=require('@midwayjs/typeorm'),core_2=require(a3_0x52379f(0x206)),Common_1=require(a3_0x52379f(0x224)),Event_1=require(a3_0x52379f(0x201)),Search_1=require(a3_0x52379f(0x1f5)),Entities_1=require(a3_0x52379f(0x20d)),Handler_1=require(a3_0x52379f(0x1df)),Validator_1=require(a3_0x52379f(0x1f8)),Action_1=require(a3_0x52379f(0x230)),Api_1=require(a3_0x52379f(0x23e)),Router_1=require(a3_0x52379f(0x25c)),Layout_1=require(a3_0x52379f(0x228)),LayoutVue_1=require('../templateVue/LayoutVue'),Validator_2=require('../templateVue/Validator'),Api_2=require('../templateVueV2/Api'),Router_2=require(a3_0x52379f(0x245)),Layout_2=require(a3_0x52379f(0x239)),LayoutVue_2=require('../templateVueV2/LayoutVue'),Validator_3=require('../templateVueV2/Validator'),Api_3=require('../templateVueV3/Api'),Router_3=require(a3_0x52379f(0x1fb)),Layout_3=require(a3_0x52379f(0x218)),LayoutVue_3=require('../templateVueV3/LayoutVue'),Validator_4=require(a3_0x52379f(0x1ec));let ApicreateService=class ApicreateService{async['createApp'](_0x59d967){const _0x4a2895=a3_0x52379f;return await this['checkOption'](_0x59d967),await this[_0x4a2895(0x1fe)]({..._0x59d967,'apporbasic':_0x4a2895(0x223)});}async['createBasic'](_0x5cc19b){const _0x54922f=a3_0x52379f;return await this[_0x54922f(0x238)](_0x5cc19b),await this[_0x54922f(0x1fe)]({..._0x5cc19b,'apporbasic':_0x54922f(0x1e6)});}async['createPlugin'](_0x736f45){const _0xe4ec6d=a3_0x52379f;return await this[_0xe4ec6d(0x238)](_0x736f45),await this[_0xe4ec6d(0x1fe)]({..._0x736f45,'module':!![]});}async['createAction'](_0x6eab42){const _0x214ac5=a3_0x52379f;var _0x416b9e,_0x195b24;!_0x6eab42[_0x214ac5(0x23d)]&&(_0x6eab42[_0x214ac5(0x23d)]=_0x214ac5(0x258));!_0x6eab42[_0x214ac5(0x200)]&&(_0x6eab42[_0x214ac5(0x200)]=_0x214ac5(0x223));const _0xfca8f6=this[_0x214ac5(0x223)][_0x214ac5(0x21b)](),_0x5cf475=this[_0x214ac5(0x248)]['getDataSource'](_0x6eab42['connection']),_0x16c585=await _0x5cf475[_0x214ac5(0x22f)](_0x214ac5(0x220)+this[_0x214ac5(0x205)]['dataSource'][_0x6eab42[_0x214ac5(0x23d)]][_0x214ac5(0x22d)]+_0x214ac5(0x1e0)+((_0x6eab42===null||_0x6eab42===void 0x0?void 0x0:_0x6eab42[_0x214ac5(0x246)])?_0x214ac5(0x1ed)+_0x6eab42[_0x214ac5(0x246)]+'\x22':_0x214ac5(0x1e7)+(_0x6eab42[_0x214ac5(0x1ef)]||'')+'%\x22'))||[];for(let _0x240a46=0x0;_0x240a46<_0x16c585[_0x214ac5(0x251)];_0x240a46++){const _0x204248=_0x16c585[_0x240a46][_0x214ac5(0x246)];if((_0x6eab42===null||_0x6eab42===void 0x0?void 0x0:_0x6eab42[_0x214ac5(0x246)])&&(_0x6eab42===null||_0x6eab42===void 0x0?void 0x0:_0x6eab42[_0x214ac5(0x246)])!=_0x204248)continue;if((_0x6eab42===null||_0x6eab42===void 0x0?void 0x0:_0x6eab42['tableprefix'])&&!(_0x204248===null||_0x204248===void 0x0?void 0x0:_0x204248['startsWith'](_0x6eab42[_0x214ac5(0x1ef)])))continue;const _0x1fd9a3=await _0x5cf475[_0x214ac5(0x22f)](_0x214ac5(0x207)+this['config']['dataSource'][_0x6eab42[_0x214ac5(0x23d)]][_0x214ac5(0x22d)]+'\x22\x20AND\x20table_name\x20=\x20\x27'+_0x204248+'\x27')||[];if((_0x416b9e=_0x1fd9a3[0x0])===null||_0x416b9e===void 0x0?void 0x0:_0x416b9e[_0x214ac5(0x20e)]){const _0x49e6d2={'tablename':_0x204248,'Primary':{},'Fields':{},'Comment':(_0x195b24=_0x1fd9a3[0x0])===null||_0x195b24===void 0x0?void 0x0:_0x195b24[_0x214ac5(0x20e)],'vuedialog':_0x6eab42[_0x214ac5(0x1e9)],'apporbasic':_0x6eab42['apporbasic']};_0x49e6d2[_0x214ac5(0x1e1)]=_0x204248[_0x214ac5(0x1f3)]((_0x6eab42===null||_0x6eab42===void 0x0?void 0x0:_0x6eab42[_0x214ac5(0x1f3)])||0x0,_0x204248['length']),_0x49e6d2['basedir']=(_0x6eab42===null||_0x6eab42===void 0x0?void 0x0:_0x6eab42['module'])?_0xfca8f6+_0x214ac5(0x252)+_0x49e6d2['tablestart'][_0x214ac5(0x225)]('_')[0x0][_0x214ac5(0x226)]():_0xfca8f6+'/'+_0x6eab42[_0x214ac5(0x200)];const _0x55c846=_0x49e6d2['tablestart'][_0x214ac5(0x225)]('_')['filter'](_0x5c3caf=>_0x5c3caf&&_0x5c3caf[_0x214ac5(0x249)]());(_0x6eab42===null||_0x6eab42===void 0x0?void 0x0:_0x6eab42['module'])&&(await this[_0x214ac5(0x24f)](_0x49e6d2),_0x49e6d2[_0x214ac5(0x22a)]=_0x55c846[0x0][_0x214ac5(0x226)]());_0x49e6d2[_0x214ac5(0x21d)]=_0x55c846[_0x214ac5(0x212)](_0x2a80b8=>_0x2a80b8['toLowerCase']())[_0x214ac5(0x229)](''),_0x49e6d2['tablestartUp']=_0x55c846[_0x214ac5(0x212)](_0x29f957=>''+_0x29f957[_0x214ac5(0x24e)](0x0,0x1)[_0x214ac5(0x257)]()+_0x29f957[_0x214ac5(0x24e)](0x1)[_0x214ac5(0x226)]())[_0x214ac5(0x229)]('');(_0x49e6d2===null||_0x49e6d2===void 0x0?void 0x0:_0x49e6d2[_0x214ac5(0x22a)])&&_0x55c846[_0x214ac5(0x251)]>0x1&&_0x55c846[0x0][_0x214ac5(0x226)]()==_0x49e6d2[_0x214ac5(0x22a)]?(_0x49e6d2[_0x214ac5(0x203)]=_0x49e6d2[_0x214ac5(0x233)][_0x214ac5(0x24e)](_0x49e6d2[_0x214ac5(0x22a)][_0x214ac5(0x251)],_0x49e6d2[_0x214ac5(0x233)][_0x214ac5(0x251)]),_0x49e6d2[_0x214ac5(0x21f)]=_0x49e6d2[_0x214ac5(0x21d)][_0x214ac5(0x24e)](_0x49e6d2[_0x214ac5(0x22a)]['length'],_0x49e6d2[_0x214ac5(0x21d)][_0x214ac5(0x251)])):(_0x49e6d2[_0x214ac5(0x203)]=_0x49e6d2[_0x214ac5(0x233)],_0x49e6d2[_0x214ac5(0x21f)]=_0x49e6d2[_0x214ac5(0x21d)]);_0x49e6d2[_0x214ac5(0x221)]=_0x49e6d2[_0x214ac5(0x203)][_0x214ac5(0x1e3)](/\/{2,}/g,'/')[_0x214ac5(0x21e)](/[\/|A-Z]*[^A-Z]+/g)[_0x214ac5(0x229)]('-')[_0x214ac5(0x226)]()['replace'](/\/\-/g,'/');for(let _0x2d8e2b of await _0x5cf475[_0x214ac5(0x22f)]('SHOW\x20FULL\x20COLUMNS\x20FROM\x20`'+_0x204248+'`')){_0x2d8e2b[_0x214ac5(0x1fd)]==_0x214ac5(0x240)?_0x49e6d2[_0x214ac5(0x21c)]=_0x2d8e2b:_0x49e6d2[_0x214ac5(0x1ee)][_0x2d8e2b['Field']]=_0x2d8e2b;}if((_0x6eab42===null||_0x6eab42===void 0x0?void 0x0:_0x6eab42[_0x214ac5(0x20f)])&&!fs[_0x214ac5(0x241)](_0x49e6d2[_0x214ac5(0x242)]+_0x214ac5(0x24d)+_0x49e6d2['tablestartUpShort']+'.ts')){var _0x3b5799=[];if(typeof(_0x6eab42===null||_0x6eab42===void 0x0?void 0x0:_0x6eab42[_0x214ac5(0x20f)])==_0x214ac5(0x259))_0x3b5799=[_0x6eab42===null||_0x6eab42===void 0x0?void 0x0:_0x6eab42[_0x214ac5(0x20f)]];else Array['isArray'](_0x6eab42===null||_0x6eab42===void 0x0?void 0x0:_0x6eab42[_0x214ac5(0x20f)])?_0x3b5799=_0x6eab42===null||_0x6eab42===void 0x0?void 0x0:_0x6eab42['controller']:_0x3b5799=[!![]];_0x49e6d2['controllers']=_0x3b5799,await(0x0,Search_1[_0x214ac5(0x258)])(_0x49e6d2),await(0x0,Entities_1['default'])(_0x49e6d2),await(0x0,Common_1[_0x214ac5(0x258)])(_0x49e6d2),await(0x0,Event_1[_0x214ac5(0x258)])(_0x49e6d2),await(0x0,Handler_1[_0x214ac5(0x258)])(_0x49e6d2),await(0x0,Validator_1[_0x214ac5(0x258)])(_0x49e6d2);for(let _0x4744ae of _0x3b5799){_0x49e6d2[_0x214ac5(0x20f)]=_0x4744ae,await(0x0,Action_1['default'])(_0x49e6d2);}}if(_0x6eab42===null||_0x6eab42===void 0x0?void 0x0:_0x6eab42[_0x214ac5(0x237)]){var _0x3b5799=[];if(typeof(_0x6eab42===null||_0x6eab42===void 0x0?void 0x0:_0x6eab42[_0x214ac5(0x20f)])==_0x214ac5(0x259))_0x3b5799=[_0x6eab42===null||_0x6eab42===void 0x0?void 0x0:_0x6eab42['controller']];else Array[_0x214ac5(0x227)](_0x6eab42===null||_0x6eab42===void 0x0?void 0x0:_0x6eab42[_0x214ac5(0x20f)])?_0x3b5799=_0x6eab42===null||_0x6eab42===void 0x0?void 0x0:_0x6eab42[_0x214ac5(0x20f)]:_0x3b5799=[!![]];if(_0x6eab42[_0x214ac5(0x237)]=='v2')for(let _0x1b37c4 of _0x3b5799){_0x49e6d2[_0x214ac5(0x20f)]=_0x1b37c4;let _0x146be2=process[_0x214ac5(0x222)]()+_0x214ac5(0x24b)+(typeof _0x49e6d2[_0x214ac5(0x20f)]==_0x214ac5(0x259)?'/'+_0x49e6d2['controller']:'');_0x49e6d2[_0x214ac5(0x22a)]?_0x146be2=_0x146be2+(_0x214ac5(0x209)+_0x49e6d2['moduleName']+_0x214ac5(0x243)+_0x49e6d2['tablestartUpShort']+_0x214ac5(0x250)):_0x146be2=_0x146be2+('/apis/'+_0x49e6d2['apporbasic']+_0x214ac5(0x243)+_0x49e6d2['tablestartUpShort']+'.js'),!fs['existsSync'](_0x146be2)&&(await(0x0,Api_2[_0x214ac5(0x258)])(_0x49e6d2),await(0x0,Router_2['default'])(_0x49e6d2),await(0x0,Layout_2[_0x214ac5(0x258)])(_0x49e6d2),await(0x0,LayoutVue_2[_0x214ac5(0x258)])(_0x49e6d2),await(0x0,Validator_3[_0x214ac5(0x258)])(_0x49e6d2));}else{if(_0x6eab42[_0x214ac5(0x237)]=='v3')for(let _0xf3af68 of _0x3b5799){_0x49e6d2['controller']=_0xf3af68;let _0xae17fa=process['cwd']()+_0x214ac5(0x24b)+(typeof _0x49e6d2['controller']==_0x214ac5(0x259)?'/'+_0x49e6d2[_0x214ac5(0x20f)]:'');_0x49e6d2['moduleName']?_0xae17fa=_0xae17fa+(_0x214ac5(0x209)+_0x49e6d2[_0x214ac5(0x22a)]+_0x214ac5(0x243)+_0x49e6d2[_0x214ac5(0x203)]+_0x214ac5(0x250)):_0xae17fa=_0xae17fa+('/apis/'+_0x49e6d2['apporbasic']+_0x214ac5(0x243)+_0x49e6d2['tablestartUpShort']+_0x214ac5(0x250)),!fs[_0x214ac5(0x241)](_0xae17fa)&&(await(0x0,Api_3[_0x214ac5(0x258)])(_0x49e6d2),await(0x0,Router_3[_0x214ac5(0x258)])(_0x49e6d2),await(0x0,Layout_3['default'])(_0x49e6d2),await(0x0,LayoutVue_3[_0x214ac5(0x258)])(_0x49e6d2),await(0x0,Validator_4[_0x214ac5(0x258)])(_0x49e6d2));}else for(let _0x104fc2 of _0x3b5799){_0x49e6d2['controller']=_0x104fc2;let _0x503b28=process['cwd']()+_0x214ac5(0x24b)+(typeof _0x49e6d2[_0x214ac5(0x20f)]==_0x214ac5(0x259)?'/'+_0x49e6d2[_0x214ac5(0x20f)]:'');_0x49e6d2[_0x214ac5(0x22a)]?_0x503b28=_0x503b28+(_0x214ac5(0x20a)+_0x49e6d2[_0x214ac5(0x22a)]+_0x214ac5(0x1f1)+_0x49e6d2[_0x214ac5(0x221)]+_0x214ac5(0x250)):_0x503b28=_0x503b28+(_0x214ac5(0x1fa)+_0x49e6d2[_0x214ac5(0x200)]+_0x214ac5(0x1f1)+_0x49e6d2[_0x214ac5(0x221)]+_0x214ac5(0x250)),!fs[_0x214ac5(0x241)](_0x503b28)&&(await(0x0,Api_1[_0x214ac5(0x258)])(_0x49e6d2),await(0x0,Router_1[_0x214ac5(0x258)])(_0x49e6d2),await(0x0,Layout_1[_0x214ac5(0x258)])(_0x49e6d2),await(0x0,LayoutVue_1[_0x214ac5(0x258)])(_0x49e6d2),await(0x0,Validator_2[_0x214ac5(0x258)])(_0x49e6d2));}}}}else console['error']('表:'+_0x204248+_0x214ac5(0x235));}return _0x214ac5(0x217);}async[a3_0x52379f(0x238)](_0x3b46b7){const _0x1f807d=a3_0x52379f;var _0x4dcd16,_0x27f15d,_0x4669c6;if(!this[_0x1f807d(0x219)][_0x1f807d(0x1eb)]()||!((_0x4dcd16=this[_0x1f807d(0x205)])===null||_0x4dcd16===void 0x0?void 0x0:_0x4dcd16['dataSource'])||!this[_0x1f807d(0x223)][_0x1f807d(0x256)]('apitest'))throw new Error(_0x1f807d(0x23c));!_0x3b46b7[_0x1f807d(0x23d)]&&(_0x3b46b7[_0x1f807d(0x23d)]='default');if(!((_0x4669c6=(_0x27f15d=this['config'])===null||_0x27f15d===void 0x0?void 0x0:_0x27f15d[_0x1f807d(0x21a)])===null||_0x4669c6===void 0x0?void 0x0:_0x4669c6[_0x3b46b7['connection']]))throw new Error(_0x1f807d(0x22e)+_0x3b46b7[_0x1f807d(0x23d)]);if(!this['dataSourceManager'][_0x1f807d(0x1f9)](_0x3b46b7[_0x1f807d(0x23d)]))throw new Error(_0x1f807d(0x216)+_0x3b46b7[_0x1f807d(0x23d)]+'\x20不存在');if(!this[_0x1f807d(0x248)][_0x1f807d(0x244)](_0x3b46b7[_0x1f807d(0x23d)]))throw new Error(_0x1f807d(0x216)+_0x3b46b7['connection']+_0x1f807d(0x214));return!![];}async['CreateModuleConfig'](_0x2592d1){const _0x413c6b=a3_0x52379f,_0x5a97b1=_0x2592d1[_0x413c6b(0x1e1)][_0x413c6b(0x225)]('_')[0x0][_0x413c6b(0x226)]();if(!fs[_0x413c6b(0x241)](_0x2592d1[_0x413c6b(0x242)]+_0x413c6b(0x236))){let _0x45b8ca=_0x413c6b(0x25d)+(_0x2592d1['Comment']||_0x5a97b1)+'\x27,\x0a\x20\x20\x20\x20description:\x20\x27\x27,\x0a\x20\x20\x20\x20middleware:\x20[],\x0a}';fs[_0x413c6b(0x20c)](path[_0x413c6b(0x210)](_0x2592d1[_0x413c6b(0x242)]+_0x413c6b(0x236)),{'recursive':!![]}),fs[_0x413c6b(0x215)](_0x2592d1['basedir']+'/config.ts',_0x45b8ca,_0x413c6b(0x1f4));}}};exports[a3_0x52379f(0x255)]=ApicreateService,__decorate([(0x0,core_2[a3_0x52379f(0x1e2)])(),__metadata(a3_0x52379f(0x23f),Object)],ApicreateService[a3_0x52379f(0x24a)],a3_0x52379f(0x223),void 0x0),__decorate([(0x0,core_2['Config'])(a3_0x52379f(0x202)),__metadata(a3_0x52379f(0x23f),Object)],ApicreateService[a3_0x52379f(0x24a)],'config',void 0x0),__decorate([(0x0,core_2[a3_0x52379f(0x22c)])(),__metadata(a3_0x52379f(0x23f),core_1[a3_0x52379f(0x22b)])],ApicreateService[a3_0x52379f(0x24a)],a3_0x52379f(0x219),void 0x0),__decorate([(0x0,core_2[a3_0x52379f(0x22c)])(),__metadata(a3_0x52379f(0x23f),typeorm_1[a3_0x52379f(0x253)])],ApicreateService['prototype'],a3_0x52379f(0x248),void 0x0),exports['ApicreateService']=ApicreateService=__decorate([(0x0,core_2[a3_0x52379f(0x1e4)])(a3_0x52379f(0x255)),(0x0,core_2['Scope'])(core_2[a3_0x52379f(0x1e8)]['Singleton'])],ApicreateService);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a4_0x207e7f=a4_0x58ef;function a4_0x3e8a(){const _0x42635e=['DTOSearch)\x20{\x0a\x0a','21JYEbpA',')\x20{\x0a','search','@/apps/','number','DTOUpdate\x20}\x20from\x20\x27','Controller\x20{\x0a\x0a','876030kpdPki','Handler.detail(conditions);\x0a\x0a','\x20\x20\x20\x20@Action.post(\x27添加\x27,\x20\x27add\x27)\x0a','\x20\x20\x20\x20async\x20update(','12xULxIQ','Handler\x0a\x0a\x0a','Handler.remove(conditions);\x0a\x0a','import\x20{\x20','Handler.list(conditions,\x20pageinfo);\x0a\x0a','writeFileSync','\x20\x20\x20\x20\x20\x20\x20\x20return\x20this.ctx.ok(removes);\x0a','\x20\x20\x20\x20@Action.get(\x27详情\x27,\x20\x27detail/:','6072lYVPNm','__esModule','\x20\x20\x20\x20@Inject()\x20protected\x20','export\x20class\x20','/validators/','10agTdwC','\x20\x20\x20\x20\x20\x20\x20\x20const\x20removes\x20=\x20await\x20this.','DTOUpdate)\x20{\x0a','Handler.update(conditions,\x20params);\x0a\x0a','Field','\x20\x20\x20\x20@Action.get(\x27列表\x27,\x20\x27list\x27)\x0a','307521xpWcYC','\x27)\x0a','Handler:\x20','\x27;\x0a','Handler\x20}\x20from\x20\x27','\x20\x20\x20\x20@Inject()\x20protected\x20ctx:\x20Context;\x0a\x0a','../helper','import\x20{\x20Inject,\x20Action,\x20PageDTO\x20}\x20from\x20\x27anncic-api\x27;\x0a\x0a','.ts','utf-8','Type','path','dirname','@Action(__filename,\x20\x27','444715WyrkSp','indexOf','16168YFBtaC','\x20\x20\x20\x20\x20\x20\x20\x20return\x20this.ctx.ok(tmpModel);\x0a','substring','mkdirSync','\x20};\x0a\x0a','defineProperty','\x20\x20\x20\x20}\x0a\x0a\x0a','Handler.create(params);\x0a\x0a','/Search\x27;\x0a','/controller/','string','\x20\x20\x20\x20async\x20index(conditions:\x20','constructor','toString','\x20\x20\x20\x20async\x20create(params:\x20','\x20\x20\x20\x20\x20\x20\x20\x20const\x20tmpModel\x20=\x20await\x20this.',',\x20params:\x20','toUpperCase','DTOSearch\x20}\x20from\x20\x27','DTOCreate)\x20{\x0a\x0a','import\x20{\x20Context\x20}\x20from\x20\x27@midwayjs/koa\x27;\x0a','233776zVokPN','DTOSearch,\x20pageinfo:\x20PageDTO)\x20{\x0a\x0a','existsSync','\x20\x20\x20\x20@Action.post(\x27修改\x27,\x20\x27edit/:','869016ANOtiL','mediumtext','\x20\x20\x20\x20\x20\x20\x20\x20const\x20conditions:\x20','(((.+)+)+)+$'];a4_0x3e8a=function(){return _0x42635e;};return a4_0x3e8a();}(function(_0x8165c7,_0xbc4d48){const _0x3523b=a4_0x58ef,_0x52ff5f=_0x8165c7();while(!![]){try{const _0x39254d=parseInt(_0x3523b(0x1fd))/0x1+parseInt(_0x3523b(0x1e1))/0x2+-parseInt(_0x3523b(0x1f1))/0x3+-parseInt(_0x3523b(0x1f5))/0x4*(-parseInt(_0x3523b(0x216))/0x5)+parseInt(_0x3523b(0x1e5))/0x6+parseInt(_0x3523b(0x1ea))/0x7*(-parseInt(_0x3523b(0x218))/0x8)+-parseInt(_0x3523b(0x208))/0x9*(parseInt(_0x3523b(0x202))/0xa);if(_0x39254d===_0xbc4d48)break;else _0x52ff5f['push'](_0x52ff5f['shift']());}catch(_0x3a2ba8){_0x52ff5f['push'](_0x52ff5f['shift']());}}}(a4_0x3e8a,0x3168f));const a4_0x2414d1=(function(){let _0x188650=!![];return function(_0x2d237a,_0x12eb69){const _0x1ae51c=_0x188650?function(){if(_0x12eb69){const _0x305c8b=_0x12eb69['apply'](_0x2d237a,arguments);return _0x12eb69=null,_0x305c8b;}}:function(){};return _0x188650=![],_0x1ae51c;};}()),a4_0xdf20f1=a4_0x2414d1(this,function(){const _0x4d348d=a4_0x58ef;return a4_0xdf20f1[_0x4d348d(0x225)]()[_0x4d348d(0x1ec)](_0x4d348d(0x1e8))[_0x4d348d(0x225)]()[_0x4d348d(0x224)](a4_0xdf20f1)[_0x4d348d(0x1ec)](_0x4d348d(0x1e8));});a4_0xdf20f1();'use strict';Object[a4_0x207e7f(0x21d)](exports,a4_0x207e7f(0x1fe),{'value':!![]}),exports['default']=default_1;function a4_0x58ef(_0x321ea7,_0x667a54){const _0x2dbb24=a4_0x3e8a();return a4_0x58ef=function(_0xdf20f1,_0x2414d1){_0xdf20f1=_0xdf20f1-0x1e1;let _0x3e8a83=_0x2dbb24[_0xdf20f1];return _0x3e8a83;},a4_0x58ef(_0x321ea7,_0x667a54);}const fs=require('fs'),path_1=require(a4_0x207e7f(0x213)),helper_1=require(a4_0x207e7f(0x20e));async function default_1({controller:_0xf96bc9,tablestartUp:_0x541300,tablestartUpShort:_0x427859,basedir:_0x399f95,Primary:_0xfdda2e,Comment:_0x4c5cca,moduleName:_0x81ab1f,apporbasic:_0x36fc9}){const _0x32d439=a4_0x207e7f;if(_0xf96bc9){const _0x137499=_0x399f95+(typeof _0xf96bc9==_0x32d439(0x222)?'/controller/'+_0xf96bc9+'/'+_0x427859+_0x32d439(0x210):_0x32d439(0x221)+_0x427859+_0x32d439(0x210));if(!fs[_0x32d439(0x1e3)](_0x137499)){let _0x17713d='',_0x5cbe21=['text',_0x32d439(0x1e6),'string'][_0x32d439(0x217)]((0x0,helper_1['getProp'])(_0xfdda2e[_0x32d439(0x212)]))==-0x1;_0x17713d+=_0x32d439(0x22c),_0x17713d+=_0x32d439(0x20f),_0x17713d+=_0x32d439(0x1f8)+_0x541300+_0x32d439(0x20c)+(typeof _0x81ab1f==_0x32d439(0x222)?_0x32d439(0x1ed)+_0x81ab1f:'@/'+_0x36fc9)+'/handlers/'+_0x427859+_0x32d439(0x20b),_0x17713d+='import\x20{\x20'+_0x541300+_0x32d439(0x22a)+(typeof _0x81ab1f==_0x32d439(0x222)?_0x32d439(0x1ed)+_0x81ab1f:'@/'+_0x36fc9)+_0x32d439(0x201)+_0x427859+_0x32d439(0x220),_0x17713d+='import\x20{\x20'+_0x541300+'DTOCreate\x20}\x20from\x20\x27'+(typeof _0x81ab1f==_0x32d439(0x222)?_0x32d439(0x1ed)+_0x81ab1f:'@/'+_0x36fc9)+'/validators/'+_0x427859+'/Create\x27;\x0a',_0x17713d+=_0x32d439(0x1f8)+_0x541300+_0x32d439(0x1ef)+(typeof _0x81ab1f=='string'?_0x32d439(0x1ed)+_0x81ab1f:'@/'+_0x36fc9)+_0x32d439(0x201)+_0x427859+'/Update\x27;\x0a\x0a',_0x17713d+=_0x32d439(0x215)+_0x4c5cca+_0x32d439(0x209),_0x17713d+=_0x32d439(0x200)+(typeof _0xf96bc9==_0x32d439(0x222)?_0xf96bc9[_0x32d439(0x21a)](0x0,0x1)[_0x32d439(0x229)]()+_0xf96bc9[_0x32d439(0x21a)](0x1):'')+_0x541300+_0x32d439(0x1f0),_0x17713d+=_0x32d439(0x20d),_0x17713d+=_0x32d439(0x1ff)+_0x541300+_0x32d439(0x20a)+_0x541300+_0x32d439(0x1f6),_0x17713d+=_0x32d439(0x207),_0x17713d+=_0x32d439(0x223)+_0x541300+_0x32d439(0x1e2),_0x17713d+='\x20\x20\x20\x20\x20\x20\x20\x20const\x20[pagelist,\x20pagetotal]\x20=\x20await\x20this.'+_0x541300+_0x32d439(0x1f9),_0x17713d+='\x20\x20\x20\x20\x20\x20\x20\x20return\x20this.ctx.ok(pagelist,\x20{\x20pageinfo,\x20pagetotal\x20});\x0a',_0x17713d+=_0x32d439(0x21e),_0x17713d+=_0x32d439(0x1fc)+_0xfdda2e[_0x32d439(0x206)]+_0x32d439(0x209),_0x17713d+='\x20\x20\x20\x20async\x20detail('+_0xfdda2e[_0x32d439(0x206)]+':\x20'+(_0x5cbe21?'number':_0x32d439(0x222))+_0x32d439(0x1eb),_0x17713d+=_0x32d439(0x1e7)+_0x541300+'DTOSearch\x20=\x20{\x20'+_0xfdda2e[_0x32d439(0x206)]+_0x32d439(0x21c),_0x17713d+=_0x32d439(0x227)+_0x541300+_0x32d439(0x1f2),_0x17713d+=_0x32d439(0x219),_0x17713d+=_0x32d439(0x21e),_0x17713d+=_0x32d439(0x1f3),_0x17713d+=_0x32d439(0x226)+_0x541300+_0x32d439(0x22b),_0x17713d+=_0x32d439(0x227)+_0x541300+_0x32d439(0x21f),_0x17713d+='\x20\x20\x20\x20\x20\x20\x20\x20return\x20this.ctx.ok(tmpModel);\x0a',_0x17713d+=_0x32d439(0x21e),_0x17713d+=_0x32d439(0x1e4)+_0xfdda2e[_0x32d439(0x206)]+_0x32d439(0x209),_0x17713d+=_0x32d439(0x1f4)+_0xfdda2e[_0x32d439(0x206)]+':\x20'+(_0x5cbe21?_0x32d439(0x1ee):'string')+_0x32d439(0x228)+_0x541300+_0x32d439(0x204),_0x17713d+='\x20\x20\x20\x20\x20\x20\x20\x20const\x20conditions:\x20'+_0x541300+'DTOSearch\x20=\x20{\x20'+_0xfdda2e[_0x32d439(0x206)]+'\x20};\x0a\x0a',_0x17713d+=_0x32d439(0x227)+_0x541300+_0x32d439(0x205),_0x17713d+='\x20\x20\x20\x20\x20\x20\x20\x20return\x20this.ctx.ok(tmpModel);\x0a',_0x17713d+=_0x32d439(0x21e),_0x17713d+='\x20\x20\x20\x20@Action.post(\x22删除\x22,\x20\x27remove\x27)\x0a',_0x17713d+='\x20\x20\x20\x20async\x20remove(conditions:\x20'+_0x541300+_0x32d439(0x1e9),_0x17713d+=_0x32d439(0x203)+_0x541300+_0x32d439(0x1f7),_0x17713d+=_0x32d439(0x1fb),_0x17713d+=_0x32d439(0x21e),_0x17713d+='}',!fs[_0x32d439(0x1e3)]((0x0,path_1[_0x32d439(0x214)])(_0x137499))&&fs[_0x32d439(0x21b)]((0x0,path_1[_0x32d439(0x214)])(_0x137499),{'recursive':!![]}),fs[_0x32d439(0x1fa)](_0x137499,_0x17713d,_0x32d439(0x211));}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a5_0xef9fee=a5_0x2f92;(function(_0x3b0eaa,_0x4dce0a){const _0x32df19=a5_0x2f92,_0x2c158f=_0x3b0eaa();while(!![]){try{const _0x236059=parseInt(_0x32df19(0x8b))/0x1*(-parseInt(_0x32df19(0x8c))/0x2)+parseInt(_0x32df19(0x7b))/0x3+parseInt(_0x32df19(0x97))/0x4+parseInt(_0x32df19(0x88))/0x5*(parseInt(_0x32df19(0x81))/0x6)+parseInt(_0x32df19(0xa2))/0x7+parseInt(_0x32df19(0x90))/0x8+-parseInt(_0x32df19(0x8d))/0x9;if(_0x236059===_0x4dce0a)break;else _0x2c158f['push'](_0x2c158f['shift']());}catch(_0x253c39){_0x2c158f['push'](_0x2c158f['shift']());}}}(a5_0xa81f,0xbdbde));const a5_0x49fe75=(function(){let _0x4a4b24=!![];return function(_0x38a13a,_0x30ae12){const _0x3945b3=_0x4a4b24?function(){const _0x5072d7=a5_0x2f92;if(_0x30ae12){const _0x4a0831=_0x30ae12[_0x5072d7(0x7f)](_0x38a13a,arguments);return _0x30ae12=null,_0x4a0831;}}:function(){};return _0x4a4b24=![],_0x3945b3;};}()),a5_0x290887=a5_0x49fe75(this,function(){const _0x3abb72=a5_0x2f92;return a5_0x290887[_0x3abb72(0x93)]()[_0x3abb72(0x94)](_0x3abb72(0x87))[_0x3abb72(0x93)]()['constructor'](a5_0x290887)[_0x3abb72(0x94)](_0x3abb72(0x87));});function a5_0x2f92(_0x55c33c,_0xfa6dd7){const _0x2cb3f4=a5_0xa81f();return a5_0x2f92=function(_0x290887,_0x49fe75){_0x290887=_0x290887-0x79;let _0xa81f90=_0x2cb3f4[_0x290887];return _0xa81f90;},a5_0x2f92(_0x55c33c,_0xfa6dd7);}function a5_0xa81f(){const _0x4a7b08=['2682zjZeMU','existsSync','writeFileSync','tinyint','utf-8','Comment','(((.+)+)+)+$','6065VLsKJm','\x20\x20\x20\x20@AnnEnumMsg(\x27','\x20*\x20','257jDkjQX','6354iIpUsZ','29534733iAtmvF','Error\x20extends\x20AnnError\x20{\x0a\x0a','/**\x0a','7900568OkvjSQ','export\x20class\x20','\x20*\x20**/\x0a','toString','search','/exceptions/','_ON:\x20number\x20=\x201;\x0a\x0a','2061732TxvmVt','\x27,\x20\x27开启','-错误信息设置\x0a','../helper','getProp','\x27)\x0a','Enum\x20{\x0a\x0a','dirname','path','-常量设置\x0a','indexOf','10492237OxSMhJ','/enums/','\x20\x20\x20\x20static\x20readonly\x20','3993606nBASVl','mkdirSync','Type','toUpperCase','apply','__esModule'];a5_0xa81f=function(){return _0x4a7b08;};return a5_0xa81f();}a5_0x290887();'use strict';Object['defineProperty'](exports,a5_0xef9fee(0x80),{'value':!![]}),exports['default']=default_1;const fs=require('fs'),path=require(a5_0xef9fee(0x9f)),helper_1=require(a5_0xef9fee(0x9a));async function default_1({tablestartUp:_0x2b3fd8,tablestartUpShort:_0x2e5ddc,basedir:_0x2a21e7,Comment:_0x53c73e,Fields:_0xe77bb0}){await entity_emum({'tablestartUp':_0x2b3fd8,'tablestartUpShort':_0x2e5ddc,'basedir':_0x2a21e7,'Comment':_0x53c73e,'Fields':_0xe77bb0}),await entity_exceptions({'tablestartUp':_0x2b3fd8,'tablestartUpShort':_0x2e5ddc,'basedir':_0x2a21e7,'Comment':_0x53c73e});}async function entity_emum({tablestartUp:_0x183085,tablestartUpShort:_0x14184b,basedir:_0x47ba84,Comment:_0x2f6993,Fields:_0x59c430}){const _0x1006fe=a5_0xef9fee,_0x14804e=_0x47ba84+(_0x1006fe(0x79)+_0x14184b+'.ts');if(!fs['existsSync'](_0x14804e)){let _0x30227c='';_0x30227c+=_0x1006fe(0x8f),_0x30227c+=_0x1006fe(0x8a)+_0x2f6993+_0x1006fe(0xa0),_0x30227c+=_0x1006fe(0x92),_0x30227c+=_0x1006fe(0x91)+_0x183085+_0x1006fe(0x9d);for(let _0x5ac2bf in _0x59c430){let _0xa95bba=_0x59c430[_0x5ac2bf],_0x18e773=(0x0,helper_1[_0x1006fe(0x9b)])(_0xa95bba[_0x1006fe(0x7d)]);[_0x1006fe(0x84)][_0x1006fe(0xa1)](_0x18e773)!=-0x1&&(_0x30227c+=_0x1006fe(0x89)+_0x5ac2bf+_0x1006fe(0x98)+_0xa95bba[_0x1006fe(0x86)]+'\x27)\x0a',_0x30227c+=_0x1006fe(0x7a)+_0x5ac2bf[_0x1006fe(0x7e)]()+_0x1006fe(0x96),_0x30227c+=_0x1006fe(0x89)+_0x5ac2bf+'\x27,\x20\x27关闭'+_0xa95bba[_0x1006fe(0x86)]+_0x1006fe(0x9c),_0x30227c+=_0x1006fe(0x7a)+_0x5ac2bf[_0x1006fe(0x7e)]()+'_OFF:\x20number\x20=\x200;\x0a\x0a\x0a');}_0x30227c+='}',!fs[_0x1006fe(0x82)](path['dirname'](_0x14804e))&&fs[_0x1006fe(0x7c)](path[_0x1006fe(0x9e)](_0x14804e),{'recursive':!![]}),fs['writeFileSync'](_0x14804e,_0x30227c,_0x1006fe(0x85));}}async function entity_exceptions({tablestartUp:_0x4c47cf,tablestartUpShort:_0x3cb214,basedir:_0x585b66,Comment:_0x5c62e8}){const _0x102a5b=a5_0xef9fee,_0x1bea36=_0x585b66+(_0x102a5b(0x95)+_0x3cb214+'.ts');if(!fs[_0x102a5b(0x82)](_0x1bea36)){let _0x506e4e='';_0x506e4e+=_0x102a5b(0x8f),_0x506e4e+=_0x102a5b(0x8a)+_0x5c62e8+_0x102a5b(0x99),_0x506e4e+=_0x102a5b(0x92),_0x506e4e+='export\x20class\x20'+_0x4c47cf+_0x102a5b(0x8e),_0x506e4e+='}',!fs[_0x102a5b(0x82)](path[_0x102a5b(0x9e)](_0x1bea36))&&fs[_0x102a5b(0x7c)](path['dirname'](_0x1bea36),{'recursive':!![]}),fs[_0x102a5b(0x83)](_0x1bea36,_0x506e4e,'utf-8');}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a6_0x148afc=a6_0x568d;(function(_0x17fe32,_0x4e80a1){const _0x3e1818=a6_0x568d,_0x57b6a4=_0x17fe32();while(!![]){try{const _0x16a06c=parseInt(_0x3e1818(0x198))/0x1+-parseInt(_0x3e1818(0x141))/0x2*(-parseInt(_0x3e1818(0x182))/0x3)+-parseInt(_0x3e1818(0x16c))/0x4+parseInt(_0x3e1818(0x195))/0x5+-parseInt(_0x3e1818(0x192))/0x6+-parseInt(_0x3e1818(0x159))/0x7+parseInt(_0x3e1818(0x153))/0x8;if(_0x16a06c===_0x4e80a1)break;else _0x57b6a4['push'](_0x57b6a4['shift']());}catch(_0x1b519f){_0x57b6a4['push'](_0x57b6a4['shift']());}}}(a6_0x3a6c,0xae137));const a6_0x32c0b6=(function(){let _0x2f1605=!![];return function(_0x5acc57,_0x1cf7b3){const _0x416fec=_0x2f1605?function(){const _0x46fdb2=a6_0x568d;if(_0x1cf7b3){const _0x13d2f9=_0x1cf7b3[_0x46fdb2(0x147)](_0x5acc57,arguments);return _0x1cf7b3=null,_0x13d2f9;}}:function(){};return _0x2f1605=![],_0x416fec;};}()),a6_0x27bb74=a6_0x32c0b6(this,function(){const _0x8e6b15=a6_0x568d;return a6_0x27bb74['toString']()[_0x8e6b15(0x16b)](_0x8e6b15(0x199))['toString']()[_0x8e6b15(0x175)](a6_0x27bb74)[_0x8e6b15(0x16b)](_0x8e6b15(0x199));});function a6_0x3a6c(){const _0x3c0309=['created_at','Entity\x20}\x20from\x20\x27','mkdirSync','\x27,\x20precision:\x2010,\x20scale:\x202,\x20default:\x200.00,\x20nullable:\x20','\x27;\x0a\x0a',':\x20any\x20|\x20any[];\x0a\x0a','replace','PrimaryGeneratedColumn','@/apps/','\x20})\x0a','\x20\x20\x20\x20@Column(\x27enum\x27,\x20{\x20comment:\x20\x27','\x20\x20\x20\x20@Column(\x27decimal\x27,\x20{\x20comment:\x20\x27','string','3757212Iszgye','deleted_at','false','5993990ZCKXRf',':\x20number;\x0a\x0a','\x20\x20\x20\x20@Column({\x20comment:\x20\x27默认显示排序\x27,\x20nullable:\x20true,\x20unique:\x20false\x20})\x0a','236131EYfGpI','(((.+)+)+)+$','\x20\x20\x20\x20@Column(\x27double\x27,\x20{\x20comment:\x20\x27','datetime','number','import\x20{\x20','import\x20{\x20CreateDateColumn,\x20UpdateDateColumn,\x20DeleteDateColumn\x20}\x20from\x20\x27@anncic-api/typeorm\x27;\x0a','__esModule','\x27]\x20})\x0a','Comment','text',',\x20unique:\x20false\x20})\x0a','mediumtext','timestamp','float','\x27,\x20length:\x20188\x20})\x0a','\x27,\x20enum:\x20[\x27','24DDBZeC','date','\x20\x20\x20\x20@PrimaryColumn({\x20comment:\x20\x27','Null','\x20\x20\x20\x20@UpdateDateColumn({\x20comment:\x20\x27修改时间\x27,\x20type:\x20\x27timestamp\x27\x20})\x0a','../helper','apply','enum','default','\x20\x20\x20\x20@Column(\x27date\x27,\x20{\x20comment:\x20\x27','\x27\x20},\x20{\x20orderBy:\x20{\x20displayorder:\x20\x27DESC\x27\x20}\x20})\x0a','\x27,\x20nullable:\x20','\x20*\x20','\x20\x20\x20\x20@DeleteDateColumn({\x20comment:\x20\x27删除时间\x27,\x20type:\x20\x27timestamp\x27,\x20select:\x20false\x20})\x0a','/entities/','indexOf','\x20\x20\x20\x20@Column({\x20comment:\x20\x27','\x20\x20\x20\x20@Column(\x27json\x27,\x20{\x20comment:\x20\x27','12810216ZTOpHo','@ProvideEntity({\x20tableName:\x20\x27','dirname','/**\x0a','\x27,\x20precision:\x2024,\x20scale:\x202,\x20default:\x200.00,\x20nullable:\x20','\x27\x20|\x20\x27','6376153veRgXS','\x20\x20\x20\x20created_at:\x20Date;\x0a\x0a','\x20\x20\x20\x20displayorder:\x20number;\x0a\x0a','writeFileSync','YES','/entity.ts','-实体处理器\x0a',':\x20string;\x0a\x0a','Field','tinyint','Type','updated_at','@ProvideRepository(','utf-8','%column%','\x20*\x20**/\x0a','double','\x20\x20\x20\x20@Column(\x27mediumtext\x27,\x20{\x20comment:\x20\x27','search','4575704jXDqod','export\x20class\x20',',\x20Column\x20}\x20from\x20\x27@anncic-api/typeorm\x27;\x0a\x0a','getProp','Entity>{\x0a\x0a','defineProperty','\x27,\x20default:\x20\x27','\x20\x20\x20\x20@Column(\x27timestamp\x27,\x20{\x20comment:\x20\x27','@ProvideSearch(','constructor','existsSync','//\x20import\x20{\x20ManyToOne,\x20JoinColumn\x20}\x20from\x20\x27@anncic-api/typeorm\x27;\x0a','\x20\x20\x20\x20deleted_at:\x20Date;\x0a\x0a','displayorder','join','true','\x20\x20\x20\x20','/entity\x27;\x0a\x0a','-实体\x0a','Search\x20}\x20from\x20\x27','\x20extends\x20Repository<','/searchs/','89454JjWiny','path','\x27,\x20\x27'];a6_0x3a6c=function(){return _0x3c0309;};return a6_0x3a6c();}a6_0x27bb74();'use strict';Object[a6_0x148afc(0x171)](exports,a6_0x148afc(0x19f),{'value':!![]}),exports[a6_0x148afc(0x149)]=default_1;const fs=require('fs'),path_1=require(a6_0x148afc(0x183)),helper_1=require(a6_0x148afc(0x146));async function default_1({tablename:_0x2a14c5,tablestartUp:_0x245467,tablestartUpShort:_0x3eb64c,basedir:_0x47cb3a,Primary:_0x34d25c,Fields:_0x332cff,Comment:_0x2018f2,moduleName:_0x33fd5c,apporbasic:_0x2d702c}){await entity({'tablename':_0x2a14c5,'tablestartUp':_0x245467,'tablestartUpShort':_0x3eb64c,'basedir':_0x47cb3a,'Primary':_0x34d25c,'Fields':_0x332cff,'Comment':_0x2018f2,'moduleName':_0x33fd5c,'apporbasic':_0x2d702c}),await repository({'tablestartUp':_0x245467,'tablestartUpShort':_0x3eb64c,'basedir':_0x47cb3a,'Comment':_0x2018f2,'moduleName':_0x33fd5c,'apporbasic':_0x2d702c});}async function entity({tablename:_0x4e0d9c,tablestartUp:_0x5d0261,tablestartUpShort:_0x38f702,basedir:_0x460eb6,Primary:_0x139393,Fields:_0x2035e8,Comment:_0x336efd,moduleName:_0x560825,apporbasic:_0x5e3feb}){const _0x18efa2=a6_0x148afc,_0x3a76c8=_0x460eb6+(_0x18efa2(0x14f)+_0x38f702+_0x18efa2(0x15e));if(!fs['existsSync'](_0x3a76c8)){let _0x65757='',_0x43c6f9='',_0x220137=[_0x18efa2(0x13a),'mediumtext',_0x18efa2(0x191)][_0x18efa2(0x150)]((0x0,helper_1[_0x18efa2(0x16f)])(_0x139393['Type']))==-0x1;_0x220137?(_0x65757+='\x20\x20\x20\x20@PrimaryGeneratedColumn()\x0a',_0x65757+=_0x18efa2(0x17c)+_0x139393['Field']+':\x20number;\x0a\x0a'):(_0x65757+=_0x18efa2(0x143)+(_0x139393[_0x18efa2(0x139)]||'标识')+_0x18efa2(0x13f),_0x65757+=_0x18efa2(0x17c)+_0x139393['Field']+_0x18efa2(0x160));for(let _0x583c2c in _0x2035e8){let _0x557e67=_0x2035e8[_0x583c2c],_0x3ad0b5=(0x0,helper_1[_0x18efa2(0x16f)])(_0x557e67[_0x18efa2(0x163)]);if(_0x557e67[_0x18efa2(0x161)]==_0x18efa2(0x179)||_0x557e67[_0x18efa2(0x161)]==_0x18efa2(0x185)||_0x557e67['Field']==_0x18efa2(0x164)||_0x557e67['Field']==_0x18efa2(0x193))continue;if(_0x3ad0b5=='json')_0x65757+=_0x18efa2(0x152)+_0x557e67[_0x18efa2(0x139)]+_0x18efa2(0x14c)+(_0x557e67[_0x18efa2(0x144)]=='YES'?_0x18efa2(0x17b):_0x18efa2(0x194))+_0x18efa2(0x13b),_0x65757+=_0x18efa2(0x17c)+_0x557e67[_0x18efa2(0x161)]+_0x18efa2(0x18a);else{if(_0x3ad0b5==_0x18efa2(0x148)){let _0x404a3e=(0x0,helper_1['getEnum'])(_0x557e67[_0x18efa2(0x163)]);_0x65757+=_0x18efa2(0x18f)+_0x557e67['Comment']+_0x18efa2(0x172)+(_0x404a3e[0x0]||'')+_0x18efa2(0x140)+_0x404a3e[_0x18efa2(0x17a)](_0x18efa2(0x184))+_0x18efa2(0x138),_0x65757+=_0x18efa2(0x17c)+_0x557e67['Field']+':\x20\x27'+_0x404a3e[_0x18efa2(0x17a)](_0x18efa2(0x158))+'\x27;\x0a\x0a';}else{if(_0x3ad0b5==_0x18efa2(0x13e))_0x65757+='\x20\x20\x20\x20@Column(\x27float\x27,\x20{\x20comment:\x20\x27'+_0x557e67[_0x18efa2(0x139)]+_0x18efa2(0x188)+(_0x557e67[_0x18efa2(0x144)]==_0x18efa2(0x15d)?_0x18efa2(0x17b):'false')+_0x18efa2(0x18e),_0x65757+='\x20\x20\x20\x20'+_0x557e67[_0x18efa2(0x161)]+_0x18efa2(0x196);else{if(_0x3ad0b5==_0x18efa2(0x169))_0x65757+=_0x18efa2(0x19a)+_0x557e67[_0x18efa2(0x139)]+_0x18efa2(0x188)+(_0x557e67[_0x18efa2(0x144)]=='YES'?'true':_0x18efa2(0x194))+_0x18efa2(0x18e),_0x65757+=_0x18efa2(0x17c)+_0x557e67[_0x18efa2(0x161)]+_0x18efa2(0x196);else{if(_0x3ad0b5=='decimal')_0x65757+=_0x18efa2(0x190)+_0x557e67[_0x18efa2(0x139)]+_0x18efa2(0x157)+(_0x557e67['Null']==_0x18efa2(0x15d)?_0x18efa2(0x17b):_0x18efa2(0x194))+_0x18efa2(0x18e),_0x65757+=_0x18efa2(0x17c)+_0x557e67[_0x18efa2(0x161)]+_0x18efa2(0x196);else{if(_0x3ad0b5==_0x18efa2(0x19c))_0x65757+=_0x18efa2(0x151)+_0x557e67[_0x18efa2(0x139)]+_0x18efa2(0x14c)+(_0x557e67[_0x18efa2(0x144)]==_0x18efa2(0x15d)?_0x18efa2(0x17b):_0x18efa2(0x194))+_0x18efa2(0x13b),_0x65757+=_0x18efa2(0x17c)+_0x557e67[_0x18efa2(0x161)]+_0x18efa2(0x196);else{if(_0x3ad0b5==_0x18efa2(0x162))_0x65757+='\x20\x20\x20\x20@Column(\x27tinyint\x27,\x20{\x20comment:\x20\x27'+_0x557e67[_0x18efa2(0x139)]+'\x27,\x20nullable:\x20'+(_0x557e67[_0x18efa2(0x144)]=='YES'?_0x18efa2(0x17b):_0x18efa2(0x194))+',\x20unique:\x20false\x20})\x0a',_0x65757+='\x20\x20\x20\x20'+_0x557e67[_0x18efa2(0x161)]+_0x18efa2(0x196);else{if(_0x3ad0b5==_0x18efa2(0x142))_0x65757+=_0x18efa2(0x14a)+_0x557e67[_0x18efa2(0x139)]+_0x18efa2(0x14c)+(_0x557e67[_0x18efa2(0x144)]==_0x18efa2(0x15d)?_0x18efa2(0x17b):_0x18efa2(0x194))+_0x18efa2(0x18e),_0x65757+=_0x18efa2(0x17c)+_0x557e67[_0x18efa2(0x161)]+_0x18efa2(0x160);else{if(_0x3ad0b5==_0x18efa2(0x19b))_0x65757+=_0x18efa2(0x173)+_0x557e67[_0x18efa2(0x139)]+_0x18efa2(0x14c)+(_0x557e67[_0x18efa2(0x144)]==_0x18efa2(0x15d)?'true':_0x18efa2(0x194))+_0x18efa2(0x18e),_0x65757+=_0x18efa2(0x17c)+_0x557e67['Field']+':\x20string;\x0a\x0a';else{if(_0x3ad0b5==_0x18efa2(0x13d))_0x65757+=_0x18efa2(0x173)+_0x557e67[_0x18efa2(0x139)]+_0x18efa2(0x14c)+(_0x557e67[_0x18efa2(0x144)]==_0x18efa2(0x15d)?_0x18efa2(0x17b):'false')+_0x18efa2(0x18e),_0x65757+=_0x18efa2(0x17c)+_0x557e67[_0x18efa2(0x161)]+':\x20string;\x0a\x0a';else{if(_0x3ad0b5==_0x18efa2(0x13a))_0x65757+='\x20\x20\x20\x20@Column(\x27text\x27,\x20{\x20comment:\x20\x27'+_0x557e67[_0x18efa2(0x139)]+'\x27,\x20nullable:\x20'+(_0x557e67[_0x18efa2(0x144)]==_0x18efa2(0x15d)?_0x18efa2(0x17b):_0x18efa2(0x194))+_0x18efa2(0x13b),_0x65757+='\x20\x20\x20\x20'+_0x557e67[_0x18efa2(0x161)]+_0x18efa2(0x160);else{if(_0x3ad0b5=='longtext')_0x65757+='\x20\x20\x20\x20@Column(\x27longtext\x27,\x20{\x20comment:\x20\x27'+_0x557e67[_0x18efa2(0x139)]+_0x18efa2(0x14c)+(_0x557e67[_0x18efa2(0x144)]==_0x18efa2(0x15d)?_0x18efa2(0x17b):_0x18efa2(0x194))+_0x18efa2(0x13b),_0x65757+=_0x18efa2(0x17c)+_0x557e67['Field']+_0x18efa2(0x160);else _0x3ad0b5==_0x18efa2(0x13c)?(_0x65757+=_0x18efa2(0x16a)+_0x557e67[_0x18efa2(0x139)]+_0x18efa2(0x14c)+(_0x557e67[_0x18efa2(0x144)]==_0x18efa2(0x15d)?'true':_0x18efa2(0x194))+_0x18efa2(0x13b),_0x65757+=_0x18efa2(0x17c)+_0x557e67['Field']+_0x18efa2(0x160)):(_0x65757+=_0x18efa2(0x151)+_0x557e67['Comment']+_0x18efa2(0x14c)+(_0x557e67['Null']=='YES'?_0x18efa2(0x17b):_0x18efa2(0x194))+_0x18efa2(0x13b),_0x65757+='\x20\x20\x20\x20'+_0x557e67[_0x18efa2(0x161)]+_0x18efa2(0x160));}}}}}}}}}}}}_0x43c6f9+=_0x18efa2(0x177),_0x43c6f9+=_0x18efa2(0x19e),_0x43c6f9+='import\x20{\x20ProvideEntity,\x20ProvideSearch,\x20'+(_0x220137?_0x18efa2(0x18c):'PrimaryColumn')+_0x18efa2(0x16e),_0x43c6f9+=_0x18efa2(0x19d)+_0x5d0261+_0x18efa2(0x17f)+(typeof _0x560825==_0x18efa2(0x191)?_0x18efa2(0x18d)+_0x560825:'@/'+_0x5e3feb)+_0x18efa2(0x181)+_0x38f702+_0x18efa2(0x189),_0x43c6f9+=_0x18efa2(0x156),_0x43c6f9+=_0x18efa2(0x14d)+_0x336efd+_0x18efa2(0x17e),_0x43c6f9+=_0x18efa2(0x168),_0x43c6f9+=_0x18efa2(0x174)+_0x5d0261+'Search)\x0a',_0x43c6f9+=_0x18efa2(0x154)+_0x4e0d9c+_0x18efa2(0x14b),_0x43c6f9+=_0x18efa2(0x16d)+_0x5d0261+'Entity\x20{\x0a\x0a',_0x43c6f9+='%column%',_0x43c6f9+=_0x18efa2(0x197),_0x43c6f9+=_0x18efa2(0x15b),_0x43c6f9+='\x20\x20\x20\x20@CreateDateColumn({\x20comment:\x20\x27创建时间\x27,\x20type:\x20\x27timestamp\x27\x20})\x0a',_0x43c6f9+=_0x18efa2(0x15a),_0x43c6f9+=_0x18efa2(0x145),_0x43c6f9+='\x20\x20\x20\x20updated_at:\x20Date;\x0a\x0a',_0x43c6f9+=_0x18efa2(0x14e),_0x43c6f9+=_0x18efa2(0x178),_0x43c6f9+='}',_0x43c6f9=_0x43c6f9[_0x18efa2(0x18b)](_0x18efa2(0x167),_0x65757),!fs['existsSync']((0x0,path_1['dirname'])(_0x3a76c8))&&fs[_0x18efa2(0x187)]((0x0,path_1[_0x18efa2(0x155)])(_0x3a76c8),{'recursive':!![]}),fs[_0x18efa2(0x15c)](_0x3a76c8,_0x43c6f9,_0x18efa2(0x166));}}function a6_0x568d(_0x1f879b,_0x59d967){const _0x5a7e3d=a6_0x3a6c();return a6_0x568d=function(_0x27bb74,_0x32c0b6){_0x27bb74=_0x27bb74-0x138;let _0x3a6c78=_0x5a7e3d[_0x27bb74];return _0x3a6c78;},a6_0x568d(_0x1f879b,_0x59d967);}async function repository({tablestartUp:_0x201e38,tablestartUpShort:_0x35db26,basedir:_0x38ddda,Comment:_0x4ba9bb,moduleName:_0x228372,apporbasic:_0x72dc62}){const _0x77cccc=a6_0x148afc,_0x34835d=_0x38ddda+('/entities/'+_0x35db26+'/index.ts');if(!fs[_0x77cccc(0x176)](_0x34835d)){let _0x374877='';_0x374877+=_0x77cccc(0x156),_0x374877+=_0x77cccc(0x14d)+_0x4ba9bb+_0x77cccc(0x15f),_0x374877+='\x20*\x20**/\x0a',_0x374877+='import\x20{\x20ProvideRepository,\x20Repository\x20}\x20from\x20\x27@anncic-api/typeorm\x27;\x0a',_0x374877+='import\x20{\x20'+_0x201e38+_0x77cccc(0x186)+(typeof _0x228372==_0x77cccc(0x191)?_0x77cccc(0x18d)+_0x228372:'@/'+_0x72dc62)+_0x77cccc(0x14f)+_0x35db26+_0x77cccc(0x17d),_0x374877+=_0x77cccc(0x165)+_0x201e38+'Entity)\x0a',_0x374877+=_0x77cccc(0x16d)+_0x201e38+_0x77cccc(0x180)+_0x201e38+_0x77cccc(0x170),_0x374877+='}',!fs[_0x77cccc(0x176)]((0x0,path_1[_0x77cccc(0x155)])(_0x34835d))&&fs[_0x77cccc(0x187)]((0x0,path_1[_0x77cccc(0x155)])(_0x34835d),{'recursive':!![]}),fs[_0x77cccc(0x15c)](_0x34835d,_0x374877,_0x77cccc(0x166));}}
|
|
1
|
+
const a6_0x26d2e7=a6_0x1d47;function a6_0x1d47(_0x55e162,_0x30f9c1){const _0x1eacec=a6_0x4f97();return a6_0x1d47=function(_0x1bd088,_0x28fd81){_0x1bd088=_0x1bd088-0xbf;let _0x4f97e0=_0x1eacec[_0x1bd088];return _0x4f97e0;},a6_0x1d47(_0x55e162,_0x30f9c1);}(function(_0xad6c99,_0x2a1a68){const _0x2d13af=a6_0x1d47,_0x4fe6c4=_0xad6c99();while(!![]){try{const _0x4f3df3=-parseInt(_0x2d13af(0xcc))/0x1+-parseInt(_0x2d13af(0xd5))/0x2*(parseInt(_0x2d13af(0xe6))/0x3)+parseInt(_0x2d13af(0xc5))/0x4+-parseInt(_0x2d13af(0x10c))/0x5+-parseInt(_0x2d13af(0xe1))/0x6+-parseInt(_0x2d13af(0xf5))/0x7*(parseInt(_0x2d13af(0xdd))/0x8)+parseInt(_0x2d13af(0x11f))/0x9;if(_0x4f3df3===_0x2a1a68)break;else _0x4fe6c4['push'](_0x4fe6c4['shift']());}catch(_0x29438d){_0x4fe6c4['push'](_0x4fe6c4['shift']());}}}(a6_0x4f97,0xaf56b));const a6_0x28fd81=(function(){let _0x2084f2=!![];return function(_0x5a2a7b,_0x326c68){const _0x5990f5=_0x2084f2?function(){const _0x11dbaf=a6_0x1d47;if(_0x326c68){const _0x1a7a6d=_0x326c68[_0x11dbaf(0x112)](_0x5a2a7b,arguments);return _0x326c68=null,_0x1a7a6d;}}:function(){};return _0x2084f2=![],_0x5990f5;};}()),a6_0x1bd088=a6_0x28fd81(this,function(){const _0x2c6502=a6_0x1d47;return a6_0x1bd088['toString']()[_0x2c6502(0x119)](_0x2c6502(0xdc))[_0x2c6502(0xf7)]()[_0x2c6502(0x10a)](a6_0x1bd088)[_0x2c6502(0x119)]('(((.+)+)+)+$');});a6_0x1bd088();'use strict';Object['defineProperty'](exports,a6_0x26d2e7(0xd7),{'value':!![]}),exports[a6_0x26d2e7(0xee)]=default_1;const fs=require('fs'),path_1=require(a6_0x26d2e7(0x108)),helper_1=require(a6_0x26d2e7(0xf6));function a6_0x4f97(){const _0x3b5496=['@ProvideSearch(','6146615tjSJMF','\x20\x20\x20\x20@Column(\x27date\x27,\x20{\x20comment:\x20\x27','\x20\x20\x20\x20@Column(\x27json\x27,\x20{\x20comment:\x20\x27','\x27\x20|\x20\x27','\x20\x20\x20\x20','\x20\x20\x20\x20displayorder:\x20number;\x0a\x0a','apply','\x20\x20\x20\x20@Column(\x27tinyint\x27,\x20{\x20comment:\x20\x27','/entity\x27;\x0a\x0a','\x20\x20\x20\x20deleted_at:\x20Date;\x0a\x0a','\x20\x20\x20\x20@Column(\x27longtext\x27,\x20{\x20comment:\x20\x27','/searchs/',':\x20number;\x0a\x0a','search',':\x20any\x20|\x20any[];\x0a\x0a','true','export\x20class\x20','/entity.ts','%column%','30168351GzFwib','\x27]\x20})\x0a','\x20\x20\x20\x20@Column({\x20comment:\x20\x27','Search)\x0a','\x20\x20\x20\x20@Column(\x27text\x27,\x20{\x20comment:\x20\x27','\x27,\x20length:\x20188\x20})\x0a','\x20\x20\x20\x20@Column(\x27float\x27,\x20{\x20comment:\x20\x27','/**\x0a','getEnum','/entities/','false','\x27\x20},\x20{\x20orderBy:\x20{\x20displayorder:\x20\x27DESC\x27\x20}\x20})\x0a','import\x20{\x20CreateDateColumn,\x20UpdateDateColumn,\x20DeleteDateColumn\x20}\x20from\x20\x27@anncic-api/typeorm\x27;\x0a','-实体\x0a','5704612jyyfcF','utf-8','\x20\x20\x20\x20@UpdateDateColumn({\x20comment:\x20\x27修改时间\x27,\x20type:\x20\x27timestamp\x27\x20})\x0a','Field','Entity\x20}\x20from\x20\x27','\x20*\x20','text','915605Otoorj','\x20\x20\x20\x20@Column(\x27double\x27,\x20{\x20comment:\x20\x27','getProp','import\x20{\x20ProvideRepository,\x20Repository\x20}\x20from\x20\x27@anncic-api/typeorm\x27;\x0a','Type','\x20\x20\x20\x20@Column({\x20comment:\x20\x27默认显示排序\x27,\x20nullable:\x20true,\x20unique:\x20false\x20})\x0a','@/apps/','mkdirSync','\x27,\x20nullable:\x20','14TeAjXJ','Entity\x20{\x0a\x0a','__esModule','\x20\x20\x20\x20@DeleteDateColumn({\x20comment:\x20\x27删除时间\x27,\x20type:\x20\x27timestamp\x27,\x20select:\x20false\x20})\x0a','double','Null','displayorder','(((.+)+)+)+$','8DAeeHs','decimal','\x20\x20\x20\x20@CreateDateColumn({\x20comment:\x20\x27创建时间\x27,\x20type:\x20\x27timestamp\x27\x20})\x0a','existsSync','2916954ntnPum','\x20\x20\x20\x20@Column(\x27enum\x27,\x20{\x20comment:\x20\x27','mediumtext','Comment','\x20\x20\x20\x20@PrimaryColumn({\x20comment:\x20\x27','347433VFzJBs','\x27,\x20precision:\x2010,\x20scale:\x202,\x20default:\x200.00,\x20nullable:\x20','writeFileSync','join',':\x20string;\x0a\x0a','YES','longtext','tinyint','default','\x27;\x0a\x0a','replace','//\x20import\x20{\x20ManyToOne,\x20JoinColumn\x20}\x20from\x20\x27@anncic-api/typeorm\x27;\x0a','\x20*\x20**/\x0a','created_at','\x20\x20\x20\x20@PrimaryGeneratedColumn()\x0a','4327687wIAtvW','../helper','toString','@ProvideEntity({\x20tableName:\x20\x27','Search\x20}\x20from\x20\x27','updated_at','\x27,\x20enum:\x20[\x27','dirname','\x27,\x20\x27','@ProvideRepository(','enum','\x20})\x0a',',\x20Column\x20}\x20from\x20\x27@anncic-api/typeorm\x27;\x0a\x0a','string','\x20\x20\x20\x20@Column(\x27mediumtext\x27,\x20{\x20comment:\x20\x27','deleted_at','date','Entity>{\x0a\x0a',',\x20unique:\x20false\x20})\x0a','path','\x20\x20\x20\x20updated_at:\x20Date;\x0a\x0a','constructor'];a6_0x4f97=function(){return _0x3b5496;};return a6_0x4f97();}async function default_1({tablename:_0x2a1e3f,tablestartUp:_0x41b28d,tablestartUpShort:_0x38f1a5,basedir:_0x2a8815,Primary:_0x35001f,Fields:_0x4eed6c,Comment:_0x45c051,moduleName:_0x288ed1,apporbasic:_0x4319ec}){await entity({'tablename':_0x2a1e3f,'tablestartUp':_0x41b28d,'tablestartUpShort':_0x38f1a5,'basedir':_0x2a8815,'Primary':_0x35001f,'Fields':_0x4eed6c,'Comment':_0x45c051,'moduleName':_0x288ed1,'apporbasic':_0x4319ec}),await repository({'tablestartUp':_0x41b28d,'tablestartUpShort':_0x38f1a5,'basedir':_0x2a8815,'Comment':_0x45c051,'moduleName':_0x288ed1,'apporbasic':_0x4319ec});}async function entity({tablename:_0x741673,tablestartUp:_0x56e53e,tablestartUpShort:_0x28e718,basedir:_0x20ded6,Primary:_0x32ed3b,Fields:_0x437dbe,Comment:_0x13e3d1,moduleName:_0x28c565,apporbasic:_0x3cc98f}){const _0x26ec89=a6_0x26d2e7,_0x200d2a=_0x20ded6+(_0x26ec89(0xc0)+_0x28e718+_0x26ec89(0x11d));if(!fs[_0x26ec89(0xe0)](_0x200d2a)){let _0x59986b='',_0x429852='',_0x3d1056=[_0x26ec89(0xcb),'mediumtext',_0x26ec89(0x102)]['indexOf']((0x0,helper_1['getProp'])(_0x32ed3b[_0x26ec89(0xd0)]))==-0x1;_0x3d1056?(_0x59986b+=_0x26ec89(0xf4),_0x59986b+=_0x26ec89(0x110)+_0x32ed3b[_0x26ec89(0xc8)]+_0x26ec89(0x118)):(_0x59986b+=_0x26ec89(0xe5)+(_0x32ed3b[_0x26ec89(0xe4)]||'标识')+_0x26ec89(0x124),_0x59986b+=_0x26ec89(0x110)+_0x32ed3b[_0x26ec89(0xc8)]+_0x26ec89(0xea));for(let _0x14fad9 in _0x437dbe){let _0x18d43c=_0x437dbe[_0x14fad9],_0x2dd61a=(0x0,helper_1[_0x26ec89(0xce)])(_0x18d43c[_0x26ec89(0xd0)]);if(_0x18d43c[_0x26ec89(0xc8)]==_0x26ec89(0xdb)||_0x18d43c['Field']==_0x26ec89(0xf3)||_0x18d43c[_0x26ec89(0xc8)]==_0x26ec89(0xfa)||_0x18d43c['Field']==_0x26ec89(0x104))continue;if(_0x2dd61a=='json')_0x59986b+=_0x26ec89(0x10e)+_0x18d43c[_0x26ec89(0xe4)]+_0x26ec89(0xd4)+(_0x18d43c[_0x26ec89(0xda)]=='YES'?_0x26ec89(0x11b):_0x26ec89(0xc1))+_0x26ec89(0x107),_0x59986b+=_0x26ec89(0x110)+_0x18d43c[_0x26ec89(0xc8)]+_0x26ec89(0x11a);else{if(_0x2dd61a==_0x26ec89(0xff)){let _0xa0e8c4=(0x0,helper_1[_0x26ec89(0xbf)])(_0x18d43c[_0x26ec89(0xd0)]);_0x59986b+=_0x26ec89(0xe2)+_0x18d43c[_0x26ec89(0xe4)]+'\x27,\x20default:\x20\x27'+(_0xa0e8c4[0x0]||'')+_0x26ec89(0xfb)+_0xa0e8c4[_0x26ec89(0xe9)](_0x26ec89(0xfd))+_0x26ec89(0x120),_0x59986b+=_0x26ec89(0x110)+_0x18d43c[_0x26ec89(0xc8)]+':\x20\x27'+_0xa0e8c4['join'](_0x26ec89(0x10f))+_0x26ec89(0xef);}else{if(_0x2dd61a=='float')_0x59986b+=_0x26ec89(0x125)+_0x18d43c[_0x26ec89(0xe4)]+_0x26ec89(0xe7)+(_0x18d43c['Null']==_0x26ec89(0xeb)?_0x26ec89(0x11b):_0x26ec89(0xc1))+_0x26ec89(0x100),_0x59986b+='\x20\x20\x20\x20'+_0x18d43c[_0x26ec89(0xc8)]+_0x26ec89(0x118);else{if(_0x2dd61a==_0x26ec89(0xd9))_0x59986b+=_0x26ec89(0xcd)+_0x18d43c[_0x26ec89(0xe4)]+_0x26ec89(0xe7)+(_0x18d43c[_0x26ec89(0xda)]==_0x26ec89(0xeb)?_0x26ec89(0x11b):_0x26ec89(0xc1))+_0x26ec89(0x100),_0x59986b+=_0x26ec89(0x110)+_0x18d43c[_0x26ec89(0xc8)]+_0x26ec89(0x118);else{if(_0x2dd61a==_0x26ec89(0xde))_0x59986b+='\x20\x20\x20\x20@Column(\x27decimal\x27,\x20{\x20comment:\x20\x27'+_0x18d43c['Comment']+'\x27,\x20precision:\x2024,\x20scale:\x202,\x20default:\x200.00,\x20nullable:\x20'+(_0x18d43c['Null']=='YES'?_0x26ec89(0x11b):'false')+'\x20})\x0a',_0x59986b+=_0x26ec89(0x110)+_0x18d43c[_0x26ec89(0xc8)]+_0x26ec89(0x118);else{if(_0x2dd61a=='number')_0x59986b+=_0x26ec89(0x121)+_0x18d43c[_0x26ec89(0xe4)]+_0x26ec89(0xd4)+(_0x18d43c[_0x26ec89(0xda)]==_0x26ec89(0xeb)?_0x26ec89(0x11b):_0x26ec89(0xc1))+_0x26ec89(0x107),_0x59986b+='\x20\x20\x20\x20'+_0x18d43c['Field']+_0x26ec89(0x118);else{if(_0x2dd61a==_0x26ec89(0xed))_0x59986b+=_0x26ec89(0x113)+_0x18d43c[_0x26ec89(0xe4)]+_0x26ec89(0xd4)+(_0x18d43c['Null']=='YES'?_0x26ec89(0x11b):_0x26ec89(0xc1))+_0x26ec89(0x107),_0x59986b+='\x20\x20\x20\x20'+_0x18d43c[_0x26ec89(0xc8)]+_0x26ec89(0x118);else{if(_0x2dd61a==_0x26ec89(0x105))_0x59986b+=_0x26ec89(0x10d)+_0x18d43c['Comment']+_0x26ec89(0xd4)+(_0x18d43c[_0x26ec89(0xda)]==_0x26ec89(0xeb)?'true':_0x26ec89(0xc1))+_0x26ec89(0x100),_0x59986b+=_0x26ec89(0x110)+_0x18d43c['Field']+':\x20string;\x0a\x0a';else{if(_0x2dd61a=='datetime')_0x59986b+='\x20\x20\x20\x20@Column(\x27timestamp\x27,\x20{\x20comment:\x20\x27'+_0x18d43c[_0x26ec89(0xe4)]+_0x26ec89(0xd4)+(_0x18d43c[_0x26ec89(0xda)]==_0x26ec89(0xeb)?_0x26ec89(0x11b):'false')+_0x26ec89(0x100),_0x59986b+=_0x26ec89(0x110)+_0x18d43c[_0x26ec89(0xc8)]+_0x26ec89(0xea);else{if(_0x2dd61a=='timestamp')_0x59986b+='\x20\x20\x20\x20@Column(\x27timestamp\x27,\x20{\x20comment:\x20\x27'+_0x18d43c[_0x26ec89(0xe4)]+_0x26ec89(0xd4)+(_0x18d43c['Null']==_0x26ec89(0xeb)?_0x26ec89(0x11b):_0x26ec89(0xc1))+'\x20})\x0a',_0x59986b+=_0x26ec89(0x110)+_0x18d43c[_0x26ec89(0xc8)]+_0x26ec89(0xea);else{if(_0x2dd61a==_0x26ec89(0xcb))_0x59986b+=_0x26ec89(0x123)+_0x18d43c[_0x26ec89(0xe4)]+_0x26ec89(0xd4)+(_0x18d43c['Null']==_0x26ec89(0xeb)?_0x26ec89(0x11b):'false')+_0x26ec89(0x107),_0x59986b+='\x20\x20\x20\x20'+_0x18d43c[_0x26ec89(0xc8)]+':\x20string;\x0a\x0a';else{if(_0x2dd61a==_0x26ec89(0xec))_0x59986b+=_0x26ec89(0x116)+_0x18d43c['Comment']+_0x26ec89(0xd4)+(_0x18d43c['Null']==_0x26ec89(0xeb)?_0x26ec89(0x11b):_0x26ec89(0xc1))+_0x26ec89(0x107),_0x59986b+='\x20\x20\x20\x20'+_0x18d43c[_0x26ec89(0xc8)]+':\x20string;\x0a\x0a';else _0x2dd61a==_0x26ec89(0xe3)?(_0x59986b+=_0x26ec89(0x103)+_0x18d43c[_0x26ec89(0xe4)]+_0x26ec89(0xd4)+(_0x18d43c[_0x26ec89(0xda)]==_0x26ec89(0xeb)?_0x26ec89(0x11b):_0x26ec89(0xc1))+_0x26ec89(0x107),_0x59986b+=_0x26ec89(0x110)+_0x18d43c[_0x26ec89(0xc8)]+_0x26ec89(0xea)):(_0x59986b+=_0x26ec89(0x121)+_0x18d43c[_0x26ec89(0xe4)]+_0x26ec89(0xd4)+(_0x18d43c[_0x26ec89(0xda)]==_0x26ec89(0xeb)?'true':_0x26ec89(0xc1))+',\x20unique:\x20false\x20})\x0a',_0x59986b+=_0x26ec89(0x110)+_0x18d43c['Field']+_0x26ec89(0xea));}}}}}}}}}}}}_0x429852+=_0x26ec89(0xf1),_0x429852+=_0x26ec89(0xc3),_0x429852+='import\x20{\x20ProvideEntity,\x20ProvideSearch,\x20'+(_0x3d1056?'PrimaryGeneratedColumn':'PrimaryColumn')+_0x26ec89(0x101),_0x429852+='import\x20{\x20'+_0x56e53e+_0x26ec89(0xf9)+(typeof _0x28c565==_0x26ec89(0x102)?_0x26ec89(0xd2)+_0x28c565:'@/'+_0x3cc98f)+_0x26ec89(0x117)+_0x28e718+'\x27;\x0a\x0a',_0x429852+=_0x26ec89(0x126),_0x429852+=_0x26ec89(0xca)+_0x13e3d1+_0x26ec89(0xc4),_0x429852+=_0x26ec89(0xf2),_0x429852+=_0x26ec89(0x10b)+_0x56e53e+_0x26ec89(0x122),_0x429852+=_0x26ec89(0xf8)+_0x741673+_0x26ec89(0xc2),_0x429852+=_0x26ec89(0x11c)+_0x56e53e+_0x26ec89(0xd6),_0x429852+=_0x26ec89(0x11e),_0x429852+=_0x26ec89(0xd1),_0x429852+=_0x26ec89(0x111),_0x429852+=_0x26ec89(0xdf),_0x429852+='\x20\x20\x20\x20created_at:\x20Date;\x0a\x0a',_0x429852+=_0x26ec89(0xc7),_0x429852+=_0x26ec89(0x109),_0x429852+=_0x26ec89(0xd8),_0x429852+=_0x26ec89(0x115),_0x429852+='}',_0x429852=_0x429852[_0x26ec89(0xf0)](_0x26ec89(0x11e),_0x59986b),!fs[_0x26ec89(0xe0)]((0x0,path_1['dirname'])(_0x200d2a))&&fs['mkdirSync']((0x0,path_1[_0x26ec89(0xfc)])(_0x200d2a),{'recursive':!![]}),fs[_0x26ec89(0xe8)](_0x200d2a,_0x429852,_0x26ec89(0xc6));}}async function repository({tablestartUp:_0x3fabb4,tablestartUpShort:_0x1590b1,basedir:_0x31557e,Comment:_0x2ab2b9,moduleName:_0x2919a1,apporbasic:_0x27eadd}){const _0x469947=a6_0x26d2e7,_0x29eb29=_0x31557e+(_0x469947(0xc0)+_0x1590b1+'/index.ts');if(!fs[_0x469947(0xe0)](_0x29eb29)){let _0x25f521='';_0x25f521+=_0x469947(0x126),_0x25f521+=_0x469947(0xca)+_0x2ab2b9+'-实体处理器\x0a',_0x25f521+=_0x469947(0xf2),_0x25f521+=_0x469947(0xcf),_0x25f521+='import\x20{\x20'+_0x3fabb4+_0x469947(0xc9)+(typeof _0x2919a1==_0x469947(0x102)?'@/apps/'+_0x2919a1:'@/'+_0x27eadd)+_0x469947(0xc0)+_0x1590b1+_0x469947(0x114),_0x25f521+=_0x469947(0xfe)+_0x3fabb4+'Entity)\x0a',_0x25f521+='export\x20class\x20'+_0x3fabb4+'\x20extends\x20Repository<'+_0x3fabb4+_0x469947(0x106),_0x25f521+='}',!fs[_0x469947(0xe0)]((0x0,path_1[_0x469947(0xfc)])(_0x29eb29))&&fs[_0x469947(0xd3)]((0x0,path_1[_0x469947(0xfc)])(_0x29eb29),{'recursive':!![]}),fs['writeFileSync'](_0x29eb29,_0x25f521,_0x469947(0xc6));}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a7_0x546d(_0x42ecd1,_0x353c0a){const _0x534eab=a7_0x6264();return a7_0x546d=function(_0x523b95,_0x53e45f){_0x523b95=_0x523b95-0x89;let _0x6264eb=_0x534eab[_0x523b95];return _0x6264eb;},a7_0x546d(_0x42ecd1,_0x353c0a);}const a7_0x15ea27=a7_0x546d;(function(_0x2f5ef7,_0x4b1159){const _0x6ad224=a7_0x546d,_0x563c63=_0x2f5ef7();while(!![]){try{const _0x4b5fdf=parseInt(_0x6ad224(0x8c))/0x1*(parseInt(_0x6ad224(0xa2))/0x2)+-parseInt(_0x6ad224(0x93))/0x3+-parseInt(_0x6ad224(0xab))/0x4+parseInt(_0x6ad224(0xaa))/0x5*(parseInt(_0x6ad224(0x8a))/0x6)+parseInt(_0x6ad224(0xa8))/0x7+-parseInt(_0x6ad224(0x9c))/0x8*(-parseInt(_0x6ad224(0x92))/0x9)+parseInt(_0x6ad224(0xa0))/0xa;if(_0x4b5fdf===_0x4b1159)break;else _0x563c63['push'](_0x563c63['shift']());}catch(_0x17b495){_0x563c63['push'](_0x563c63['shift']());}}}(a7_0x6264,0x2fe9f));const a7_0x53e45f=(function(){let _0x39776f=!![];return function(_0x26526f,_0xc0bac0){const _0x5ab704=_0x39776f?function(){const _0x3f9be5=a7_0x546d;if(_0xc0bac0){const _0x570dca=_0xc0bac0[_0x3f9be5(0x8e)](_0x26526f,arguments);return _0xc0bac0=null,_0x570dca;}}:function(){};return _0x39776f=![],_0x5ab704;};}()),a7_0x523b95=a7_0x53e45f(this,function(){const _0x4c3c88=a7_0x546d;return a7_0x523b95[_0x4c3c88(0xa5)]()[_0x4c3c88(0x96)]('(((.+)+)+)+$')[_0x4c3c88(0xa5)]()[_0x4c3c88(0x98)](a7_0x523b95)['search']('(((.+)+)+)+$');});a7_0x523b95();'use strict';function a7_0x6264(){const _0x83dcf5=['Event\x20{\x0a\x0a','26688JujaIE','defineProperty','219042iqSsAy','import\x20{\x20Inject,\x20InjectRepository\x20}\x20from\x20\x27@anncic-api/typeorm\x27;\x0a\x0a','apply','existsSync','.ts','writeFileSync','2045871RYnkCg','764847BvjNGC','export\x20class\x20',';\x0a\x0a\x0a','search','import\x20{\x20','constructor','dirname','\x27;\x0a\x0a','\x20\x20\x20\x20@Inject()\x20protected\x20EventService:\x20EventService;\x0a\x0a','8TUHSIC',')\x20protected\x20','/entities/','/listeners/','2023880uUSJqs','string','2xFTbox','mkdirSync','@/apps/','toString','default','__esModule','305774bQXBcG','path','55cVRVTb','1160620vuiEJf'];a7_0x6264=function(){return _0x83dcf5;};return a7_0x6264();}Object[a7_0x15ea27(0x8b)](exports,a7_0x15ea27(0xa7),{'value':!![]}),exports[a7_0x15ea27(0xa6)]=default_1;const fs=require('fs'),path_1=require(a7_0x15ea27(0xa9));async function default_1({tablestartUp:_0x12c38c,tablestartUpShort:_0x4b2fb6,basedir:_0x1593ab,moduleName:_0x4b44d7,apporbasic:_0x578b86}){const _0x1b7e47=a7_0x15ea27,_0x1cce07=_0x1593ab+(_0x1b7e47(0x9f)+_0x4b2fb6+_0x1b7e47(0x90));if(!fs[_0x1b7e47(0x8f)](_0x1cce07)){let _0x417723='';_0x417723+='import\x20{\x20Event,\x20EventService\x20}\x20from\x20\x27@anncic-api/event\x27;\x0a',_0x417723+=_0x1b7e47(0x8d),_0x417723+=_0x1b7e47(0x97)+_0x12c38c+'\x20}\x20from\x20\x27'+(typeof _0x4b44d7==_0x1b7e47(0xa1)?_0x1b7e47(0xa4)+_0x4b44d7:'@/'+_0x578b86)+_0x1b7e47(0x9e)+_0x4b2fb6+_0x1b7e47(0x9a),_0x417723+='@Event()\x0a',_0x417723+=_0x1b7e47(0x94)+_0x12c38c+_0x1b7e47(0x89),_0x417723+=_0x1b7e47(0x9b),_0x417723+='\x20\x20\x20\x20@InjectRepository('+_0x12c38c+_0x1b7e47(0x9d)+_0x12c38c+':\x20'+_0x12c38c+_0x1b7e47(0x95),_0x417723+='}',!fs[_0x1b7e47(0x8f)]((0x0,path_1[_0x1b7e47(0x99)])(_0x1cce07))&&fs[_0x1b7e47(0xa3)]((0x0,path_1[_0x1b7e47(0x99)])(_0x1cce07),{'recursive':!![]}),fs[_0x1b7e47(0x91)](_0x1cce07,_0x417723,'utf-8');}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a8_0x43dbd3=a8_0x4e01;(function(_0x47f8a4,_0x435050){const _0x3aa31e=a8_0x4e01,_0x2d879a=_0x47f8a4();while(!![]){try{const _0x490c86=parseInt(_0x3aa31e(0x128))/0x1+parseInt(_0x3aa31e(0x131))/0x2+-parseInt(_0x3aa31e(0x145))/0x3*(parseInt(_0x3aa31e(0x14b))/0x4)+-parseInt(_0x3aa31e(0x138))/0x5+parseInt(_0x3aa31e(0x149))/0x6*(parseInt(_0x3aa31e(0x13b))/0x7)+parseInt(_0x3aa31e(0x153))/0x8*(parseInt(_0x3aa31e(0x122))/0x9)+-parseInt(_0x3aa31e(0x15a))/0xa*(parseInt(_0x3aa31e(0x142))/0xb);if(_0x490c86===_0x435050)break;else _0x2d879a['push'](_0x2d879a['shift']());}catch(_0x4cfccc){_0x2d879a['push'](_0x2d879a['shift']());}}}(a8_0x4ee9,0xd8b3b));const a8_0x273bad=(function(){let _0x8c5641=!![];return function(_0x3e0f20,_0xc4b4fe){const _0x16eadd=_0x8c5641?function(){const _0x2290e1=a8_0x4e01;if(_0xc4b4fe){const _0x247eb6=_0xc4b4fe[_0x2290e1(0x152)](_0x3e0f20,arguments);return _0xc4b4fe=null,_0x247eb6;}}:function(){};return _0x8c5641=![],_0x16eadd;};}()),a8_0x2b9e79=a8_0x273bad(this,function(){const _0x462cf5=a8_0x4e01;return a8_0x2b9e79['toString']()['search'](_0x462cf5(0x167))[_0x462cf5(0x14d)]()['constructor'](a8_0x2b9e79)[_0x462cf5(0x12b)](_0x462cf5(0x167));});a8_0x2b9e79();'use strict';function a8_0x4e01(_0x756ff3,_0x257d45){const _0x1085d5=a8_0x4ee9();return a8_0x4e01=function(_0x2b9e79,_0x273bad){_0x2b9e79=_0x2b9e79-0x117;let _0x4ee999=_0x1085d5[_0x2b9e79];return _0x4ee999;},a8_0x4e01(_0x756ff3,_0x257d45);}Object[a8_0x43dbd3(0x155)](exports,a8_0x43dbd3(0x124),{'value':!![]}),exports[a8_0x43dbd3(0x144)]=default_1;function a8_0x4ee9(){const _0x365f53=['44YwqsAD','\x20\x20\x20\x20\x20\x20\x20\x20for\x20(let\x20tmpModel\x20of\x20tmpModels)\x20{\x0a','toString','\x20\x20\x20\x20\x20\x20\x20\x20return\x20[pagelist,\x20pagetotal];\x0a','\x27;\x0a','\x20*\x20','.softRemove(tmpModel))\x0a','apply','3480LrLotg','Handler\x20{\x0a\x0a','defineProperty','\x20\x20\x20\x20}\x0a\x0a\x0a','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20return\x20search.getOneOrFail().catch(()\x20=>\x20{\x0a','\x20\x20\x20\x20\x20\x20\x20\x20const\x20tmpModel\x20=\x20await\x20this.','\x20\x20\x20\x20\x20*\x20添加数据\x0a','68830pPJByb','\x20\x20\x20\x20async\x20remove(conditions:\x20SearchParams<','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20return\x20search.getMany();\x0a','DTOCreate\x20}\x20from\x20\x27','\x20\x20\x20\x20\x20*\x20**/\x0a','mkdirSync','DTOCreate)\x20{\x0a','Entity>,\x20params:\x20','/entities/','\x20\x20\x20\x20\x20\x20\x20\x20}\x0a','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20throw\x20new\x20','.ts','\x20\x20\x20\x20\x20*\x20数据详情\x0a','(((.+)+)+)+$','.search(conditions,\x20{},\x20options).then(async\x20search\x20=>\x20{\x0a\x0a','\x20\x20\x20\x20async\x20restores(conditions:\x20SearchParams<','不存在\x27\x20})\x0a','\x20\x20\x20\x20async\x20detail(conditions?:\x20SearchParams<','\x20\x20\x20\x20\x20\x20\x20\x20this.','Entity>,\x20options:\x20SearchOptions\x20=\x20{})\x20{\x0a','Entity>,\x20pageinfo?:\x20SearchPaginate,\x20options:\x20SearchOptions\x20=\x20{}):\x20Promise<[','existsSync','\x20\x20\x20\x20@Inject()\x20CacheService:\x20CacheService;\x0a','\x20\x20\x20\x20\x20\x20\x20\x20const\x20restores:\x20any\x20=\x20[],\x20tmpModels\x20=\x20await\x20this.','@/apps/','import\x20{\x20Inject,\x20Singleton\x20}\x20from\x20\x27anncic-api\x27;\x0a','\x20\x20\x20\x20\x20*\x20恢复删除的数据\x0a',';\x0a\x0a\x0a','Error(','\x20\x20\x20\x20async\x20update(conditions:\x20SearchParams<','36567HbDLkK','\x20\x20\x20\x20\x20*\x20修改数据\x0a','__esModule','\x20\x20\x20\x20\x20*\x20删除数据\x0a','.merge(tmpModel,\x20params);\x0a','DTOUpdate\x20}\x20from\x20\x27','264109liNfot','/handlers/','/**\x0a','search','Entity\x20}\x20from\x20\x27','Error\x20}\x20from\x20\x27','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20});\x0a','/validators/','utf-8','1698678QBEqZd','\x20\x20\x20\x20@Inject()\x20EventService:\x20EventService;\x0a','\x20\x20\x20\x20\x20\x20\x20\x20});\x0a\x0a','string','\x20\x20\x20\x20\x20\x20\x20\x20const\x20[pagelist,\x20pagetotal]\x20=\x20await\x20this.','\x20\x20\x20\x20\x20\x20\x20\x20return\x20restores\x0a','\x20\x20\x20\x20@InjectRepository(','6868135ZKuwLc','.save(tmpModel);\x0a','\x20\x20\x20\x20\x20\x20\x20\x20return\x20await\x20this.','77ymTVUZ','\x20}\x20from\x20\x27','Error._NOTFIND_,\x20{\x20message:\x20\x27','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20restores.push(await\x20this.','\x20\x20\x20\x20async\x20list(conditions?:\x20SearchParams<','/Update\x27;\x0a','dirname','418DeURFI','/exceptions/','default','314454UobnRQ','DTOUpdate,\x20options:\x20SearchOptions\x20=\x20{})\x20{\x0a','\x20\x20\x20\x20/**\x0a','\x20\x20\x20\x20\x20\x20\x20\x20return\x20deletes\x0a','433602OEICfS','import\x20{\x20'];a8_0x4ee9=function(){return _0x365f53;};return a8_0x4ee9();}const fs=require('fs'),path_1=require('path');async function default_1({tablestartUp:_0x573500,tablestartUpShort:_0x61632a,basedir:_0x20864a,Primary:_0x4f42c2,Comment:_0x2cea8e,moduleName:_0x488809,apporbasic:_0x21db3b}){const _0x50504d=a8_0x43dbd3,_0x71854b=_0x20864a+(_0x50504d(0x129)+_0x61632a+_0x50504d(0x165));if(!fs[_0x50504d(0x119)](_0x71854b)){let _0x4b831f='';_0x4b831f+=_0x50504d(0x11d),_0x4b831f+='import\x20{\x20CacheService,\x20EventService,\x20ValidatorService\x20}\x20from\x20\x27anncic-api\x27;\x0a',_0x4b831f+='import\x20{\x20InjectRepository,\x20SearchParams,\x20SearchPaginate,\x20SearchOptions\x20}\x20from\x20\x27@anncic-api/typeorm\x27;\x0a\x0a',_0x4b831f+=_0x50504d(0x14a)+_0x573500+_0x50504d(0x13c)+(typeof _0x488809==_0x50504d(0x134)?_0x50504d(0x11c)+_0x488809:'@/'+_0x21db3b)+_0x50504d(0x162)+_0x61632a+'\x27;\x0a',_0x4b831f+=_0x50504d(0x14a)+_0x573500+_0x50504d(0x12d)+(typeof _0x488809==_0x50504d(0x134)?_0x50504d(0x11c)+_0x488809:'@/'+_0x21db3b)+_0x50504d(0x143)+_0x61632a+_0x50504d(0x14f),_0x4b831f+=_0x50504d(0x14a)+_0x573500+_0x50504d(0x12c)+(typeof _0x488809==_0x50504d(0x134)?_0x50504d(0x11c)+_0x488809:'@/'+_0x21db3b)+_0x50504d(0x162)+_0x61632a+'/entity\x27;\x0a',_0x4b831f+=_0x50504d(0x14a)+_0x573500+_0x50504d(0x15d)+(typeof _0x488809==_0x50504d(0x134)?_0x50504d(0x11c)+_0x488809:'@/'+_0x21db3b)+_0x50504d(0x12f)+_0x61632a+'/Create\x27;\x0a',_0x4b831f+=_0x50504d(0x14a)+_0x573500+_0x50504d(0x127)+(typeof _0x488809=='string'?_0x50504d(0x11c)+_0x488809:'@/'+_0x21db3b)+_0x50504d(0x12f)+_0x61632a+_0x50504d(0x140),_0x4b831f+='\x0a',_0x4b831f+=_0x50504d(0x12a),_0x4b831f+=_0x50504d(0x150)+_0x2cea8e+'\x0a',_0x4b831f+='\x20*\x20**/\x0a',_0x4b831f+='@Singleton()\x0a',_0x4b831f+='export\x20class\x20'+_0x573500+_0x50504d(0x154),_0x4b831f+=_0x50504d(0x11a),_0x4b831f+=_0x50504d(0x132),_0x4b831f+='\x20\x20\x20\x20@Inject()\x20ValidatorService:\x20ValidatorService;\x0a\x0a',_0x4b831f+=_0x50504d(0x137)+_0x573500+')\x20'+_0x61632a+':\x20'+_0x573500+_0x50504d(0x11f),_0x4b831f+=_0x50504d(0x147),_0x4b831f+='\x20\x20\x20\x20\x20*\x20数据列表\x0a',_0x4b831f+=_0x50504d(0x15e),_0x4b831f+=_0x50504d(0x13f)+_0x573500+_0x50504d(0x118)+_0x573500+'Entity[],\x20number]>\x20{\x0a',_0x4b831f+=_0x50504d(0x135)+_0x61632a+'.search(conditions,\x20pageinfo,\x20options).then(async\x20search\x20=>\x20{\x0a\x0a',_0x4b831f+='\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20return\x20search.getManyAndCount();\x0a',_0x4b831f+='\x20\x20\x20\x20\x20\x20\x20\x20});\x0a\x0a',_0x4b831f+=_0x50504d(0x14e),_0x4b831f+=_0x50504d(0x156),_0x4b831f+=_0x50504d(0x147),_0x4b831f+=_0x50504d(0x166),_0x4b831f+=_0x50504d(0x15e),_0x4b831f+=_0x50504d(0x16b)+_0x573500+_0x50504d(0x117),_0x4b831f+=_0x50504d(0x158)+_0x61632a+'.search(conditions,\x20{},\x20options).then(async\x20search\x20=>\x20{\x0a\x0a',_0x4b831f+=_0x50504d(0x157),_0x4b831f+=_0x50504d(0x164)+_0x573500+'Error('+_0x573500+_0x50504d(0x13d)+_0x2cea8e+'不存在\x27\x20})\x0a',_0x4b831f+=_0x50504d(0x12e),_0x4b831f+='\x20\x20\x20\x20\x20\x20\x20\x20});\x0a\x0a',_0x4b831f+='\x20\x20\x20\x20\x20\x20\x20\x20return\x20tmpModel\x0a',_0x4b831f+='\x20\x20\x20\x20}\x0a\x0a\x0a',_0x4b831f+=_0x50504d(0x147),_0x4b831f+=_0x50504d(0x159),_0x4b831f+=_0x50504d(0x15e),_0x4b831f+='\x20\x20\x20\x20async\x20create(params:\x20'+_0x573500+_0x50504d(0x160),_0x4b831f+='\x20\x20\x20\x20\x20\x20\x20\x20const\x20tmpModel\x20=\x20this.'+_0x61632a+'.create(params)\x0a\x0a',_0x4b831f+='\x20\x20\x20\x20\x20\x20\x20\x20return\x20await\x20this.'+_0x61632a+_0x50504d(0x139),_0x4b831f+='\x20\x20\x20\x20}\x0a\x0a\x0a',_0x4b831f+=_0x50504d(0x147),_0x4b831f+=_0x50504d(0x123),_0x4b831f+=_0x50504d(0x15e),_0x4b831f+=_0x50504d(0x121)+_0x573500+_0x50504d(0x161)+_0x573500+_0x50504d(0x146),_0x4b831f+=_0x50504d(0x158)+_0x61632a+_0x50504d(0x168),_0x4b831f+=_0x50504d(0x157),_0x4b831f+=_0x50504d(0x164)+_0x573500+_0x50504d(0x120)+_0x573500+_0x50504d(0x13d)+_0x2cea8e+_0x50504d(0x16a),_0x4b831f+=_0x50504d(0x12e),_0x4b831f+='\x20\x20\x20\x20\x20\x20\x20\x20});\x0a\x0a',_0x4b831f+=_0x50504d(0x16c)+_0x61632a+_0x50504d(0x126),_0x4b831f+=_0x50504d(0x13a)+_0x61632a+_0x50504d(0x139),_0x4b831f+=_0x50504d(0x156),_0x4b831f+=_0x50504d(0x147),_0x4b831f+=_0x50504d(0x125),_0x4b831f+=_0x50504d(0x15e),_0x4b831f+=_0x50504d(0x15b)+_0x573500+'Entity>,\x20options:\x20SearchOptions\x20=\x20{})\x20{\x0a',_0x4b831f+='\x20\x20\x20\x20\x20\x20\x20\x20const\x20deletes:\x20any\x20=\x20[],\x20tmpModels\x20=\x20await\x20this.'+_0x61632a+_0x50504d(0x168),_0x4b831f+=_0x50504d(0x15c),_0x4b831f+=_0x50504d(0x133),_0x4b831f+=_0x50504d(0x14c),_0x4b831f+='\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20deletes.push(await\x20this.'+_0x61632a+_0x50504d(0x151),_0x4b831f+=_0x50504d(0x163),_0x4b831f+=_0x50504d(0x148),_0x4b831f+=_0x50504d(0x156),_0x4b831f+=_0x50504d(0x147),_0x4b831f+=_0x50504d(0x11e),_0x4b831f+=_0x50504d(0x15e),_0x4b831f+=_0x50504d(0x169)+_0x573500+'Entity>,\x20options:\x20SearchOptions\x20=\x20{})\x20{\x0a',_0x4b831f+=_0x50504d(0x11b)+_0x61632a+_0x50504d(0x168),_0x4b831f+='\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20search.withDeleted().andWhere(`${search.alias}.deleted_at\x20IS\x20NOT\x20NULL`);\x0a',_0x4b831f+=_0x50504d(0x15c),_0x4b831f+=_0x50504d(0x133),_0x4b831f+=_0x50504d(0x14c),_0x4b831f+=_0x50504d(0x13e)+_0x61632a+'.recover(tmpModel))\x0a',_0x4b831f+=_0x50504d(0x163),_0x4b831f+=_0x50504d(0x136),_0x4b831f+=_0x50504d(0x156),_0x4b831f+='}',!fs[_0x50504d(0x119)]((0x0,path_1[_0x50504d(0x141)])(_0x71854b))&&fs[_0x50504d(0x15f)]((0x0,path_1[_0x50504d(0x141)])(_0x71854b),{'recursive':!![]}),fs['writeFileSync'](_0x71854b,_0x4b831f,_0x50504d(0x130));}}
|
|
1
|
+
function a8_0x40eb(_0x5e6f10,_0x40f590){const _0x6cba32=a8_0x427a();return a8_0x40eb=function(_0x5eba4a,_0x16b14e){_0x5eba4a=_0x5eba4a-0xe8;let _0x427a55=_0x6cba32[_0x5eba4a];return _0x427a55;},a8_0x40eb(_0x5e6f10,_0x40f590);}const a8_0x1557bc=a8_0x40eb;(function(_0x6cc1fc,_0x32a0b2){const _0x8497e1=a8_0x40eb,_0x3fddb5=_0x6cc1fc();while(!![]){try{const _0x1b7b88=parseInt(_0x8497e1(0x145))/0x1+parseInt(_0x8497e1(0x128))/0x2*(parseInt(_0x8497e1(0x117))/0x3)+-parseInt(_0x8497e1(0x11d))/0x4+parseInt(_0x8497e1(0x12c))/0x5+parseInt(_0x8497e1(0x127))/0x6+parseInt(_0x8497e1(0x102))/0x7*(parseInt(_0x8497e1(0xec))/0x8)+parseInt(_0x8497e1(0x120))/0x9*(-parseInt(_0x8497e1(0x11a))/0xa);if(_0x1b7b88===_0x32a0b2)break;else _0x3fddb5['push'](_0x3fddb5['shift']());}catch(_0x10ff55){_0x3fddb5['push'](_0x3fddb5['shift']());}}}(a8_0x427a,0xaef6c));const a8_0x16b14e=(function(){let _0x20e389=!![];return function(_0x4b86a4,_0x51f97a){const _0x150872=_0x20e389?function(){const _0x9136a1=a8_0x40eb;if(_0x51f97a){const _0x40ad01=_0x51f97a[_0x9136a1(0x136)](_0x4b86a4,arguments);return _0x51f97a=null,_0x40ad01;}}:function(){};return _0x20e389=![],_0x150872;};}()),a8_0x5eba4a=a8_0x16b14e(this,function(){const _0x1b2b18=a8_0x40eb;return a8_0x5eba4a[_0x1b2b18(0x124)]()[_0x1b2b18(0xef)]('(((.+)+)+)+$')[_0x1b2b18(0x124)]()[_0x1b2b18(0xf1)](a8_0x5eba4a)[_0x1b2b18(0xef)](_0x1b2b18(0x107));});a8_0x5eba4a();'use strict';Object[a8_0x1557bc(0x105)](exports,a8_0x1557bc(0x12a),{'value':!![]}),exports[a8_0x1557bc(0x113)]=default_1;const fs=require('fs'),path_1=require(a8_0x1557bc(0x133));async function default_1({tablestartUp:_0x415786,tablestartUpShort:_0x2d9ebd,basedir:_0x579cda,Primary:_0x3a06d9,Comment:_0xfd6c28,moduleName:_0x5b9c5b,apporbasic:_0x16587d}){const _0x59fb0e=a8_0x1557bc,_0x1efd99=_0x579cda+(_0x59fb0e(0x125)+_0x2d9ebd+_0x59fb0e(0x12f));if(!fs['existsSync'](_0x1efd99)){let _0x558577='';_0x558577+=_0x59fb0e(0x104),_0x558577+=_0x59fb0e(0xe8),_0x558577+=_0x59fb0e(0x13b),_0x558577+=_0x59fb0e(0x147)+_0x415786+_0x59fb0e(0x10f)+(typeof _0x5b9c5b==_0x59fb0e(0x119)?'@/apps/'+_0x5b9c5b:'@/'+_0x16587d)+_0x59fb0e(0x116)+_0x2d9ebd+_0x59fb0e(0x13e),_0x558577+='import\x20{\x20'+_0x415786+_0x59fb0e(0xf6)+(typeof _0x5b9c5b==_0x59fb0e(0x119)?_0x59fb0e(0x13a)+_0x5b9c5b:'@/'+_0x16587d)+_0x59fb0e(0x114)+_0x2d9ebd+_0x59fb0e(0x13e),_0x558577+=_0x59fb0e(0x147)+_0x415786+_0x59fb0e(0x10b)+(typeof _0x5b9c5b==_0x59fb0e(0x119)?_0x59fb0e(0x13a)+_0x5b9c5b:'@/'+_0x16587d)+'/entities/'+_0x2d9ebd+_0x59fb0e(0x149),_0x558577+=_0x59fb0e(0x147)+_0x415786+_0x59fb0e(0x111)+(typeof _0x5b9c5b==_0x59fb0e(0x119)?'@/apps/'+_0x5b9c5b:'@/'+_0x16587d)+_0x59fb0e(0x101)+_0x2d9ebd+_0x59fb0e(0x103),_0x558577+=_0x59fb0e(0x147)+_0x415786+'DTOUpdate\x20}\x20from\x20\x27'+(typeof _0x5b9c5b==_0x59fb0e(0x119)?_0x59fb0e(0x13a)+_0x5b9c5b:'@/'+_0x16587d)+_0x59fb0e(0x101)+_0x2d9ebd+'/Update\x27;\x0a',_0x558577+='\x0a',_0x558577+=_0x59fb0e(0xf8),_0x558577+=_0x59fb0e(0x12d)+_0xfd6c28+'\x0a',_0x558577+=_0x59fb0e(0x129),_0x558577+=_0x59fb0e(0x11f),_0x558577+=_0x59fb0e(0x13c)+_0x415786+_0x59fb0e(0xed),_0x558577+=_0x59fb0e(0xf9),_0x558577+=_0x59fb0e(0x122),_0x558577+=_0x59fb0e(0xfa),_0x558577+='\x20\x20\x20\x20@InjectRepository('+_0x415786+')\x20'+_0x2d9ebd+':\x20'+_0x415786+_0x59fb0e(0x134),_0x558577+='\x20\x20\x20\x20/**\x0a',_0x558577+='\x20\x20\x20\x20\x20*\x20数据列表\x0a',_0x558577+=_0x59fb0e(0xf3),_0x558577+=_0x59fb0e(0x106)+_0x415786+'Entity>,\x20pageinfo?:\x20SearchPaginate,\x20options:\x20SearchOptions\x20=\x20{}):\x20Promise<['+_0x415786+_0x59fb0e(0x142),_0x558577+=_0x59fb0e(0xfb)+_0x2d9ebd+_0x59fb0e(0x10c),_0x558577+=_0x59fb0e(0x130),_0x558577+=_0x59fb0e(0x118),_0x558577+='\x20\x20\x20\x20\x20\x20\x20\x20return\x20[pagelist,\x20pagetotal];\x0a',_0x558577+=_0x59fb0e(0xf7),_0x558577+=_0x59fb0e(0x10d),_0x558577+=_0x59fb0e(0x10a),_0x558577+=_0x59fb0e(0xf3),_0x558577+=_0x59fb0e(0xeb)+_0x415786+'Entity>,\x20options:\x20SearchOptions\x20=\x20{})\x20{\x0a',_0x558577+=_0x59fb0e(0x146)+_0x2d9ebd+'.search(conditions,\x20{},\x20options).then(async\x20search\x20=>\x20{\x0a\x0a',_0x558577+=_0x59fb0e(0xfd),_0x558577+=_0x59fb0e(0x11e)+_0x415786+_0x59fb0e(0xea)+_0x415786+_0x59fb0e(0x138)+_0xfd6c28+_0x59fb0e(0xfc),_0x558577+=_0x59fb0e(0x126),_0x558577+='\x20\x20\x20\x20\x20\x20\x20\x20});\x0a\x0a',_0x558577+=_0x59fb0e(0x139),_0x558577+=_0x59fb0e(0xf7),_0x558577+=_0x59fb0e(0x10d),_0x558577+=_0x59fb0e(0xfe),_0x558577+=_0x59fb0e(0xf3),_0x558577+=_0x59fb0e(0x115)+_0x415786+_0x59fb0e(0xee),_0x558577+=_0x59fb0e(0xf4)+_0x2d9ebd+_0x59fb0e(0x112),_0x558577+=_0x59fb0e(0x100)+_0x2d9ebd+_0x59fb0e(0x10e),_0x558577+=_0x59fb0e(0xf7),_0x558577+='\x20\x20\x20\x20/**\x0a',_0x558577+=_0x59fb0e(0x110),_0x558577+='\x20\x20\x20\x20\x20*\x20**/\x0a',_0x558577+=_0x59fb0e(0xf2)+_0x415786+'Entity>,\x20params:\x20'+_0x415786+'DTOUpdate,\x20options:\x20SearchOptions\x20=\x20{})\x20{\x0a',_0x558577+=_0x59fb0e(0x146)+_0x2d9ebd+_0x59fb0e(0x143),_0x558577+='\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20return\x20search.getOneOrFail().catch(()\x20=>\x20{\x0a',_0x558577+=_0x59fb0e(0x11e)+_0x415786+_0x59fb0e(0xea)+_0x415786+_0x59fb0e(0x138)+_0xfd6c28+_0x59fb0e(0xfc),_0x558577+=_0x59fb0e(0x126),_0x558577+='\x20\x20\x20\x20\x20\x20\x20\x20});\x0a\x0a',_0x558577+=_0x59fb0e(0xf0)+_0x2d9ebd+_0x59fb0e(0x132),_0x558577+=_0x59fb0e(0x100)+_0x2d9ebd+'.save(tmpModel);\x0a',_0x558577+=_0x59fb0e(0xf7),_0x558577+='\x20\x20\x20\x20/**\x0a',_0x558577+=_0x59fb0e(0x14a),_0x558577+='\x20\x20\x20\x20\x20*\x20**/\x0a',_0x558577+=_0x59fb0e(0x141)+_0x415786+_0x59fb0e(0x11b),_0x558577+=_0x59fb0e(0x135)+_0x2d9ebd+_0x59fb0e(0x143),_0x558577+='\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20return\x20search.getMany();\x0a',_0x558577+=_0x59fb0e(0x118),_0x558577+=_0x59fb0e(0x148),_0x558577+='\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20deletes.push(await\x20this.'+_0x2d9ebd+_0x59fb0e(0x11c),_0x558577+=_0x59fb0e(0x137),_0x558577+=_0x59fb0e(0x12e),_0x558577+=_0x59fb0e(0xf7),_0x558577+=_0x59fb0e(0x10d),_0x558577+=_0x59fb0e(0x13d),_0x558577+=_0x59fb0e(0xf3),_0x558577+=_0x59fb0e(0x123)+_0x415786+'Entity>,\x20options:\x20SearchOptions\x20=\x20{})\x20{\x0a',_0x558577+=_0x59fb0e(0x12b)+_0x2d9ebd+_0x59fb0e(0x143),_0x558577+=_0x59fb0e(0x121),_0x558577+=_0x59fb0e(0xff),_0x558577+=_0x59fb0e(0x118),_0x558577+=_0x59fb0e(0x148),_0x558577+=_0x59fb0e(0xe9)+_0x2d9ebd+_0x59fb0e(0x140),_0x558577+='\x20\x20\x20\x20\x20\x20\x20\x20}\x0a',_0x558577+=_0x59fb0e(0x13f),_0x558577+=_0x59fb0e(0xf7),_0x558577+='}',!fs[_0x59fb0e(0x131)]((0x0,path_1[_0x59fb0e(0xf5)])(_0x1efd99))&&fs[_0x59fb0e(0x108)]((0x0,path_1[_0x59fb0e(0xf5)])(_0x1efd99),{'recursive':!![]}),fs[_0x59fb0e(0x109)](_0x1efd99,_0x558577,_0x59fb0e(0x144));}}function a8_0x427a(){const _0x3fb1dd=['\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20});\x0a','6716520WpiENc','2whRxXQ','\x20*\x20**/\x0a','__esModule','\x20\x20\x20\x20\x20\x20\x20\x20const\x20restores:\x20any\x20=\x20[],\x20tmpModels\x20=\x20await\x20this.','2212580RvFFue','\x20*\x20','\x20\x20\x20\x20\x20\x20\x20\x20return\x20deletes\x0a','.ts','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20return\x20search.getManyAndCount();\x0a','existsSync','.merge(tmpModel,\x20params);\x0a','path',';\x0a\x0a\x0a','\x20\x20\x20\x20\x20\x20\x20\x20const\x20deletes:\x20any\x20=\x20[],\x20tmpModels\x20=\x20await\x20this.','apply','\x20\x20\x20\x20\x20\x20\x20\x20}\x0a','Error._NOTFIND_,\x20{\x20message:\x20\x27','\x20\x20\x20\x20\x20\x20\x20\x20return\x20tmpModel\x0a','@/apps/','import\x20{\x20InjectRepository,\x20SearchParams,\x20SearchPaginate,\x20SearchOptions\x20}\x20from\x20\x27@anncic-api/typeorm\x27;\x0a\x0a','export\x20class\x20','\x20\x20\x20\x20\x20*\x20恢复删除的数据\x0a','\x27;\x0a','\x20\x20\x20\x20\x20\x20\x20\x20return\x20restores\x0a','.recover(tmpModel))\x0a','\x20\x20\x20\x20async\x20remove(conditions:\x20SearchParams<','Entity[],\x20number]>\x20{\x0a','.search(conditions,\x20{},\x20options).then(async\x20search\x20=>\x20{\x0a\x0a','utf-8','1262773svZAqr','\x20\x20\x20\x20\x20\x20\x20\x20const\x20tmpModel\x20=\x20await\x20this.','import\x20{\x20','\x20\x20\x20\x20\x20\x20\x20\x20for\x20(let\x20tmpModel\x20of\x20tmpModels)\x20{\x0a','/entity\x27;\x0a','\x20\x20\x20\x20\x20*\x20删除数据\x0a','import\x20{\x20CacheService,\x20EventService,\x20ValidatorService\x20}\x20from\x20\x27anncic-api\x27;\x0a','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20restores.push(await\x20this.','Error(','\x20\x20\x20\x20async\x20detail(conditions?:\x20SearchParams<','40fAUzXk','Handler\x20{\x0a\x0a','DTOCreate)\x20{\x0a','search','\x20\x20\x20\x20\x20\x20\x20\x20this.','constructor','\x20\x20\x20\x20async\x20update(conditions:\x20SearchParams<','\x20\x20\x20\x20\x20*\x20**/\x0a','\x20\x20\x20\x20\x20\x20\x20\x20const\x20tmpModel\x20=\x20this.','dirname','Error\x20}\x20from\x20\x27','\x20\x20\x20\x20}\x0a\x0a\x0a','/**\x0a','\x20\x20\x20\x20@Inject()\x20CacheService:\x20CacheService;\x0a','\x20\x20\x20\x20@Inject()\x20ValidatorService:\x20ValidatorService;\x0a\x0a','\x20\x20\x20\x20\x20\x20\x20\x20const\x20[pagelist,\x20pagetotal]\x20=\x20await\x20this.','不存在\x27\x20})\x0a','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20return\x20search.getOneOrFail().catch(()\x20=>\x20{\x0a','\x20\x20\x20\x20\x20*\x20添加数据\x0a','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20return\x20search.getMany();\x0a','\x20\x20\x20\x20\x20\x20\x20\x20return\x20await\x20this.','/validators/','381038FYiCXL','/Create\x27;\x0a','import\x20{\x20Inject,\x20Singleton\x20}\x20from\x20\x27anncic-api\x27;\x0a','defineProperty','\x20\x20\x20\x20async\x20list(conditions?:\x20SearchParams<','(((.+)+)+)+$','mkdirSync','writeFileSync','\x20\x20\x20\x20\x20*\x20数据详情\x0a','Entity\x20}\x20from\x20\x27','.search(conditions,\x20pageinfo,\x20options).then(async\x20search\x20=>\x20{\x0a\x0a','\x20\x20\x20\x20/**\x0a','.save(tmpModel);\x0a','\x20}\x20from\x20\x27','\x20\x20\x20\x20\x20*\x20修改数据\x0a','DTOCreate\x20}\x20from\x20\x27','.create(params)\x0a\x0a','default','/exceptions/','\x20\x20\x20\x20async\x20create(params:\x20','/entities/','1419510OUjYrD','\x20\x20\x20\x20\x20\x20\x20\x20});\x0a\x0a','string','1364010ytJuzb','Entity>,\x20options:\x20SearchOptions\x20=\x20{})\x20{\x0a','.softRemove(tmpModel))\x0a','3775132phlVEx','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20throw\x20new\x20','@Singleton()\x0a','126STvKGY','\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@Inject()\x20EventService:\x20EventService;\x0a','\x20\x20\x20\x20async\x20restores(conditions:\x20SearchParams<','toString','/handlers/'];a8_0x427a=function(){return _0x3fb1dd;};return a8_0x427a();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a9_0x4b6cb9=a9_0x22f9;function a9_0x3a84(){const _0x978179=['\x20*\x20**/\x0a','toString','created_at','\x20\x20\x20\x20\x20\x20\x20\x20query.andWhere(`${query.alias}.updated_at\x20<=\x20:updated_at_end`,\x20{\x20updated_at_end\x20})\x0a','../helper','path','5494712LbKnYQ','9Bmxnzt','dirname',':>=\x20起始时间(之后)\x27)\x0a','_start\x20})\x0a','103296TKXETe','\x20*\x20','text','mkdirSync',':<=\x20起始时间(之前)\x27)\x0a','\x20\x20\x20\x20async\x20updated_at_end(query:\x20SelectQueryBuilder<ObjectLiteral>,\x20updated_at_end:\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','\x20>=\x20:','_end:\x20string)\x20{\x0a','search','_between[0]).format(\x27YYYY-MM-DD\x20HH:mm:ss\x27))\x0a','%column%','\x20\x20\x20\x20\x20\x20\x20\x20if(\x20updated_at_between.length\x20==\x202\x20){\x0a','\x20\x20\x20\x20@Search(\x27','_end\x27,\x20\x27','export\x20class\x20','633QfFRLn','\x20<=\x20:','-自定义检索\x0a','\x20\x20\x20\x20@Search(\x27updated_at_end\x27,\x20\x27修改时间:<=\x20起始时间(之前)\x27)\x0a','_end(query:\x20SelectQueryBuilder<ObjectLiteral>,\x20','_end(query,\x20dayjs(','constructor','.ts','/searchs/','_start\x27,\x20\x27','_between[1]).format(\x27YYYY-MM-DD\x20HH:mm:ss\x27))\x0a','default','5940ihJRLp','310guHwBU','\x20\x20\x20\x20}\x0a\x0a','465924zqphFp','\x20\x20\x20\x20async\x20updated_at_between(query:\x20SelectQueryBuilder<ObjectLiteral>,\x20updated_at_between:\x20string[])\x20{\x0a','\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','Field','\x20\x20\x20\x20@Search(\x27created_at_between\x27,\x20\x27创建时间在选定时间之内\x27)\x0a','_start:\x20string)\x20{\x0a','_between:\x20string[])\x20{\x0a','\x20\x20\x20\x20\x20\x20\x20\x20query.andWhere(`${query.alias}.','deleted_at','_between\x27,\x20\x27','json','defineProperty','replace','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20this.created_at_end(query,\x20dayjs(created_at_between[1]).format(\x27YYYY-MM-DD\x20HH:mm:ss\x27))\x0a','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20this.','displayorder','datetime','Type','\x20\x20\x20\x20\x20\x20\x20\x20if(\x20created_at_between.length\x20==\x202\x20){\x0a','getProp','_start`,\x20{\x20','\x20\x20\x20\x20async\x20','\x20\x20\x20\x20async\x20created_at_between(query:\x20SelectQueryBuilder<ObjectLiteral>,\x20created_at_between:\x20string[])\x20{\x0a','\x20\x20\x20\x20async\x20updated_at_start(query:\x20SelectQueryBuilder<ObjectLiteral>,\x20updated_at_start:\x20string)\x20{\x0a','\x20\x20\x20\x20@Search(\x27updated_at_start\x27,\x20\x27修改时间:>=\x20起始时间(之后)\x27)\x0a','indexOf','_between.length\x20==\x202\x20){\x0a','_start(query:\x20SelectQueryBuilder<ObjectLiteral>,\x20','453962HbYpXx','259tqWZbU','174273BHodFm','(((.+)+)+)+$','5zRGwCr','date','\x20\x20\x20\x20@Search(\x27created_at_end\x27,\x20\x27创建时间:<=\x20起始时间(之前)\x27)\x0a','longtext','\x20\x20\x20\x20async\x20created_at_end(query:\x20SelectQueryBuilder<ObjectLiteral>,\x20created_at_end:\x20string)\x20{\x0a','533KnFXNb','updated_at','__esModule','Comment','existsSync','3105796pIgILt','\x20\x20\x20\x20\x20\x20\x20\x20}\x0a','在选定时间之内\x27)\x0a'];a9_0x3a84=function(){return _0x978179;};return a9_0x3a84();}function a9_0x22f9(_0x1146ac,_0x16e75c){const _0x2fa637=a9_0x3a84();return a9_0x22f9=function(_0x19d872,_0x539982){_0x19d872=_0x19d872-0x1f0;let _0x3a8416=_0x2fa637[_0x19d872];return _0x3a8416;},a9_0x22f9(_0x1146ac,_0x16e75c);}(function(_0x282e53,_0x12c30b){const _0x1e6f9e=a9_0x22f9,_0x5b7ad9=_0x282e53();while(!![]){try{const _0x16b04d=parseInt(_0x1e6f9e(0x210))/0x1+-parseInt(_0x1e6f9e(0x1f1))/0x2*(-parseInt(_0x1e6f9e(0x23c))/0x3)+parseInt(_0x1e6f9e(0x21e))/0x4*(-parseInt(_0x1e6f9e(0x214))/0x5)+-parseInt(_0x1e6f9e(0x22c))/0x6*(-parseInt(_0x1e6f9e(0x211))/0x7)+-parseInt(_0x1e6f9e(0x227))/0x8*(-parseInt(_0x1e6f9e(0x228))/0x9)+-parseInt(_0x1e6f9e(0x1f2))/0xa*(-parseInt(_0x1e6f9e(0x212))/0xb)+parseInt(_0x1e6f9e(0x1f4))/0xc*(-parseInt(_0x1e6f9e(0x219))/0xd);if(_0x16b04d===_0x12c30b)break;else _0x5b7ad9['push'](_0x5b7ad9['shift']());}catch(_0x30a90b){_0x5b7ad9['push'](_0x5b7ad9['shift']());}}}(a9_0x3a84,0x80b88));const a9_0x539982=(function(){let _0x876e47=!![];return function(_0x3cd669,_0x364b2c){const _0x1ace4f=_0x876e47?function(){if(_0x364b2c){const _0x40d0bf=_0x364b2c['apply'](_0x3cd669,arguments);return _0x364b2c=null,_0x40d0bf;}}:function(){};return _0x876e47=![],_0x1ace4f;};}()),a9_0x19d872=a9_0x539982(this,function(){const _0x2f7047=a9_0x22f9;return a9_0x19d872[_0x2f7047(0x222)]()['search'](_0x2f7047(0x213))[_0x2f7047(0x222)]()[_0x2f7047(0x242)](a9_0x19d872)[_0x2f7047(0x235)](_0x2f7047(0x213));});a9_0x19d872();'use strict';Object[a9_0x4b6cb9(0x1ff)](exports,a9_0x4b6cb9(0x21b),{'value':!![]}),exports[a9_0x4b6cb9(0x1f0)]=default_1;const fs=require('fs'),path_1=require(a9_0x4b6cb9(0x226)),helper_1=require(a9_0x4b6cb9(0x225));async function default_1({tablestartUp:_0xe28b03,tablestartUpShort:_0x435a44,basedir:_0x769e92,Fields:_0x565204,Comment:_0x32f097}){const _0x42f77f=a9_0x4b6cb9,_0xdb4aef=_0x769e92+(_0x42f77f(0x244)+_0x435a44+_0x42f77f(0x243));if(!fs[_0x42f77f(0x21d)](_0xdb4aef)){let _0x5656f1='',_0x5d97a5='';for(let _0x1b97a7 in _0x565204){let _0x4a82e1=_0x565204[_0x1b97a7],_0x4f0587=(0x0,helper_1[_0x42f77f(0x207)])(_0x4a82e1[_0x42f77f(0x205)]);if(_0x4a82e1[_0x42f77f(0x1f7)]==_0x42f77f(0x203)||_0x4a82e1['Field']==_0x42f77f(0x223)||_0x4a82e1[_0x42f77f(0x1f7)]==_0x42f77f(0x21a)||_0x4a82e1['Field']==_0x42f77f(0x1fc))continue;if(_0x4f0587==_0x42f77f(0x1fe)){}else{if(_0x4f0587==_0x42f77f(0x22e)){}else{if(_0x4f0587==_0x42f77f(0x217)){}else[_0x42f77f(0x215),_0x42f77f(0x204),'timestamp'][_0x42f77f(0x20d)](_0x4f0587)>-0x1&&(_0x5656f1+=_0x42f77f(0x239)+_0x4a82e1[_0x42f77f(0x1f7)]+_0x42f77f(0x1fd)+_0x4a82e1['Comment']+_0x42f77f(0x220),_0x5656f1+=_0x42f77f(0x209)+_0x4a82e1['Field']+'_between(query:\x20SelectQueryBuilder<ObjectLiteral>,\x20'+_0x4a82e1['Field']+_0x42f77f(0x1fa),_0x5656f1+='\x20\x20\x20\x20\x20\x20\x20\x20if(\x20'+_0x4a82e1[_0x42f77f(0x1f7)]+_0x42f77f(0x20e),_0x5656f1+=_0x42f77f(0x202)+_0x4a82e1['Field']+_0x42f77f(0x241)+_0x4a82e1[_0x42f77f(0x1f7)]+_0x42f77f(0x246),_0x5656f1+=_0x42f77f(0x202)+_0x4a82e1[_0x42f77f(0x1f7)]+'_start(query,\x20dayjs('+_0x4a82e1[_0x42f77f(0x1f7)]+_0x42f77f(0x236),_0x5656f1+=_0x42f77f(0x21f),_0x5656f1+=_0x42f77f(0x1f3),_0x5656f1+=_0x42f77f(0x239)+_0x4a82e1[_0x42f77f(0x1f7)]+_0x42f77f(0x245)+_0x4a82e1['Comment']+_0x42f77f(0x22a),_0x5656f1+=_0x42f77f(0x209)+_0x4a82e1[_0x42f77f(0x1f7)]+_0x42f77f(0x20f)+_0x4a82e1['Field']+_0x42f77f(0x1f9),_0x5656f1+=_0x42f77f(0x1fb)+_0x4a82e1[_0x42f77f(0x1f7)]+_0x42f77f(0x233)+_0x4a82e1[_0x42f77f(0x1f7)]+_0x42f77f(0x208)+_0x4a82e1[_0x42f77f(0x1f7)]+_0x42f77f(0x22b),_0x5656f1+=_0x42f77f(0x1f3),_0x5656f1+=_0x42f77f(0x239)+_0x4a82e1[_0x42f77f(0x1f7)]+_0x42f77f(0x23a)+_0x4a82e1[_0x42f77f(0x21c)]+_0x42f77f(0x230),_0x5656f1+='\x20\x20\x20\x20async\x20'+_0x4a82e1[_0x42f77f(0x1f7)]+_0x42f77f(0x240)+_0x4a82e1[_0x42f77f(0x1f7)]+_0x42f77f(0x234),_0x5656f1+='\x20\x20\x20\x20\x20\x20\x20\x20query.andWhere(`${query.alias}.'+_0x4a82e1['Field']+_0x42f77f(0x23d)+_0x4a82e1[_0x42f77f(0x1f7)]+'_end`,\x20{\x20'+_0x4a82e1[_0x42f77f(0x1f7)]+'_end\x20})\x0a',_0x5656f1+=_0x42f77f(0x1f3));}}}_0x5656f1+=_0x42f77f(0x1f8),_0x5656f1+=_0x42f77f(0x20a),_0x5656f1+=_0x42f77f(0x206),_0x5656f1+=_0x42f77f(0x201),_0x5656f1+='\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',_0x5656f1+='\x20\x20\x20\x20\x20\x20\x20\x20}\x0a',_0x5656f1+='\x20\x20\x20\x20}\x0a\x0a',_0x5656f1+='\x20\x20\x20\x20@Search(\x27created_at_start\x27,\x20\x27创建时间:>=\x20起始时间(之后)\x27)\x0a',_0x5656f1+='\x20\x20\x20\x20async\x20created_at_start(query:\x20SelectQueryBuilder<ObjectLiteral>,\x20created_at_start:\x20string)\x20{\x0a',_0x5656f1+='\x20\x20\x20\x20\x20\x20\x20\x20query.andWhere(`${query.alias}.created_at\x20>=\x20:created_at_start`,\x20{\x20created_at_start\x20})\x0a',_0x5656f1+=_0x42f77f(0x1f3),_0x5656f1+=_0x42f77f(0x216),_0x5656f1+=_0x42f77f(0x218),_0x5656f1+='\x20\x20\x20\x20\x20\x20\x20\x20query.andWhere(`${query.alias}.created_at\x20<=\x20:created_at_end`,\x20{\x20created_at_end\x20})\x0a',_0x5656f1+='\x20\x20\x20\x20}\x0a\x0a',_0x5656f1+='\x20\x20\x20\x20@Search(\x27updated_at_between\x27,\x20\x27修改时间在选定时间之内\x27)\x0a',_0x5656f1+=_0x42f77f(0x1f5),_0x5656f1+=_0x42f77f(0x238),_0x5656f1+=_0x42f77f(0x1f6),_0x5656f1+=_0x42f77f(0x232),_0x5656f1+=_0x42f77f(0x21f),_0x5656f1+='\x20\x20\x20\x20}\x0a\x0a',_0x5656f1+=_0x42f77f(0x20c),_0x5656f1+=_0x42f77f(0x20b),_0x5656f1+='\x20\x20\x20\x20\x20\x20\x20\x20query.andWhere(`${query.alias}.updated_at\x20>=\x20:updated_at_start`,\x20{\x20updated_at_start\x20})\x0a',_0x5656f1+=_0x42f77f(0x1f3),_0x5656f1+=_0x42f77f(0x23f),_0x5656f1+=_0x42f77f(0x231),_0x5656f1+=_0x42f77f(0x224),_0x5656f1+='\x20\x20\x20\x20}\x0a\x0a',_0x5d97a5+='import\x20{\x20Provide,\x20Search,\x20ObjectLiteral,\x20SelectQueryBuilder\x20}\x20from\x20\x27@anncic-api/typeorm\x27;\x0a\x0a',_0x5d97a5+='/**\x0a',_0x5d97a5+=_0x42f77f(0x22d)+_0x32f097+_0x42f77f(0x23e),_0x5d97a5+=_0x42f77f(0x221),_0x5d97a5+='@Provide()\x0a',_0x5d97a5+=_0x42f77f(0x23b)+_0xe28b03+'Search\x20{\x0a\x0a',_0x5d97a5+=_0x42f77f(0x237),_0x5d97a5+='}',_0x5d97a5=_0x5d97a5[_0x42f77f(0x200)](_0x42f77f(0x237),_0x5656f1),!fs['existsSync']((0x0,path_1[_0x42f77f(0x229)])(_0xdb4aef))&&fs[_0x42f77f(0x22f)]((0x0,path_1[_0x42f77f(0x229)])(_0xdb4aef),{'recursive':!![]}),fs['writeFileSync'](_0xdb4aef,_0x5d97a5,'utf-8');}}
|