anncic-apihelper 3.4.80 → 3.4.81
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_0x185edc=a0_0x3f23;(function(_0x41a1cd,_0x39688e){var _0x3b166c=a0_0x3f23,_0x44805e=_0x41a1cd();while(!![]){try{var _0x46639b=parseInt(_0x3b166c(0xbe))/0x1+-parseInt(_0x3b166c(0xc1))/0x2+parseInt(_0x3b166c(0xc2))/0x3+-parseInt(_0x3b166c(0xb2))/0x4*(parseInt(_0x3b166c(0xb4))/0x5)+parseInt(_0x3b166c(0xaf))/0x6*(parseInt(_0x3b166c(0xac))/0x7)+-parseInt(_0x3b166c(0xad))/0x8*(parseInt(_0x3b166c(0xc4))/0x9)+parseInt(_0x3b166c(0xb7))/0xa;if(_0x46639b===_0x39688e)break;else _0x44805e['push'](_0x44805e['shift']());}catch(_0x599fb5){_0x44805e['push'](_0x44805e['shift']());}}}(a0_0x5837,0x6bb7d));function a0_0x5837(){var _0x101cef=['CustomConfiguration','decorator','getOwnPropertyDescriptor','Configuration','length','application','metadata','__decorate','2073967XqbCrq','2192OqfGJX','(((.+)+)+)+$','6WgvmIY','defineProperty','__esModule','4vNWuvy','@anncic-api/typeorm','2571780MuVpgJ','design:type','MidwayConfigService','15096850pfdYkC','search','apply','prototype','decorate','@midwayjs/core','anncic-apihelper','144163FOnAXg','object','Inject','1161188UWaFzB','638016PJUAhP','MidwayDecoratorService','20583pZkoSy','function','MidwayApplicationManager','toString','constructor'];a0_0x5837=function(){return _0x101cef;};return a0_0x5837();}var a0_0x5464f6=(function(){var _0x46fb26=!![];return function(_0x165a0d,_0x493f0e){var _0x3ea921=_0x46fb26?function(){var _0x1a7298=a0_0x3f23;if(_0x493f0e){var _0x151e09=_0x493f0e[_0x1a7298(0xb9)](_0x165a0d,arguments);return _0x493f0e=null,_0x151e09;}}:function(){};return _0x46fb26=![],_0x3ea921;};}()),a0_0xd47525=a0_0x5464f6(this,function(){var _0x2936c8=a0_0x3f23;return a0_0xd47525[_0x2936c8(0xa2)]()[_0x2936c8(0xb8)](_0x2936c8(0xae))[_0x2936c8(0xa2)]()[_0x2936c8(0xa3)](a0_0xd47525)[_0x2936c8(0xb8)]('(((.+)+)+)+$');});a0_0xd47525();'use strict';var __decorate=this&&this[a0_0x185edc(0xab)]||function(_0x156f6c,_0x249517,_0x2a072b,_0x3e2808){var _0x16e3bf=a0_0x185edc,_0x81bd2b=arguments[_0x16e3bf(0xa8)],_0x1e181a=_0x81bd2b<0x3?_0x249517:_0x3e2808===null?_0x3e2808=Object[_0x16e3bf(0xa6)](_0x249517,_0x2a072b):_0x3e2808,_0x30226d;if(typeof Reflect===_0x16e3bf(0xbf)&&typeof Reflect[_0x16e3bf(0xbb)]===_0x16e3bf(0xc5))_0x1e181a=Reflect['decorate'](_0x156f6c,_0x249517,_0x2a072b,_0x3e2808);else{for(var _0x481cd5=_0x156f6c[_0x16e3bf(0xa8)]-0x1;_0x481cd5>=0x0;_0x481cd5--)if(_0x30226d=_0x156f6c[_0x481cd5])_0x1e181a=(_0x81bd2b<0x3?_0x30226d(_0x1e181a):_0x81bd2b>0x3?_0x30226d(_0x249517,_0x2a072b,_0x1e181a):_0x30226d(_0x249517,_0x2a072b))||_0x1e181a;}return _0x81bd2b>0x3&&_0x1e181a&&Object['defineProperty'](_0x249517,_0x2a072b,_0x1e181a),_0x1e181a;},__metadata=this&&this['__metadata']||function(_0x20233c,_0x5d95f5){var _0x3454ff=a0_0x185edc;if(typeof Reflect===_0x3454ff(0xbf)&&typeof Reflect[_0x3454ff(0xaa)]===_0x3454ff(0xc5))return Reflect[_0x3454ff(0xaa)](_0x20233c,_0x5d95f5);};Object[a0_0x185edc(0xb0)](exports,a0_0x185edc(0xb1),{'value':!![]}),exports[a0_0x185edc(0xa4)]=void 0x0;function a0_0x3f23(_0x215fb5,_0x5acd20){var _0x2e3523=a0_0x5837();return a0_0x3f23=function(_0xd47525,_0x5464f6){_0xd47525=_0xd47525-0xa2;var _0x5837b=_0x2e3523[_0xd47525];return _0x5837b;},a0_0x3f23(_0x215fb5,_0x5acd20);}const core_1=require(a0_0x185edc(0xbc)),core_2=require(a0_0x185edc(0xbc)),typeorm=require(a0_0x185edc(0xb3));let CustomConfiguration=class CustomConfiguration{};exports[a0_0x185edc(0xa4)]=CustomConfiguration,__decorate([(0x0,core_1[a0_0x185edc(0xc0)])(),__metadata('design:type',core_2[a0_0x185edc(0xb6)])],CustomConfiguration[a0_0x185edc(0xba)],'config',void 0x0),__decorate([(0x0,core_1['Inject'])(),__metadata('design:type',core_2[a0_0x185edc(0xc3)])],CustomConfiguration[a0_0x185edc(0xba)],a0_0x185edc(0xa5),void 0x0),__decorate([(0x0,core_1[a0_0x185edc(0xc0)])(),__metadata(a0_0x185edc(0xb5),core_2[a0_0x185edc(0xc6)])],CustomConfiguration['prototype'],a0_0x185edc(0xa9),void 0x0),exports[a0_0x185edc(0xa4)]=CustomConfiguration=__decorate([(0x0,core_1[a0_0x185edc(0xa7)])({'conflictCheck':![],'imports':[typeorm],'namespace':a0_0x185edc(0xbd)})],CustomConfiguration);
|
package/dist/helper.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a1_0x147310=a1_0x50a7;(function(_0x10476a,_0x3b9cb2){const _0x2cef83=a1_0x50a7,_0x5bac8d=_0x10476a();while(!![]){try{const _0x5bdc42=-parseInt(_0x2cef83(0x7f))/0x1*(-parseInt(_0x2cef83(0x85))/0x2)+parseInt(_0x2cef83(0x8f))/0x3*(-parseInt(_0x2cef83(0x81))/0x4)+-parseInt(_0x2cef83(0x84))/0x5*(-parseInt(_0x2cef83(0x7e))/0x6)+-parseInt(_0x2cef83(0x92))/0x7*(-parseInt(_0x2cef83(0x8d))/0x8)+-parseInt(_0x2cef83(0x8a))/0x9+parseInt(_0x2cef83(0x98))/0xa*(-parseInt(_0x2cef83(0x78))/0xb)+-parseInt(_0x2cef83(0x83))/0xc*(parseInt(_0x2cef83(0x7d))/0xd);if(_0x5bdc42===_0x3b9cb2)break;else _0x5bac8d['push'](_0x5bac8d['shift']());}catch(_0x5b2c3e){_0x5bac8d['push'](_0x5bac8d['shift']());}}}(a1_0x1f2d,0xcb60a));const a1_0x33807c=(function(){let _0x2ec052=!![];return function(_0x4f603d,_0x5c72cc){const _0xfafdcb=_0x2ec052?function(){const _0x58a572=a1_0x50a7;if(_0x5c72cc){const _0x117667=_0x5c72cc[_0x58a572(0x8c)](_0x4f603d,arguments);return _0x5c72cc=null,_0x117667;}}:function(){};return _0x2ec052=![],_0xfafdcb;};}()),a1_0x4084ef=a1_0x33807c(this,function(){const _0x342953=a1_0x50a7;return a1_0x4084ef[_0x342953(0x94)]()[_0x342953(0x97)](_0x342953(0x77))['toString']()['constructor'](a1_0x4084ef)[_0x342953(0x97)](_0x342953(0x77));});a1_0x4084ef();'use strict';Object[a1_0x147310(0x99)](exports,a1_0x147310(0x82),{'value':!![]}),exports[a1_0x147310(0x7a)]=getProp,exports[a1_0x147310(0x90)]=getEnum;const columnTypes={'json':'json','char':a1_0x147310(0x7c),'varchar':'string','text':a1_0x147310(0x8e),'longtext':'longtext','mediumtext':a1_0x147310(0x80),'int':a1_0x147310(0x79),'float':a1_0x147310(0x91),'double':'float','decimal':a1_0x147310(0x8b),'date':'date','time':'datetime','datetime':a1_0x147310(0x93),'timestamp':a1_0x147310(0x7b),'tinyint':'tinyint'};function a1_0x50a7(_0x23f55b,_0xb57ab){const _0x41e461=a1_0x1f2d();return a1_0x50a7=function(_0x4084ef,_0x33807c){_0x4084ef=_0x4084ef-0x77;let _0x1f2d66=_0x41e461[_0x4084ef];return _0x1f2d66;},a1_0x50a7(_0x23f55b,_0xb57ab);}function getProp(_0x32327b){const _0x5ea92f=a1_0x147310;if(columnTypes[_0x5ea92f(0x95)](_0x32327b))return columnTypes[_0x32327b];else return _0x32327b[_0x5ea92f(0x88)]('(')>-0x1||_0x32327b['indexOf']('\x20')>-0x1?(_0x32327b=_0x32327b[_0x5ea92f(0x86)](0x0,_0x32327b['indexOf']('(')>-0x1?_0x32327b[_0x5ea92f(0x88)]('('):_0x32327b[_0x5ea92f(0x88)]('\x20')),columnTypes[_0x32327b]||_0x32327b):_0x5ea92f(0x7c);}function a1_0x1f2d(){const _0x42d853=['defineProperty','(((.+)+)+)+$','36025XuPEbm','number','getProp','timestamp','string','6401850dSlLkW','7357596FMikqm','41RofewK','mediumtext','988sYVOKX','__esModule','24QQTwIR','5tPeyIg','70226eUVSrN','substr','split','indexOf','enum','8207739NFgGYs','decimal','apply','8qgLyXf','text','11481qPWBsJ','getEnum','float','11237275SUUdvR','datetime','toString','hasOwnProperty','length','search','1820raZzEL'];a1_0x1f2d=function(){return _0x42d853;};return a1_0x1f2d();}function getEnum(_0x1731c7){const _0xdff541=a1_0x147310;if(getProp(_0x1731c7)==_0xdff541(0x89))return _0x1731c7[_0xdff541(0x86)](0x5,_0x1731c7[_0xdff541(0x96)]-0x6)['replace'](/[\'|\"]/g,'')[_0xdff541(0x87)](',');return[];}
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a2_0x17f5b5=a2_0x3581;(function(_0x4d3489,_0x3293a3){var _0x190eec=a2_0x3581,_0x4cc236=_0x4d3489();while(!![]){try{var _0x2fb04f=parseInt(_0x190eec(0x164))/0x1+parseInt(_0x190eec(0x16c))/0x2*(parseInt(_0x190eec(0x16a))/0x3)+parseInt(_0x190eec(0x171))/0x4*(-parseInt(_0x190eec(0x15d))/0x5)+-parseInt(_0x190eec(0x168))/0x6+-parseInt(_0x190eec(0x165))/0x7+parseInt(_0x190eec(0x161))/0x8*(-parseInt(_0x190eec(0x15e))/0x9)+parseInt(_0x190eec(0x16d))/0xa;if(_0x2fb04f===_0x3293a3)break;else _0x4cc236['push'](_0x4cc236['shift']());}catch(_0x13214d){_0x4cc236['push'](_0x4cc236['shift']());}}}(a2_0x5759,0xf2a3b));var a2_0x576593=(function(){var _0x4f64b4=!![];return function(_0x21636c,_0x24f054){var _0x1d00f2=_0x4f64b4?function(){var _0x2db6c0=a2_0x3581;if(_0x24f054){var _0x152260=_0x24f054[_0x2db6c0(0x169)](_0x21636c,arguments);return _0x24f054=null,_0x152260;}}:function(){};return _0x4f64b4=![],_0x1d00f2;};}()),a2_0x583269=a2_0x576593(this,function(){var _0x1490fd=a2_0x3581;return a2_0x583269[_0x1490fd(0x16e)]()[_0x1490fd(0x15c)](_0x1490fd(0x15f))[_0x1490fd(0x16e)]()[_0x1490fd(0x160)](a2_0x583269)['search'](_0x1490fd(0x15f));});a2_0x583269();'use strict';Object[a2_0x17f5b5(0x162)](exports,a2_0x17f5b5(0x166),{'value':!![]}),exports[a2_0x17f5b5(0x16f)]=exports[a2_0x17f5b5(0x16b)]=void 0x0;var ApicreateService_1=require(a2_0x17f5b5(0x167));Object[a2_0x17f5b5(0x162)](exports,a2_0x17f5b5(0x16b),{'enumerable':!![],'get':function(){var _0xbddd64=a2_0x17f5b5;return ApicreateService_1[_0xbddd64(0x16b)];}});function a2_0x5759(){var _0x245bf4=['toString','Configuration','CustomConfiguration','4IzEBsR','search','9570885dKUgqm','18OvmlhN','(((.+)+)+)+$','constructor','1252840LbfpXy','defineProperty','./configuration','1106323Hmkklp','8180424kcbBGv','__esModule','./service/ApicreateService','6828984XlDLeD','apply','7758wtSKNJ','ApicreateService','640wPMnKj','35941910GrvQpp'];a2_0x5759=function(){return _0x245bf4;};return a2_0x5759();}var configuration_1=require(a2_0x17f5b5(0x163));function a2_0x3581(_0x3c35c9,_0x247278){var _0x3752f6=a2_0x5759();return a2_0x3581=function(_0x583269,_0x576593){_0x583269=_0x583269-0x15c;var _0x575925=_0x3752f6[_0x583269];return _0x575925;},a2_0x3581(_0x3c35c9,_0x247278);}Object[a2_0x17f5b5(0x162)](exports,a2_0x17f5b5(0x16f),{'enumerable':!![],'get':function(){var _0x440763=a2_0x17f5b5;return configuration_1[_0x440763(0x170)];}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a3_0x1bed9e=a3_0x1284;(function(_0x6f3ced,_0x5b7734){const _0x10c565=a3_0x1284,_0x207088=_0x6f3ced();while(!![]){try{const _0x59dab3=-parseInt(_0x10c565(0x1e3))/0x1*(parseInt(_0x10c565(0x224))/0x2)+parseInt(_0x10c565(0x1e4))/0x3*(-parseInt(_0x10c565(0x1ed))/0x4)+parseInt(_0x10c565(0x1c9))/0x5*(parseInt(_0x10c565(0x1d1))/0x6)+parseInt(_0x10c565(0x21a))/0x7+-parseInt(_0x10c565(0x210))/0x8*(-parseInt(_0x10c565(0x201))/0x9)+-parseInt(_0x10c565(0x1b6))/0xa+-parseInt(_0x10c565(0x20a))/0xb*(-parseInt(_0x10c565(0x1fe))/0xc);if(_0x59dab3===_0x5b7734)break;else _0x207088['push'](_0x207088['shift']());}catch(_0x361e6f){_0x207088['push'](_0x207088['shift']());}}}(a3_0x2118,0x74a23));const a3_0x39d00d=(function(){let _0x1b46fe=!![];return function(_0x16bac9,_0x3565bf){const _0x2452f3=_0x1b46fe?function(){const _0x1ae6a0=a3_0x1284;if(_0x3565bf){const _0x4cc1f9=_0x3565bf[_0x1ae6a0(0x222)](_0x16bac9,arguments);return _0x3565bf=null,_0x4cc1f9;}}:function(){};return _0x1b46fe=![],_0x2452f3;};}()),a3_0x5bc9d9=a3_0x39d00d(this,function(){const _0x1108e9=a3_0x1284;return a3_0x5bc9d9[_0x1108e9(0x1be)]()['search'](_0x1108e9(0x1d3))['toString']()['constructor'](a3_0x5bc9d9)[_0x1108e9(0x1af)](_0x1108e9(0x1d3));});a3_0x5bc9d9();'use strict';var __decorate=this&&this['__decorate']||function(_0x5bbfa6,_0x2699c,_0x5c009c,_0x212510){const _0x4fe8a4=a3_0x1284;var _0x3be1b9=arguments[_0x4fe8a4(0x1db)],_0x1657cf=_0x3be1b9<0x3?_0x2699c:_0x212510===null?_0x212510=Object['getOwnPropertyDescriptor'](_0x2699c,_0x5c009c):_0x212510,_0x3bf1c4;if(typeof Reflect===_0x4fe8a4(0x203)&&typeof Reflect[_0x4fe8a4(0x228)]===_0x4fe8a4(0x1b2))_0x1657cf=Reflect[_0x4fe8a4(0x228)](_0x5bbfa6,_0x2699c,_0x5c009c,_0x212510);else{for(var _0xe77511=_0x5bbfa6[_0x4fe8a4(0x1db)]-0x1;_0xe77511>=0x0;_0xe77511--)if(_0x3bf1c4=_0x5bbfa6[_0xe77511])_0x1657cf=(_0x3be1b9<0x3?_0x3bf1c4(_0x1657cf):_0x3be1b9>0x3?_0x3bf1c4(_0x2699c,_0x5c009c,_0x1657cf):_0x3bf1c4(_0x2699c,_0x5c009c))||_0x1657cf;}return _0x3be1b9>0x3&&_0x1657cf&&Object[_0x4fe8a4(0x1f9)](_0x2699c,_0x5c009c,_0x1657cf),_0x1657cf;},__metadata=this&&this[a3_0x1bed9e(0x1eb)]||function(_0x34df80,_0x692cfb){const _0x3a972a=a3_0x1bed9e;if(typeof Reflect==='object'&&typeof Reflect['metadata']===_0x3a972a(0x1b2))return Reflect[_0x3a972a(0x1cf)](_0x34df80,_0x692cfb);};function a3_0x2118(){const _0x148755=['/vue','design:type','8ehuXcp','dataSourceManager','/exceptions/','createAction','Comment','Inject','tablestartLow','../templateVueV3/LayoutVue','config','tablestartUpShort','3242029vAqOmj','comment','../templateFun/Entities','../templateVueV3/Layout','module','/pages/apps/','../templateVueV2/Api','../templateVue/Router','apply','../templateFun/Event','1508652IMWtdd','../templateVueV2/LayoutVue','\x27,\x0a\x20\x20\x20\x20description:\x20\x27\x27,\x0a\x20\x20\x20\x20middleware:\x20[],\x0a}','../templateVueV3/Api','decorate','@midwayjs/core','table','../templateFun/Action','connection','tablestartUpShort2','=\x20\x22','typeorm\x20数据源\x20','isConnected','\x22\x20AND\x20table_name\x20','substring','search','CreateModuleConfig','\x20未连接','function','match','App','../templateVue/Layout','2636380ivxgyp','.js','SELECT\x20TABLE_NAME\x20as\x20`table`\x20FROM\x20information_schema.TABLES\x20WHERE\x20TABLE_SCHEMA=\x22','tablestartUp','LIKE\x20\x22','../templateVueV2/Validator','checkOption','dataSource','toString','database','basedir','dirname','export\x20default\x20{\x0a\x20\x20\x20\x20name:\x20\x27','default','../templateFun/Search','/apis/','trim','\x22\x20AND\x20table_name\x20=\x20\x27','environment','36070qreSYf','/pages/','join','replace','../templateVueV2/Layout','/apps/','metadata','__esModule','258jZOpVN','Primary','(((.+)+)+)+$','getDataSource','typeorm\x20未配置数据源\x20','ApicreateService','getConfig','PRI','cwd','split','length','vuedialog','map','SHOW\x20FULL\x20COLUMNS\x20FROM\x20`','getBaseDir','/config.ts','app','createPlugin','1LqduBk','3bQfQYt','无法生成','substr','string','../templateVueV3/Router','/api/','query','__metadata','utf-8','2670980xsGtje','error','basic','tablestart','hasvue','toLowerCase','Provide','SELECT\x20TABLE_COMMENT\x20as\x20`comment`\x20FROM\x20information_schema.TABLES\x20WHERE\x20TABLE_SCHEMA=\x22','Config','MidwayEnvironmentService','../templateVueV3/Validator','prototype','defineProperty','toUpperCase','/apis/apps/','\x20表注释不存在','controller','616536AlqKgp','Scope','apporbasic','950769JeRKbO','TypeORMDataSourceManager','object','../templateVue/Validator','Singleton','existsSync','../templateVue/Api','isArray','moduleName','275HSmQMY','tableprefix','Field','Fields'];a3_0x2118=function(){return _0x148755;};return a3_0x2118();}Object[a3_0x1bed9e(0x1f9)](exports,a3_0x1bed9e(0x1d0),{'value':!![]}),exports[a3_0x1bed9e(0x1d6)]=void 0x0;const fs=require('fs'),path=require('path'),core_1=require(a3_0x1bed9e(0x229)),typeorm_1=require('@midwayjs/typeorm'),core_2=require(a3_0x1bed9e(0x229)),Common_1=require('../templateFun/Common'),Event_1=require(a3_0x1bed9e(0x223)),Search_1=require(a3_0x1bed9e(0x1c4)),Entities_1=require(a3_0x1bed9e(0x21c)),Handler_1=require('../templateFun/Handler'),Validator_1=require('../templateFun/Validator'),Action_1=require(a3_0x1bed9e(0x22b)),Api_1=require(a3_0x1bed9e(0x207)),Router_1=require(a3_0x1bed9e(0x221)),Layout_1=require(a3_0x1bed9e(0x1b5)),LayoutVue_1=require('../templateVue/LayoutVue'),Validator_2=require(a3_0x1bed9e(0x204)),Api_2=require(a3_0x1bed9e(0x220)),Router_2=require('../templateVueV2/Router'),Layout_2=require(a3_0x1bed9e(0x1cd)),LayoutVue_2=require(a3_0x1bed9e(0x225)),Validator_3=require(a3_0x1bed9e(0x1bb)),Api_3=require(a3_0x1bed9e(0x227)),Router_3=require(a3_0x1bed9e(0x1e8)),Layout_3=require(a3_0x1bed9e(0x21d)),LayoutVue_3=require(a3_0x1bed9e(0x217)),Validator_4=require(a3_0x1bed9e(0x1f7));let ApicreateService=class ApicreateService{async['createApp'](_0x25959c){return await this['checkOption'](_0x25959c),await this['createAction']({..._0x25959c,'apporbasic':'app'});}async['createBasic'](_0x3fcedc){const _0x5e40da=a3_0x1bed9e;return await this[_0x5e40da(0x1bc)](_0x3fcedc),await this[_0x5e40da(0x213)]({..._0x3fcedc,'apporbasic':_0x5e40da(0x1ef)});}async[a3_0x1bed9e(0x1e2)](_0x74fb72){const _0x50a693=a3_0x1bed9e;return await this['checkOption'](_0x74fb72),await this[_0x50a693(0x213)]({..._0x74fb72,'module':!![]});}async[a3_0x1bed9e(0x213)](_0x5c1b4c){const _0x573a9d=a3_0x1bed9e;var _0x4c30ea,_0x22718f;!_0x5c1b4c[_0x573a9d(0x22c)]&&(_0x5c1b4c[_0x573a9d(0x22c)]=_0x573a9d(0x1c3));!_0x5c1b4c[_0x573a9d(0x200)]&&(_0x5c1b4c[_0x573a9d(0x200)]=_0x573a9d(0x1e1));const _0x327169=this[_0x573a9d(0x1e1)][_0x573a9d(0x1df)](),_0x5e5d63=this[_0x573a9d(0x211)][_0x573a9d(0x1d4)](_0x5c1b4c[_0x573a9d(0x22c)]),_0xbda2b6=await _0x5e5d63[_0x573a9d(0x1ea)](_0x573a9d(0x1b8)+this[_0x573a9d(0x218)][_0x573a9d(0x1bd)][_0x5c1b4c[_0x573a9d(0x22c)]][_0x573a9d(0x1bf)]+_0x573a9d(0x1ad)+((_0x5c1b4c===null||_0x5c1b4c===void 0x0?void 0x0:_0x5c1b4c[_0x573a9d(0x22a)])?_0x573a9d(0x22e)+_0x5c1b4c[_0x573a9d(0x22a)]+'\x22':_0x573a9d(0x1ba)+(_0x5c1b4c[_0x573a9d(0x20b)]||'')+'%\x22'))||[];for(let _0x3f4641=0x0;_0x3f4641<_0xbda2b6[_0x573a9d(0x1db)];_0x3f4641++){const _0x3a0547=_0xbda2b6[_0x3f4641][_0x573a9d(0x22a)];if((_0x5c1b4c===null||_0x5c1b4c===void 0x0?void 0x0:_0x5c1b4c[_0x573a9d(0x22a)])&&(_0x5c1b4c===null||_0x5c1b4c===void 0x0?void 0x0:_0x5c1b4c['table'])!=_0x3a0547)continue;if((_0x5c1b4c===null||_0x5c1b4c===void 0x0?void 0x0:_0x5c1b4c[_0x573a9d(0x20b)])&&!(_0x3a0547===null||_0x3a0547===void 0x0?void 0x0:_0x3a0547['startsWith'](_0x5c1b4c['tableprefix'])))continue;const _0x159f78=await _0x5e5d63[_0x573a9d(0x1ea)](_0x573a9d(0x1f4)+this[_0x573a9d(0x218)][_0x573a9d(0x1bd)][_0x5c1b4c[_0x573a9d(0x22c)]][_0x573a9d(0x1bf)]+_0x573a9d(0x1c7)+_0x3a0547+'\x27')||[];if((_0x4c30ea=_0x159f78[0x0])===null||_0x4c30ea===void 0x0?void 0x0:_0x4c30ea[_0x573a9d(0x21b)]){const _0x30f545={'tablename':_0x3a0547,'Primary':{},'Fields':{},'Comment':(_0x22718f=_0x159f78[0x0])===null||_0x22718f===void 0x0?void 0x0:_0x22718f[_0x573a9d(0x21b)],'vuedialog':_0x5c1b4c[_0x573a9d(0x1dc)],'apporbasic':_0x5c1b4c[_0x573a9d(0x200)]};_0x30f545['tablestart']=_0x3a0547[_0x573a9d(0x1e6)]((_0x5c1b4c===null||_0x5c1b4c===void 0x0?void 0x0:_0x5c1b4c[_0x573a9d(0x1e6)])||0x0,_0x3a0547[_0x573a9d(0x1db)]),_0x30f545[_0x573a9d(0x1c0)]=(_0x5c1b4c===null||_0x5c1b4c===void 0x0?void 0x0:_0x5c1b4c[_0x573a9d(0x21e)])?_0x327169+_0x573a9d(0x1ce)+_0x30f545[_0x573a9d(0x1f0)][_0x573a9d(0x1da)]('_')[0x0][_0x573a9d(0x1f2)]():_0x327169+'/'+_0x5c1b4c['apporbasic'];const _0x3ac450=_0x30f545[_0x573a9d(0x1f0)]['split']('_')['filter'](_0x4dae1a=>_0x4dae1a&&_0x4dae1a[_0x573a9d(0x1c6)]());(_0x5c1b4c===null||_0x5c1b4c===void 0x0?void 0x0:_0x5c1b4c[_0x573a9d(0x21e)])&&(await this[_0x573a9d(0x1b0)](_0x30f545),_0x30f545['moduleName']=_0x3ac450[0x0][_0x573a9d(0x1f2)]());_0x30f545[_0x573a9d(0x216)]=_0x3ac450[_0x573a9d(0x1dd)](_0x4e5402=>_0x4e5402[_0x573a9d(0x1f2)]())[_0x573a9d(0x1cb)](''),_0x30f545['tablestartUp']=_0x3ac450[_0x573a9d(0x1dd)](_0x5b235b=>''+_0x5b235b['substring'](0x0,0x1)[_0x573a9d(0x1fa)]()+_0x5b235b[_0x573a9d(0x1ae)](0x1)['toLowerCase']())[_0x573a9d(0x1cb)]('');(_0x30f545===null||_0x30f545===void 0x0?void 0x0:_0x30f545[_0x573a9d(0x209)])&&_0x3ac450[_0x573a9d(0x1db)]>0x1&&_0x3ac450[0x0]['toLowerCase']()==_0x30f545['moduleName']?(_0x30f545[_0x573a9d(0x219)]=_0x30f545[_0x573a9d(0x1b9)][_0x573a9d(0x1ae)](_0x30f545[_0x573a9d(0x209)][_0x573a9d(0x1db)],_0x30f545[_0x573a9d(0x1b9)][_0x573a9d(0x1db)]),_0x30f545['tablestartLowShort']=_0x30f545['tablestartLow'][_0x573a9d(0x1ae)](_0x30f545['moduleName'][_0x573a9d(0x1db)],_0x30f545[_0x573a9d(0x216)][_0x573a9d(0x1db)])):(_0x30f545[_0x573a9d(0x219)]=_0x30f545[_0x573a9d(0x1b9)],_0x30f545['tablestartLowShort']=_0x30f545[_0x573a9d(0x216)]);_0x30f545[_0x573a9d(0x22d)]=_0x30f545[_0x573a9d(0x219)][_0x573a9d(0x1cc)](/\/{2,}/g,'/')[_0x573a9d(0x1b3)](/[\/|A-Z]*[^A-Z]+/g)[_0x573a9d(0x1cb)]('-')[_0x573a9d(0x1f2)]()['replace'](/\/\-/g,'/');for(let _0xfb0b28 of await _0x5e5d63[_0x573a9d(0x1ea)](_0x573a9d(0x1de)+_0x3a0547+'`')){_0xfb0b28['Key']==_0x573a9d(0x1d8)?_0x30f545[_0x573a9d(0x1d2)]=_0xfb0b28:_0x30f545[_0x573a9d(0x20d)][_0xfb0b28[_0x573a9d(0x20c)]]=_0xfb0b28;}if((_0x5c1b4c===null||_0x5c1b4c===void 0x0?void 0x0:_0x5c1b4c[_0x573a9d(0x1fd)])&&!fs['existsSync'](_0x30f545[_0x573a9d(0x1c0)]+_0x573a9d(0x212)+_0x30f545[_0x573a9d(0x219)]+'.ts')){var _0x60d1b7=[];if(typeof(_0x5c1b4c===null||_0x5c1b4c===void 0x0?void 0x0:_0x5c1b4c[_0x573a9d(0x1fd)])==_0x573a9d(0x1e7))_0x60d1b7=[_0x5c1b4c===null||_0x5c1b4c===void 0x0?void 0x0:_0x5c1b4c[_0x573a9d(0x1fd)]];else Array[_0x573a9d(0x208)](_0x5c1b4c===null||_0x5c1b4c===void 0x0?void 0x0:_0x5c1b4c[_0x573a9d(0x1fd)])?_0x60d1b7=_0x5c1b4c===null||_0x5c1b4c===void 0x0?void 0x0:_0x5c1b4c[_0x573a9d(0x1fd)]:_0x60d1b7=[!![]];_0x30f545['controllers']=_0x60d1b7,await(0x0,Search_1['default'])(_0x30f545),await(0x0,Entities_1[_0x573a9d(0x1c3)])(_0x30f545),await(0x0,Common_1[_0x573a9d(0x1c3)])(_0x30f545),await(0x0,Event_1[_0x573a9d(0x1c3)])(_0x30f545),await(0x0,Handler_1[_0x573a9d(0x1c3)])(_0x30f545),await(0x0,Validator_1[_0x573a9d(0x1c3)])(_0x30f545);for(let _0x294961 of _0x60d1b7){_0x30f545[_0x573a9d(0x1fd)]=_0x294961,await(0x0,Action_1[_0x573a9d(0x1c3)])(_0x30f545);}}if(_0x5c1b4c===null||_0x5c1b4c===void 0x0?void 0x0:_0x5c1b4c[_0x573a9d(0x1f1)]){var _0x60d1b7=[];if(typeof(_0x5c1b4c===null||_0x5c1b4c===void 0x0?void 0x0:_0x5c1b4c['controller'])==_0x573a9d(0x1e7))_0x60d1b7=[_0x5c1b4c===null||_0x5c1b4c===void 0x0?void 0x0:_0x5c1b4c[_0x573a9d(0x1fd)]];else Array['isArray'](_0x5c1b4c===null||_0x5c1b4c===void 0x0?void 0x0:_0x5c1b4c['controller'])?_0x60d1b7=_0x5c1b4c===null||_0x5c1b4c===void 0x0?void 0x0:_0x5c1b4c['controller']:_0x60d1b7=[!![]];if(_0x5c1b4c[_0x573a9d(0x1f1)]=='v2')for(let _0xacca4d of _0x60d1b7){_0x30f545['controller']=_0xacca4d;let _0x5a749a=process[_0x573a9d(0x1d9)]()+'/vue'+(typeof _0x30f545[_0x573a9d(0x1fd)]==_0x573a9d(0x1e7)?'/'+_0x30f545['controller']:'');_0x30f545[_0x573a9d(0x209)]?_0x5a749a=_0x5a749a+(_0x573a9d(0x1fb)+_0x30f545['moduleName']+_0x573a9d(0x1c5)+_0x30f545['tablestartUpShort']+_0x573a9d(0x1b7)):_0x5a749a=_0x5a749a+(_0x573a9d(0x1c5)+_0x30f545['apporbasic']+_0x573a9d(0x1c5)+_0x30f545[_0x573a9d(0x219)]+_0x573a9d(0x1b7)),!fs['existsSync'](_0x5a749a)&&(await(0x0,Api_2[_0x573a9d(0x1c3)])(_0x30f545),await(0x0,Router_2['default'])(_0x30f545),await(0x0,Layout_2[_0x573a9d(0x1c3)])(_0x30f545),await(0x0,LayoutVue_2['default'])(_0x30f545),await(0x0,Validator_3[_0x573a9d(0x1c3)])(_0x30f545));}else{if(_0x5c1b4c[_0x573a9d(0x1f1)]=='v3')for(let _0x3cdc82 of _0x60d1b7){_0x30f545[_0x573a9d(0x1fd)]=_0x3cdc82;let _0x4de59d=process[_0x573a9d(0x1d9)]()+_0x573a9d(0x20e)+(typeof _0x30f545['controller']==_0x573a9d(0x1e7)?'/'+_0x30f545[_0x573a9d(0x1fd)]:'');_0x30f545[_0x573a9d(0x209)]?_0x4de59d=_0x4de59d+(_0x573a9d(0x1fb)+_0x30f545[_0x573a9d(0x209)]+_0x573a9d(0x1c5)+_0x30f545[_0x573a9d(0x219)]+_0x573a9d(0x1b7)):_0x4de59d=_0x4de59d+(_0x573a9d(0x1c5)+_0x30f545[_0x573a9d(0x200)]+_0x573a9d(0x1c5)+_0x30f545[_0x573a9d(0x219)]+'.js'),!fs['existsSync'](_0x4de59d)&&(await(0x0,Api_3['default'])(_0x30f545),await(0x0,Router_3['default'])(_0x30f545),await(0x0,Layout_3['default'])(_0x30f545),await(0x0,LayoutVue_3['default'])(_0x30f545),await(0x0,Validator_4[_0x573a9d(0x1c3)])(_0x30f545));}else for(let _0x10f078 of _0x60d1b7){_0x30f545['controller']=_0x10f078;let _0x26eab4=process[_0x573a9d(0x1d9)]()+'/vue'+(typeof _0x30f545['controller']=='string'?'/'+_0x30f545[_0x573a9d(0x1fd)]:'');_0x30f545[_0x573a9d(0x209)]?_0x26eab4=_0x26eab4+(_0x573a9d(0x21f)+_0x30f545[_0x573a9d(0x209)]+_0x573a9d(0x1e9)+_0x30f545[_0x573a9d(0x22d)]+'.js'):_0x26eab4=_0x26eab4+(_0x573a9d(0x1ca)+_0x30f545[_0x573a9d(0x200)]+_0x573a9d(0x1e9)+_0x30f545['tablestartUpShort2']+_0x573a9d(0x1b7)),!fs[_0x573a9d(0x206)](_0x26eab4)&&(await(0x0,Api_1[_0x573a9d(0x1c3)])(_0x30f545),await(0x0,Router_1['default'])(_0x30f545),await(0x0,Layout_1[_0x573a9d(0x1c3)])(_0x30f545),await(0x0,LayoutVue_1[_0x573a9d(0x1c3)])(_0x30f545),await(0x0,Validator_2['default'])(_0x30f545));}}}}else console[_0x573a9d(0x1ee)]('表:'+_0x3a0547+_0x573a9d(0x1fc));}return'die';}async['checkOption'](_0x35648a){const _0x5e6b41=a3_0x1bed9e;var _0x5a50c7,_0x2763be,_0x437544;if(!this['environment']['isDevelopmentEnvironment']()||!((_0x5a50c7=this[_0x5e6b41(0x218)])===null||_0x5a50c7===void 0x0?void 0x0:_0x5a50c7[_0x5e6b41(0x1bd)])||!this['app'][_0x5e6b41(0x1d7)]('apitest'))throw new Error(_0x5e6b41(0x1e5));!_0x35648a[_0x5e6b41(0x22c)]&&(_0x35648a[_0x5e6b41(0x22c)]='default');if(!((_0x437544=(_0x2763be=this[_0x5e6b41(0x218)])===null||_0x2763be===void 0x0?void 0x0:_0x2763be['dataSource'])===null||_0x437544===void 0x0?void 0x0:_0x437544[_0x35648a[_0x5e6b41(0x22c)]]))throw new Error(_0x5e6b41(0x1d5)+_0x35648a[_0x5e6b41(0x22c)]);if(!this['dataSourceManager']['hasDataSource'](_0x35648a[_0x5e6b41(0x22c)]))throw new Error('typeorm\x20数据源\x20'+_0x35648a['connection']+'\x20不存在');if(!this[_0x5e6b41(0x211)][_0x5e6b41(0x230)](_0x35648a[_0x5e6b41(0x22c)]))throw new Error(_0x5e6b41(0x22f)+_0x35648a[_0x5e6b41(0x22c)]+_0x5e6b41(0x1b1));return!![];}async['CreateModuleConfig'](_0x3f85e8){const _0x467289=a3_0x1bed9e,_0x478cce=_0x3f85e8[_0x467289(0x1f0)][_0x467289(0x1da)]('_')[0x0]['toLowerCase']();if(!fs[_0x467289(0x206)](_0x3f85e8[_0x467289(0x1c0)]+_0x467289(0x1e0))){let _0x5e5f71=_0x467289(0x1c2)+(_0x3f85e8[_0x467289(0x214)]||_0x478cce)+_0x467289(0x226);fs['mkdirSync'](path[_0x467289(0x1c1)](_0x3f85e8[_0x467289(0x1c0)]+_0x467289(0x1e0)),{'recursive':!![]}),fs['writeFileSync'](_0x3f85e8[_0x467289(0x1c0)]+_0x467289(0x1e0),_0x5e5f71,_0x467289(0x1ec));}}};function a3_0x1284(_0x4b9c62,_0x561399){const _0x3772ca=a3_0x2118();return a3_0x1284=function(_0x5bc9d9,_0x39d00d){_0x5bc9d9=_0x5bc9d9-0x1ad;let _0x2118ad=_0x3772ca[_0x5bc9d9];return _0x2118ad;},a3_0x1284(_0x4b9c62,_0x561399);}exports[a3_0x1bed9e(0x1d6)]=ApicreateService,__decorate([(0x0,core_2[a3_0x1bed9e(0x1b4)])(),__metadata(a3_0x1bed9e(0x20f),Object)],ApicreateService[a3_0x1bed9e(0x1f8)],'app',void 0x0),__decorate([(0x0,core_2[a3_0x1bed9e(0x1f5)])('typeorm'),__metadata('design:type',Object)],ApicreateService[a3_0x1bed9e(0x1f8)],a3_0x1bed9e(0x218),void 0x0),__decorate([(0x0,core_2[a3_0x1bed9e(0x215)])(),__metadata(a3_0x1bed9e(0x20f),core_1[a3_0x1bed9e(0x1f6)])],ApicreateService[a3_0x1bed9e(0x1f8)],a3_0x1bed9e(0x1c8),void 0x0),__decorate([(0x0,core_2[a3_0x1bed9e(0x215)])(),__metadata('design:type',typeorm_1[a3_0x1bed9e(0x202)])],ApicreateService[a3_0x1bed9e(0x1f8)],a3_0x1bed9e(0x211),void 0x0),exports[a3_0x1bed9e(0x1d6)]=ApicreateService=__decorate([(0x0,core_2[a3_0x1bed9e(0x1f3)])(a3_0x1bed9e(0x1d6)),(0x0,core_2[a3_0x1bed9e(0x1ff)])(core_2['ScopeEnum'][a3_0x1bed9e(0x205)])],ApicreateService);
|
|
1
|
+
const a3_0x49b53b=a3_0x4424;(function(_0x534a2f,_0xe946f0){const _0x5c3b4e=a3_0x4424,_0xb9616c=_0x534a2f();while(!![]){try{const _0x553cf3=parseInt(_0x5c3b4e(0x1ba))/0x1*(-parseInt(_0x5c3b4e(0x16a))/0x2)+parseInt(_0x5c3b4e(0x19b))/0x3+-parseInt(_0x5c3b4e(0x1be))/0x4*(parseInt(_0x5c3b4e(0x15a))/0x5)+parseInt(_0x5c3b4e(0x17a))/0x6+parseInt(_0x5c3b4e(0x149))/0x7*(-parseInt(_0x5c3b4e(0x190))/0x8)+-parseInt(_0x5c3b4e(0x191))/0x9+-parseInt(_0x5c3b4e(0x150))/0xa*(-parseInt(_0x5c3b4e(0x16e))/0xb);if(_0x553cf3===_0xe946f0)break;else _0xb9616c['push'](_0xb9616c['shift']());}catch(_0x4ce595){_0xb9616c['push'](_0xb9616c['shift']());}}}(a3_0x2ab9,0x7694d));const a3_0x1ac4d1=(function(){let _0x522229=!![];return function(_0x5237d8,_0x12e968){const _0xf2bbf0=_0x522229?function(){if(_0x12e968){const _0x166081=_0x12e968['apply'](_0x5237d8,arguments);return _0x12e968=null,_0x166081;}}:function(){};return _0x522229=![],_0xf2bbf0;};}()),a3_0x30acef=a3_0x1ac4d1(this,function(){const _0x3f9926=a3_0x4424;return a3_0x30acef['toString']()['search']('(((.+)+)+)+$')[_0x3f9926(0x14f)]()[_0x3f9926(0x146)](a3_0x30acef)[_0x3f9926(0x16c)]('(((.+)+)+)+$');});a3_0x30acef();'use strict';var __decorate=this&&this[a3_0x49b53b(0x171)]||function(_0x4c35b6,_0x13c17a,_0x29362e,_0x446ff8){const _0x50df41=a3_0x49b53b;var _0x9fbdb1=arguments[_0x50df41(0x17e)],_0x33cb0a=_0x9fbdb1<0x3?_0x13c17a:_0x446ff8===null?_0x446ff8=Object['getOwnPropertyDescriptor'](_0x13c17a,_0x29362e):_0x446ff8,_0x4b62db;if(typeof Reflect==='object'&&typeof Reflect[_0x50df41(0x1b7)]===_0x50df41(0x14d))_0x33cb0a=Reflect[_0x50df41(0x1b7)](_0x4c35b6,_0x13c17a,_0x29362e,_0x446ff8);else{for(var _0x248a7e=_0x4c35b6[_0x50df41(0x17e)]-0x1;_0x248a7e>=0x0;_0x248a7e--)if(_0x4b62db=_0x4c35b6[_0x248a7e])_0x33cb0a=(_0x9fbdb1<0x3?_0x4b62db(_0x33cb0a):_0x9fbdb1>0x3?_0x4b62db(_0x13c17a,_0x29362e,_0x33cb0a):_0x4b62db(_0x13c17a,_0x29362e))||_0x33cb0a;}return _0x9fbdb1>0x3&&_0x33cb0a&&Object[_0x50df41(0x1a8)](_0x13c17a,_0x29362e,_0x33cb0a),_0x33cb0a;},__metadata=this&&this['__metadata']||function(_0xef0079,_0x2ff5c0){const _0x14c0f8=a3_0x49b53b;if(typeof Reflect===_0x14c0f8(0x1a6)&&typeof Reflect[_0x14c0f8(0x1ac)]===_0x14c0f8(0x14d))return Reflect['metadata'](_0xef0079,_0x2ff5c0);};Object[a3_0x49b53b(0x1a8)](exports,a3_0x49b53b(0x158),{'value':!![]}),exports[a3_0x49b53b(0x175)]=void 0x0;const fs=require('fs'),path=require('path'),core_1=require(a3_0x49b53b(0x159)),typeorm_1=require(a3_0x49b53b(0x1b9)),core_2=require(a3_0x49b53b(0x159)),Common_1=require(a3_0x49b53b(0x166)),Event_1=require(a3_0x49b53b(0x15f)),Search_1=require(a3_0x49b53b(0x1b1)),Entities_1=require('../templateFun/Entities'),Handler_1=require(a3_0x49b53b(0x153)),Validator_1=require(a3_0x49b53b(0x194)),Action_1=require(a3_0x49b53b(0x1b4)),Api_1=require(a3_0x49b53b(0x18b)),Router_1=require(a3_0x49b53b(0x143)),Layout_1=require(a3_0x49b53b(0x1ae)),LayoutVue_1=require(a3_0x49b53b(0x189)),Validator_2=require('../templateVue/Validator'),Api_2=require(a3_0x49b53b(0x18e)),Router_2=require(a3_0x49b53b(0x183)),Layout_2=require('../templateVueV2/Layout'),LayoutVue_2=require(a3_0x49b53b(0x186)),Validator_3=require('../templateVueV2/Validator'),Api_3=require('../templateVueV3/Api'),Router_3=require('../templateVueV3/Router'),Layout_3=require('../templateVueV3/Layout'),LayoutVue_3=require('../templateVueV3/LayoutVue'),Validator_4=require(a3_0x49b53b(0x1b5));let ApicreateService=class ApicreateService{async['createApp'](_0x49cfb5){const _0x1ef58f=a3_0x49b53b;return await this['checkOption'](_0x49cfb5),await this[_0x1ef58f(0x1af)]({..._0x49cfb5,'apporbasic':'app'});}async[a3_0x49b53b(0x180)](_0x5b888b){const _0x5adf53=a3_0x49b53b;return await this[_0x5adf53(0x154)](_0x5b888b),await this[_0x5adf53(0x1af)]({..._0x5b888b,'apporbasic':'basic'});}async[a3_0x49b53b(0x169)](_0x2c5587){return await this['checkOption'](_0x2c5587),await this['createAction']({..._0x2c5587,'module':!![]});}async['createAction'](_0x5d7e9c){const _0x576777=a3_0x49b53b;var _0x38b0b9,_0x764ae9;!_0x5d7e9c[_0x576777(0x187)]&&(_0x5d7e9c['connection']=_0x576777(0x193));!_0x5d7e9c[_0x576777(0x1b2)]&&(_0x5d7e9c['apporbasic']=_0x576777(0x16b));const _0x3c0412=this[_0x576777(0x16b)]['getBaseDir'](),_0x9893f2=this[_0x576777(0x1a4)]['getDataSource'](_0x5d7e9c[_0x576777(0x187)]),_0x4cde9b=await _0x9893f2[_0x576777(0x173)](_0x576777(0x17b)+this[_0x576777(0x182)]['dataSource'][_0x5d7e9c[_0x576777(0x187)]][_0x576777(0x1a0)]+_0x576777(0x14a)+((_0x5d7e9c===null||_0x5d7e9c===void 0x0?void 0x0:_0x5d7e9c['table'])?_0x576777(0x1b6)+_0x5d7e9c['table']+'\x22':_0x576777(0x1bd)+(_0x5d7e9c[_0x576777(0x1b8)]||'')+'%\x22'))||[];for(let _0x4d61c9=0x0;_0x4d61c9<_0x4cde9b[_0x576777(0x17e)];_0x4d61c9++){const _0x8e52c1=_0x4cde9b[_0x4d61c9][_0x576777(0x198)];if((_0x5d7e9c===null||_0x5d7e9c===void 0x0?void 0x0:_0x5d7e9c[_0x576777(0x198)])&&(_0x5d7e9c===null||_0x5d7e9c===void 0x0?void 0x0:_0x5d7e9c[_0x576777(0x198)])!=_0x8e52c1)continue;if((_0x5d7e9c===null||_0x5d7e9c===void 0x0?void 0x0:_0x5d7e9c['tableprefix'])&&!(_0x8e52c1===null||_0x8e52c1===void 0x0?void 0x0:_0x8e52c1[_0x576777(0x16f)](_0x5d7e9c[_0x576777(0x1b8)])))continue;const _0xd6170a=await _0x9893f2[_0x576777(0x173)](_0x576777(0x162)+this[_0x576777(0x182)]['dataSource'][_0x5d7e9c[_0x576777(0x187)]][_0x576777(0x1a0)]+'\x22\x20AND\x20table_name\x20=\x20\x27'+_0x8e52c1+'\x27')||[];if((_0x38b0b9=_0xd6170a[0x0])===null||_0x38b0b9===void 0x0?void 0x0:_0x38b0b9[_0x576777(0x147)]){const _0x34b9bd={'tablename':_0x8e52c1,'Primary':{},'Fields':{},'Comment':(_0x764ae9=_0xd6170a[0x0])===null||_0x764ae9===void 0x0?void 0x0:_0x764ae9[_0x576777(0x147)],'vuedialog':_0x5d7e9c['vuedialog'],'apporbasic':_0x5d7e9c[_0x576777(0x1b2)]};_0x34b9bd[_0x576777(0x1a7)]=_0x8e52c1['substr']((_0x5d7e9c===null||_0x5d7e9c===void 0x0?void 0x0:_0x5d7e9c[_0x576777(0x195)])||0x0,_0x8e52c1[_0x576777(0x17e)]),_0x34b9bd[_0x576777(0x19a)]=(_0x5d7e9c===null||_0x5d7e9c===void 0x0?void 0x0:_0x5d7e9c[_0x576777(0x15e)])?_0x3c0412+'/apps/'+_0x34b9bd[_0x576777(0x1a7)][_0x576777(0x1a9)]('_')[0x0][_0x576777(0x18f)]():_0x3c0412+'/'+_0x5d7e9c['apporbasic'];const _0x45150c=_0x34b9bd[_0x576777(0x1a7)][_0x576777(0x1a9)]('_')['filter'](_0x389ae9=>_0x389ae9&&_0x389ae9[_0x576777(0x1b3)]());(_0x5d7e9c===null||_0x5d7e9c===void 0x0?void 0x0:_0x5d7e9c[_0x576777(0x15e)])&&(await this[_0x576777(0x18a)](_0x34b9bd),_0x34b9bd[_0x576777(0x14c)]=_0x45150c[0x0][_0x576777(0x18f)]());_0x34b9bd['tablestartLow']=_0x45150c[_0x576777(0x19f)](_0x23176c=>_0x23176c[_0x576777(0x18f)]())[_0x576777(0x168)](''),_0x34b9bd[_0x576777(0x1a1)]=_0x45150c[_0x576777(0x19f)](_0x46af60=>''+_0x46af60[_0x576777(0x161)](0x0,0x1)[_0x576777(0x178)]()+_0x46af60[_0x576777(0x161)](0x1)[_0x576777(0x18f)]())[_0x576777(0x168)]('');(_0x34b9bd===null||_0x34b9bd===void 0x0?void 0x0:_0x34b9bd[_0x576777(0x14c)])&&_0x45150c[_0x576777(0x17e)]>0x1&&_0x45150c[0x0]['toLowerCase']()==_0x34b9bd[_0x576777(0x14c)]?(_0x34b9bd[_0x576777(0x1a2)]=_0x34b9bd[_0x576777(0x1a1)][_0x576777(0x161)](_0x34b9bd[_0x576777(0x14c)][_0x576777(0x17e)],_0x34b9bd[_0x576777(0x1a1)][_0x576777(0x17e)]),_0x34b9bd[_0x576777(0x17d)]=_0x34b9bd[_0x576777(0x142)]['substring'](_0x34b9bd[_0x576777(0x14c)][_0x576777(0x17e)],_0x34b9bd['tablestartLow'][_0x576777(0x17e)])):(_0x34b9bd[_0x576777(0x1a2)]=_0x34b9bd['tablestartUp'],_0x34b9bd['tablestartLowShort']=_0x34b9bd[_0x576777(0x142)]);_0x34b9bd[_0x576777(0x1a3)]=_0x34b9bd['tablestartUpShort'][_0x576777(0x167)](/\/{2,}/g,'/')[_0x576777(0x165)](/[\/|A-Z]*[^A-Z]+/g)[_0x576777(0x168)]('-')[_0x576777(0x18f)]()[_0x576777(0x167)](/\/\-/g,'/');for(let _0x46f2b1 of await _0x9893f2['query']('SHOW\x20FULL\x20COLUMNS\x20FROM\x20`'+_0x8e52c1+'`')){_0x46f2b1[_0x576777(0x18c)]==_0x576777(0x19d)?_0x34b9bd['Primary']=_0x46f2b1:_0x34b9bd['Fields'][_0x46f2b1[_0x576777(0x170)]]=_0x46f2b1;}if((_0x5d7e9c===null||_0x5d7e9c===void 0x0?void 0x0:_0x5d7e9c[_0x576777(0x181)])&&!fs['existsSync'](_0x34b9bd[_0x576777(0x19a)]+_0x576777(0x163)+_0x34b9bd[_0x576777(0x1a2)]+_0x576777(0x172))){var _0x190d7f=[];if(typeof(_0x5d7e9c===null||_0x5d7e9c===void 0x0?void 0x0:_0x5d7e9c[_0x576777(0x181)])=='string')_0x190d7f=[_0x5d7e9c===null||_0x5d7e9c===void 0x0?void 0x0:_0x5d7e9c[_0x576777(0x181)]];else Array[_0x576777(0x152)](_0x5d7e9c===null||_0x5d7e9c===void 0x0?void 0x0:_0x5d7e9c['controller'])?_0x190d7f=_0x5d7e9c===null||_0x5d7e9c===void 0x0?void 0x0:_0x5d7e9c[_0x576777(0x181)]:_0x190d7f=[!![]];_0x34b9bd[_0x576777(0x145)]=_0x190d7f,await(0x0,Search_1[_0x576777(0x193)])(_0x34b9bd),await(0x0,Entities_1['default'])(_0x34b9bd),await(0x0,Common_1[_0x576777(0x193)])(_0x34b9bd),await(0x0,Event_1['default'])(_0x34b9bd),await(0x0,Handler_1[_0x576777(0x193)])(_0x34b9bd),await(0x0,Validator_1[_0x576777(0x193)])(_0x34b9bd);for(let _0x119dac of _0x190d7f){_0x34b9bd[_0x576777(0x181)]=_0x119dac,await(0x0,Action_1['default'])(_0x34b9bd);}}if(_0x5d7e9c===null||_0x5d7e9c===void 0x0?void 0x0:_0x5d7e9c['hasvue']){var _0x190d7f=[];if(typeof(_0x5d7e9c===null||_0x5d7e9c===void 0x0?void 0x0:_0x5d7e9c[_0x576777(0x181)])==_0x576777(0x156))_0x190d7f=[_0x5d7e9c===null||_0x5d7e9c===void 0x0?void 0x0:_0x5d7e9c['controller']];else Array['isArray'](_0x5d7e9c===null||_0x5d7e9c===void 0x0?void 0x0:_0x5d7e9c[_0x576777(0x181)])?_0x190d7f=_0x5d7e9c===null||_0x5d7e9c===void 0x0?void 0x0:_0x5d7e9c[_0x576777(0x181)]:_0x190d7f=[!![]];if(_0x5d7e9c['hasvue']=='v2')for(let _0x577959 of _0x190d7f){_0x34b9bd[_0x576777(0x181)]=_0x577959;let _0x5859b0=process['cwd']()+_0x576777(0x164)+(typeof _0x34b9bd['controller']=='string'?'/'+_0x34b9bd[_0x576777(0x181)]:'');_0x34b9bd[_0x576777(0x14c)]?_0x5859b0=_0x5859b0+('/apis/apps/'+_0x34b9bd[_0x576777(0x14c)]+_0x576777(0x1ad)+_0x34b9bd['tablestartUpShort']+'.js'):_0x5859b0=_0x5859b0+(_0x576777(0x1ad)+_0x34b9bd['apporbasic']+'/apis/'+_0x34b9bd[_0x576777(0x1a2)]+_0x576777(0x15d)),!fs[_0x576777(0x176)](_0x5859b0)&&(await(0x0,Api_2['default'])(_0x34b9bd),await(0x0,Router_2[_0x576777(0x193)])(_0x34b9bd),await(0x0,Layout_2[_0x576777(0x193)])(_0x34b9bd),await(0x0,LayoutVue_2['default'])(_0x34b9bd),await(0x0,Validator_3['default'])(_0x34b9bd));}else{if(_0x5d7e9c['hasvue']=='v3')for(let _0x19a4ef of _0x190d7f){_0x34b9bd[_0x576777(0x181)]=_0x19a4ef;let _0x377226=process['cwd']()+_0x576777(0x164)+(typeof _0x34b9bd[_0x576777(0x181)]==_0x576777(0x156)?'/'+_0x34b9bd[_0x576777(0x181)]:'');_0x34b9bd[_0x576777(0x14c)]?_0x377226=_0x377226+(_0x576777(0x15c)+_0x34b9bd[_0x576777(0x14c)]+_0x576777(0x1ad)+_0x34b9bd[_0x576777(0x1a2)]+_0x576777(0x15d)):_0x377226=_0x377226+('/apis/'+_0x34b9bd[_0x576777(0x1b2)]+'/apis/'+_0x34b9bd[_0x576777(0x1a2)]+_0x576777(0x15d)),!fs[_0x576777(0x176)](_0x377226)&&(await(0x0,Api_3[_0x576777(0x193)])(_0x34b9bd),await(0x0,Router_3[_0x576777(0x193)])(_0x34b9bd),await(0x0,Layout_3[_0x576777(0x193)])(_0x34b9bd),await(0x0,LayoutVue_3['default'])(_0x34b9bd),await(0x0,Validator_4[_0x576777(0x193)])(_0x34b9bd));}else for(let _0x1cad78 of _0x190d7f){_0x34b9bd[_0x576777(0x181)]=_0x1cad78;let _0x50961f=process[_0x576777(0x144)]()+_0x576777(0x164)+(typeof _0x34b9bd['controller']==_0x576777(0x156)?'/'+_0x34b9bd[_0x576777(0x181)]:'');_0x34b9bd['moduleName']?_0x50961f=_0x50961f+(_0x576777(0x179)+_0x34b9bd[_0x576777(0x14c)]+_0x576777(0x185)+_0x34b9bd[_0x576777(0x1a3)]+'.js'):_0x50961f=_0x50961f+(_0x576777(0x196)+_0x34b9bd[_0x576777(0x1b2)]+'/api/'+_0x34b9bd['tablestartUpShort2']+_0x576777(0x15d)),!fs[_0x576777(0x176)](_0x50961f)&&(await(0x0,Api_1['default'])(_0x34b9bd),await(0x0,Router_1[_0x576777(0x193)])(_0x34b9bd),await(0x0,Layout_1[_0x576777(0x193)])(_0x34b9bd),await(0x0,LayoutVue_1[_0x576777(0x193)])(_0x34b9bd),await(0x0,Validator_2[_0x576777(0x193)])(_0x34b9bd));}}}}else console['error']('表:'+_0x8e52c1+'\x20表注释不存在');}return _0x576777(0x17c);}async[a3_0x49b53b(0x154)](_0x187ade){const _0x5bc977=a3_0x49b53b;var _0x186724,_0x262c16,_0x32c330;if(!this['environment'][_0x5bc977(0x151)]()||!((_0x186724=this[_0x5bc977(0x182)])===null||_0x186724===void 0x0?void 0x0:_0x186724[_0x5bc977(0x177)])||!this[_0x5bc977(0x16b)][_0x5bc977(0x17f)]('apitest'))throw new Error(_0x5bc977(0x1bb));!_0x187ade['connection']&&(_0x187ade[_0x5bc977(0x187)]=_0x5bc977(0x193));if(!((_0x32c330=(_0x262c16=this[_0x5bc977(0x182)])===null||_0x262c16===void 0x0?void 0x0:_0x262c16[_0x5bc977(0x177)])===null||_0x32c330===void 0x0?void 0x0:_0x32c330[_0x187ade['connection']]))throw new Error(_0x5bc977(0x1aa)+_0x187ade[_0x5bc977(0x187)]);if(!this[_0x5bc977(0x1a4)][_0x5bc977(0x1bc)](_0x187ade['connection']))throw new Error(_0x5bc977(0x19e)+_0x187ade[_0x5bc977(0x187)]+_0x5bc977(0x148));if(!this[_0x5bc977(0x1a4)][_0x5bc977(0x188)](_0x187ade['connection']))throw new Error('typeorm\x20数据源\x20'+_0x187ade[_0x5bc977(0x187)]+_0x5bc977(0x1a5));return!![];}async[a3_0x49b53b(0x18a)](_0x2fafdb){const _0x5b4288=a3_0x49b53b,_0x597c8d=_0x2fafdb[_0x5b4288(0x1a7)]['split']('_')[0x0][_0x5b4288(0x18f)]();if(!fs['existsSync'](_0x2fafdb['basedir']+'/config.ts')){let _0x4485f4=_0x5b4288(0x174)+(_0x2fafdb[_0x5b4288(0x199)]||_0x597c8d)+'\x27,\x0a\x20\x20\x20\x20description:\x20\x27\x27,\x0a\x20\x20\x20\x20middleware:\x20[],\x0a}';fs[_0x5b4288(0x1b0)](path[_0x5b4288(0x197)](_0x2fafdb['basedir']+'/config.ts'),{'recursive':!![]}),fs[_0x5b4288(0x14e)](_0x2fafdb[_0x5b4288(0x19a)]+_0x5b4288(0x16d),_0x4485f4,_0x5b4288(0x1ab));}}};function a3_0x4424(_0x47ef84,_0x12723c){const _0x4d4353=a3_0x2ab9();return a3_0x4424=function(_0x30acef,_0x1ac4d1){_0x30acef=_0x30acef-0x142;let _0x2ab97c=_0x4d4353[_0x30acef];return _0x2ab97c;},a3_0x4424(_0x47ef84,_0x12723c);}function a3_0x2ab9(){const _0x3d56a5=['hasDataSource','LIKE\x20\x22','3559628OTNxgg','tablestartLow','../templateVue/Router','cwd','controllers','constructor','comment','\x20不存在','518ZmAIgk','\x22\x20AND\x20table_name\x20','Singleton','moduleName','function','writeFileSync','toString','19431970oLCbqi','isDevelopmentEnvironment','isArray','../templateFun/Handler','checkOption','TypeORMDataSourceManager','string','Inject','__esModule','@midwayjs/core','5wVXUKH','typeorm','/apis/apps/','.js','module','../templateFun/Event','MidwayEnvironmentService','substring','SELECT\x20TABLE_COMMENT\x20as\x20`comment`\x20FROM\x20information_schema.TABLES\x20WHERE\x20TABLE_SCHEMA=\x22','/exceptions/','/vue','match','../templateFun/Common','replace','join','createPlugin','2WFHVYg','app','search','/config.ts','11smGYPc','startsWith','Field','__decorate','.ts','query','export\x20default\x20{\x0a\x20\x20\x20\x20name:\x20\x27','ApicreateService','existsSync','dataSource','toUpperCase','/pages/apps/','2697360AFrLcN','SELECT\x20TABLE_NAME\x20as\x20`table`\x20FROM\x20information_schema.TABLES\x20WHERE\x20TABLE_SCHEMA=\x22','die','tablestartLowShort','length','getConfig','createBasic','controller','config','../templateVueV2/Router','Scope','/api/','../templateVueV2/LayoutVue','connection','isConnected','../templateVue/LayoutVue','CreateModuleConfig','../templateVue/Api','Key','design:type','../templateVueV2/Api','toLowerCase','136maCaKT','3732948vRniFC','prototype','default','../templateFun/Validator','substr','/pages/','dirname','table','Comment','basedir','670161LRKfPv','Provide','PRI','typeorm\x20数据源\x20','map','database','tablestartUp','tablestartUpShort','tablestartUpShort2','dataSourceManager','\x20未连接','object','tablestart','defineProperty','split','typeorm\x20未配置数据源\x20','utf-8','metadata','/apis/','../templateVue/Layout','createAction','mkdirSync','../templateFun/Search','apporbasic','trim','../templateFun/Action','../templateVueV3/Validator','=\x20\x22','decorate','tableprefix','@midwayjs/typeorm','824498vsgekg','无法生成'];a3_0x2ab9=function(){return _0x3d56a5;};return a3_0x2ab9();}exports[a3_0x49b53b(0x175)]=ApicreateService,__decorate([(0x0,core_2['App'])(),__metadata(a3_0x49b53b(0x18d),Object)],ApicreateService['prototype'],'app',void 0x0),__decorate([(0x0,core_2['Config'])(a3_0x49b53b(0x15b)),__metadata('design:type',Object)],ApicreateService[a3_0x49b53b(0x192)],a3_0x49b53b(0x182),void 0x0),__decorate([(0x0,core_2[a3_0x49b53b(0x157)])(),__metadata(a3_0x49b53b(0x18d),core_1[a3_0x49b53b(0x160)])],ApicreateService[a3_0x49b53b(0x192)],'environment',void 0x0),__decorate([(0x0,core_2[a3_0x49b53b(0x157)])(),__metadata(a3_0x49b53b(0x18d),typeorm_1[a3_0x49b53b(0x155)])],ApicreateService['prototype'],a3_0x49b53b(0x1a4),void 0x0),exports[a3_0x49b53b(0x175)]=ApicreateService=__decorate([(0x0,core_2[a3_0x49b53b(0x19c)])(a3_0x49b53b(0x175)),(0x0,core_2[a3_0x49b53b(0x184)])(core_2['ScopeEnum'][a3_0x49b53b(0x14b)])],ApicreateService);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a4_0x548950=a4_0x7ab1;function a4_0x7ab1(_0x1fb750,_0x350150){const _0x5cc17a=a4_0x3b53();return a4_0x7ab1=function(_0x59de49,_0x52c710){_0x59de49=_0x59de49-0x8c;let _0x3b53ea=_0x5cc17a[_0x59de49];return _0x3b53ea;},a4_0x7ab1(_0x1fb750,_0x350150);}(function(_0x47aef0,_0x2dd98e){const _0x235371=a4_0x7ab1,_0x31f811=_0x47aef0();while(!![]){try{const _0x4ad8e8=-parseInt(_0x235371(0xad))/0x1*(-parseInt(_0x235371(0xc9))/0x2)+parseInt(_0x235371(0xc2))/0x3*(-parseInt(_0x235371(0xce))/0x4)+-parseInt(_0x235371(0x90))/0x5+parseInt(_0x235371(0xa7))/0x6+parseInt(_0x235371(0xd4))/0x7+parseInt(_0x235371(0xab))/0x8+parseInt(_0x235371(0xa2))/0x9*(-parseInt(_0x235371(0xc1))/0xa);if(_0x4ad8e8===_0x2dd98e)break;else _0x31f811['push'](_0x31f811['shift']());}catch(_0x13e125){_0x31f811['push'](_0x31f811['shift']());}}}(a4_0x3b53,0x98577));const a4_0x52c710=(function(){let _0x385d5b=!![];return function(_0x3a6882,_0x2e58a9){const _0x10d7ae=_0x385d5b?function(){const _0x4ba95e=a4_0x7ab1;if(_0x2e58a9){const _0x21979d=_0x2e58a9[_0x4ba95e(0xd2)](_0x3a6882,arguments);return _0x2e58a9=null,_0x21979d;}}:function(){};return _0x385d5b=![],_0x10d7ae;};}()),a4_0x59de49=a4_0x52c710(this,function(){const _0x59027f=a4_0x7ab1;return a4_0x59de49[_0x59027f(0x9c)]()[_0x59027f(0xcd)](_0x59027f(0x99))['toString']()[_0x59027f(0xb1)](a4_0x59de49)[_0x59027f(0xcd)]('(((.+)+)+)+$');});a4_0x59de49();function a4_0x3b53(){const _0x507b33=['getProp','Handler\x20}\x20from\x20\x27','5399526AAPcOy','/Search\x27;\x0a','DTOSearch\x20}\x20from\x20\x27','/Create\x27;\x0a','6927976rTCYDF','mkdirSync','53rsMKjj','\x20\x20\x20\x20async\x20remove(conditions:\x20','\x20\x20\x20\x20\x20\x20\x20\x20const\x20[pagelist,\x20pagetotal]\x20=\x20await\x20this.','\x20\x20\x20\x20\x20\x20\x20\x20const\x20removes\x20=\x20await\x20this.','constructor','Handler:\x20','/Update\x27;\x0a\x0a','writeFileSync','DTOUpdate)\x20{\x0a','@/apps/',',\x20params:\x20','\x20\x20\x20\x20@Action.get(\x27列表\x27,\x20\x27list\x27)\x0a','\x20\x20\x20\x20async\x20create(params:\x20','/handlers/','import\x20{\x20Context\x20}\x20from\x20\x27@midwayjs/koa\x27;\x0a','Handler.list(conditions,\x20pageinfo);\x0a\x0a','Field','DTOUpdate\x20}\x20from\x20\x27','/validators/','\x20\x20\x20\x20\x20\x20\x20\x20const\x20tmpModel\x20=\x20await\x20this.','14060nYajyv','2040438eWxwvW','DTOSearch)\x20{\x0a\x0a','substring','export\x20class\x20','DTOCreate\x20}\x20from\x20\x27','path','\x20\x20\x20\x20\x20\x20\x20\x20return\x20this.ctx.ok(tmpModel);\x0a','29226PKFjll','utf-8','\x20};\x0a\x0a','../helper','search','4vrzrut','string','\x27)\x0a','.ts','apply','Handler\x0a\x0a\x0a','6705027zFtxvd','\x20\x20\x20\x20}\x0a\x0a\x0a','number','DTOSearch\x20=\x20{\x20',')\x20{\x0a','\x20\x20\x20\x20async\x20index(conditions:\x20','5937175GyXGLD','text','\x20\x20\x20\x20@Inject()\x20protected\x20','Handler.create(params);\x0a\x0a','\x20\x20\x20\x20\x20\x20\x20\x20return\x20this.ctx.ok(pagelist,\x20{\x20pageinfo,\x20pagetotal\x20});\x0a','Type','import\x20{\x20','dirname','existsSync','(((.+)+)+)+$','\x20\x20\x20\x20@Action.post(\x22删除\x22,\x20\x27remove\x27)\x0a','\x20\x20\x20\x20@Action.post(\x27修改\x27,\x20\x27edit/:','toString','\x20\x20\x20\x20\x20\x20\x20\x20const\x20conditions:\x20','default','@Action(__filename,\x20\x27','indexOf','toUpperCase','6444msJIWk','Handler.update(conditions,\x20params);\x0a\x0a','/controller/'];a4_0x3b53=function(){return _0x507b33;};return a4_0x3b53();}'use strict';Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[a4_0x548950(0x9e)]=default_1;const fs=require('fs'),path_1=require(a4_0x548950(0xc7)),helper_1=require(a4_0x548950(0xcc));async function default_1({controller:_0x7ef7ee,tablestartUp:_0x1dbbb3,tablestartUpShort:_0x2f5d0d,basedir:_0xc36c24,Primary:_0x1855c1,Comment:_0x83b621,moduleName:_0xca093e,apporbasic:_0x5ec26a}){const _0x308453=a4_0x548950;if(_0x7ef7ee){const _0x17d2b8=_0xc36c24+(typeof _0x7ef7ee==_0x308453(0xcf)?_0x308453(0xa4)+_0x7ef7ee+'/'+_0x2f5d0d+_0x308453(0xd1):_0x308453(0xa4)+_0x2f5d0d+_0x308453(0xd1));if(!fs[_0x308453(0x98)](_0x17d2b8)){let _0x714f63='',_0x103aa2=[_0x308453(0x91),'mediumtext',_0x308453(0xcf)][_0x308453(0xa0)]((0x0,helper_1[_0x308453(0xa5)])(_0x1855c1[_0x308453(0x95)]))==-0x1;_0x714f63+=_0x308453(0xbb),_0x714f63+='import\x20{\x20Inject,\x20Action,\x20PageDTO\x20}\x20from\x20\x27anncic-api\x27;\x0a\x0a',_0x714f63+=_0x308453(0x96)+_0x1dbbb3+_0x308453(0xa6)+(typeof _0xca093e==_0x308453(0xcf)?'@/apps/'+_0xca093e:'@/'+_0x5ec26a)+_0x308453(0xba)+_0x2f5d0d+'\x27;\x0a',_0x714f63+=_0x308453(0x96)+_0x1dbbb3+_0x308453(0xa9)+(typeof _0xca093e==_0x308453(0xcf)?_0x308453(0xb6)+_0xca093e:'@/'+_0x5ec26a)+_0x308453(0xbf)+_0x2f5d0d+_0x308453(0xa8),_0x714f63+=_0x308453(0x96)+_0x1dbbb3+_0x308453(0xc6)+(typeof _0xca093e==_0x308453(0xcf)?_0x308453(0xb6)+_0xca093e:'@/'+_0x5ec26a)+_0x308453(0xbf)+_0x2f5d0d+_0x308453(0xaa),_0x714f63+='import\x20{\x20'+_0x1dbbb3+_0x308453(0xbe)+(typeof _0xca093e=='string'?'@/apps/'+_0xca093e:'@/'+_0x5ec26a)+_0x308453(0xbf)+_0x2f5d0d+_0x308453(0xb3),_0x714f63+=_0x308453(0x9f)+_0x83b621+_0x308453(0xd0),_0x714f63+=_0x308453(0xc5)+(typeof _0x7ef7ee=='string'?_0x7ef7ee['substring'](0x0,0x1)[_0x308453(0xa1)]()+_0x7ef7ee[_0x308453(0xc4)](0x1):'')+_0x1dbbb3+'Controller\x20{\x0a\x0a',_0x714f63+='\x20\x20\x20\x20@Inject()\x20protected\x20ctx:\x20Context;\x0a\x0a',_0x714f63+=_0x308453(0x92)+_0x1dbbb3+_0x308453(0xb2)+_0x1dbbb3+_0x308453(0xd3),_0x714f63+=_0x308453(0xb8),_0x714f63+=_0x308453(0x8f)+_0x1dbbb3+'DTOSearch,\x20pageinfo:\x20PageDTO)\x20{\x0a\x0a',_0x714f63+=_0x308453(0xaf)+_0x1dbbb3+_0x308453(0xbc),_0x714f63+=_0x308453(0x94),_0x714f63+=_0x308453(0xd5),_0x714f63+='\x20\x20\x20\x20@Action.get(\x27详情\x27,\x20\x27detail/:'+_0x1855c1[_0x308453(0xbd)]+'\x27)\x0a',_0x714f63+='\x20\x20\x20\x20async\x20detail('+_0x1855c1[_0x308453(0xbd)]+':\x20'+(_0x103aa2?'number':_0x308453(0xcf))+_0x308453(0x8e),_0x714f63+='\x20\x20\x20\x20\x20\x20\x20\x20const\x20conditions:\x20'+_0x1dbbb3+'DTOSearch\x20=\x20{\x20'+_0x1855c1[_0x308453(0xbd)]+_0x308453(0xcb),_0x714f63+=_0x308453(0xc0)+_0x1dbbb3+'Handler.detail(conditions);\x0a\x0a',_0x714f63+=_0x308453(0xc8),_0x714f63+='\x20\x20\x20\x20}\x0a\x0a\x0a',_0x714f63+='\x20\x20\x20\x20@Action.post(\x27添加\x27,\x20\x27add\x27)\x0a',_0x714f63+=_0x308453(0xb9)+_0x1dbbb3+'DTOCreate)\x20{\x0a\x0a',_0x714f63+='\x20\x20\x20\x20\x20\x20\x20\x20const\x20tmpModel\x20=\x20await\x20this.'+_0x1dbbb3+_0x308453(0x93),_0x714f63+=_0x308453(0xc8),_0x714f63+=_0x308453(0xd5),_0x714f63+=_0x308453(0x9b)+_0x1855c1['Field']+_0x308453(0xd0),_0x714f63+='\x20\x20\x20\x20async\x20update('+_0x1855c1[_0x308453(0xbd)]+':\x20'+(_0x103aa2?_0x308453(0x8c):_0x308453(0xcf))+_0x308453(0xb7)+_0x1dbbb3+_0x308453(0xb5),_0x714f63+=_0x308453(0x9d)+_0x1dbbb3+_0x308453(0x8d)+_0x1855c1[_0x308453(0xbd)]+'\x20};\x0a\x0a',_0x714f63+=_0x308453(0xc0)+_0x1dbbb3+_0x308453(0xa3),_0x714f63+=_0x308453(0xc8),_0x714f63+=_0x308453(0xd5),_0x714f63+=_0x308453(0x9a),_0x714f63+=_0x308453(0xae)+_0x1dbbb3+_0x308453(0xc3),_0x714f63+=_0x308453(0xb0)+_0x1dbbb3+'Handler.remove(conditions);\x0a\x0a',_0x714f63+='\x20\x20\x20\x20\x20\x20\x20\x20return\x20this.ctx.ok(removes);\x0a',_0x714f63+=_0x308453(0xd5),_0x714f63+='}',!fs[_0x308453(0x98)]((0x0,path_1[_0x308453(0x97)])(_0x17d2b8))&&fs[_0x308453(0xac)]((0x0,path_1['dirname'])(_0x17d2b8),{'recursive':!![]}),fs[_0x308453(0xb4)](_0x17d2b8,_0x714f63,_0x308453(0xca));}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a5_0x4a5807=a5_0x48b7;function a5_0x48b7(_0x3e1dbb,_0xd56632){const _0x89f185=a5_0x24be();return a5_0x48b7=function(_0x47a60e,_0x577870){_0x47a60e=_0x47a60e-0x1ab;let _0x24be56=_0x89f185[_0x47a60e];return _0x24be56;},a5_0x48b7(_0x3e1dbb,_0xd56632);}function a5_0x24be(){const _0x4531be=['constructor','Error\x20extends\x20AnnError\x20{\x0a\x0a','/**\x0a','3376938ieUmZh','\x27)\x0a','indexOf','__esModule','defineProperty','233925IoCHKz','24918guatCB','1749987DLRHXI','\x27,\x20\x27开启','12501304aUIbDu','74278WqOdfH','../helper','toUpperCase','writeFileSync','toString','existsSync','Enum\x20{\x0a\x0a','546ZrkUrt','4HdSKgO','path','20Wfkwix','getProp','\x20*\x20**/\x0a','-常量设置\x0a','\x20\x20\x20\x20@AnnEnumMsg(\x27','_OFF:\x20number\x20=\x200;\x0a\x0a\x0a','-错误信息设置\x0a','\x27,\x20\x27关闭','527712MFSIlR','Comment','search','_ON:\x20number\x20=\x201;\x0a\x0a','18kTcttE','\x20\x20\x20\x20static\x20readonly\x20','\x20*\x20','/enums/','utf-8','539LCQRal','(((.+)+)+)+$','dirname','.ts'];a5_0x24be=function(){return _0x4531be;};return a5_0x24be();}(function(_0x1353ca,_0x3f0faa){const _0x4f5e8b=a5_0x48b7,_0x5c64c4=_0x1353ca();while(!![]){try{const _0x956eea=parseInt(_0x4f5e8b(0x1bd))/0x1*(parseInt(_0x4f5e8b(0x1d3))/0x2)+parseInt(_0x4f5e8b(0x1c9))/0x3*(-parseInt(_0x4f5e8b(0x1af))/0x4)+-parseInt(_0x4f5e8b(0x1ce))/0x5+-parseInt(_0x4f5e8b(0x1cf))/0x6*(-parseInt(_0x4f5e8b(0x1ae))/0x7)+-parseInt(_0x4f5e8b(0x1d2))/0x8+-parseInt(_0x4f5e8b(0x1d0))/0x9*(-parseInt(_0x4f5e8b(0x1b1))/0xa)+parseInt(_0x4f5e8b(0x1c2))/0xb*(parseInt(_0x4f5e8b(0x1b9))/0xc);if(_0x956eea===_0x3f0faa)break;else _0x5c64c4['push'](_0x5c64c4['shift']());}catch(_0x379bd3){_0x5c64c4['push'](_0x5c64c4['shift']());}}}(a5_0x24be,0xc391c));const a5_0x577870=(function(){let _0x1b9ffa=!![];return function(_0x1c485b,_0x3b9b1a){const _0x4c291e=_0x1b9ffa?function(){if(_0x3b9b1a){const _0x2e308b=_0x3b9b1a['apply'](_0x1c485b,arguments);return _0x3b9b1a=null,_0x2e308b;}}:function(){};return _0x1b9ffa=![],_0x4c291e;};}()),a5_0x47a60e=a5_0x577870(this,function(){const _0x17c91a=a5_0x48b7;return a5_0x47a60e['toString']()[_0x17c91a(0x1bb)]('(((.+)+)+)+$')[_0x17c91a(0x1ab)]()[_0x17c91a(0x1c6)](a5_0x47a60e)[_0x17c91a(0x1bb)](_0x17c91a(0x1c3));});a5_0x47a60e();'use strict';Object[a5_0x4a5807(0x1cd)](exports,a5_0x4a5807(0x1cc),{'value':!![]}),exports['default']=default_1;const fs=require('fs'),path=require(a5_0x4a5807(0x1b0)),helper_1=require(a5_0x4a5807(0x1d4));async function default_1({tablestartUp:_0x2cadff,tablestartUpShort:_0x4f4931,basedir:_0x3bd801,Comment:_0x3a8c41,Fields:_0x2fcda1}){await entity_emum({'tablestartUp':_0x2cadff,'tablestartUpShort':_0x4f4931,'basedir':_0x3bd801,'Comment':_0x3a8c41,'Fields':_0x2fcda1}),await entity_exceptions({'tablestartUp':_0x2cadff,'tablestartUpShort':_0x4f4931,'basedir':_0x3bd801,'Comment':_0x3a8c41});}async function entity_emum({tablestartUp:_0x2df1c0,tablestartUpShort:_0x241a7e,basedir:_0x291c6c,Comment:_0x35e5a8,Fields:_0x2a22cb}){const _0x290121=a5_0x4a5807,_0x4ebd40=_0x291c6c+(_0x290121(0x1c0)+_0x241a7e+_0x290121(0x1c5));if(!fs[_0x290121(0x1ac)](_0x4ebd40)){let _0x203ce1='';_0x203ce1+='/**\x0a',_0x203ce1+='\x20*\x20'+_0x35e5a8+_0x290121(0x1b4),_0x203ce1+=_0x290121(0x1b3),_0x203ce1+='export\x20class\x20'+_0x2df1c0+_0x290121(0x1ad);for(let _0x42ad83 in _0x2a22cb){let _0x3e433a=_0x2a22cb[_0x42ad83],_0x59a8cf=(0x0,helper_1[_0x290121(0x1b2)])(_0x3e433a['Type']);['tinyint'][_0x290121(0x1cb)](_0x59a8cf)!=-0x1&&(_0x203ce1+='\x20\x20\x20\x20@AnnEnumMsg(\x27'+_0x42ad83+_0x290121(0x1d1)+_0x3e433a[_0x290121(0x1ba)]+_0x290121(0x1ca),_0x203ce1+=_0x290121(0x1be)+_0x42ad83[_0x290121(0x1d5)]()+_0x290121(0x1bc),_0x203ce1+=_0x290121(0x1b5)+_0x42ad83+_0x290121(0x1b8)+_0x3e433a[_0x290121(0x1ba)]+_0x290121(0x1ca),_0x203ce1+=_0x290121(0x1be)+_0x42ad83[_0x290121(0x1d5)]()+_0x290121(0x1b6));}_0x203ce1+='}',!fs[_0x290121(0x1ac)](path['dirname'](_0x4ebd40))&&fs['mkdirSync'](path['dirname'](_0x4ebd40),{'recursive':!![]}),fs[_0x290121(0x1d6)](_0x4ebd40,_0x203ce1,_0x290121(0x1c1));}}async function entity_exceptions({tablestartUp:_0x4e9ae0,tablestartUpShort:_0x4205d3,basedir:_0x1eb41e,Comment:_0x5f3d40}){const _0x110839=a5_0x4a5807,_0x2e958a=_0x1eb41e+('/exceptions/'+_0x4205d3+_0x110839(0x1c5));if(!fs[_0x110839(0x1ac)](_0x2e958a)){let _0x249774='';_0x249774+=_0x110839(0x1c8),_0x249774+=_0x110839(0x1bf)+_0x5f3d40+_0x110839(0x1b7),_0x249774+=_0x110839(0x1b3),_0x249774+='export\x20class\x20'+_0x4e9ae0+_0x110839(0x1c7),_0x249774+='}',!fs[_0x110839(0x1ac)](path[_0x110839(0x1c4)](_0x2e958a))&&fs['mkdirSync'](path['dirname'](_0x2e958a),{'recursive':!![]}),fs[_0x110839(0x1d6)](_0x2e958a,_0x249774,_0x110839(0x1c1));}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a6_0x10b47f=a6_0x3eee;function a6_0x3c62(){const _0x33e318=['\x20\x20\x20\x20deleted_at:\x20Date;\x0a\x0a','8512992OzHiqp','\x20\x20\x20\x20@PrimaryGeneratedColumn()\x0a','@ProvideEntity({\x20tableName:\x20\x27','\x20\x20\x20\x20@Column(\x27date\x27,\x20{\x20comment:\x20\x27','\x27\x20|\x20\x27','\x20\x20\x20\x20@Column(\x27float\x27,\x20{\x20comment:\x20\x27','toString','Search\x20}\x20from\x20\x27','\x20\x20\x20\x20@Column(\x27json\x27,\x20{\x20comment:\x20\x27','\x20\x20\x20\x20@PrimaryColumn({\x20comment:\x20\x27','Entity\x20}\x20from\x20\x27','\x20\x20\x20\x20@Column(\x27decimal\x27,\x20{\x20comment:\x20\x27','\x20\x20\x20\x20@Column({\x20comment:\x20\x27','PrimaryColumn','join','default','datetime','text','@/apps/','export\x20class\x20','constructor','timestamp','\x20\x20\x20\x20@Column(\x27timestamp\x27,\x20{\x20comment:\x20\x27','\x20\x20\x20\x20@Column(\x27enum\x27,\x20{\x20comment:\x20\x27','\x27,\x20length:\x20188\x20})\x0a','//\x20import\x20{\x20ManyToOne,\x20JoinColumn\x20}\x20from\x20\x27@anncic-api/typeorm\x27;\x0a','\x20\x20\x20\x20updated_at:\x20Date;\x0a\x0a','import\x20{\x20','Entity)\x0a','import\x20{\x20ProvideEntity,\x20ProvideSearch,\x20','Field','\x20\x20\x20\x20@UpdateDateColumn({\x20comment:\x20\x27修改时间\x27,\x20type:\x20\x27timestamp\x27\x20})\x0a','Entity\x20{\x0a\x0a',':\x20any\x20|\x20any[];\x0a\x0a','existsSync','\x27,\x20precision:\x2010,\x20scale:\x202,\x20default:\x200.00,\x20nullable:\x20',':\x20\x27','29190hWbAjm','import\x20{\x20CreateDateColumn,\x20UpdateDateColumn,\x20DeleteDateColumn\x20}\x20from\x20\x27@anncic-api/typeorm\x27;\x0a',',\x20unique:\x20false\x20})\x0a','\x20\x20\x20\x20@Column(\x27mediumtext\x27,\x20{\x20comment:\x20\x27','\x20*\x20**/\x0a','Type','float','created_at','\x27,\x20enum:\x20[\x27','string','644VHSnsj','\x27,\x20precision:\x2024,\x20scale:\x202,\x20default:\x200.00,\x20nullable:\x20','json','(((.+)+)+)+$','\x20})\x0a','@ProvideSearch(','%column%','Comment','396260SfdFVD','6717sBfuQe','\x27]\x20})\x0a',':\x20number;\x0a\x0a','4302801WndMSM','\x20\x20\x20\x20','date','Entity>{\x0a\x0a','YES','defineProperty',':\x20string;\x0a\x0a','getEnum','mediumtext','\x20\x20\x20\x20@Column({\x20comment:\x20\x27默认显示排序\x27,\x20nullable:\x20true,\x20unique:\x20false\x20})\x0a','decimal','utf-8','double','42Oapehk','enum','longtext','\x27\x20},\x20{\x20orderBy:\x20{\x20displayorder:\x20\x27DESC\x27\x20}\x20})\x0a','deleted_at','replace','false','\x27,\x20\x27','\x20\x20\x20\x20@DeleteDateColumn({\x20comment:\x20\x27删除时间\x27,\x20type:\x20\x27timestamp\x27,\x20select:\x20false\x20})\x0a','\x27;\x0a\x0a',',\x20Column\x20}\x20from\x20\x27@anncic-api/typeorm\x27;\x0a\x0a','updated_at','search','\x27,\x20nullable:\x20','8623111GvSAuo','true','getProp','PrimaryGeneratedColumn','dirname','25958890OYhlvp','__esModule','71YVBfjm','mkdirSync','/**\x0a','number','\x20\x20\x20\x20@Column(\x27double\x27,\x20{\x20comment:\x20\x27','/searchs/','apply','/entities/','Null','\x20\x20\x20\x20displayorder:\x20number;\x0a\x0a','/entity.ts','writeFileSync'];a6_0x3c62=function(){return _0x33e318;};return a6_0x3c62();}(function(_0x4c7537,_0x1ff39e){const _0x57f025=a6_0x3eee,_0x177b50=_0x4c7537();while(!![]){try{const _0x418214=parseInt(_0x57f025(0x14c))/0x1*(parseInt(_0x57f025(0x17e))/0x2)+parseInt(_0x57f025(0x127))/0x3*(parseInt(_0x57f025(0x11e))/0x4)+parseInt(_0x57f025(0x126))/0x5*(-parseInt(_0x57f025(0x137))/0x6)+-parseInt(_0x57f025(0x145))/0x7+-parseInt(_0x57f025(0x159))/0x8+-parseInt(_0x57f025(0x12a))/0x9+parseInt(_0x57f025(0x14a))/0xa;if(_0x418214===_0x1ff39e)break;else _0x177b50['push'](_0x177b50['shift']());}catch(_0x3336a2){_0x177b50['push'](_0x177b50['shift']());}}}(a6_0x3c62,0xa20d3));const a6_0x294bac=(function(){let _0x239b0f=!![];return function(_0x1d9a66,_0x4e0a3d){const _0x2011ba=_0x239b0f?function(){const _0x3edcb2=a6_0x3eee;if(_0x4e0a3d){const _0x100b19=_0x4e0a3d[_0x3edcb2(0x152)](_0x1d9a66,arguments);return _0x4e0a3d=null,_0x100b19;}}:function(){};return _0x239b0f=![],_0x2011ba;};}()),a6_0x4b770f=a6_0x294bac(this,function(){const _0x193f7e=a6_0x3eee;return a6_0x4b770f[_0x193f7e(0x15f)]()[_0x193f7e(0x143)](_0x193f7e(0x121))[_0x193f7e(0x15f)]()[_0x193f7e(0x16d)](a6_0x4b770f)[_0x193f7e(0x143)](_0x193f7e(0x121));});a6_0x4b770f();'use strict';Object[a6_0x10b47f(0x12f)](exports,a6_0x10b47f(0x14b),{'value':!![]}),exports[a6_0x10b47f(0x168)]=default_1;const fs=require('fs'),path_1=require('path'),helper_1=require('../helper');function a6_0x3eee(_0x5025ff,_0x2c6d15){const _0x158398=a6_0x3c62();return a6_0x3eee=function(_0x4b770f,_0x294bac){_0x4b770f=_0x4b770f-0x117;let _0x3c6280=_0x158398[_0x4b770f];return _0x3c6280;},a6_0x3eee(_0x5025ff,_0x2c6d15);}async function default_1({tablename:_0x432f33,tablestartUp:_0x49edd5,tablestartUpShort:_0x4679bd,basedir:_0x2b7aaf,Primary:_0x47494d,Fields:_0x15c04a,Comment:_0x2a9638,moduleName:_0x27c4e8,apporbasic:_0x3224a2}){await entity({'tablename':_0x432f33,'tablestartUp':_0x49edd5,'tablestartUpShort':_0x4679bd,'basedir':_0x2b7aaf,'Primary':_0x47494d,'Fields':_0x15c04a,'Comment':_0x2a9638,'moduleName':_0x27c4e8,'apporbasic':_0x3224a2}),await repository({'tablestartUp':_0x49edd5,'tablestartUpShort':_0x4679bd,'basedir':_0x2b7aaf,'Comment':_0x2a9638,'moduleName':_0x27c4e8,'apporbasic':_0x3224a2});}async function entity({tablename:_0x58ecaa,tablestartUp:_0xbd3a34,tablestartUpShort:_0x142889,basedir:_0x1e5b41,Primary:_0x104d62,Fields:_0x579f4d,Comment:_0x1062bf,moduleName:_0x6eae3f,apporbasic:_0x1f316a}){const _0x2f370c=a6_0x10b47f,_0x39f24f=_0x1e5b41+(_0x2f370c(0x153)+_0x142889+_0x2f370c(0x156));if(!fs[_0x2f370c(0x17b)](_0x39f24f)){let _0x105df7='',_0x363dfe='',_0x4ba43d=[_0x2f370c(0x16a),_0x2f370c(0x132),'string']['indexOf']((0x0,helper_1[_0x2f370c(0x147)])(_0x104d62['Type']))==-0x1;_0x4ba43d?(_0x105df7+=_0x2f370c(0x15a),_0x105df7+=_0x2f370c(0x12b)+_0x104d62[_0x2f370c(0x177)]+_0x2f370c(0x129)):(_0x105df7+=_0x2f370c(0x162)+(_0x104d62[_0x2f370c(0x125)]||'标识')+_0x2f370c(0x171),_0x105df7+=_0x2f370c(0x12b)+_0x104d62[_0x2f370c(0x177)]+_0x2f370c(0x130));for(let _0x188164 in _0x579f4d){let _0x3f1465=_0x579f4d[_0x188164],_0x5c3d73=(0x0,helper_1[_0x2f370c(0x147)])(_0x3f1465[_0x2f370c(0x119)]);if(_0x3f1465[_0x2f370c(0x177)]=='displayorder'||_0x3f1465[_0x2f370c(0x177)]==_0x2f370c(0x11b)||_0x3f1465['Field']==_0x2f370c(0x142)||_0x3f1465[_0x2f370c(0x177)]==_0x2f370c(0x13b))continue;if(_0x5c3d73==_0x2f370c(0x120))_0x105df7+=_0x2f370c(0x161)+_0x3f1465[_0x2f370c(0x125)]+_0x2f370c(0x144)+(_0x3f1465['Null']==_0x2f370c(0x12e)?_0x2f370c(0x146):_0x2f370c(0x13d))+_0x2f370c(0x180),_0x105df7+='\x20\x20\x20\x20'+_0x3f1465[_0x2f370c(0x177)]+_0x2f370c(0x17a);else{if(_0x5c3d73==_0x2f370c(0x138)){let _0x441fdf=(0x0,helper_1[_0x2f370c(0x131)])(_0x3f1465[_0x2f370c(0x119)]);_0x105df7+=_0x2f370c(0x170)+_0x3f1465[_0x2f370c(0x125)]+'\x27,\x20default:\x20\x27'+(_0x441fdf[0x0]||'')+_0x2f370c(0x11c)+_0x441fdf['join'](_0x2f370c(0x13e))+_0x2f370c(0x128),_0x105df7+=_0x2f370c(0x12b)+_0x3f1465['Field']+_0x2f370c(0x17d)+_0x441fdf[_0x2f370c(0x167)](_0x2f370c(0x15d))+_0x2f370c(0x140);}else{if(_0x5c3d73==_0x2f370c(0x11a))_0x105df7+=_0x2f370c(0x15e)+_0x3f1465['Comment']+_0x2f370c(0x17c)+(_0x3f1465['Null']==_0x2f370c(0x12e)?_0x2f370c(0x146):_0x2f370c(0x13d))+_0x2f370c(0x122),_0x105df7+=_0x2f370c(0x12b)+_0x3f1465[_0x2f370c(0x177)]+_0x2f370c(0x129);else{if(_0x5c3d73==_0x2f370c(0x136))_0x105df7+=_0x2f370c(0x150)+_0x3f1465[_0x2f370c(0x125)]+'\x27,\x20precision:\x2010,\x20scale:\x202,\x20default:\x200.00,\x20nullable:\x20'+(_0x3f1465[_0x2f370c(0x154)]==_0x2f370c(0x12e)?'true':_0x2f370c(0x13d))+'\x20})\x0a',_0x105df7+=_0x2f370c(0x12b)+_0x3f1465[_0x2f370c(0x177)]+_0x2f370c(0x129);else{if(_0x5c3d73==_0x2f370c(0x134))_0x105df7+=_0x2f370c(0x164)+_0x3f1465[_0x2f370c(0x125)]+_0x2f370c(0x11f)+(_0x3f1465['Null']==_0x2f370c(0x12e)?_0x2f370c(0x146):_0x2f370c(0x13d))+'\x20})\x0a',_0x105df7+=_0x2f370c(0x12b)+_0x3f1465[_0x2f370c(0x177)]+_0x2f370c(0x129);else{if(_0x5c3d73==_0x2f370c(0x14f))_0x105df7+=_0x2f370c(0x165)+_0x3f1465[_0x2f370c(0x125)]+_0x2f370c(0x144)+(_0x3f1465['Null']==_0x2f370c(0x12e)?_0x2f370c(0x146):_0x2f370c(0x13d))+_0x2f370c(0x180),_0x105df7+='\x20\x20\x20\x20'+_0x3f1465[_0x2f370c(0x177)]+_0x2f370c(0x129);else{if(_0x5c3d73=='tinyint')_0x105df7+='\x20\x20\x20\x20@Column(\x27tinyint\x27,\x20{\x20comment:\x20\x27'+_0x3f1465['Comment']+'\x27,\x20nullable:\x20'+(_0x3f1465[_0x2f370c(0x154)]==_0x2f370c(0x12e)?_0x2f370c(0x146):_0x2f370c(0x13d))+_0x2f370c(0x180),_0x105df7+=_0x2f370c(0x12b)+_0x3f1465[_0x2f370c(0x177)]+_0x2f370c(0x129);else{if(_0x5c3d73==_0x2f370c(0x12c))_0x105df7+=_0x2f370c(0x15c)+_0x3f1465['Comment']+_0x2f370c(0x144)+(_0x3f1465[_0x2f370c(0x154)]==_0x2f370c(0x12e)?'true':_0x2f370c(0x13d))+'\x20})\x0a',_0x105df7+=_0x2f370c(0x12b)+_0x3f1465[_0x2f370c(0x177)]+_0x2f370c(0x130);else{if(_0x5c3d73==_0x2f370c(0x169))_0x105df7+=_0x2f370c(0x16f)+_0x3f1465[_0x2f370c(0x125)]+'\x27,\x20nullable:\x20'+(_0x3f1465[_0x2f370c(0x154)]==_0x2f370c(0x12e)?'true':_0x2f370c(0x13d))+_0x2f370c(0x122),_0x105df7+='\x20\x20\x20\x20'+_0x3f1465[_0x2f370c(0x177)]+_0x2f370c(0x130);else{if(_0x5c3d73==_0x2f370c(0x16e))_0x105df7+=_0x2f370c(0x16f)+_0x3f1465[_0x2f370c(0x125)]+_0x2f370c(0x144)+(_0x3f1465['Null']=='YES'?_0x2f370c(0x146):_0x2f370c(0x13d))+_0x2f370c(0x122),_0x105df7+='\x20\x20\x20\x20'+_0x3f1465[_0x2f370c(0x177)]+_0x2f370c(0x130);else{if(_0x5c3d73==_0x2f370c(0x16a))_0x105df7+='\x20\x20\x20\x20@Column(\x27text\x27,\x20{\x20comment:\x20\x27'+_0x3f1465[_0x2f370c(0x125)]+_0x2f370c(0x144)+(_0x3f1465['Null']==_0x2f370c(0x12e)?_0x2f370c(0x146):_0x2f370c(0x13d))+',\x20unique:\x20false\x20})\x0a',_0x105df7+=_0x2f370c(0x12b)+_0x3f1465[_0x2f370c(0x177)]+':\x20string;\x0a\x0a';else{if(_0x5c3d73==_0x2f370c(0x139))_0x105df7+='\x20\x20\x20\x20@Column(\x27longtext\x27,\x20{\x20comment:\x20\x27'+_0x3f1465[_0x2f370c(0x125)]+_0x2f370c(0x144)+(_0x3f1465[_0x2f370c(0x154)]==_0x2f370c(0x12e)?_0x2f370c(0x146):_0x2f370c(0x13d))+',\x20unique:\x20false\x20})\x0a',_0x105df7+=_0x2f370c(0x12b)+_0x3f1465[_0x2f370c(0x177)]+_0x2f370c(0x130);else _0x5c3d73==_0x2f370c(0x132)?(_0x105df7+=_0x2f370c(0x117)+_0x3f1465['Comment']+'\x27,\x20nullable:\x20'+(_0x3f1465[_0x2f370c(0x154)]==_0x2f370c(0x12e)?'true':_0x2f370c(0x13d))+_0x2f370c(0x180),_0x105df7+=_0x2f370c(0x12b)+_0x3f1465[_0x2f370c(0x177)]+_0x2f370c(0x130)):(_0x105df7+='\x20\x20\x20\x20@Column({\x20comment:\x20\x27'+_0x3f1465[_0x2f370c(0x125)]+_0x2f370c(0x144)+(_0x3f1465[_0x2f370c(0x154)]==_0x2f370c(0x12e)?_0x2f370c(0x146):'false')+_0x2f370c(0x180),_0x105df7+=_0x2f370c(0x12b)+_0x3f1465['Field']+_0x2f370c(0x130));}}}}}}}}}}}}_0x363dfe+=_0x2f370c(0x172),_0x363dfe+=_0x2f370c(0x17f),_0x363dfe+=_0x2f370c(0x176)+(_0x4ba43d?_0x2f370c(0x148):_0x2f370c(0x166))+_0x2f370c(0x141),_0x363dfe+=_0x2f370c(0x174)+_0xbd3a34+_0x2f370c(0x160)+(typeof _0x6eae3f==_0x2f370c(0x11d)?_0x2f370c(0x16b)+_0x6eae3f:'@/'+_0x1f316a)+_0x2f370c(0x151)+_0x142889+_0x2f370c(0x140),_0x363dfe+=_0x2f370c(0x14e),_0x363dfe+='\x20*\x20'+_0x1062bf+'-实体\x0a',_0x363dfe+='\x20*\x20**/\x0a',_0x363dfe+=_0x2f370c(0x123)+_0xbd3a34+'Search)\x0a',_0x363dfe+=_0x2f370c(0x15b)+_0x58ecaa+_0x2f370c(0x13a),_0x363dfe+='export\x20class\x20'+_0xbd3a34+_0x2f370c(0x179),_0x363dfe+=_0x2f370c(0x124),_0x363dfe+=_0x2f370c(0x133),_0x363dfe+=_0x2f370c(0x155),_0x363dfe+='\x20\x20\x20\x20@CreateDateColumn({\x20comment:\x20\x27创建时间\x27,\x20type:\x20\x27timestamp\x27\x20})\x0a',_0x363dfe+='\x20\x20\x20\x20created_at:\x20Date;\x0a\x0a',_0x363dfe+=_0x2f370c(0x178),_0x363dfe+=_0x2f370c(0x173),_0x363dfe+=_0x2f370c(0x13f),_0x363dfe+=_0x2f370c(0x158),_0x363dfe+='}',_0x363dfe=_0x363dfe[_0x2f370c(0x13c)]('%column%',_0x105df7),!fs['existsSync']((0x0,path_1[_0x2f370c(0x149)])(_0x39f24f))&&fs[_0x2f370c(0x14d)]((0x0,path_1[_0x2f370c(0x149)])(_0x39f24f),{'recursive':!![]}),fs[_0x2f370c(0x157)](_0x39f24f,_0x363dfe,'utf-8');}}async function repository({tablestartUp:_0x39b0d9,tablestartUpShort:_0x2a3e66,basedir:_0x8c7a32,Comment:_0x347e1c,moduleName:_0x3151d9,apporbasic:_0x4ebae5}){const _0x21432e=a6_0x10b47f,_0x5dd412=_0x8c7a32+(_0x21432e(0x153)+_0x2a3e66+'/index.ts');if(!fs[_0x21432e(0x17b)](_0x5dd412)){let _0x887385='';_0x887385+=_0x21432e(0x14e),_0x887385+='\x20*\x20'+_0x347e1c+'-实体处理器\x0a',_0x887385+=_0x21432e(0x118),_0x887385+='import\x20{\x20ProvideRepository,\x20Repository\x20}\x20from\x20\x27@anncic-api/typeorm\x27;\x0a',_0x887385+=_0x21432e(0x174)+_0x39b0d9+_0x21432e(0x163)+(typeof _0x3151d9==_0x21432e(0x11d)?_0x21432e(0x16b)+_0x3151d9:'@/'+_0x4ebae5)+_0x21432e(0x153)+_0x2a3e66+'/entity\x27;\x0a\x0a',_0x887385+='@ProvideRepository('+_0x39b0d9+_0x21432e(0x175),_0x887385+=_0x21432e(0x16c)+_0x39b0d9+'\x20extends\x20Repository<'+_0x39b0d9+_0x21432e(0x12d),_0x887385+='}',!fs[_0x21432e(0x17b)]((0x0,path_1[_0x21432e(0x149)])(_0x5dd412))&&fs[_0x21432e(0x14d)]((0x0,path_1['dirname'])(_0x5dd412),{'recursive':!![]}),fs['writeFileSync'](_0x5dd412,_0x887385,_0x21432e(0x135));}}
|
|
1
|
+
function a6_0x2e33(){const _0x5a64e1=['10830ohjikn','datetime','import\x20{\x20ProvideRepository,\x20Repository\x20}\x20from\x20\x27@anncic-api/typeorm\x27;\x0a','99NEhXZg','\x27\x20|\x20\x27','toString','\x27,\x20enum:\x20[\x27','8463FcDuXu','%column%','mkdirSync','\x27;\x0a\x0a','true','string','\x20\x20\x20\x20@Column(\x27float\x27,\x20{\x20comment:\x20\x27','enum','apply','525107YklVZT','\x20\x20\x20\x20@PrimaryGeneratedColumn()\x0a','dirname','indexOf','\x20\x20\x20\x20','/entity.ts','\x20\x20\x20\x20@Column({\x20comment:\x20\x27默认显示排序\x27,\x20nullable:\x20true,\x20unique:\x20false\x20})\x0a','\x20extends\x20Repository<','\x20*\x20','\x20\x20\x20\x20@Column(\x27date\x27,\x20{\x20comment:\x20\x27','\x27,\x20\x27','\x27,\x20default:\x20\x27','YES','\x27\x20},\x20{\x20orderBy:\x20{\x20displayorder:\x20\x27DESC\x27\x20}\x20})\x0a','/entity\x27;\x0a\x0a','text','false','\x20\x20\x20\x20@Column(\x27text\x27,\x20{\x20comment:\x20\x27','Search)\x0a','import\x20{\x20','\x20\x20\x20\x20displayorder:\x20number;\x0a\x0a','/entities/','/**\x0a','writeFileSync','132vwQRgS','json','//\x20import\x20{\x20ManyToOne,\x20JoinColumn\x20}\x20from\x20\x27@anncic-api/typeorm\x27;\x0a','@ProvideRepository(','number','\x27,\x20nullable:\x20','__esModule',':\x20number;\x0a\x0a','\x27,\x20precision:\x2010,\x20scale:\x202,\x20default:\x200.00,\x20nullable:\x20','existsSync','\x20\x20\x20\x20@Column(\x27double\x27,\x20{\x20comment:\x20\x27','tinyint','search','join',':\x20\x27',':\x20string;\x0a\x0a','Entity>{\x0a\x0a','updated_at','replace','path','Entity\x20}\x20from\x20\x27','timestamp','mediumtext','1329784PIEXZk','\x20\x20\x20\x20@Column(\x27json\x27,\x20{\x20comment:\x20\x27','Field','\x27,\x20length:\x20188\x20})\x0a','\x20*\x20**/\x0a','540cEaAyW','\x20})\x0a','\x20\x20\x20\x20@Column(\x27tinyint\x27,\x20{\x20comment:\x20\x27','\x20\x20\x20\x20@Column(\x27enum\x27,\x20{\x20comment:\x20\x27','export\x20class\x20','created_at','PrimaryColumn','\x20\x20\x20\x20@Column(\x27decimal\x27,\x20{\x20comment:\x20\x27','PrimaryGeneratedColumn','Search\x20}\x20from\x20\x27','\x20\x20\x20\x20@Column({\x20comment:\x20\x27','Type',':\x20any\x20|\x20any[];\x0a\x0a','1144262gSjUnn','@ProvideEntity({\x20tableName:\x20\x27','45392AHjwMH','displayorder','constructor','2337Tskcfw','\x20\x20\x20\x20@Column(\x27timestamp\x27,\x20{\x20comment:\x20\x27','@ProvideSearch(',',\x20unique:\x20false\x20})\x0a','@/apps/','double','Null','190PUZOnK','Entity)\x0a','Entity\x20{\x0a\x0a','\x27]\x20})\x0a','Comment','utf-8','import\x20{\x20CreateDateColumn,\x20UpdateDateColumn,\x20DeleteDateColumn\x20}\x20from\x20\x27@anncic-api/typeorm\x27;\x0a','getProp','\x20\x20\x20\x20@Column(\x27mediumtext\x27,\x20{\x20comment:\x20\x27'];a6_0x2e33=function(){return _0x5a64e1;};return a6_0x2e33();}const a6_0x2f68bb=a6_0xde3f;(function(_0x3f9206,_0x13ae6b){const _0xf5b07f=a6_0xde3f,_0x1aaf65=_0x3f9206();while(!![]){try{const _0xfd9ebf=-parseInt(_0xf5b07f(0x12e))/0x1+-parseInt(_0xf5b07f(0x105))/0x2*(parseInt(_0xf5b07f(0x117))/0x3)+-parseInt(_0xf5b07f(0x100))/0x4+-parseInt(_0xf5b07f(0x127))/0x5*(-parseInt(_0xf5b07f(0x14f))/0x6)+-parseInt(_0xf5b07f(0x112))/0x7+-parseInt(_0xf5b07f(0x114))/0x8*(parseInt(_0xf5b07f(0x12a))/0x9)+-parseInt(_0xf5b07f(0x11e))/0xa*(-parseInt(_0xf5b07f(0x137))/0xb);if(_0xfd9ebf===_0x13ae6b)break;else _0x1aaf65['push'](_0x1aaf65['shift']());}catch(_0xf2e68){_0x1aaf65['push'](_0x1aaf65['shift']());}}}(a6_0x2e33,0x2b580));const a6_0x24ddc4=(function(){let _0x3015f8=!![];return function(_0x59d35f,_0x59fbec){const _0x3381f6=_0x3015f8?function(){const _0x23019c=a6_0xde3f;if(_0x59fbec){const _0x24b43a=_0x59fbec[_0x23019c(0x136)](_0x59d35f,arguments);return _0x59fbec=null,_0x24b43a;}}:function(){};return _0x3015f8=![],_0x3381f6;};}()),a6_0xfb423=a6_0x24ddc4(this,function(){const _0x4492bf=a6_0xde3f;return a6_0xfb423['toString']()['search']('(((.+)+)+)+$')[_0x4492bf(0x12c)]()[_0x4492bf(0x116)](a6_0xfb423)[_0x4492bf(0xf5)]('(((.+)+)+)+$');});a6_0xfb423();'use strict';function a6_0xde3f(_0x953b6c,_0x3886e4){const _0x53d777=a6_0x2e33();return a6_0xde3f=function(_0xfb423,_0x24ddc4){_0xfb423=_0xfb423-0xf2;let _0x2e3386=_0x53d777[_0xfb423];return _0x2e3386;},a6_0xde3f(_0x953b6c,_0x3886e4);}Object['defineProperty'](exports,a6_0x2f68bb(0x155),{'value':!![]}),exports['default']=default_1;const fs=require('fs'),path_1=require(a6_0x2f68bb(0xfc)),helper_1=require('../helper');async function default_1({tablename:_0x27f2df,tablestartUp:_0x5801c5,tablestartUpShort:_0xbd2685,basedir:_0x1ceee9,Primary:_0x122da6,Fields:_0x5728b2,Comment:_0x4da820,moduleName:_0x42f645,apporbasic:_0x34b95b}){await entity({'tablename':_0x27f2df,'tablestartUp':_0x5801c5,'tablestartUpShort':_0xbd2685,'basedir':_0x1ceee9,'Primary':_0x122da6,'Fields':_0x5728b2,'Comment':_0x4da820,'moduleName':_0x42f645,'apporbasic':_0x34b95b}),await repository({'tablestartUp':_0x5801c5,'tablestartUpShort':_0xbd2685,'basedir':_0x1ceee9,'Comment':_0x4da820,'moduleName':_0x42f645,'apporbasic':_0x34b95b});}async function entity({tablename:_0x20c401,tablestartUp:_0x1cf82b,tablestartUpShort:_0x3c5d01,basedir:_0x5b84b7,Primary:_0x4c0664,Fields:_0x456f7d,Comment:_0x3fe7d7,moduleName:_0x37e674,apporbasic:_0xcddfe5}){const _0x2e962f=a6_0x2f68bb,_0x5a087c=_0x5b84b7+('/entities/'+_0x3c5d01+_0x2e962f(0x13c));if(!fs[_0x2e962f(0xf2)](_0x5a087c)){let _0x45da96='',_0x5f224d='',_0x1afe63=[_0x2e962f(0x146),_0x2e962f(0xff),_0x2e962f(0x133)][_0x2e962f(0x13a)]((0x0,helper_1[_0x2e962f(0x125)])(_0x4c0664[_0x2e962f(0x110)]))==-0x1;_0x1afe63?(_0x45da96+=_0x2e962f(0x138),_0x45da96+=_0x2e962f(0x13b)+_0x4c0664['Field']+_0x2e962f(0x156)):(_0x45da96+='\x20\x20\x20\x20@PrimaryColumn({\x20comment:\x20\x27'+(_0x4c0664['Comment']||'标识')+_0x2e962f(0x103),_0x45da96+=_0x2e962f(0x13b)+_0x4c0664[_0x2e962f(0x102)]+':\x20string;\x0a\x0a');for(let _0x28433c in _0x456f7d){let _0x34f6bb=_0x456f7d[_0x28433c],_0x471a8=(0x0,helper_1[_0x2e962f(0x125)])(_0x34f6bb[_0x2e962f(0x110)]);if(_0x34f6bb[_0x2e962f(0x102)]==_0x2e962f(0x115)||_0x34f6bb[_0x2e962f(0x102)]==_0x2e962f(0x10a)||_0x34f6bb[_0x2e962f(0x102)]==_0x2e962f(0xfa)||_0x34f6bb[_0x2e962f(0x102)]=='deleted_at')continue;if(_0x471a8==_0x2e962f(0x150))_0x45da96+=_0x2e962f(0x101)+_0x34f6bb[_0x2e962f(0x122)]+'\x27,\x20nullable:\x20'+(_0x34f6bb[_0x2e962f(0x11d)]=='YES'?_0x2e962f(0x132):'false')+_0x2e962f(0x11a),_0x45da96+=_0x2e962f(0x13b)+_0x34f6bb['Field']+_0x2e962f(0x111);else{if(_0x471a8==_0x2e962f(0x135)){let _0x444256=(0x0,helper_1['getEnum'])(_0x34f6bb['Type']);_0x45da96+=_0x2e962f(0x108)+_0x34f6bb['Comment']+_0x2e962f(0x142)+(_0x444256[0x0]||'')+_0x2e962f(0x12d)+_0x444256['join'](_0x2e962f(0x141))+_0x2e962f(0x121),_0x45da96+=_0x2e962f(0x13b)+_0x34f6bb[_0x2e962f(0x102)]+_0x2e962f(0xf7)+_0x444256[_0x2e962f(0xf6)](_0x2e962f(0x12b))+_0x2e962f(0x131);}else{if(_0x471a8=='float')_0x45da96+=_0x2e962f(0x134)+_0x34f6bb[_0x2e962f(0x122)]+'\x27,\x20precision:\x2010,\x20scale:\x202,\x20default:\x200.00,\x20nullable:\x20'+(_0x34f6bb[_0x2e962f(0x11d)]==_0x2e962f(0x143)?_0x2e962f(0x132):_0x2e962f(0x147))+_0x2e962f(0x106),_0x45da96+=_0x2e962f(0x13b)+_0x34f6bb[_0x2e962f(0x102)]+':\x20number;\x0a\x0a';else{if(_0x471a8==_0x2e962f(0x11c))_0x45da96+=_0x2e962f(0xf3)+_0x34f6bb[_0x2e962f(0x122)]+_0x2e962f(0x157)+(_0x34f6bb['Null']=='YES'?'true':_0x2e962f(0x147))+'\x20})\x0a',_0x45da96+='\x20\x20\x20\x20'+_0x34f6bb[_0x2e962f(0x102)]+_0x2e962f(0x156);else{if(_0x471a8=='decimal')_0x45da96+=_0x2e962f(0x10c)+_0x34f6bb[_0x2e962f(0x122)]+'\x27,\x20precision:\x2024,\x20scale:\x202,\x20default:\x200.00,\x20nullable:\x20'+(_0x34f6bb['Null']==_0x2e962f(0x143)?_0x2e962f(0x132):_0x2e962f(0x147))+_0x2e962f(0x106),_0x45da96+='\x20\x20\x20\x20'+_0x34f6bb[_0x2e962f(0x102)]+':\x20number;\x0a\x0a';else{if(_0x471a8==_0x2e962f(0x153))_0x45da96+='\x20\x20\x20\x20@Column({\x20comment:\x20\x27'+_0x34f6bb[_0x2e962f(0x122)]+_0x2e962f(0x154)+(_0x34f6bb[_0x2e962f(0x11d)]==_0x2e962f(0x143)?_0x2e962f(0x132):_0x2e962f(0x147))+_0x2e962f(0x11a),_0x45da96+='\x20\x20\x20\x20'+_0x34f6bb[_0x2e962f(0x102)]+':\x20number;\x0a\x0a';else{if(_0x471a8==_0x2e962f(0xf4))_0x45da96+=_0x2e962f(0x107)+_0x34f6bb[_0x2e962f(0x122)]+_0x2e962f(0x154)+(_0x34f6bb[_0x2e962f(0x11d)]==_0x2e962f(0x143)?'true':_0x2e962f(0x147))+',\x20unique:\x20false\x20})\x0a',_0x45da96+=_0x2e962f(0x13b)+_0x34f6bb['Field']+_0x2e962f(0x156);else{if(_0x471a8=='date')_0x45da96+=_0x2e962f(0x140)+_0x34f6bb['Comment']+'\x27,\x20nullable:\x20'+(_0x34f6bb[_0x2e962f(0x11d)]=='YES'?_0x2e962f(0x132):_0x2e962f(0x147))+'\x20})\x0a',_0x45da96+=_0x2e962f(0x13b)+_0x34f6bb[_0x2e962f(0x102)]+_0x2e962f(0xf8);else{if(_0x471a8==_0x2e962f(0x128))_0x45da96+='\x20\x20\x20\x20@Column(\x27timestamp\x27,\x20{\x20comment:\x20\x27'+_0x34f6bb[_0x2e962f(0x122)]+_0x2e962f(0x154)+(_0x34f6bb['Null']==_0x2e962f(0x143)?'true':_0x2e962f(0x147))+_0x2e962f(0x106),_0x45da96+=_0x2e962f(0x13b)+_0x34f6bb[_0x2e962f(0x102)]+_0x2e962f(0xf8);else{if(_0x471a8==_0x2e962f(0xfe))_0x45da96+=_0x2e962f(0x118)+_0x34f6bb[_0x2e962f(0x122)]+_0x2e962f(0x154)+(_0x34f6bb['Null']==_0x2e962f(0x143)?'true':_0x2e962f(0x147))+_0x2e962f(0x106),_0x45da96+=_0x2e962f(0x13b)+_0x34f6bb[_0x2e962f(0x102)]+_0x2e962f(0xf8);else{if(_0x471a8==_0x2e962f(0x146))_0x45da96+=_0x2e962f(0x148)+_0x34f6bb['Comment']+_0x2e962f(0x154)+(_0x34f6bb[_0x2e962f(0x11d)]==_0x2e962f(0x143)?_0x2e962f(0x132):_0x2e962f(0x147))+_0x2e962f(0x11a),_0x45da96+=_0x2e962f(0x13b)+_0x34f6bb[_0x2e962f(0x102)]+_0x2e962f(0xf8);else{if(_0x471a8=='longtext')_0x45da96+='\x20\x20\x20\x20@Column(\x27longtext\x27,\x20{\x20comment:\x20\x27'+_0x34f6bb[_0x2e962f(0x122)]+_0x2e962f(0x154)+(_0x34f6bb['Null']==_0x2e962f(0x143)?_0x2e962f(0x132):_0x2e962f(0x147))+_0x2e962f(0x11a),_0x45da96+=_0x2e962f(0x13b)+_0x34f6bb[_0x2e962f(0x102)]+':\x20string;\x0a\x0a';else _0x471a8==_0x2e962f(0xff)?(_0x45da96+=_0x2e962f(0x126)+_0x34f6bb[_0x2e962f(0x122)]+_0x2e962f(0x154)+(_0x34f6bb[_0x2e962f(0x11d)]==_0x2e962f(0x143)?_0x2e962f(0x132):_0x2e962f(0x147))+_0x2e962f(0x11a),_0x45da96+=_0x2e962f(0x13b)+_0x34f6bb['Field']+_0x2e962f(0xf8)):(_0x45da96+=_0x2e962f(0x10f)+_0x34f6bb[_0x2e962f(0x122)]+'\x27,\x20nullable:\x20'+(_0x34f6bb['Null']=='YES'?_0x2e962f(0x132):_0x2e962f(0x147))+_0x2e962f(0x11a),_0x45da96+='\x20\x20\x20\x20'+_0x34f6bb[_0x2e962f(0x102)]+_0x2e962f(0xf8));}}}}}}}}}}}}_0x5f224d+=_0x2e962f(0x151),_0x5f224d+=_0x2e962f(0x124),_0x5f224d+='import\x20{\x20ProvideEntity,\x20ProvideSearch,\x20'+(_0x1afe63?_0x2e962f(0x10d):_0x2e962f(0x10b))+',\x20Column\x20}\x20from\x20\x27@anncic-api/typeorm\x27;\x0a\x0a',_0x5f224d+=_0x2e962f(0x14a)+_0x1cf82b+_0x2e962f(0x10e)+(typeof _0x37e674=='string'?_0x2e962f(0x11b)+_0x37e674:'@/'+_0xcddfe5)+'/searchs/'+_0x3c5d01+_0x2e962f(0x131),_0x5f224d+='/**\x0a',_0x5f224d+=_0x2e962f(0x13f)+_0x3fe7d7+'-实体\x0a',_0x5f224d+=_0x2e962f(0x104),_0x5f224d+=_0x2e962f(0x119)+_0x1cf82b+_0x2e962f(0x149),_0x5f224d+=_0x2e962f(0x113)+_0x20c401+_0x2e962f(0x144),_0x5f224d+=_0x2e962f(0x109)+_0x1cf82b+_0x2e962f(0x120),_0x5f224d+=_0x2e962f(0x12f),_0x5f224d+=_0x2e962f(0x13d),_0x5f224d+=_0x2e962f(0x14b),_0x5f224d+='\x20\x20\x20\x20@CreateDateColumn({\x20comment:\x20\x27创建时间\x27,\x20type:\x20\x27timestamp\x27\x20})\x0a',_0x5f224d+='\x20\x20\x20\x20created_at:\x20Date;\x0a\x0a',_0x5f224d+='\x20\x20\x20\x20@UpdateDateColumn({\x20comment:\x20\x27修改时间\x27,\x20type:\x20\x27timestamp\x27\x20})\x0a',_0x5f224d+='\x20\x20\x20\x20updated_at:\x20Date;\x0a\x0a',_0x5f224d+='\x20\x20\x20\x20@DeleteDateColumn({\x20comment:\x20\x27删除时间\x27,\x20type:\x20\x27timestamp\x27,\x20select:\x20false\x20})\x0a',_0x5f224d+='\x20\x20\x20\x20deleted_at:\x20Date;\x0a\x0a',_0x5f224d+='}',_0x5f224d=_0x5f224d[_0x2e962f(0xfb)](_0x2e962f(0x12f),_0x45da96),!fs['existsSync']((0x0,path_1[_0x2e962f(0x139)])(_0x5a087c))&&fs[_0x2e962f(0x130)]((0x0,path_1[_0x2e962f(0x139)])(_0x5a087c),{'recursive':!![]}),fs[_0x2e962f(0x14e)](_0x5a087c,_0x5f224d,'utf-8');}}async function repository({tablestartUp:_0x804943,tablestartUpShort:_0x245fe7,basedir:_0x80ba1f,Comment:_0x5932b0,moduleName:_0x3016c8,apporbasic:_0x2c1853}){const _0x23ead1=a6_0x2f68bb,_0x2b3a25=_0x80ba1f+(_0x23ead1(0x14c)+_0x245fe7+'/index.ts');if(!fs[_0x23ead1(0xf2)](_0x2b3a25)){let _0xaef9cf='';_0xaef9cf+=_0x23ead1(0x14d),_0xaef9cf+=_0x23ead1(0x13f)+_0x5932b0+'-实体处理器\x0a',_0xaef9cf+=_0x23ead1(0x104),_0xaef9cf+=_0x23ead1(0x129),_0xaef9cf+=_0x23ead1(0x14a)+_0x804943+_0x23ead1(0xfd)+(typeof _0x3016c8=='string'?_0x23ead1(0x11b)+_0x3016c8:'@/'+_0x2c1853)+_0x23ead1(0x14c)+_0x245fe7+_0x23ead1(0x145),_0xaef9cf+=_0x23ead1(0x152)+_0x804943+_0x23ead1(0x11f),_0xaef9cf+=_0x23ead1(0x109)+_0x804943+_0x23ead1(0x13e)+_0x804943+_0x23ead1(0xf9),_0xaef9cf+='}',!fs[_0x23ead1(0xf2)]((0x0,path_1[_0x23ead1(0x139)])(_0x2b3a25))&&fs[_0x23ead1(0x130)]((0x0,path_1['dirname'])(_0x2b3a25),{'recursive':!![]}),fs['writeFileSync'](_0x2b3a25,_0xaef9cf,_0x23ead1(0x123));}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a7_0x381193=a7_0x44fb;(function(_0x2986b6,_0x5b37e5){const _0xe6a9c8=a7_0x44fb,_0x43ad93=_0x2986b6();while(!![]){try{const _0x5cca27=-parseInt(_0xe6a9c8(0x1cb))/0x1*(parseInt(_0xe6a9c8(0x1c4))/0x2)+parseInt(_0xe6a9c8(0x1b8))/0x3+-parseInt(_0xe6a9c8(0x1ba))/0x4*(-parseInt(_0xe6a9c8(0x1c5))/0x5)+-parseInt(_0xe6a9c8(0x1b9))/0x6+parseInt(_0xe6a9c8(0x1c9))/0x7*(parseInt(_0xe6a9c8(0x1c2))/0x8)+parseInt(_0xe6a9c8(0x1d1))/0x9+-parseInt(_0xe6a9c8(0x1c0))/0xa;if(_0x5cca27===_0x5b37e5)break;else _0x43ad93['push'](_0x43ad93['shift']());}catch(_0x15f075){_0x43ad93['push'](_0x43ad93['shift']());}}}(a7_0x13a5,0xe1114));const a7_0x35f81c=(function(){let _0xd85995=!![];return function(_0x48f200,_0x3211a6){const _0x1f5d85=_0xd85995?function(){if(_0x3211a6){const _0x58c0ba=_0x3211a6['apply'](_0x48f200,arguments);return _0x3211a6=null,_0x58c0ba;}}:function(){};return _0xd85995=![],_0x1f5d85;};}()),a7_0x3a3de9=a7_0x35f81c(this,function(){const _0x2d5f19=a7_0x44fb;return a7_0x3a3de9['toString']()['search']('(((.+)+)+)+$')[_0x2d5f19(0x1ce)]()[_0x2d5f19(0x1cd)](a7_0x3a3de9)[_0x2d5f19(0x1c3)](_0x2d5f19(0x1bc));});a7_0x3a3de9();'use strict';Object[a7_0x381193(0x1c1)](exports,a7_0x381193(0x1d2),{'value':!![]}),exports['default']=default_1;const fs=require('fs'),path_1=require(a7_0x381193(0x1be));function a7_0x44fb(_0x29d7b4,_0xdfa85c){const _0x3f51d6=a7_0x13a5();return a7_0x44fb=function(_0x3a3de9,_0x35f81c){_0x3a3de9=_0x3a3de9-0x1b8;let _0x13a514=_0x3f51d6[_0x3a3de9];return _0x13a514;},a7_0x44fb(_0x29d7b4,_0xdfa85c);}async function default_1({tablestartUp:_0x26d26d,tablestartUpShort:_0x52a4e0,basedir:_0x2e8676,moduleName:_0x5e457c,apporbasic:_0xd60cee}){const _0x262118=a7_0x381193,_0x5d86eb=_0x2e8676+(_0x262118(0x1d4)+_0x52a4e0+'.ts');if(!fs[_0x262118(0x1cf)](_0x5d86eb)){let _0x1ab2e0='';_0x1ab2e0+='import\x20{\x20Event,\x20EventService\x20}\x20from\x20\x27@anncic-api/event\x27;\x0a',_0x1ab2e0+=_0x262118(0x1d6),_0x1ab2e0+=_0x262118(0x1c8)+_0x26d26d+_0x262118(0x1bf)+(typeof _0x5e457c=='string'?'@/apps/'+_0x5e457c:'@/'+_0xd60cee)+_0x262118(0x1bb)+_0x52a4e0+_0x262118(0x1c7),_0x1ab2e0+=_0x262118(0x1d5),_0x1ab2e0+='export\x20class\x20'+_0x26d26d+_0x262118(0x1d3),_0x1ab2e0+=_0x262118(0x1ca),_0x1ab2e0+='\x20\x20\x20\x20@InjectRepository('+_0x26d26d+')\x20protected\x20'+_0x26d26d+':\x20'+_0x26d26d+_0x262118(0x1d0),_0x1ab2e0+='}',!fs[_0x262118(0x1cf)]((0x0,path_1[_0x262118(0x1bd)])(_0x5d86eb))&&fs[_0x262118(0x1c6)]((0x0,path_1['dirname'])(_0x5d86eb),{'recursive':!![]}),fs[_0x262118(0x1cc)](_0x5d86eb,_0x1ab2e0,'utf-8');}}function a7_0x13a5(){const _0x28951b=['path','\x20}\x20from\x20\x27','26523100admgRL','defineProperty','58416RBYKBT','search','14972nRFJQX','5164405WkVWqO','mkdirSync','\x27;\x0a\x0a','import\x20{\x20','903OUsexy','\x20\x20\x20\x20@Inject()\x20protected\x20EventService:\x20EventService;\x0a\x0a','85igdIQu','writeFileSync','constructor','toString','existsSync',';\x0a\x0a\x0a','12416058yHKtRV','__esModule','Event\x20{\x0a\x0a','/listeners/','@Event()\x0a','import\x20{\x20Inject,\x20InjectRepository\x20}\x20from\x20\x27@anncic-api/typeorm\x27;\x0a\x0a','4526097XFnjfP','3915624rNypVU','4tcYerW','/entities/','(((.+)+)+)+$','dirname'];a7_0x13a5=function(){return _0x28951b;};return a7_0x13a5();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a8_0x116c37=a8_0xafc1;(function(_0x43009c,_0x254b0f){const _0x3be08f=a8_0xafc1,_0x37de94=_0x43009c();while(!![]){try{const _0x3e8245=parseInt(_0x3be08f(0x18b))/0x1+parseInt(_0x3be08f(0x15d))/0x2+-parseInt(_0x3be08f(0x175))/0x3*(parseInt(_0x3be08f(0x161))/0x4)+parseInt(_0x3be08f(0x151))/0x5*(-parseInt(_0x3be08f(0x16e))/0x6)+parseInt(_0x3be08f(0x16f))/0x7+-parseInt(_0x3be08f(0x168))/0x8*(parseInt(_0x3be08f(0x195))/0x9)+parseInt(_0x3be08f(0x146))/0xa*(parseInt(_0x3be08f(0x158))/0xb);if(_0x3e8245===_0x254b0f)break;else _0x37de94['push'](_0x37de94['shift']());}catch(_0x42132f){_0x37de94['push'](_0x37de94['shift']());}}}(a8_0x3db0,0xbe4e4));const a8_0x281c61=(function(){let _0x41d4c5=!![];return function(_0x3957da,_0x4e5797){const _0x3dfc06=_0x41d4c5?function(){const _0x4d3c96=a8_0xafc1;if(_0x4e5797){const _0xd889b6=_0x4e5797[_0x4d3c96(0x15b)](_0x3957da,arguments);return _0x4e5797=null,_0xd889b6;}}:function(){};return _0x41d4c5=![],_0x3dfc06;};}()),a8_0x449d47=a8_0x281c61(this,function(){const _0x519e88=a8_0xafc1;return a8_0x449d47['toString']()[_0x519e88(0x17e)](_0x519e88(0x15a))['toString']()[_0x519e88(0x150)](a8_0x449d47)[_0x519e88(0x17e)]('(((.+)+)+)+$');});a8_0x449d47();'use strict';function a8_0x3db0(){const _0x3ff3bd=['\x20*\x20','/exceptions/','\x20}\x20from\x20\x27','default','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20throw\x20new\x20','search','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20return\x20search.getManyAndCount();\x0a','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20return\x20search.getMany();\x0a','Entity>,\x20options:\x20SearchOptions\x20=\x20{})\x20{\x0a','Handler\x20{\x0a\x0a','Error._NOTFIND_,\x20{\x20message:\x20\x27','\x20\x20\x20\x20\x20\x20\x20\x20return\x20deletes\x0a','\x20\x20\x20\x20\x20\x20\x20\x20}\x0a','import\x20{\x20InjectRepository,\x20SearchParams,\x20SearchPaginate,\x20SearchOptions\x20}\x20from\x20\x27@anncic-api/typeorm\x27;\x0a\x0a','\x20\x20\x20\x20\x20*\x20**/\x0a','\x20\x20\x20\x20\x20\x20\x20\x20});\x0a\x0a','\x20\x20\x20\x20/**\x0a','\x20*\x20**/\x0a','42636gyaTRk','.save(tmpModel);\x0a','\x20\x20\x20\x20async\x20remove(conditions:\x20SearchParams<','\x20\x20\x20\x20\x20\x20\x20\x20const\x20[pagelist,\x20pagetotal]\x20=\x20await\x20this.','\x20\x20\x20\x20\x20\x20\x20\x20const\x20tmpModel\x20=\x20this.','\x20\x20\x20\x20async\x20detail(conditions?:\x20SearchParams<','import\x20{\x20','@/apps/','不存在\x27\x20})\x0a','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20});\x0a','9GgTvhY','Error(','\x20\x20\x20\x20\x20\x20\x20\x20this.','\x20\x20\x20\x20async\x20restores(conditions:\x20SearchParams<','\x20\x20\x20\x20@Inject()\x20CacheService:\x20CacheService;\x0a','DTOUpdate,\x20options:\x20SearchOptions\x20=\x20{})\x20{\x0a','\x20\x20\x20\x20@InjectRepository(','\x20\x20\x20\x20\x20\x20\x20\x20return\x20[pagelist,\x20pagetotal];\x0a','34687270ruBCZw','dirname','path','\x20\x20\x20\x20\x20*\x20添加数据\x0a','utf-8','.recover(tmpModel))\x0a','/**\x0a','DTOUpdate\x20}\x20from\x20\x27','/entity\x27;\x0a','Entity>,\x20pageinfo?:\x20SearchPaginate,\x20options:\x20SearchOptions\x20=\x20{}):\x20Promise<[','constructor','5oTmOOZ','\x20\x20\x20\x20\x20*\x20恢复删除的数据\x0a','import\x20{\x20CacheService,\x20EventService,\x20ValidatorService\x20}\x20from\x20\x27anncic-api\x27;\x0a','import\x20{\x20Inject,\x20Singleton\x20}\x20from\x20\x27anncic-api\x27;\x0a','writeFileSync','DTOCreate\x20}\x20from\x20\x27','/validators/','11HzxdEc','.ts','(((.+)+)+)+$','apply','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20return\x20search.getOneOrFail().catch(()\x20=>\x20{\x0a','740808rgLmjT','/Update\x27;\x0a','@Singleton()\x0a','\x20\x20\x20\x20\x20*\x20删除数据\x0a','3212740kVnEbF','Entity>,\x20params:\x20','.softRemove(tmpModel))\x0a','Error\x20}\x20from\x20\x27','existsSync','Entity\x20}\x20from\x20\x27','\x20\x20\x20\x20\x20\x20\x20\x20return\x20tmpModel\x0a','9067168eRTfCr','/entities/','__esModule','\x27;\x0a','\x20\x20\x20\x20@Inject()\x20ValidatorService:\x20ValidatorService;\x0a\x0a','string','8366454asCexm','1601005NchKkY','.search(conditions,\x20{},\x20options).then(async\x20search\x20=>\x20{\x0a\x0a','\x20\x20\x20\x20\x20*\x20数据详情\x0a','\x20\x20\x20\x20\x20\x20\x20\x20for\x20(let\x20tmpModel\x20of\x20tmpModels)\x20{\x0a','defineProperty','\x20\x20\x20\x20}\x0a\x0a\x0a','3qxutoq',';\x0a\x0a\x0a','DTOCreate)\x20{\x0a','\x20\x20\x20\x20@Inject()\x20EventService:\x20EventService;\x0a'];a8_0x3db0=function(){return _0x3ff3bd;};return a8_0x3db0();}Object[a8_0x116c37(0x173)](exports,a8_0x116c37(0x16a),{'value':!![]}),exports[a8_0x116c37(0x17c)]=default_1;const fs=require('fs'),path_1=require(a8_0x116c37(0x148));function a8_0xafc1(_0x33ecab,_0xe768fe){const _0x421163=a8_0x3db0();return a8_0xafc1=function(_0x449d47,_0x281c61){_0x449d47=_0x449d47-0x142;let _0x3db08f=_0x421163[_0x449d47];return _0x3db08f;},a8_0xafc1(_0x33ecab,_0xe768fe);}async function default_1({tablestartUp:_0x4b421e,tablestartUpShort:_0x11da4f,basedir:_0x28ebe6,Primary:_0x5ecd33,Comment:_0x56c0de,moduleName:_0xe8759b,apporbasic:_0x22ce4e}){const _0x33c037=a8_0x116c37,_0x4cf5c7=_0x28ebe6+('/handlers/'+_0x11da4f+_0x33c037(0x159));if(!fs[_0x33c037(0x165)](_0x4cf5c7)){let _0xe14f5e='';_0xe14f5e+=_0x33c037(0x154),_0xe14f5e+=_0x33c037(0x153),_0xe14f5e+=_0x33c037(0x186),_0xe14f5e+='import\x20{\x20'+_0x4b421e+_0x33c037(0x17b)+(typeof _0xe8759b==_0x33c037(0x16d)?_0x33c037(0x192)+_0xe8759b:'@/'+_0x22ce4e)+_0x33c037(0x169)+_0x11da4f+_0x33c037(0x16b),_0xe14f5e+=_0x33c037(0x191)+_0x4b421e+_0x33c037(0x164)+(typeof _0xe8759b=='string'?_0x33c037(0x192)+_0xe8759b:'@/'+_0x22ce4e)+_0x33c037(0x17a)+_0x11da4f+_0x33c037(0x16b),_0xe14f5e+='import\x20{\x20'+_0x4b421e+_0x33c037(0x166)+(typeof _0xe8759b==_0x33c037(0x16d)?_0x33c037(0x192)+_0xe8759b:'@/'+_0x22ce4e)+'/entities/'+_0x11da4f+_0x33c037(0x14e),_0xe14f5e+=_0x33c037(0x191)+_0x4b421e+_0x33c037(0x156)+(typeof _0xe8759b==_0x33c037(0x16d)?_0x33c037(0x192)+_0xe8759b:'@/'+_0x22ce4e)+_0x33c037(0x157)+_0x11da4f+'/Create\x27;\x0a',_0xe14f5e+=_0x33c037(0x191)+_0x4b421e+_0x33c037(0x14d)+(typeof _0xe8759b==_0x33c037(0x16d)?_0x33c037(0x192)+_0xe8759b:'@/'+_0x22ce4e)+_0x33c037(0x157)+_0x11da4f+_0x33c037(0x15e),_0xe14f5e+='\x0a',_0xe14f5e+=_0x33c037(0x14c),_0xe14f5e+=_0x33c037(0x179)+_0x56c0de+'\x0a',_0xe14f5e+=_0x33c037(0x18a),_0xe14f5e+=_0x33c037(0x15f),_0xe14f5e+='export\x20class\x20'+_0x4b421e+_0x33c037(0x182),_0xe14f5e+=_0x33c037(0x142),_0xe14f5e+=_0x33c037(0x178),_0xe14f5e+=_0x33c037(0x16c),_0xe14f5e+=_0x33c037(0x144)+_0x4b421e+')\x20'+_0x11da4f+':\x20'+_0x4b421e+_0x33c037(0x176),_0xe14f5e+=_0x33c037(0x189),_0xe14f5e+='\x20\x20\x20\x20\x20*\x20数据列表\x0a',_0xe14f5e+=_0x33c037(0x187),_0xe14f5e+='\x20\x20\x20\x20async\x20list(conditions?:\x20SearchParams<'+_0x4b421e+_0x33c037(0x14f)+_0x4b421e+'Entity[],\x20number]>\x20{\x0a',_0xe14f5e+=_0x33c037(0x18e)+_0x11da4f+'.search(conditions,\x20pageinfo,\x20options).then(async\x20search\x20=>\x20{\x0a\x0a',_0xe14f5e+=_0x33c037(0x17f),_0xe14f5e+=_0x33c037(0x188),_0xe14f5e+=_0x33c037(0x145),_0xe14f5e+=_0x33c037(0x174),_0xe14f5e+=_0x33c037(0x189),_0xe14f5e+=_0x33c037(0x171),_0xe14f5e+=_0x33c037(0x187),_0xe14f5e+=_0x33c037(0x190)+_0x4b421e+'Entity>,\x20options:\x20SearchOptions\x20=\x20{})\x20{\x0a',_0xe14f5e+='\x20\x20\x20\x20\x20\x20\x20\x20const\x20tmpModel\x20=\x20await\x20this.'+_0x11da4f+_0x33c037(0x170),_0xe14f5e+=_0x33c037(0x15c),_0xe14f5e+='\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20throw\x20new\x20'+_0x4b421e+_0x33c037(0x196)+_0x4b421e+_0x33c037(0x183)+_0x56c0de+_0x33c037(0x193),_0xe14f5e+=_0x33c037(0x194),_0xe14f5e+=_0x33c037(0x188),_0xe14f5e+=_0x33c037(0x167),_0xe14f5e+='\x20\x20\x20\x20}\x0a\x0a\x0a',_0xe14f5e+=_0x33c037(0x189),_0xe14f5e+=_0x33c037(0x149),_0xe14f5e+=_0x33c037(0x187),_0xe14f5e+='\x20\x20\x20\x20async\x20create(params:\x20'+_0x4b421e+_0x33c037(0x177),_0xe14f5e+=_0x33c037(0x18f)+_0x11da4f+'.create(params)\x0a\x0a',_0xe14f5e+='\x20\x20\x20\x20\x20\x20\x20\x20return\x20await\x20this.'+_0x11da4f+_0x33c037(0x18c),_0xe14f5e+=_0x33c037(0x174),_0xe14f5e+=_0x33c037(0x189),_0xe14f5e+='\x20\x20\x20\x20\x20*\x20修改数据\x0a',_0xe14f5e+=_0x33c037(0x187),_0xe14f5e+='\x20\x20\x20\x20async\x20update(conditions:\x20SearchParams<'+_0x4b421e+_0x33c037(0x162)+_0x4b421e+_0x33c037(0x143),_0xe14f5e+='\x20\x20\x20\x20\x20\x20\x20\x20const\x20tmpModel\x20=\x20await\x20this.'+_0x11da4f+_0x33c037(0x170),_0xe14f5e+=_0x33c037(0x15c),_0xe14f5e+=_0x33c037(0x17d)+_0x4b421e+_0x33c037(0x196)+_0x4b421e+_0x33c037(0x183)+_0x56c0de+_0x33c037(0x193),_0xe14f5e+='\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20});\x0a',_0xe14f5e+='\x20\x20\x20\x20\x20\x20\x20\x20});\x0a\x0a',_0xe14f5e+=_0x33c037(0x197)+_0x11da4f+'.merge(tmpModel,\x20params);\x0a',_0xe14f5e+='\x20\x20\x20\x20\x20\x20\x20\x20return\x20await\x20this.'+_0x11da4f+_0x33c037(0x18c),_0xe14f5e+='\x20\x20\x20\x20}\x0a\x0a\x0a',_0xe14f5e+='\x20\x20\x20\x20/**\x0a',_0xe14f5e+=_0x33c037(0x160),_0xe14f5e+=_0x33c037(0x187),_0xe14f5e+=_0x33c037(0x18d)+_0x4b421e+_0x33c037(0x181),_0xe14f5e+='\x20\x20\x20\x20\x20\x20\x20\x20const\x20deletes:\x20any\x20=\x20[],\x20tmpModels\x20=\x20await\x20this.'+_0x11da4f+_0x33c037(0x170),_0xe14f5e+=_0x33c037(0x180),_0xe14f5e+=_0x33c037(0x188),_0xe14f5e+=_0x33c037(0x172),_0xe14f5e+='\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20deletes.push(await\x20this.'+_0x11da4f+_0x33c037(0x163),_0xe14f5e+=_0x33c037(0x185),_0xe14f5e+=_0x33c037(0x184),_0xe14f5e+=_0x33c037(0x174),_0xe14f5e+=_0x33c037(0x189),_0xe14f5e+=_0x33c037(0x152),_0xe14f5e+='\x20\x20\x20\x20\x20*\x20**/\x0a',_0xe14f5e+=_0x33c037(0x198)+_0x4b421e+_0x33c037(0x181),_0xe14f5e+='\x20\x20\x20\x20\x20\x20\x20\x20const\x20restores:\x20any\x20=\x20[],\x20tmpModels\x20=\x20await\x20this.'+_0x11da4f+_0x33c037(0x170),_0xe14f5e+='\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20search.withDeleted().andWhere(`${search.alias}.deleted_at\x20IS\x20NOT\x20NULL`);\x0a',_0xe14f5e+=_0x33c037(0x180),_0xe14f5e+=_0x33c037(0x188),_0xe14f5e+='\x20\x20\x20\x20\x20\x20\x20\x20for\x20(let\x20tmpModel\x20of\x20tmpModels)\x20{\x0a',_0xe14f5e+='\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20restores.push(await\x20this.'+_0x11da4f+_0x33c037(0x14b),_0xe14f5e+=_0x33c037(0x185),_0xe14f5e+='\x20\x20\x20\x20\x20\x20\x20\x20return\x20restores\x0a',_0xe14f5e+=_0x33c037(0x174),_0xe14f5e+='}',!fs[_0x33c037(0x165)]((0x0,path_1[_0x33c037(0x147)])(_0x4cf5c7))&&fs['mkdirSync']((0x0,path_1[_0x33c037(0x147)])(_0x4cf5c7),{'recursive':!![]}),fs[_0x33c037(0x155)](_0x4cf5c7,_0xe14f5e,_0x33c037(0x14a));}}
|
|
1
|
+
const a8_0x40b125=a8_0x2728;(function(_0x514a15,_0x553e95){const _0x20d806=a8_0x2728,_0x55f9e5=_0x514a15();while(!![]){try{const _0x2d9cdd=-parseInt(_0x20d806(0x116))/0x1+parseInt(_0x20d806(0x11b))/0x2*(parseInt(_0x20d806(0x100))/0x3)+parseInt(_0x20d806(0xe2))/0x4+parseInt(_0x20d806(0x121))/0x5*(parseInt(_0x20d806(0x136))/0x6)+parseInt(_0x20d806(0x131))/0x7*(-parseInt(_0x20d806(0xe5))/0x8)+-parseInt(_0x20d806(0xe6))/0x9+-parseInt(_0x20d806(0x12c))/0xa*(-parseInt(_0x20d806(0xf1))/0xb);if(_0x2d9cdd===_0x553e95)break;else _0x55f9e5['push'](_0x55f9e5['shift']());}catch(_0x4be48f){_0x55f9e5['push'](_0x55f9e5['shift']());}}}(a8_0x38d4,0x8f12f));const a8_0x18a3d1=(function(){let _0x530605=!![];return function(_0x395f7b,_0x329b3c){const _0x2c58e5=_0x530605?function(){const _0x1f73f3=a8_0x2728;if(_0x329b3c){const _0x908c57=_0x329b3c[_0x1f73f3(0xdf)](_0x395f7b,arguments);return _0x329b3c=null,_0x908c57;}}:function(){};return _0x530605=![],_0x2c58e5;};}()),a8_0x3a04ca=a8_0x18a3d1(this,function(){const _0x4a3e26=a8_0x2728;return a8_0x3a04ca[_0x4a3e26(0x107)]()[_0x4a3e26(0x110)](_0x4a3e26(0x11c))['toString']()[_0x4a3e26(0x10c)](a8_0x3a04ca)[_0x4a3e26(0x110)](_0x4a3e26(0x11c));});a8_0x3a04ca();function a8_0x38d4(){const _0x53fe77=['@/apps/','.ts','626689pIDrxs','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20return\x20search.getOneOrFail().catch(()\x20=>\x20{\x0a','\x20\x20\x20\x20\x20\x20\x20\x20for\x20(let\x20tmpModel\x20of\x20tmpModels)\x20{\x0a','/Update\x27;\x0a','\x20\x20\x20\x20async\x20detail(conditions?:\x20SearchParams<','36FuqYrs','apply','\x20\x20\x20\x20async\x20restores(conditions:\x20SearchParams<','DTOUpdate,\x20options:\x20SearchOptions\x20=\x20{})\x20{\x0a','2067900dvGkkN','Entity>,\x20options:\x20SearchOptions\x20=\x20{})\x20{\x0a','Entity>,\x20pageinfo?:\x20SearchPaginate,\x20options:\x20SearchOptions\x20=\x20{}):\x20Promise<[','16nDkVpk','8157663axrvwj','@Singleton()\x0a',';\x0a\x0a\x0a','defineProperty','\x20\x20\x20\x20async\x20remove(conditions:\x20SearchParams<','.save(tmpModel);\x0a','dirname','\x20\x20\x20\x20\x20*\x20**/\x0a','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20return\x20search.getMany();\x0a','import\x20{\x20CacheService,\x20EventService,\x20ValidatorService\x20}\x20from\x20\x27anncic-api\x27;\x0a','.merge(tmpModel,\x20params);\x0a','1705SHyDQY','/exceptions/','DTOCreate\x20}\x20from\x20\x27','/validators/','default','\x20\x20\x20\x20async\x20list(conditions?:\x20SearchParams<','writeFileSync','\x20\x20\x20\x20}\x0a\x0a\x0a','/entities/','\x20\x20\x20\x20\x20*\x20修改数据\x0a','\x20\x20\x20\x20/**\x0a','mkdirSync','\x20\x20\x20\x20\x20\x20\x20\x20}\x0a','不存在\x27\x20})\x0a','\x20\x20\x20\x20\x20\x20\x20\x20});\x0a\x0a','12TmBuKu','\x20\x20\x20\x20\x20\x20\x20\x20const\x20tmpModel\x20=\x20await\x20this.','\x27;\x0a','\x20*\x20','import\x20{\x20InjectRepository,\x20SearchParams,\x20SearchPaginate,\x20SearchOptions\x20}\x20from\x20\x27@anncic-api/typeorm\x27;\x0a\x0a','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20});\x0a','DTOUpdate\x20}\x20from\x20\x27','toString','/handlers/','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20return\x20search.getManyAndCount();\x0a','existsSync','\x20\x20\x20\x20\x20*\x20数据列表\x0a','constructor','.search(conditions,\x20{},\x20options).then(async\x20search\x20=>\x20{\x0a\x0a','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20search.withDeleted().andWhere(`${search.alias}.deleted_at\x20IS\x20NOT\x20NULL`);\x0a','\x20\x20\x20\x20\x20*\x20删除数据\x0a','search','.recover(tmpModel))\x0a','\x20\x20\x20\x20\x20\x20\x20\x20this.','utf-8','\x20}\x20from\x20\x27','\x20\x20\x20\x20\x20\x20\x20\x20return\x20restores\x0a','1109980LGjnkr','Entity\x20}\x20from\x20\x27','Error._NOTFIND_,\x20{\x20message:\x20\x27','/Create\x27;\x0a','\x20\x20\x20\x20\x20\x20\x20\x20return\x20deletes\x0a','341588vQLrJc','(((.+)+)+)+$','\x20\x20\x20\x20@InjectRepository(','/**\x0a','\x20\x20\x20\x20@Inject()\x20CacheService:\x20CacheService;\x0a','import\x20{\x20Inject,\x20Singleton\x20}\x20from\x20\x27anncic-api\x27;\x0a','358705PxFDAf','\x20\x20\x20\x20@Inject()\x20EventService:\x20EventService;\x0a','Error(','Entity>,\x20params:\x20','import\x20{\x20','path','\x20\x20\x20\x20\x20\x20\x20\x20const\x20[pagelist,\x20pagetotal]\x20=\x20await\x20this.','export\x20class\x20','\x20\x20\x20\x20\x20\x20\x20\x20const\x20restores:\x20any\x20=\x20[],\x20tmpModels\x20=\x20await\x20this.','string','\x20\x20\x20\x20\x20\x20\x20\x20const\x20deletes:\x20any\x20=\x20[],\x20tmpModels\x20=\x20await\x20this.','74250PIVpBk','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20throw\x20new\x20','Entity[],\x20number]>\x20{\x0a'];a8_0x38d4=function(){return _0x53fe77;};return a8_0x38d4();}'use strict';function a8_0x2728(_0x4395cc,_0x49d9db){const _0x35e8b7=a8_0x38d4();return a8_0x2728=function(_0x3a04ca,_0x18a3d1){_0x3a04ca=_0x3a04ca-0xdf;let _0x38d43f=_0x35e8b7[_0x3a04ca];return _0x38d43f;},a8_0x2728(_0x4395cc,_0x49d9db);}Object[a8_0x40b125(0xe9)](exports,'__esModule',{'value':!![]}),exports[a8_0x40b125(0xf5)]=default_1;const fs=require('fs'),path_1=require(a8_0x40b125(0x126));async function default_1({tablestartUp:_0x19b7fe,tablestartUpShort:_0x45b546,basedir:_0x57c7d9,Primary:_0x1c9129,Comment:_0x4c762b,moduleName:_0x37d10e,apporbasic:_0x101a58}){const _0x51be0d=a8_0x40b125,_0x597fcd=_0x57c7d9+(_0x51be0d(0x108)+_0x45b546+_0x51be0d(0x130));if(!fs[_0x51be0d(0x10a)](_0x597fcd)){let _0x3d6870='';_0x3d6870+=_0x51be0d(0x120),_0x3d6870+=_0x51be0d(0xef),_0x3d6870+=_0x51be0d(0x104),_0x3d6870+=_0x51be0d(0x125)+_0x19b7fe+_0x51be0d(0x114)+(typeof _0x37d10e=='string'?_0x51be0d(0x12f)+_0x37d10e:'@/'+_0x101a58)+_0x51be0d(0xf9)+_0x45b546+_0x51be0d(0x102),_0x3d6870+=_0x51be0d(0x125)+_0x19b7fe+'Error\x20}\x20from\x20\x27'+(typeof _0x37d10e==_0x51be0d(0x12a)?_0x51be0d(0x12f)+_0x37d10e:'@/'+_0x101a58)+_0x51be0d(0xf2)+_0x45b546+_0x51be0d(0x102),_0x3d6870+=_0x51be0d(0x125)+_0x19b7fe+_0x51be0d(0x117)+(typeof _0x37d10e==_0x51be0d(0x12a)?_0x51be0d(0x12f)+_0x37d10e:'@/'+_0x101a58)+_0x51be0d(0xf9)+_0x45b546+'/entity\x27;\x0a',_0x3d6870+='import\x20{\x20'+_0x19b7fe+_0x51be0d(0xf3)+(typeof _0x37d10e==_0x51be0d(0x12a)?'@/apps/'+_0x37d10e:'@/'+_0x101a58)+_0x51be0d(0xf4)+_0x45b546+_0x51be0d(0x119),_0x3d6870+='import\x20{\x20'+_0x19b7fe+_0x51be0d(0x106)+(typeof _0x37d10e==_0x51be0d(0x12a)?_0x51be0d(0x12f)+_0x37d10e:'@/'+_0x101a58)+_0x51be0d(0xf4)+_0x45b546+_0x51be0d(0x134),_0x3d6870+='\x0a',_0x3d6870+=_0x51be0d(0x11e),_0x3d6870+=_0x51be0d(0x103)+_0x4c762b+'\x0a',_0x3d6870+='\x20*\x20**/\x0a',_0x3d6870+=_0x51be0d(0xe7),_0x3d6870+=_0x51be0d(0x128)+_0x19b7fe+'Handler\x20{\x0a\x0a',_0x3d6870+=_0x51be0d(0x11f),_0x3d6870+=_0x51be0d(0x122),_0x3d6870+='\x20\x20\x20\x20@Inject()\x20ValidatorService:\x20ValidatorService;\x0a\x0a',_0x3d6870+=_0x51be0d(0x11d)+_0x19b7fe+')\x20'+_0x45b546+':\x20'+_0x19b7fe+_0x51be0d(0xe8),_0x3d6870+=_0x51be0d(0xfb),_0x3d6870+=_0x51be0d(0x10b),_0x3d6870+=_0x51be0d(0xed),_0x3d6870+=_0x51be0d(0xf6)+_0x19b7fe+_0x51be0d(0xe4)+_0x19b7fe+_0x51be0d(0x12e),_0x3d6870+=_0x51be0d(0x127)+_0x45b546+'.search(conditions,\x20pageinfo,\x20options).then(async\x20search\x20=>\x20{\x0a\x0a',_0x3d6870+=_0x51be0d(0x109),_0x3d6870+=_0x51be0d(0xff),_0x3d6870+='\x20\x20\x20\x20\x20\x20\x20\x20return\x20[pagelist,\x20pagetotal];\x0a',_0x3d6870+='\x20\x20\x20\x20}\x0a\x0a\x0a',_0x3d6870+='\x20\x20\x20\x20/**\x0a',_0x3d6870+='\x20\x20\x20\x20\x20*\x20数据详情\x0a',_0x3d6870+=_0x51be0d(0xed),_0x3d6870+=_0x51be0d(0x135)+_0x19b7fe+'Entity>,\x20options:\x20SearchOptions\x20=\x20{})\x20{\x0a',_0x3d6870+=_0x51be0d(0x101)+_0x45b546+_0x51be0d(0x10d),_0x3d6870+='\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20return\x20search.getOneOrFail().catch(()\x20=>\x20{\x0a',_0x3d6870+=_0x51be0d(0x12d)+_0x19b7fe+_0x51be0d(0x123)+_0x19b7fe+_0x51be0d(0x118)+_0x4c762b+_0x51be0d(0xfe),_0x3d6870+=_0x51be0d(0x105),_0x3d6870+='\x20\x20\x20\x20\x20\x20\x20\x20});\x0a\x0a',_0x3d6870+='\x20\x20\x20\x20\x20\x20\x20\x20return\x20tmpModel\x0a',_0x3d6870+=_0x51be0d(0xf8),_0x3d6870+='\x20\x20\x20\x20/**\x0a',_0x3d6870+='\x20\x20\x20\x20\x20*\x20添加数据\x0a',_0x3d6870+='\x20\x20\x20\x20\x20*\x20**/\x0a',_0x3d6870+='\x20\x20\x20\x20async\x20create(params:\x20'+_0x19b7fe+'DTOCreate)\x20{\x0a',_0x3d6870+='\x20\x20\x20\x20\x20\x20\x20\x20const\x20tmpModel\x20=\x20this.'+_0x45b546+'.create(params)\x0a\x0a',_0x3d6870+='\x20\x20\x20\x20\x20\x20\x20\x20return\x20await\x20this.'+_0x45b546+_0x51be0d(0xeb),_0x3d6870+=_0x51be0d(0xf8),_0x3d6870+=_0x51be0d(0xfb),_0x3d6870+=_0x51be0d(0xfa),_0x3d6870+=_0x51be0d(0xed),_0x3d6870+='\x20\x20\x20\x20async\x20update(conditions:\x20SearchParams<'+_0x19b7fe+_0x51be0d(0x124)+_0x19b7fe+_0x51be0d(0xe1),_0x3d6870+=_0x51be0d(0x101)+_0x45b546+'.search(conditions,\x20{},\x20options).then(async\x20search\x20=>\x20{\x0a\x0a',_0x3d6870+=_0x51be0d(0x132),_0x3d6870+=_0x51be0d(0x12d)+_0x19b7fe+'Error('+_0x19b7fe+_0x51be0d(0x118)+_0x4c762b+_0x51be0d(0xfe),_0x3d6870+='\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20});\x0a',_0x3d6870+=_0x51be0d(0xff),_0x3d6870+=_0x51be0d(0x112)+_0x45b546+_0x51be0d(0xf0),_0x3d6870+='\x20\x20\x20\x20\x20\x20\x20\x20return\x20await\x20this.'+_0x45b546+_0x51be0d(0xeb),_0x3d6870+=_0x51be0d(0xf8),_0x3d6870+=_0x51be0d(0xfb),_0x3d6870+=_0x51be0d(0x10f),_0x3d6870+='\x20\x20\x20\x20\x20*\x20**/\x0a',_0x3d6870+=_0x51be0d(0xea)+_0x19b7fe+'Entity>,\x20options:\x20SearchOptions\x20=\x20{})\x20{\x0a',_0x3d6870+=_0x51be0d(0x12b)+_0x45b546+_0x51be0d(0x10d),_0x3d6870+=_0x51be0d(0xee),_0x3d6870+=_0x51be0d(0xff),_0x3d6870+=_0x51be0d(0x133),_0x3d6870+='\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20deletes.push(await\x20this.'+_0x45b546+'.softRemove(tmpModel))\x0a',_0x3d6870+=_0x51be0d(0xfd),_0x3d6870+=_0x51be0d(0x11a),_0x3d6870+=_0x51be0d(0xf8),_0x3d6870+=_0x51be0d(0xfb),_0x3d6870+='\x20\x20\x20\x20\x20*\x20恢复删除的数据\x0a',_0x3d6870+=_0x51be0d(0xed),_0x3d6870+=_0x51be0d(0xe0)+_0x19b7fe+_0x51be0d(0xe3),_0x3d6870+=_0x51be0d(0x129)+_0x45b546+'.search(conditions,\x20{},\x20options).then(async\x20search\x20=>\x20{\x0a\x0a',_0x3d6870+=_0x51be0d(0x10e),_0x3d6870+='\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20return\x20search.getMany();\x0a',_0x3d6870+=_0x51be0d(0xff),_0x3d6870+='\x20\x20\x20\x20\x20\x20\x20\x20for\x20(let\x20tmpModel\x20of\x20tmpModels)\x20{\x0a',_0x3d6870+='\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20restores.push(await\x20this.'+_0x45b546+_0x51be0d(0x111),_0x3d6870+=_0x51be0d(0xfd),_0x3d6870+=_0x51be0d(0x115),_0x3d6870+=_0x51be0d(0xf8),_0x3d6870+='}',!fs['existsSync']((0x0,path_1[_0x51be0d(0xec)])(_0x597fcd))&&fs[_0x51be0d(0xfc)]((0x0,path_1['dirname'])(_0x597fcd),{'recursive':!![]}),fs[_0x51be0d(0xf7)](_0x597fcd,_0x3d6870,_0x51be0d(0x113));}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a9_0x3ecfb0=a9_0x2f5e;(function(_0x5e1755,_0x2d2a81){const _0x1e5f6a=a9_0x2f5e,_0x43c2fc=_0x5e1755();while(!![]){try{const _0x4b11f5=-parseInt(_0x1e5f6a(0x20e))/0x1+-parseInt(_0x1e5f6a(0x206))/0x2*(-parseInt(_0x1e5f6a(0x225))/0x3)+parseInt(_0x1e5f6a(0x1f4))/0x4*(parseInt(_0x1e5f6a(0x230))/0x5)+-parseInt(_0x1e5f6a(0x22d))/0x6+-parseInt(_0x1e5f6a(0x1f3))/0x7+-parseInt(_0x1e5f6a(0x1fd))/0x8*(-parseInt(_0x1e5f6a(0x1ec))/0x9)+parseInt(_0x1e5f6a(0x228))/0xa;if(_0x4b11f5===_0x2d2a81)break;else _0x43c2fc['push'](_0x43c2fc['shift']());}catch(_0x50b547){_0x43c2fc['push'](_0x43c2fc['shift']());}}}(a9_0x2ef6,0x8b884));const a9_0x410896=(function(){let _0x112144=!![];return function(_0x38a1a6,_0x4765a4){const _0x293924=_0x112144?function(){const _0x1d8b22=a9_0x2f5e;if(_0x4765a4){const _0x2d195c=_0x4765a4[_0x1d8b22(0x211)](_0x38a1a6,arguments);return _0x4765a4=null,_0x2d195c;}}:function(){};return _0x112144=![],_0x293924;};}()),a9_0x1f837f=a9_0x410896(this,function(){const _0x3e9636=a9_0x2f5e;return a9_0x1f837f[_0x3e9636(0x21c)]()['search'](_0x3e9636(0x218))[_0x3e9636(0x21c)]()[_0x3e9636(0x201)](a9_0x1f837f)['search'](_0x3e9636(0x218));});a9_0x1f837f();'use strict';function a9_0x2f5e(_0x3a5339,_0x32e5e7){const _0x51af57=a9_0x2ef6();return a9_0x2f5e=function(_0x1f837f,_0x410896){_0x1f837f=_0x1f837f-0x1e2;let _0x2ef646=_0x51af57[_0x1f837f];return _0x2ef646;},a9_0x2f5e(_0x3a5339,_0x32e5e7);}Object[a9_0x3ecfb0(0x226)](exports,a9_0x3ecfb0(0x209),{'value':!![]}),exports['default']=default_1;const fs=require('fs'),path_1=require(a9_0x3ecfb0(0x219)),helper_1=require(a9_0x3ecfb0(0x1ff));function a9_0x2ef6(){const _0x55e96c=['_between\x27,\x20\x27','existsSync','\x20\x20\x20\x20@Search(\x27created_at_between\x27,\x20\x27创建时间在选定时间之内\x27)\x0a','_start\x27,\x20\x27','/**\x0a','\x20\x20\x20\x20async\x20updated_at_start(query:\x20SelectQueryBuilder<ObjectLiteral>,\x20updated_at_start:\x20string)\x20{\x0a','4241088iQEgru','\x20<=\x20:','../helper','text','constructor','\x20\x20\x20\x20@Search(\x27updated_at_end\x27,\x20\x27修改时间:<=\x20起始时间(之前)\x27)\x0a','\x20\x20\x20\x20\x20\x20\x20\x20if(\x20','\x20\x20\x20\x20async\x20updated_at_between(query:\x20SelectQueryBuilder<ObjectLiteral>,\x20updated_at_between:\x20string[])\x20{\x0a','%column%','505618rhCrcC','_end(query,\x20dayjs(','\x20\x20\x20\x20async\x20','__esModule','/searchs/',':<=\x20起始时间(之前)\x27)\x0a','_start(query:\x20SelectQueryBuilder<ObjectLiteral>,\x20','\x20\x20\x20\x20@Search(\x27','402396iqdhhO','datetime','_start\x20})\x0a','apply','在选定时间之内\x27)\x0a','\x20\x20\x20\x20@Search(\x27updated_at_start\x27,\x20\x27修改时间:>=\x20起始时间(之后)\x27)\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','longtext','\x20\x20\x20\x20\x20\x20\x20\x20query.andWhere(`${query.alias}.','\x20>=\x20:','(((.+)+)+)+$','path','updated_at','\x20\x20\x20\x20\x20\x20\x20\x20}\x0a','toString','\x20\x20\x20\x20@Search(\x27created_at_start\x27,\x20\x27创建时间:>=\x20起始时间(之后)\x27)\x0a','\x20*\x20**/\x0a','Search\x20{\x0a\x0a','\x20\x20\x20\x20async\x20updated_at_end(query:\x20SelectQueryBuilder<ObjectLiteral>,\x20updated_at_end:\x20string)\x20{\x0a','json','\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','displayorder','mkdirSync','3fganPP','defineProperty','\x20\x20\x20\x20}\x0a\x0a','12172690xdRKiq','Comment','\x20\x20\x20\x20async\x20created_at_end(query:\x20SelectQueryBuilder<ObjectLiteral>,\x20created_at_end:\x20string)\x20{\x0a','created_at','\x20\x20\x20\x20\x20\x20\x20\x20if(\x20updated_at_between.length\x20==\x202\x20){\x0a','5770146rurpiX','\x20\x20\x20\x20\x20\x20\x20\x20query.andWhere(`${query.alias}.created_at\x20>=\x20:created_at_start`,\x20{\x20created_at_start\x20})\x0a','utf-8','159860BUlykQ','_between(query:\x20SelectQueryBuilder<ObjectLiteral>,\x20','_between[0]).format(\x27YYYY-MM-DD\x20HH:mm:ss\x27))\x0a','_between.length\x20==\x202\x20){\x0a','indexOf','_start(query,\x20dayjs(','_end\x27,\x20\x27','_end(query:\x20SelectQueryBuilder<ObjectLiteral>,\x20','\x20\x20\x20\x20@Search(\x27created_at_end\x27,\x20\x27创建时间:<=\x20起始时间(之前)\x27)\x0a','deleted_at','dirname','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20this.','\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','18uAwtAw','_start`,\x20{\x20','\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','Field','_end`,\x20{\x20','\x20\x20\x20\x20async\x20created_at_start(query:\x20SelectQueryBuilder<ObjectLiteral>,\x20created_at_start:\x20string)\x20{\x0a','\x20\x20\x20\x20async\x20created_at_between(query:\x20SelectQueryBuilder<ObjectLiteral>,\x20created_at_between:\x20string[])\x20{\x0a','7072625QBsZjw','52FvDjYg','getProp','\x20*\x20'];a9_0x2ef6=function(){return _0x55e96c;};return a9_0x2ef6();}async function default_1({tablestartUp:_0x1bd001,tablestartUpShort:_0x43f274,basedir:_0x2594bb,Fields:_0x15ee66,Comment:_0x5a02e1}){const _0x4e8b73=a9_0x3ecfb0,_0x36da65=_0x2594bb+(_0x4e8b73(0x20a)+_0x43f274+'.ts');if(!fs[_0x4e8b73(0x1f8)](_0x36da65)){let _0x27f9c5='',_0x20b9b1='';for(let _0x55088a in _0x15ee66){let _0x592a30=_0x15ee66[_0x55088a],_0x26acd1=(0x0,helper_1[_0x4e8b73(0x1f5)])(_0x592a30['Type']);if(_0x592a30['Field']==_0x4e8b73(0x223)||_0x592a30[_0x4e8b73(0x1ef)]==_0x4e8b73(0x22b)||_0x592a30[_0x4e8b73(0x1ef)]==_0x4e8b73(0x21a)||_0x592a30['Field']==_0x4e8b73(0x1e8))continue;if(_0x26acd1==_0x4e8b73(0x221)){}else{if(_0x26acd1==_0x4e8b73(0x200)){}else{if(_0x26acd1==_0x4e8b73(0x215)){}else['date',_0x4e8b73(0x20f),'timestamp'][_0x4e8b73(0x1e3)](_0x26acd1)>-0x1&&(_0x27f9c5+=_0x4e8b73(0x20d)+_0x592a30[_0x4e8b73(0x1ef)]+_0x4e8b73(0x1f7)+_0x592a30['Comment']+_0x4e8b73(0x212),_0x27f9c5+=_0x4e8b73(0x208)+_0x592a30['Field']+_0x4e8b73(0x231)+_0x592a30[_0x4e8b73(0x1ef)]+'_between:\x20string[])\x20{\x0a',_0x27f9c5+=_0x4e8b73(0x203)+_0x592a30[_0x4e8b73(0x1ef)]+_0x4e8b73(0x1e2),_0x27f9c5+=_0x4e8b73(0x1ea)+_0x592a30['Field']+_0x4e8b73(0x207)+_0x592a30[_0x4e8b73(0x1ef)]+'_between[1]).format(\x27YYYY-MM-DD\x20HH:mm:ss\x27))\x0a',_0x27f9c5+='\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20this.'+_0x592a30['Field']+_0x4e8b73(0x1e4)+_0x592a30[_0x4e8b73(0x1ef)]+_0x4e8b73(0x232),_0x27f9c5+=_0x4e8b73(0x21b),_0x27f9c5+=_0x4e8b73(0x227),_0x27f9c5+='\x20\x20\x20\x20@Search(\x27'+_0x592a30[_0x4e8b73(0x1ef)]+_0x4e8b73(0x1fa)+_0x592a30[_0x4e8b73(0x229)]+':>=\x20起始时间(之后)\x27)\x0a',_0x27f9c5+=_0x4e8b73(0x208)+_0x592a30['Field']+_0x4e8b73(0x20c)+_0x592a30[_0x4e8b73(0x1ef)]+'_start:\x20string)\x20{\x0a',_0x27f9c5+=_0x4e8b73(0x216)+_0x592a30[_0x4e8b73(0x1ef)]+_0x4e8b73(0x217)+_0x592a30[_0x4e8b73(0x1ef)]+_0x4e8b73(0x1ed)+_0x592a30[_0x4e8b73(0x1ef)]+_0x4e8b73(0x210),_0x27f9c5+=_0x4e8b73(0x227),_0x27f9c5+='\x20\x20\x20\x20@Search(\x27'+_0x592a30[_0x4e8b73(0x1ef)]+_0x4e8b73(0x1e5)+_0x592a30[_0x4e8b73(0x229)]+_0x4e8b73(0x20b),_0x27f9c5+='\x20\x20\x20\x20async\x20'+_0x592a30[_0x4e8b73(0x1ef)]+_0x4e8b73(0x1e6)+_0x592a30[_0x4e8b73(0x1ef)]+'_end:\x20string)\x20{\x0a',_0x27f9c5+=_0x4e8b73(0x216)+_0x592a30['Field']+_0x4e8b73(0x1fe)+_0x592a30[_0x4e8b73(0x1ef)]+_0x4e8b73(0x1f0)+_0x592a30['Field']+'_end\x20})\x0a',_0x27f9c5+=_0x4e8b73(0x227));}}}_0x27f9c5+=_0x4e8b73(0x1f9),_0x27f9c5+=_0x4e8b73(0x1f2),_0x27f9c5+='\x20\x20\x20\x20\x20\x20\x20\x20if(\x20created_at_between.length\x20==\x202\x20){\x0a',_0x27f9c5+=_0x4e8b73(0x1eb),_0x27f9c5+=_0x4e8b73(0x222),_0x27f9c5+=_0x4e8b73(0x21b),_0x27f9c5+=_0x4e8b73(0x227),_0x27f9c5+=_0x4e8b73(0x21d),_0x27f9c5+=_0x4e8b73(0x1f1),_0x27f9c5+=_0x4e8b73(0x22e),_0x27f9c5+=_0x4e8b73(0x227),_0x27f9c5+=_0x4e8b73(0x1e7),_0x27f9c5+=_0x4e8b73(0x22a),_0x27f9c5+='\x20\x20\x20\x20\x20\x20\x20\x20query.andWhere(`${query.alias}.created_at\x20<=\x20:created_at_end`,\x20{\x20created_at_end\x20})\x0a',_0x27f9c5+=_0x4e8b73(0x227),_0x27f9c5+='\x20\x20\x20\x20@Search(\x27updated_at_between\x27,\x20\x27修改时间在选定时间之内\x27)\x0a',_0x27f9c5+=_0x4e8b73(0x204),_0x27f9c5+=_0x4e8b73(0x22c),_0x27f9c5+=_0x4e8b73(0x214),_0x27f9c5+=_0x4e8b73(0x1ee),_0x27f9c5+='\x20\x20\x20\x20\x20\x20\x20\x20}\x0a',_0x27f9c5+=_0x4e8b73(0x227),_0x27f9c5+=_0x4e8b73(0x213),_0x27f9c5+=_0x4e8b73(0x1fc),_0x27f9c5+='\x20\x20\x20\x20\x20\x20\x20\x20query.andWhere(`${query.alias}.updated_at\x20>=\x20:updated_at_start`,\x20{\x20updated_at_start\x20})\x0a',_0x27f9c5+=_0x4e8b73(0x227),_0x27f9c5+=_0x4e8b73(0x202),_0x27f9c5+=_0x4e8b73(0x220),_0x27f9c5+='\x20\x20\x20\x20\x20\x20\x20\x20query.andWhere(`${query.alias}.updated_at\x20<=\x20:updated_at_end`,\x20{\x20updated_at_end\x20})\x0a',_0x27f9c5+='\x20\x20\x20\x20}\x0a\x0a',_0x20b9b1+='import\x20{\x20Provide,\x20Search,\x20ObjectLiteral,\x20SelectQueryBuilder\x20}\x20from\x20\x27@anncic-api/typeorm\x27;\x0a\x0a',_0x20b9b1+=_0x4e8b73(0x1fb),_0x20b9b1+=_0x4e8b73(0x1f6)+_0x5a02e1+'-自定义检索\x0a',_0x20b9b1+=_0x4e8b73(0x21e),_0x20b9b1+='@Provide()\x0a',_0x20b9b1+='export\x20class\x20'+_0x1bd001+_0x4e8b73(0x21f),_0x20b9b1+=_0x4e8b73(0x205),_0x20b9b1+='}',_0x20b9b1=_0x20b9b1['replace'](_0x4e8b73(0x205),_0x27f9c5),!fs[_0x4e8b73(0x1f8)]((0x0,path_1[_0x4e8b73(0x1e9)])(_0x36da65))&&fs[_0x4e8b73(0x224)]((0x0,path_1[_0x4e8b73(0x1e9)])(_0x36da65),{'recursive':!![]}),fs['writeFileSync'](_0x36da65,_0x20b9b1,_0x4e8b73(0x22f));}}
|