anvero-apihelper 3.0.0 → 3.0.2

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.
@@ -1 +1 @@
1
- const a0_0x281447=a0_0x1bd7;(function(_0x52a8c4,_0x1be094){const _0x4e278b=a0_0x1bd7,_0x461457=_0x52a8c4();while(!![]){try{const _0x127a88=-parseInt(_0x4e278b(0x120))/0x1+-parseInt(_0x4e278b(0x12b))/0x2+parseInt(_0x4e278b(0x133))/0x3*(parseInt(_0x4e278b(0x154))/0x4)+-parseInt(_0x4e278b(0x105))/0x5*(-parseInt(_0x4e278b(0x146))/0x6)+parseInt(_0x4e278b(0x152))/0x7+parseInt(_0x4e278b(0x11a))/0x8*(parseInt(_0x4e278b(0x12e))/0x9)+parseInt(_0x4e278b(0x128))/0xa*(parseInt(_0x4e278b(0x151))/0xb);if(_0x127a88===_0x1be094)break;else _0x461457['push'](_0x461457['shift']());}catch(_0x1dc21c){_0x461457['push'](_0x461457['shift']());}}}(a0_0x4f2f,0x8acef));function a0_0x4f2f(){const _0x578fcc=['controller','生成模式\x20app|basic|plugin,默认\x20app(产物依次为\x20src/app、src/basic、src/apps/<模块>)','parseTableprefix','按数据库表生成分层\x20API\x20代码(--mode\x20app|basic|plugin,默认\x20app:表前缀\x20app_,控制器\x20admin,输出\x20src/app)','createPlugin','toString','design:returntype','5gBkYTo','trim','-m,\x20--mode\x20[mode]','__esModule','parseTables','parseSubstr','app','tableprefix','src/apps/<模块>','--vuedialog','exit','前端全局\x20api\x20前缀(配合\x20--hasvue,如\x20$api):设置时不生成独立\x20api\x20文件,页面直接调\x20${前缀}.${模块}${表Pascal}.${方法}($api.Order.List\x20/\x20$api.helloincshOrders.List)适配\x20alova;缺省按原规则生成\x20vue/apis\x20独立\x20api\x20文件','parseHasvue','anveroGenCommand','mode','design:paramtypes','生成前端代码到\x20./vue;不带此参数不生成前端','[gen:api]\x20未知模式\x20','parseMode','vueapiprefix','includes','104IcBHkG','--vueapiprefix\x20[vueapiprefix]','decorate','basic_','length','parseVuedialog','667242fuqEZJ','控制器目录名,逗号分隔多个,默认\x20admin;裸\x20flag\x20落\x20app/basic\x20根目录;空串只生成基础分层','basic','prototype','defineProperty','tables','function','isFinite','7006660vWGPpY','hasvue','表名截断长度,默认\x20app\x20模式\x204(去\x20app_)、basic\x20模式\x206(去\x20basic_)、plugin\x20模式\x200','2092274IuunhJ','typeorm\x20数据源名,默认\x20default','ApicreateService','257697mohRnU','string','log','constructor','error','27582JMUAAk','split','parseController','substr','@midwayjs/core','metadata','plugin','-t,\x20--tables\x20[tables]','createBasic','__decorate','\x20全量匹配','apply','filter','map','__metadata','src/','--hasvue','vuedialog','parseConnection','3469026WbhXtQ','default','design:type','object','-c,\x20--controller\x20[controller]','app_','createApp','按前缀\x20','search','admin','../service/ApicreateService','11MwQErh','3128944YtabqD','@midwayjs/commander','80nObzXC',',可选\x20app\x20|\x20basic\x20|\x20plugin','Option','--connection\x20[connection]','parseVueapiprefix','前端生成弹窗形态标记(配合\x20--hasvue)','(((.+)+)+)+$','-s,\x20--substr\x20[substr]','run','connection'];a0_0x4f2f=function(){return _0x578fcc;};return a0_0x4f2f();}function a0_0x1bd7(_0x334509,_0x5a147c){_0x334509=_0x334509-0x105;const _0x2d2892=a0_0x4f2f();let _0xa828c8=_0x2d2892[_0x334509];return _0xa828c8;}const a0_0x473a7e=(function(){let _0x350d7=!![];return function(_0x1b4512,_0x4700e9){const _0x163560=_0x350d7?function(){const _0x586571=a0_0x1bd7;if(_0x4700e9){const _0x23e620=_0x4700e9[_0x586571(0x13e)](_0x1b4512,arguments);return _0x4700e9=null,_0x23e620;}}:function(){};return _0x350d7=![],_0x163560;};}()),a0_0xa828c8=a0_0x473a7e(this,function(){const _0x40305a=a0_0x1bd7;return a0_0xa828c8[_0x40305a(0x163)]()[_0x40305a(0x14e)](_0x40305a(0x15a))[_0x40305a(0x163)]()[_0x40305a(0x131)](a0_0xa828c8)[_0x40305a(0x14e)](_0x40305a(0x15a));});a0_0xa828c8();'use strict';var __decorate=this&&this[a0_0x281447(0x13c)]||function(_0x117b66,_0x33dbf9,_0x270753,_0x217a24){const _0x3a676a=a0_0x281447;var _0x2b3bdd=arguments['length'],_0x5e4351=_0x2b3bdd<0x3?_0x33dbf9:_0x217a24===null?_0x217a24=Object['getOwnPropertyDescriptor'](_0x33dbf9,_0x270753):_0x217a24,_0xa657ce;if(typeof Reflect==='object'&&typeof Reflect['decorate']===_0x3a676a(0x126))_0x5e4351=Reflect[_0x3a676a(0x11c)](_0x117b66,_0x33dbf9,_0x270753,_0x217a24);else{for(var _0x3dba38=_0x117b66['length']-0x1;_0x3dba38>=0x0;_0x3dba38--)if(_0xa657ce=_0x117b66[_0x3dba38])_0x5e4351=(_0x2b3bdd<0x3?_0xa657ce(_0x5e4351):_0x2b3bdd>0x3?_0xa657ce(_0x33dbf9,_0x270753,_0x5e4351):_0xa657ce(_0x33dbf9,_0x270753))||_0x5e4351;}return _0x2b3bdd>0x3&&_0x5e4351&&Object[_0x3a676a(0x124)](_0x33dbf9,_0x270753,_0x5e4351),_0x5e4351;},__metadata=this&&this[a0_0x281447(0x141)]||function(_0x253b29,_0x4edc2c){const _0x29e54e=a0_0x281447;if(typeof Reflect===_0x29e54e(0x149)&&typeof Reflect[_0x29e54e(0x138)]===_0x29e54e(0x126))return Reflect[_0x29e54e(0x138)](_0x253b29,_0x4edc2c);};Object[a0_0x281447(0x124)](exports,a0_0x281447(0x108),{'value':!![]}),exports[a0_0x281447(0x112)]=void 0x0;const core_1=require(a0_0x281447(0x137)),commander_1=require(a0_0x281447(0x153)),ApicreateService_1=require(a0_0x281447(0x150));let anveroGenCommand=class anveroGenCommand{[a0_0x281447(0x117)](_0x1cc837){return _0x1cc837;}[a0_0x281447(0x109)](_0x2e086f){const _0x99510=a0_0x281447;return(_0x2e086f||'')['split'](',')[_0x99510(0x140)](_0x7f6b4c=>_0x7f6b4c[_0x99510(0x106)]())['filter'](Boolean);}[a0_0x281447(0x160)](_0x2111b5){const _0x11a5d6=a0_0x281447;return typeof _0x2111b5===_0x11a5d6(0x12f)?_0x2111b5:undefined;}[a0_0x281447(0x10a)](_0x421026){const _0x25ebd5=a0_0x281447;return typeof _0x421026===_0x25ebd5(0x12f)&&_0x421026!==''&&Number[_0x25ebd5(0x127)](Number(_0x421026))?Number(_0x421026):undefined;}[a0_0x281447(0x135)](_0x27f218){const _0x38998d=a0_0x281447;if(_0x27f218===undefined)return!![];return(_0x27f218||'')[_0x38998d(0x134)](',')[_0x38998d(0x140)](_0x26a609=>_0x26a609['trim']())[_0x38998d(0x13f)](Boolean);}[a0_0x281447(0x111)](){return!![];}['parseVuedialog'](){return!![];}['parseVueapiprefix'](_0x5dd596){const _0x387f46=a0_0x281447;return typeof _0x5dd596===_0x387f46(0x12f)&&_0x5dd596?_0x5dd596:undefined;}[a0_0x281447(0x145)](_0x4ca996){return typeof _0x4ca996==='string'&&_0x4ca996?_0x4ca996:undefined;}async[a0_0x281447(0x15c)](_0x4a70a8,_0x1b7ad6){const _0x4da50c=a0_0x281447,_0x36d3a1=_0x1b7ad6[_0x4da50c(0x113)]||_0x4da50c(0x10b);![_0x4da50c(0x10b),_0x4da50c(0x122),_0x4da50c(0x139)][_0x4da50c(0x119)](_0x36d3a1)&&(console[_0x4da50c(0x132)](_0x4da50c(0x116)+_0x36d3a1+_0x4da50c(0x155)),process[_0x4da50c(0x10f)](0x1));const _0x1de14b={'app':{'tableprefix':_0x4da50c(0x14b),'substr':0x4},'basic':{'tableprefix':_0x4da50c(0x11d),'substr':0x6},'plugin':{'tableprefix':'','substr':0x0}},_0x5685a5=typeof _0x1b7ad6[_0x4da50c(0x10c)]===_0x4da50c(0x12f)?_0x1b7ad6['tableprefix']:_0x1de14b[_0x36d3a1][_0x4da50c(0x10c)],_0x3a62d0=Number[_0x4da50c(0x127)](_0x1b7ad6[_0x4da50c(0x136)])?_0x1b7ad6[_0x4da50c(0x136)]:_0x1de14b[_0x36d3a1][_0x4da50c(0x136)],_0x5ab380=_0x1b7ad6[_0x4da50c(0x15e)]===undefined?[_0x4da50c(0x14f)]:_0x1b7ad6[_0x4da50c(0x15e)],_0x187607=typeof _0x1b7ad6[_0x4da50c(0x15d)]===_0x4da50c(0x12f)?_0x1b7ad6[_0x4da50c(0x15d)]:_0x4da50c(0x147),_0x16ab6b={'substr':_0x3a62d0,'tableprefix':_0x5685a5,'controller':_0x5ab380,'connection':_0x187607,'hasvue':_0x1b7ad6[_0x4da50c(0x129)],'vuedialog':!!_0x1b7ad6[_0x4da50c(0x144)],'vueapiprefix':_0x1b7ad6[_0x4da50c(0x118)]},_0x365267=_0x1b7ad6[_0x4da50c(0x125)]||[],_0x367009=_0x365267[_0x4da50c(0x11e)]?_0x365267:[''];for(const _0x24af3d of _0x367009){const _0x5a5394={..._0x16ab6b,..._0x24af3d?{'table':_0x24af3d}:{}};if(_0x36d3a1===_0x4da50c(0x122))await this[_0x4da50c(0x12d)][_0x4da50c(0x13b)](_0x5a5394);else _0x36d3a1===_0x4da50c(0x139)?await this[_0x4da50c(0x12d)][_0x4da50c(0x162)](_0x5a5394):await this[_0x4da50c(0x12d)][_0x4da50c(0x14c)](_0x5a5394);console[_0x4da50c(0x130)]('[gen:api]\x20完成:'+(_0x24af3d||_0x4da50c(0x14d)+(_0x5685a5||'*')+_0x4da50c(0x13d)));}console['log']('[gen:api]\x20产物目录:'+(_0x36d3a1==='plugin'?_0x4da50c(0x10d):_0x4da50c(0x142)+_0x36d3a1)),process[_0x4da50c(0x10f)](0x0);}};exports[a0_0x281447(0x112)]=anveroGenCommand,__decorate([(0x0,core_1['Inject'])(),__metadata(a0_0x281447(0x148),ApicreateService_1[a0_0x281447(0x12d)])],anveroGenCommand[a0_0x281447(0x123)],a0_0x281447(0x12d),void 0x0),__decorate([(0x0,commander_1['Option'])({'flags':a0_0x281447(0x107),'description':a0_0x281447(0x15f)}),__metadata(a0_0x281447(0x148),Function),__metadata(a0_0x281447(0x114),[String]),__metadata(a0_0x281447(0x164),void 0x0)],anveroGenCommand['prototype'],'parseMode',null),__decorate([(0x0,commander_1[a0_0x281447(0x156)])({'flags':a0_0x281447(0x13a),'description':'精确表名,逗号分隔多个;缺省按\x20tableprefix\x20全量匹配'}),__metadata(a0_0x281447(0x148),Function),__metadata('design:paramtypes',[String]),__metadata(a0_0x281447(0x164),void 0x0)],anveroGenCommand[a0_0x281447(0x123)],a0_0x281447(0x109),null),__decorate([(0x0,commander_1[a0_0x281447(0x156)])({'flags':'-p,\x20--tableprefix\x20[tableprefix]','description':'表前缀过滤,默认\x20app\x20模式\x20\x27app_\x27、basic\x20模式\x20\x27basic_\x27、plugin\x20模式\x20\x27\x27(全表)'}),__metadata(a0_0x281447(0x148),Function),__metadata(a0_0x281447(0x114),[String]),__metadata('design:returntype',void 0x0)],anveroGenCommand[a0_0x281447(0x123)],'parseTableprefix',null),__decorate([(0x0,commander_1[a0_0x281447(0x156)])({'flags':a0_0x281447(0x15b),'description':a0_0x281447(0x12a)}),__metadata(a0_0x281447(0x148),Function),__metadata(a0_0x281447(0x114),[String]),__metadata(a0_0x281447(0x164),void 0x0)],anveroGenCommand[a0_0x281447(0x123)],a0_0x281447(0x10a),null),__decorate([(0x0,commander_1['Option'])({'flags':a0_0x281447(0x14a),'description':a0_0x281447(0x121)}),__metadata('design:type',Function),__metadata(a0_0x281447(0x114),[String]),__metadata('design:returntype',void 0x0)],anveroGenCommand[a0_0x281447(0x123)],a0_0x281447(0x135),null),__decorate([(0x0,commander_1[a0_0x281447(0x156)])({'flags':a0_0x281447(0x143),'description':a0_0x281447(0x115)}),__metadata(a0_0x281447(0x148),Function),__metadata(a0_0x281447(0x114),[]),__metadata('design:returntype',void 0x0)],anveroGenCommand[a0_0x281447(0x123)],a0_0x281447(0x111),null),__decorate([(0x0,commander_1[a0_0x281447(0x156)])({'flags':a0_0x281447(0x10e),'description':a0_0x281447(0x159)}),__metadata('design:type',Function),__metadata(a0_0x281447(0x114),[]),__metadata('design:returntype',void 0x0)],anveroGenCommand[a0_0x281447(0x123)],a0_0x281447(0x11f),null),__decorate([(0x0,commander_1['Option'])({'flags':a0_0x281447(0x11b),'description':a0_0x281447(0x110)}),__metadata(a0_0x281447(0x148),Function),__metadata(a0_0x281447(0x114),[String]),__metadata(a0_0x281447(0x164),void 0x0)],anveroGenCommand[a0_0x281447(0x123)],a0_0x281447(0x158),null),__decorate([(0x0,commander_1['Option'])({'flags':a0_0x281447(0x157),'description':a0_0x281447(0x12c)}),__metadata('design:type',Function),__metadata(a0_0x281447(0x114),[String]),__metadata(a0_0x281447(0x164),void 0x0)],anveroGenCommand[a0_0x281447(0x123)],a0_0x281447(0x145),null),exports[a0_0x281447(0x112)]=anveroGenCommand=__decorate([(0x0,commander_1['Command'])({'name':'anvero:gen','description':a0_0x281447(0x161)})],anveroGenCommand);
1
+ const a0_0x50ead7=a0_0x3345;(function(_0x5ee8d2,_0xd717b0){const _0x3666e1=a0_0x3345,_0x2dfa6e=_0x5ee8d2();while(!![]){try{const _0x4d57cd=parseInt(_0x3666e1(0x22b))/0x1*(-parseInt(_0x3666e1(0x202))/0x2)+parseInt(_0x3666e1(0x1fe))/0x3+parseInt(_0x3666e1(0x1e8))/0x4*(-parseInt(_0x3666e1(0x21d))/0x5)+parseInt(_0x3666e1(0x232))/0x6*(parseInt(_0x3666e1(0x1e5))/0x7)+-parseInt(_0x3666e1(0x215))/0x8*(parseInt(_0x3666e1(0x209))/0x9)+-parseInt(_0x3666e1(0x1ff))/0xa+parseInt(_0x3666e1(0x1e6))/0xb;if(_0x4d57cd===_0xd717b0)break;else _0x2dfa6e['push'](_0x2dfa6e['shift']());}catch(_0x551ee4){_0x2dfa6e['push'](_0x2dfa6e['shift']());}}}(a0_0x210a,0x83787));const a0_0x157444=(function(){let _0x2e123f=!![];return function(_0x5167e9,_0x37b36c){const _0xffa6fd=_0x2e123f?function(){const _0x143ae3=a0_0x3345;if(_0x37b36c){const _0x39fb9f=_0x37b36c[_0x143ae3(0x237)](_0x5167e9,arguments);return _0x37b36c=null,_0x39fb9f;}}:function(){};return _0x2e123f=![],_0xffa6fd;};}()),a0_0x475573=a0_0x157444(this,function(){const _0xe314cb=a0_0x3345;return a0_0x475573[_0xe314cb(0x1ea)]()[_0xe314cb(0x1f4)]('(((.+)+)+)+$')['toString']()[_0xe314cb(0x229)](a0_0x475573)[_0xe314cb(0x1f4)](_0xe314cb(0x20d));});a0_0x475573();'use strict';var __decorate=this&&this[a0_0x50ead7(0x210)]||function(_0x119a88,_0x591107,_0x270f91,_0x40d340){const _0x1def6f=a0_0x50ead7;var _0x531db6=arguments['length'],_0x4a954a=_0x531db6<0x3?_0x591107:_0x40d340===null?_0x40d340=Object['getOwnPropertyDescriptor'](_0x591107,_0x270f91):_0x40d340,_0x1f6086;if(typeof Reflect===_0x1def6f(0x239)&&typeof Reflect['decorate']===_0x1def6f(0x1eb))_0x4a954a=Reflect[_0x1def6f(0x222)](_0x119a88,_0x591107,_0x270f91,_0x40d340);else{for(var _0x1b2b0d=_0x119a88[_0x1def6f(0x203)]-0x1;_0x1b2b0d>=0x0;_0x1b2b0d--)if(_0x1f6086=_0x119a88[_0x1b2b0d])_0x4a954a=(_0x531db6<0x3?_0x1f6086(_0x4a954a):_0x531db6>0x3?_0x1f6086(_0x591107,_0x270f91,_0x4a954a):_0x1f6086(_0x591107,_0x270f91))||_0x4a954a;}return _0x531db6>0x3&&_0x4a954a&&Object['defineProperty'](_0x591107,_0x270f91,_0x4a954a),_0x4a954a;},__metadata=this&&this[a0_0x50ead7(0x21f)]||function(_0x51e6df,_0x599e4f){const _0x45b62f=a0_0x50ead7;if(typeof Reflect===_0x45b62f(0x239)&&typeof Reflect[_0x45b62f(0x207)]===_0x45b62f(0x1eb))return Reflect[_0x45b62f(0x207)](_0x51e6df,_0x599e4f);};Object[a0_0x50ead7(0x221)](exports,a0_0x50ead7(0x238),{'value':!![]}),exports[a0_0x50ead7(0x22f)]=void 0x0;function a0_0x210a(){const _0x9e687a=['--vuedialog','trim','map','anveroGenCommand','前端生成弹窗形态标记(配合\x20--hasvue)','表前缀过滤,默认\x20app\x20模式\x20\x27app_\x27、basic\x20模式\x20\x27basic_\x27、plugin\x20模式\x20\x27\x27(全表)','306KbhNDS','parseController','design:returntype','default','design:type','apply','__esModule','object','vuedialog','filter','src/apps/<模块>','前端全局\x20api\x20前缀(配合\x20--hasvue,如\x20$api):设置时不生成独立\x20api\x20文件,页面直接调\x20${前缀}.${模块}${表Pascal}.${方法}($api.Order.List\x20/\x20$api.helloincshOrders.List)适配\x20alova;缺省按原规则生成\x20vue/apis\x20独立\x20api\x20文件','132685SQsmLz','2954875BKGYRO','admin','508itLrTR','按前缀\x20','toString','function','精确表名,逗号分隔多个;缺省按\x20tableprefix\x20全量匹配','controller','typeorm\x20数据源名,默认\x20default','app','createPlugin','log','substr','[gen:api]\x20完成:','search','--hasvue','tables','mode','exit','connection','@midwayjs/core','-s,\x20--substr\x20[substr]','parseVuedialog','src/','2907063oiFJvI','2433230aEUHCH','\x20全量匹配','anvero:gen','14FlfBtn','length','生成模式\x20app|basic|plugin,默认\x20app(产物依次为\x20src/app、src/basic、src/apps/<模块>)','ApicreateService','basic','metadata','按数据库表生成分层\x20API\x20代码(--mode\x20app|basic|plugin,默认\x20app:表前缀\x20app_,控制器\x20admin,输出\x20src/app)','29151eaagJr','design:paramtypes','prototype','[gen:api]\x20未知模式\x20','(((.+)+)+)+$','表名截断长度,默认\x20app\x20模式\x204(去\x20app_)、basic\x20模式\x206(去\x20basic_)、plugin\x20模式\x200','createBasic','__decorate','[gen:api]\x20产物目录:','parseHasvue','isFinite','run','1352mMabiM','hasvue','Command','parseConnection','../service/ApicreateService','parseMode','--connection\x20[connection]','@midwayjs/commander','18415olZRJG','--vueapiprefix\x20[vueapiprefix]','__metadata','tableprefix','defineProperty','decorate','-t,\x20--tables\x20[tables]','plugin','parseTables','string','Option','parseTableprefix','constructor','parseSubstr','58199KuRQgj'];a0_0x210a=function(){return _0x9e687a;};return a0_0x210a();}function a0_0x3345(_0x5628f6,_0x5f350a){_0x5628f6=_0x5628f6-0x1e1;const _0x3b05b7=a0_0x210a();let _0x475573=_0x3b05b7[_0x5628f6];return _0x475573;}const core_1=require(a0_0x50ead7(0x1fa)),commander_1=require(a0_0x50ead7(0x21c)),ApicreateService_1=require(a0_0x50ead7(0x219));let anveroGenCommand=class anveroGenCommand{[a0_0x50ead7(0x21a)](_0x5cb4e6){return _0x5cb4e6;}['parseTables'](_0x6fc0fa){const _0xa28466=a0_0x50ead7;return(_0x6fc0fa||'')['split'](',')['map'](_0x31e5e4=>_0x31e5e4['trim']())[_0xa28466(0x1e2)](Boolean);}[a0_0x50ead7(0x228)](_0x1e6ba7){const _0x1e56b9=a0_0x50ead7;return typeof _0x1e6ba7===_0x1e56b9(0x226)?_0x1e6ba7:undefined;}[a0_0x50ead7(0x22a)](_0x41d9d8){const _0x3043a7=a0_0x50ead7;return typeof _0x41d9d8===_0x3043a7(0x226)&&_0x41d9d8!==''&&Number[_0x3043a7(0x213)](Number(_0x41d9d8))?Number(_0x41d9d8):undefined;}[a0_0x50ead7(0x233)](_0x2e2253){const _0x1e88ca=a0_0x50ead7;if(_0x2e2253===undefined)return!![];return(_0x2e2253||'')['split'](',')[_0x1e88ca(0x22e)](_0x504763=>_0x504763[_0x1e88ca(0x22d)]())[_0x1e88ca(0x1e2)](Boolean);}[a0_0x50ead7(0x212)](){return!![];}['parseVuedialog'](){return!![];}['parseVueapiprefix'](_0x1485aa){const _0x948cee=a0_0x50ead7;return typeof _0x1485aa===_0x948cee(0x226)&&_0x1485aa?_0x1485aa:undefined;}[a0_0x50ead7(0x218)](_0xda4566){const _0x238e98=a0_0x50ead7;return typeof _0xda4566===_0x238e98(0x226)&&_0xda4566?_0xda4566:undefined;}async[a0_0x50ead7(0x214)](_0x5176b2,_0xa081ec){const _0x1389e7=a0_0x50ead7,_0x4b0676=_0xa081ec[_0x1389e7(0x1f7)]||_0x1389e7(0x1ef);![_0x1389e7(0x1ef),_0x1389e7(0x206),_0x1389e7(0x224)]['includes'](_0x4b0676)&&(console['error'](_0x1389e7(0x20c)+_0x4b0676+',可选\x20app\x20|\x20basic\x20|\x20plugin'),process[_0x1389e7(0x1f8)](0x1));const _0x492d22={'app':{'tableprefix':'app_','substr':0x4},'basic':{'tableprefix':'basic_','substr':0x6},'plugin':{'tableprefix':'','substr':0x0}},_0x3724c6=typeof _0xa081ec[_0x1389e7(0x220)]==='string'?_0xa081ec[_0x1389e7(0x220)]:_0x492d22[_0x4b0676][_0x1389e7(0x220)],_0x597238=Number['isFinite'](_0xa081ec[_0x1389e7(0x1f2)])?_0xa081ec[_0x1389e7(0x1f2)]:_0x492d22[_0x4b0676][_0x1389e7(0x1f2)],_0x26d92b=_0xa081ec[_0x1389e7(0x1ed)]===undefined?[_0x1389e7(0x1e7)]:_0xa081ec[_0x1389e7(0x1ed)],_0x282026=typeof _0xa081ec[_0x1389e7(0x1f9)]==='string'?_0xa081ec[_0x1389e7(0x1f9)]:_0x1389e7(0x235),_0x170444={'substr':_0x597238,'tableprefix':_0x3724c6,'controller':_0x26d92b,'connection':_0x282026,'hasvue':_0xa081ec[_0x1389e7(0x216)],'vuedialog':!!_0xa081ec[_0x1389e7(0x1e1)],'vueapiprefix':_0xa081ec['vueapiprefix']},_0x2bfc91=_0xa081ec[_0x1389e7(0x1f6)]||[],_0x3bf412=_0x2bfc91[_0x1389e7(0x203)]?_0x2bfc91:[''];for(const _0x3ffd50 of _0x3bf412){const _0x5501f4={..._0x170444,..._0x3ffd50?{'table':_0x3ffd50}:{}};if(_0x4b0676===_0x1389e7(0x206))await this['ApicreateService'][_0x1389e7(0x20f)](_0x5501f4);else _0x4b0676==='plugin'?await this[_0x1389e7(0x205)][_0x1389e7(0x1f0)](_0x5501f4):await this['ApicreateService']['createApp'](_0x5501f4);console[_0x1389e7(0x1f1)](_0x1389e7(0x1f3)+(_0x3ffd50||_0x1389e7(0x1e9)+(_0x3724c6||'*')+_0x1389e7(0x200)));}console[_0x1389e7(0x1f1)](_0x1389e7(0x211)+(_0x4b0676===_0x1389e7(0x224)?_0x1389e7(0x1e3):_0x1389e7(0x1fd)+_0x4b0676)),process[_0x1389e7(0x1f8)](0x0);}};exports[a0_0x50ead7(0x22f)]=anveroGenCommand,__decorate([(0x0,core_1['Inject'])(),__metadata('design:type',ApicreateService_1[a0_0x50ead7(0x205)])],anveroGenCommand[a0_0x50ead7(0x20b)],a0_0x50ead7(0x205),void 0x0),__decorate([(0x0,commander_1[a0_0x50ead7(0x227)])({'flags':'-m,\x20--mode\x20[mode]','description':a0_0x50ead7(0x204)}),__metadata(a0_0x50ead7(0x236),Function),__metadata(a0_0x50ead7(0x20a),[String]),__metadata('design:returntype',void 0x0)],anveroGenCommand['prototype'],a0_0x50ead7(0x21a),null),__decorate([(0x0,commander_1[a0_0x50ead7(0x227)])({'flags':a0_0x50ead7(0x223),'description':a0_0x50ead7(0x1ec)}),__metadata(a0_0x50ead7(0x236),Function),__metadata(a0_0x50ead7(0x20a),[String]),__metadata(a0_0x50ead7(0x234),void 0x0)],anveroGenCommand['prototype'],a0_0x50ead7(0x225),null),__decorate([(0x0,commander_1[a0_0x50ead7(0x227)])({'flags':'-p,\x20--tableprefix\x20[tableprefix]','description':a0_0x50ead7(0x231)}),__metadata(a0_0x50ead7(0x236),Function),__metadata('design:paramtypes',[String]),__metadata(a0_0x50ead7(0x234),void 0x0)],anveroGenCommand['prototype'],a0_0x50ead7(0x228),null),__decorate([(0x0,commander_1[a0_0x50ead7(0x227)])({'flags':a0_0x50ead7(0x1fb),'description':a0_0x50ead7(0x20e)}),__metadata(a0_0x50ead7(0x236),Function),__metadata(a0_0x50ead7(0x20a),[String]),__metadata(a0_0x50ead7(0x234),void 0x0)],anveroGenCommand[a0_0x50ead7(0x20b)],a0_0x50ead7(0x22a),null),__decorate([(0x0,commander_1[a0_0x50ead7(0x227)])({'flags':'-c,\x20--controller\x20[controller]','description':'控制器目录名,逗号分隔多个,默认\x20admin;裸\x20flag\x20落\x20app/basic\x20根目录;空串只生成基础分层'}),__metadata('design:type',Function),__metadata(a0_0x50ead7(0x20a),[String]),__metadata(a0_0x50ead7(0x234),void 0x0)],anveroGenCommand[a0_0x50ead7(0x20b)],a0_0x50ead7(0x233),null),__decorate([(0x0,commander_1[a0_0x50ead7(0x227)])({'flags':a0_0x50ead7(0x1f5),'description':'生成前端代码到\x20./vue;不带此参数不生成前端'}),__metadata('design:type',Function),__metadata(a0_0x50ead7(0x20a),[]),__metadata('design:returntype',void 0x0)],anveroGenCommand[a0_0x50ead7(0x20b)],a0_0x50ead7(0x212),null),__decorate([(0x0,commander_1['Option'])({'flags':a0_0x50ead7(0x22c),'description':a0_0x50ead7(0x230)}),__metadata(a0_0x50ead7(0x236),Function),__metadata(a0_0x50ead7(0x20a),[]),__metadata(a0_0x50ead7(0x234),void 0x0)],anveroGenCommand['prototype'],a0_0x50ead7(0x1fc),null),__decorate([(0x0,commander_1[a0_0x50ead7(0x227)])({'flags':a0_0x50ead7(0x21e),'description':a0_0x50ead7(0x1e4)}),__metadata(a0_0x50ead7(0x236),Function),__metadata(a0_0x50ead7(0x20a),[String]),__metadata(a0_0x50ead7(0x234),void 0x0)],anveroGenCommand[a0_0x50ead7(0x20b)],'parseVueapiprefix',null),__decorate([(0x0,commander_1[a0_0x50ead7(0x227)])({'flags':a0_0x50ead7(0x21b),'description':a0_0x50ead7(0x1ee)}),__metadata('design:type',Function),__metadata(a0_0x50ead7(0x20a),[String]),__metadata('design:returntype',void 0x0)],anveroGenCommand[a0_0x50ead7(0x20b)],'parseConnection',null),exports['anveroGenCommand']=anveroGenCommand=__decorate([(0x0,commander_1[a0_0x50ead7(0x217)])({'name':a0_0x50ead7(0x201),'description':a0_0x50ead7(0x208)})],anveroGenCommand);
@@ -1 +1 @@
1
- var a1_0x540e36=a1_0x5d08;(function(_0x3e8fe1,_0x11b658){var _0x2d95c3=a1_0x5d08,_0x172fac=_0x3e8fe1();while(!![]){try{var _0x230d40=parseInt(_0x2d95c3(0xc6))/0x1*(-parseInt(_0x2d95c3(0xc0))/0x2)+-parseInt(_0x2d95c3(0xc2))/0x3+parseInt(_0x2d95c3(0xb2))/0x4*(-parseInt(_0x2d95c3(0xc8))/0x5)+-parseInt(_0x2d95c3(0xa5))/0x6*(-parseInt(_0x2d95c3(0xae))/0x7)+parseInt(_0x2d95c3(0xa9))/0x8*(-parseInt(_0x2d95c3(0xad))/0x9)+-parseInt(_0x2d95c3(0xbc))/0xa*(-parseInt(_0x2d95c3(0xa6))/0xb)+-parseInt(_0x2d95c3(0xc5))/0xc*(-parseInt(_0x2d95c3(0xb5))/0xd);if(_0x230d40===_0x11b658)break;else _0x172fac['push'](_0x172fac['shift']());}catch(_0xbbec3e){_0x172fac['push'](_0x172fac['shift']());}}}(a1_0x24ea,0x78711));var a1_0x5e0d03=(function(){var _0x5ec40f=!![];return function(_0x478958,_0x543681){var _0x473b82=_0x5ec40f?function(){var _0x3ba584=a1_0x5d08;if(_0x543681){var _0x5d59c6=_0x543681[_0x3ba584(0xcb)](_0x478958,arguments);return _0x543681=null,_0x5d59c6;}}:function(){};return _0x5ec40f=![],_0x473b82;};}()),a1_0x154cda=a1_0x5e0d03(this,function(){var _0x78d95c=a1_0x5d08;return a1_0x154cda[_0x78d95c(0xbe)]()['search'](_0x78d95c(0xca))[_0x78d95c(0xbe)]()[_0x78d95c(0xc9)](a1_0x154cda)[_0x78d95c(0xb7)]('(((.+)+)+)+$');});a1_0x154cda();'use strict';function a1_0x5d08(_0x523d54,_0x3e0c1a){_0x523d54=_0x523d54-0xa2;var _0x4a9380=a1_0x24ea();var _0x154cda=_0x4a9380[_0x523d54];return _0x154cda;}var __decorate=this&&this['__decorate']||function(_0x560508,_0x80109f,_0x45febb,_0xe0dd65){var _0x60a7c9=a1_0x5d08,_0x3833d3=arguments[_0x60a7c9(0xa8)],_0x5dc5e9=_0x3833d3<0x3?_0x80109f:_0xe0dd65===null?_0xe0dd65=Object['getOwnPropertyDescriptor'](_0x80109f,_0x45febb):_0xe0dd65,_0x28692e;if(typeof Reflect===_0x60a7c9(0xc7)&&typeof Reflect['decorate']===_0x60a7c9(0xbf))_0x5dc5e9=Reflect[_0x60a7c9(0xb9)](_0x560508,_0x80109f,_0x45febb,_0xe0dd65);else{for(var _0x4edef3=_0x560508[_0x60a7c9(0xa8)]-0x1;_0x4edef3>=0x0;_0x4edef3--)if(_0x28692e=_0x560508[_0x4edef3])_0x5dc5e9=(_0x3833d3<0x3?_0x28692e(_0x5dc5e9):_0x3833d3>0x3?_0x28692e(_0x80109f,_0x45febb,_0x5dc5e9):_0x28692e(_0x80109f,_0x45febb))||_0x5dc5e9;}return _0x3833d3>0x3&&_0x5dc5e9&&Object[_0x60a7c9(0xbd)](_0x80109f,_0x45febb,_0x5dc5e9),_0x5dc5e9;},__metadata=this&&this[a1_0x540e36(0xa7)]||function(_0x18af37,_0x5db875){var _0x343fd5=a1_0x540e36;if(typeof Reflect===_0x343fd5(0xc7)&&typeof Reflect[_0x343fd5(0xb0)]===_0x343fd5(0xbf))return Reflect[_0x343fd5(0xb0)](_0x18af37,_0x5db875);};Object['defineProperty'](exports,a1_0x540e36(0xba),{'value':!![]}),exports[a1_0x540e36(0xab)]=void 0x0;const core_1=require(a1_0x540e36(0xa2)),core_2=require(a1_0x540e36(0xa2)),typeorm=require(a1_0x540e36(0xb6)),commander=require(a1_0x540e36(0xa4));let CustomConfiguration=class CustomConfiguration{async[a1_0x540e36(0xb8)](){}};exports['CustomConfiguration']=CustomConfiguration,__decorate([(0x0,core_1['Inject'])(),__metadata(a1_0x540e36(0xbb),core_2[a1_0x540e36(0xb4)])],CustomConfiguration['prototype'],a1_0x540e36(0xa3),void 0x0),__decorate([(0x0,core_1[a1_0x540e36(0xb1)])(),__metadata(a1_0x540e36(0xbb),core_2[a1_0x540e36(0xc1)])],CustomConfiguration[a1_0x540e36(0xac)],a1_0x540e36(0xb3),void 0x0),__decorate([(0x0,core_1[a1_0x540e36(0xb1)])(),__metadata(a1_0x540e36(0xbb),core_2[a1_0x540e36(0xaf)])],CustomConfiguration[a1_0x540e36(0xac)],a1_0x540e36(0xaa),void 0x0),exports[a1_0x540e36(0xab)]=CustomConfiguration=__decorate([(0x0,core_1[a1_0x540e36(0xc4)])({'imports':[typeorm,commander],'namespace':a1_0x540e36(0xc3)})],CustomConfiguration);function a1_0x24ea(){var _0x540534=['function','2svlWSI','MidwayDecoratorService','1879689zzDprA','anvero-apihelper','Configuration','5532eIoBnV','950917ciVjWO','object','5hlUZih','constructor','(((.+)+)+)+$','apply','@midwayjs/core','config','@midwayjs/commander','75066EZxiZb','9185ojLoDK','__metadata','length','3633976akxYde','application','CustomConfiguration','prototype','9gIySlu','392EaCzaj','MidwayApplicationManager','metadata','Inject','1411688DRGXpj','decorator','MidwayConfigService','59046NAyQie','@anveroapi/typeorm','search','onReady','decorate','__esModule','design:type','1000adGusn','defineProperty','toString'];a1_0x24ea=function(){return _0x540534;};return a1_0x24ea();}
1
+ var a1_0x39afa5=a1_0x58be;(function(_0x51b4f3,_0x5cfc98){var _0x5cfb1f=a1_0x58be,_0x1b54db=_0x51b4f3();while(!![]){try{var _0x59c3fb=parseInt(_0x5cfb1f(0x129))/0x1+parseInt(_0x5cfb1f(0x127))/0x2+-parseInt(_0x5cfb1f(0x125))/0x3*(-parseInt(_0x5cfb1f(0x119))/0x4)+parseInt(_0x5cfb1f(0x126))/0x5*(-parseInt(_0x5cfb1f(0x121))/0x6)+parseInt(_0x5cfb1f(0x113))/0x7*(parseInt(_0x5cfb1f(0x12b))/0x8)+parseInt(_0x5cfb1f(0x11e))/0x9*(parseInt(_0x5cfb1f(0x115))/0xa)+-parseInt(_0x5cfb1f(0x130))/0xb;if(_0x59c3fb===_0x5cfc98)break;else _0x1b54db['push'](_0x1b54db['shift']());}catch(_0x2abde0){_0x1b54db['push'](_0x1b54db['shift']());}}}(a1_0xb862,0x88ec2));var a1_0x2a6e07=(function(){var _0x40ea09=!![];return function(_0x146f9c,_0x397f6e){var _0xdd057=_0x40ea09?function(){var _0x5afe6b=a1_0x58be;if(_0x397f6e){var _0x3e0487=_0x397f6e[_0x5afe6b(0x11b)](_0x146f9c,arguments);return _0x397f6e=null,_0x3e0487;}}:function(){};return _0x40ea09=![],_0xdd057;};}()),a1_0x127881=a1_0x2a6e07(this,function(){var _0x3a847e=a1_0x58be;return a1_0x127881[_0x3a847e(0x12f)]()[_0x3a847e(0x134)](_0x3a847e(0x12c))[_0x3a847e(0x12f)]()[_0x3a847e(0x128)](a1_0x127881)[_0x3a847e(0x134)]('(((.+)+)+)+$');});function a1_0x58be(_0x1f1da2,_0x1ac072){_0x1f1da2=_0x1f1da2-0x113;var _0x1d1db4=a1_0xb862();var _0x127881=_0x1d1db4[_0x1f1da2];return _0x127881;}a1_0x127881();'use strict';var __decorate=this&&this['__decorate']||function(_0x1ca616,_0x4ac190,_0x338613,_0x4041b0){var _0x531dd1=a1_0x58be,_0x31e00a=arguments['length'],_0x3fa8de=_0x31e00a<0x3?_0x4ac190:_0x4041b0===null?_0x4041b0=Object['getOwnPropertyDescriptor'](_0x4ac190,_0x338613):_0x4041b0,_0xcfa09c;if(typeof Reflect===_0x531dd1(0x12d)&&typeof Reflect[_0x531dd1(0x12a)]===_0x531dd1(0x11c))_0x3fa8de=Reflect[_0x531dd1(0x12a)](_0x1ca616,_0x4ac190,_0x338613,_0x4041b0);else{for(var _0x4ed4d2=_0x1ca616[_0x531dd1(0x137)]-0x1;_0x4ed4d2>=0x0;_0x4ed4d2--)if(_0xcfa09c=_0x1ca616[_0x4ed4d2])_0x3fa8de=(_0x31e00a<0x3?_0xcfa09c(_0x3fa8de):_0x31e00a>0x3?_0xcfa09c(_0x4ac190,_0x338613,_0x3fa8de):_0xcfa09c(_0x4ac190,_0x338613))||_0x3fa8de;}return _0x31e00a>0x3&&_0x3fa8de&&Object[_0x531dd1(0x135)](_0x4ac190,_0x338613,_0x3fa8de),_0x3fa8de;},__metadata=this&&this[a1_0x39afa5(0x11d)]||function(_0x4166e1,_0x3d9500){var _0x374fa8=a1_0x39afa5;if(typeof Reflect===_0x374fa8(0x12d)&&typeof Reflect[_0x374fa8(0x11a)]===_0x374fa8(0x11c))return Reflect[_0x374fa8(0x11a)](_0x4166e1,_0x3d9500);};function a1_0xb862(){var _0x53a19d=['9CTarFA','anvero-apihelper','__esModule','994386lVTQAc','@anveroapi/typeorm','CustomConfiguration','MidwayApplicationManager','2145InQHRg','5BislLM','1911842ZxtRuI','constructor','432173EiyWrN','decorate','9464EKdEAz','(((.+)+)+)+$','object','@midwayjs/core','toString','30401943AbqpRq','Inject','onReady','MidwayConfigService','search','defineProperty','config','length','5243FUIUeo','MidwayDecoratorService','7285870pumXaW','prototype','@midwayjs/commander','design:type','2728OuDQEq','metadata','apply','function','__metadata'];a1_0xb862=function(){return _0x53a19d;};return a1_0xb862();}Object[a1_0x39afa5(0x135)](exports,a1_0x39afa5(0x120),{'value':!![]}),exports[a1_0x39afa5(0x123)]=void 0x0;const core_1=require(a1_0x39afa5(0x12e)),core_2=require(a1_0x39afa5(0x12e)),typeorm=require(a1_0x39afa5(0x122)),commander=require(a1_0x39afa5(0x117));let CustomConfiguration=class CustomConfiguration{async[a1_0x39afa5(0x132)](){}};exports[a1_0x39afa5(0x123)]=CustomConfiguration,__decorate([(0x0,core_1[a1_0x39afa5(0x131)])(),__metadata('design:type',core_2[a1_0x39afa5(0x133)])],CustomConfiguration[a1_0x39afa5(0x116)],a1_0x39afa5(0x136),void 0x0),__decorate([(0x0,core_1[a1_0x39afa5(0x131)])(),__metadata('design:type',core_2[a1_0x39afa5(0x114)])],CustomConfiguration[a1_0x39afa5(0x116)],'decorator',void 0x0),__decorate([(0x0,core_1[a1_0x39afa5(0x131)])(),__metadata(a1_0x39afa5(0x118),core_2[a1_0x39afa5(0x124)])],CustomConfiguration[a1_0x39afa5(0x116)],'application',void 0x0),exports[a1_0x39afa5(0x123)]=CustomConfiguration=__decorate([(0x0,core_1['Configuration'])({'imports':[typeorm,commander],'namespace':a1_0x39afa5(0x11f)})],CustomConfiguration);
package/dist/helper.js CHANGED
@@ -1 +1 @@
1
- const a2_0xcef022=a2_0x4947;(function(_0x21fcf0,_0x48ea6c){const _0x3d2dcd=a2_0x4947,_0x3ac1a3=_0x21fcf0();while(!![]){try{const _0x5b08e3=parseInt(_0x3d2dcd(0x89))/0x1+-parseInt(_0x3d2dcd(0x74))/0x2*(parseInt(_0x3d2dcd(0x78))/0x3)+parseInt(_0x3d2dcd(0x6e))/0x4+-parseInt(_0x3d2dcd(0x76))/0x5*(-parseInt(_0x3d2dcd(0x72))/0x6)+-parseInt(_0x3d2dcd(0x80))/0x7*(-parseInt(_0x3d2dcd(0x7e))/0x8)+parseInt(_0x3d2dcd(0x90))/0x9+parseInt(_0x3d2dcd(0x83))/0xa*(-parseInt(_0x3d2dcd(0x86))/0xb);if(_0x5b08e3===_0x48ea6c)break;else _0x3ac1a3['push'](_0x3ac1a3['shift']());}catch(_0x23b4f3){_0x3ac1a3['push'](_0x3ac1a3['shift']());}}}(a2_0x327e,0x40838));const a2_0x3ff95c=(function(){let _0x2df3f2=!![];return function(_0x598661,_0x49555e){const _0x5a18a8=_0x2df3f2?function(){const _0x25e607=a2_0x4947;if(_0x49555e){const _0x431af8=_0x49555e[_0x25e607(0x8a)](_0x598661,arguments);return _0x49555e=null,_0x431af8;}}:function(){};return _0x2df3f2=![],_0x5a18a8;};}()),a2_0x2c1600=a2_0x3ff95c(this,function(){const _0x358fc4=a2_0x4947;return a2_0x2c1600[_0x358fc4(0x7c)]()[_0x358fc4(0x82)](_0x358fc4(0x70))[_0x358fc4(0x7c)]()[_0x358fc4(0x88)](a2_0x2c1600)['search'](_0x358fc4(0x70));});a2_0x2c1600();function a2_0x4947(_0x3e0eb9,_0x22652b){_0x3e0eb9=_0x3e0eb9-0x6e;const _0x189bc6=a2_0x327e();let _0x2c1600=_0x189bc6[_0x3e0eb9];return _0x2c1600;}'use strict';Object[a2_0xcef022(0x8d)](exports,'__esModule',{'value':!![]}),exports[a2_0xcef022(0x79)]=getProp,exports[a2_0xcef022(0x6f)]=getEnum;const columnTypes={'json':a2_0xcef022(0x87),'char':'string','varchar':a2_0xcef022(0x7a),'text':a2_0xcef022(0x8c),'longtext':a2_0xcef022(0x81),'mediumtext':'mediumtext','int':a2_0xcef022(0x8b),'float':'float','double':a2_0xcef022(0x8f),'decimal':a2_0xcef022(0x77),'date':'date','time':a2_0xcef022(0x7d),'datetime':a2_0xcef022(0x7d),'timestamp':a2_0xcef022(0x8e),'tinyint':a2_0xcef022(0x7f)};function a2_0x327e(){const _0x10a223=['366012xgTPLc','1441568lcRfPP','getEnum','(((.+)+)+)+$','indexOf','17328AUAezP','hasOwnProperty','6434DSHjtd','split','5naqqtP','decimal','312xkyfEm','getProp','string','substr','toString','datetime','66632sJXFMF','tinyint','161kSTjeO','longtext','search','30rPUYhM','replace','enum','1887809VjoEcD','json','constructor','518158pYokPM','apply','number','text','defineProperty','timestamp','float'];a2_0x327e=function(){return _0x10a223;};return a2_0x327e();}function getProp(_0x51d8b6){const _0x62a933=a2_0xcef022;if(columnTypes[_0x62a933(0x73)](_0x51d8b6))return columnTypes[_0x51d8b6];else return _0x51d8b6[_0x62a933(0x71)]('(')>-0x1||_0x51d8b6[_0x62a933(0x71)]('\x20')>-0x1?(_0x51d8b6=_0x51d8b6[_0x62a933(0x7b)](0x0,_0x51d8b6['indexOf']('(')>-0x1?_0x51d8b6['indexOf']('('):_0x51d8b6[_0x62a933(0x71)]('\x20')),columnTypes[_0x51d8b6]||_0x51d8b6):_0x62a933(0x7a);}function getEnum(_0x524973){const _0x2f013a=a2_0xcef022;if(getProp(_0x524973)==_0x2f013a(0x85))return _0x524973[_0x2f013a(0x7b)](0x5,_0x524973['length']-0x6)[_0x2f013a(0x84)](/[\'|\"]/g,'')[_0x2f013a(0x75)](',');return[];}
1
+ function a2_0x45f3(){const _0x5cb928=['4jZYtzg','1488777EtnUfw','9779aGZoiJ','apply','1590sEDvGN','number','string','substr','hasOwnProperty','757mRknFr','__esModule','json','split','6533865bdRQEA','3988220GSkNXa','float','tinyint','defineProperty','3896ATgjAt','toString','longtext','19648057gCmAtz','enum','(((.+)+)+)+$','decimal','date','7542UUPpfG','664xKCzeU','search','constructor','indexOf'];a2_0x45f3=function(){return _0x5cb928;};return a2_0x45f3();}const a2_0x320f1d=a2_0x13aa;function a2_0x13aa(_0x49dbed,_0x5167f7){_0x49dbed=_0x49dbed-0x15a;const _0x40caa0=a2_0x45f3();let _0x1c098a=_0x40caa0[_0x49dbed];return _0x1c098a;}(function(_0x15895e,_0x2d9f0e){const _0x171595=a2_0x13aa,_0x263b38=_0x15895e();while(!![]){try{const _0x12b83e=-parseInt(_0x171595(0x168))/0x1*(-parseInt(_0x171595(0x15b))/0x2)+-parseInt(_0x171595(0x160))/0x3*(parseInt(_0x171595(0x15f))/0x4)+-parseInt(_0x171595(0x163))/0x5*(parseInt(_0x171595(0x15a))/0x6)+-parseInt(_0x171595(0x161))/0x7*(parseInt(_0x171595(0x171))/0x8)+parseInt(_0x171595(0x16c))/0x9+-parseInt(_0x171595(0x16d))/0xa+parseInt(_0x171595(0x174))/0xb;if(_0x12b83e===_0x2d9f0e)break;else _0x263b38['push'](_0x263b38['shift']());}catch(_0x4fad21){_0x263b38['push'](_0x263b38['shift']());}}}(a2_0x45f3,0xc077e));const a2_0x239dbf=(function(){let _0x1e5db8=!![];return function(_0x53cd86,_0x382e6e){const _0x26ba43=_0x1e5db8?function(){const _0x86082b=a2_0x13aa;if(_0x382e6e){const _0x2cdfd6=_0x382e6e[_0x86082b(0x162)](_0x53cd86,arguments);return _0x382e6e=null,_0x2cdfd6;}}:function(){};return _0x1e5db8=![],_0x26ba43;};}()),a2_0x1c098a=a2_0x239dbf(this,function(){const _0x236785=a2_0x13aa;return a2_0x1c098a[_0x236785(0x172)]()[_0x236785(0x15c)](_0x236785(0x176))[_0x236785(0x172)]()[_0x236785(0x15d)](a2_0x1c098a)['search'](_0x236785(0x176));});a2_0x1c098a();'use strict';Object[a2_0x320f1d(0x170)](exports,a2_0x320f1d(0x169),{'value':!![]}),exports['getProp']=getProp,exports['getEnum']=getEnum;const columnTypes={'json':a2_0x320f1d(0x16a),'char':'string','varchar':a2_0x320f1d(0x165),'text':'text','longtext':a2_0x320f1d(0x173),'mediumtext':'mediumtext','int':a2_0x320f1d(0x164),'float':'float','double':a2_0x320f1d(0x16e),'decimal':a2_0x320f1d(0x177),'date':a2_0x320f1d(0x178),'time':'datetime','datetime':'datetime','timestamp':'timestamp','tinyint':a2_0x320f1d(0x16f)};function getProp(_0x162438){const _0x2ce579=a2_0x320f1d;if(columnTypes[_0x2ce579(0x167)](_0x162438))return columnTypes[_0x162438];else return _0x162438[_0x2ce579(0x15e)]('(')>-0x1||_0x162438[_0x2ce579(0x15e)]('\x20')>-0x1?(_0x162438=_0x162438[_0x2ce579(0x166)](0x0,_0x162438['indexOf']('(')>-0x1?_0x162438[_0x2ce579(0x15e)]('('):_0x162438['indexOf']('\x20')),columnTypes[_0x162438]||_0x162438):_0x2ce579(0x165);}function getEnum(_0x5c5a35){const _0x200ca0=a2_0x320f1d;if(getProp(_0x5c5a35)==_0x200ca0(0x175))return _0x5c5a35[_0x200ca0(0x166)](0x5,_0x5c5a35['length']-0x6)['replace'](/[\'|\"]/g,'')[_0x200ca0(0x16b)](',');return[];}
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- var a3_0x1f86c8=a3_0x4c9e;(function(_0x1944d0,_0xb9c7f1){var _0x65aa69=a3_0x4c9e,_0x525a92=_0x1944d0();while(!![]){try{var _0x190c66=-parseInt(_0x65aa69(0xbe))/0x1*(parseInt(_0x65aa69(0xca))/0x2)+-parseInt(_0x65aa69(0xcb))/0x3+parseInt(_0x65aa69(0xcc))/0x4+parseInt(_0x65aa69(0xc1))/0x5+-parseInt(_0x65aa69(0xc9))/0x6+parseInt(_0x65aa69(0xc4))/0x7+parseInt(_0x65aa69(0xc5))/0x8;if(_0x190c66===_0xb9c7f1)break;else _0x525a92['push'](_0x525a92['shift']());}catch(_0x25fd77){_0x525a92['push'](_0x525a92['shift']());}}}(a3_0x30db,0x413e7));var a3_0x3abee3=(function(){var _0x570c92=!![];return function(_0x25262b,_0x3b6baa){var _0x443b25=_0x570c92?function(){if(_0x3b6baa){var _0xc2e539=_0x3b6baa['apply'](_0x25262b,arguments);return _0x3b6baa=null,_0xc2e539;}}:function(){};return _0x570c92=![],_0x443b25;};}()),a3_0x288a06=a3_0x3abee3(this,function(){var _0x566539=a3_0x4c9e;return a3_0x288a06[_0x566539(0xc0)]()['search'](_0x566539(0xc2))[_0x566539(0xc0)]()['constructor'](a3_0x288a06)[_0x566539(0xbb)]('(((.+)+)+)+$');});a3_0x288a06();'use strict';Object[a3_0x1f86c8(0xbf)](exports,a3_0x1f86c8(0xc8),{'value':!![]}),exports[a3_0x1f86c8(0xba)]=exports['anveroGenCommand']=exports[a3_0x1f86c8(0xc7)]=void 0x0;var ApicreateService_1=require(a3_0x1f86c8(0xc3));Object[a3_0x1f86c8(0xbf)](exports,a3_0x1f86c8(0xc7),{'enumerable':!![],'get':function(){var _0x20f4c6=a3_0x1f86c8;return ApicreateService_1[_0x20f4c6(0xc7)];}});function a3_0x4c9e(_0x51d8b9,_0x4c9ef6){_0x51d8b9=_0x51d8b9-0xba;var _0x4e4582=a3_0x30db();var _0x288a06=_0x4e4582[_0x51d8b9];return _0x288a06;}var anverogen_command_1=require(a3_0x1f86c8(0xc6));Object[a3_0x1f86c8(0xbf)](exports,a3_0x1f86c8(0xbc),{'enumerable':!![],'get':function(){var _0x664838=a3_0x1f86c8;return anverogen_command_1[_0x664838(0xbc)];}});var configuration_1=require('./configuration');Object[a3_0x1f86c8(0xbf)](exports,a3_0x1f86c8(0xba),{'enumerable':!![],'get':function(){var _0x134095=a3_0x1f86c8;return configuration_1[_0x134095(0xbd)];}});function a3_0x30db(){var _0x5f44e9=['3437546cSaXil','116960QomvmM','./command/anverogen.command','ApicreateService','__esModule','1458426iFSodI','2qJIUQN','796512TySCsy','1701300vggSlQ','Configuration','search','anveroGenCommand','CustomConfiguration','494539wTeBaZ','defineProperty','toString','1696650JJTpet','(((.+)+)+)+$','./service/ApicreateService'];a3_0x30db=function(){return _0x5f44e9;};return a3_0x30db();}
1
+ function a3_0x1454(){var _0x290433=['Configuration','defineProperty','1710608vHAoCU','1628697GyYUbW','4251280PaMLYP','apply','ApicreateService','6ZlNBAa','256TmUhjy','5965728cSlpAL','91610sKAtKY','240zQGjPX','CustomConfiguration','./service/ApicreateService','anveroGenCommand','./configuration','5120muCDFy','(((.+)+)+)+$','./command/anverogen.command','search','22FDiCtV','337JfketY','5391erLVUU'];a3_0x1454=function(){return _0x290433;};return a3_0x1454();}var a3_0x2ac07d=a3_0x5b5d;(function(_0x39ff6d,_0x5275ef){var _0x5bfa44=a3_0x5b5d,_0x2c4ab=_0x39ff6d();while(!![]){try{var _0x21d33c=parseInt(_0x5bfa44(0x167))/0x1*(-parseInt(_0x5bfa44(0x162))/0x2)+parseInt(_0x5bfa44(0x170))/0x3*(-parseInt(_0x5bfa44(0x16b))/0x4)+-parseInt(_0x5bfa44(0x173))/0x5*(-parseInt(_0x5bfa44(0x174))/0x6)+parseInt(_0x5bfa44(0x16c))/0x7+parseInt(_0x5bfa44(0x171))/0x8*(-parseInt(_0x5bfa44(0x168))/0x9)+parseInt(_0x5bfa44(0x16d))/0xa+-parseInt(_0x5bfa44(0x166))/0xb*(-parseInt(_0x5bfa44(0x172))/0xc);if(_0x21d33c===_0x5275ef)break;else _0x2c4ab['push'](_0x2c4ab['shift']());}catch(_0x3e1f2b){_0x2c4ab['push'](_0x2c4ab['shift']());}}}(a3_0x1454,0x9e25f));var a3_0x5b8735=(function(){var _0x14cd36=!![];return function(_0x10fb48,_0x129e1d){var _0x95d187=_0x14cd36?function(){var _0x1972bc=a3_0x5b5d;if(_0x129e1d){var _0x5c38a5=_0x129e1d[_0x1972bc(0x16e)](_0x10fb48,arguments);return _0x129e1d=null,_0x5c38a5;}}:function(){};return _0x14cd36=![],_0x95d187;};}()),a3_0x6d5a52=a3_0x5b8735(this,function(){var _0x581a39=a3_0x5b5d;return a3_0x6d5a52['toString']()[_0x581a39(0x165)](_0x581a39(0x163))['toString']()['constructor'](a3_0x6d5a52)['search'](_0x581a39(0x163));});a3_0x6d5a52();'use strict';function a3_0x5b5d(_0x341d13,_0x46d5ca){_0x341d13=_0x341d13-0x160;var _0x2fee65=a3_0x1454();var _0x6d5a52=_0x2fee65[_0x341d13];return _0x6d5a52;}Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[a3_0x2ac07d(0x169)]=exports[a3_0x2ac07d(0x160)]=exports[a3_0x2ac07d(0x16f)]=void 0x0;var ApicreateService_1=require(a3_0x2ac07d(0x176));Object[a3_0x2ac07d(0x16a)](exports,a3_0x2ac07d(0x16f),{'enumerable':!![],'get':function(){var _0x91dd3f=a3_0x2ac07d;return ApicreateService_1[_0x91dd3f(0x16f)];}});var anverogen_command_1=require(a3_0x2ac07d(0x164));Object[a3_0x2ac07d(0x16a)](exports,a3_0x2ac07d(0x160),{'enumerable':!![],'get':function(){var _0x3939d1=a3_0x2ac07d;return anverogen_command_1[_0x3939d1(0x160)];}});var configuration_1=require(a3_0x2ac07d(0x161));Object[a3_0x2ac07d(0x16a)](exports,a3_0x2ac07d(0x169),{'enumerable':!![],'get':function(){var _0x49dfec=a3_0x2ac07d;return configuration_1[_0x49dfec(0x175)];}});
@@ -1 +1 @@
1
- const a4_0x4463a6=a4_0x5225;(function(_0x2a3c31,_0x580dd2){const _0x11b4fe=a4_0x5225,_0x42b91f=_0x2a3c31();while(!![]){try{const _0x2cfa01=-parseInt(_0x11b4fe(0x116))/0x1+-parseInt(_0x11b4fe(0x13e))/0x2+-parseInt(_0x11b4fe(0x145))/0x3+-parseInt(_0x11b4fe(0xfc))/0x4*(parseInt(_0x11b4fe(0x12c))/0x5)+parseInt(_0x11b4fe(0x13b))/0x6*(-parseInt(_0x11b4fe(0x136))/0x7)+-parseInt(_0x11b4fe(0xe9))/0x8*(-parseInt(_0x11b4fe(0x138))/0x9)+parseInt(_0x11b4fe(0x120))/0xa;if(_0x2cfa01===_0x580dd2)break;else _0x42b91f['push'](_0x42b91f['shift']());}catch(_0x4b6634){_0x42b91f['push'](_0x42b91f['shift']());}}}(a4_0x3ee4,0x974cf));function a4_0x5225(_0x234045,_0x5883ad){_0x234045=_0x234045-0xe1;const _0x4851b5=a4_0x3ee4();let _0x8f0d64=_0x4851b5[_0x234045];return _0x8f0d64;}const a4_0x51ddb1=(function(){let _0x18a439=!![];return function(_0x240df4,_0x3a32ac){const _0x268e8b=_0x18a439?function(){const _0x2b4089=a4_0x5225;if(_0x3a32ac){const _0x476486=_0x3a32ac[_0x2b4089(0xf2)](_0x240df4,arguments);return _0x3a32ac=null,_0x476486;}}:function(){};return _0x18a439=![],_0x268e8b;};}()),a4_0x8f0d64=a4_0x51ddb1(this,function(){const _0x151cdd=a4_0x5225;return a4_0x8f0d64['toString']()['search'](_0x151cdd(0x114))[_0x151cdd(0xf8)]()['constructor'](a4_0x8f0d64)[_0x151cdd(0x121)](_0x151cdd(0x114));});a4_0x8f0d64();'use strict';var __decorate=this&&this[a4_0x4463a6(0xe6)]||function(_0x5118d7,_0x222944,_0x32beff,_0x1162fd){const _0x243b4a=a4_0x4463a6;var _0x18799c=arguments[_0x243b4a(0x117)],_0x3e420a=_0x18799c<0x3?_0x222944:_0x1162fd===null?_0x1162fd=Object[_0x243b4a(0x155)](_0x222944,_0x32beff):_0x1162fd,_0x42b14c;if(typeof Reflect===_0x243b4a(0x128)&&typeof Reflect[_0x243b4a(0x142)]==='function')_0x3e420a=Reflect[_0x243b4a(0x142)](_0x5118d7,_0x222944,_0x32beff,_0x1162fd);else{for(var _0x41b553=_0x5118d7[_0x243b4a(0x117)]-0x1;_0x41b553>=0x0;_0x41b553--)if(_0x42b14c=_0x5118d7[_0x41b553])_0x3e420a=(_0x18799c<0x3?_0x42b14c(_0x3e420a):_0x18799c>0x3?_0x42b14c(_0x222944,_0x32beff,_0x3e420a):_0x42b14c(_0x222944,_0x32beff))||_0x3e420a;}return _0x18799c>0x3&&_0x3e420a&&Object[_0x243b4a(0x11b)](_0x222944,_0x32beff,_0x3e420a),_0x3e420a;},__metadata=this&&this['__metadata']||function(_0x3be0fb,_0x186008){const _0x33c571=a4_0x4463a6;if(typeof Reflect===_0x33c571(0x128)&&typeof Reflect['metadata']===_0x33c571(0x156))return Reflect[_0x33c571(0x10d)](_0x3be0fb,_0x186008);};function a4_0x3ee4(){const _0x2d99d7=['42hamfCA','Key','230094xLMBbc','toUpperCase','createPlugin','571974DmreBH','map','export\x20default\x20{\x0a\x20\x20\x20\x20name:\x20\x27','1493712gkyvCz','../templateVue/Validator','/exceptions/','app','decorate','Comment','string','1524567tKOPBB','tablestartLow','isDevelopmentEnvironment','/apps/','path','default','/apis/','startsWith','dataSourceManager','tablestartLowShort','mkdirSync','getBaseDir','../templateVue/Router','createAction','../templateVue/Api','query','getOwnPropertyDescriptor','function','writeFileSync','\x27,\x0a\x20\x20\x20\x20description:\x20\x27\x27,\x0a\x20\x20\x20\x20middleware:\x20[],\x0a}','dirname','die','../templateFun/Action','\x20未连接','Primary','typeorm','split','__decorate','basedir','substring','240HbhFii','config','database','trim','typeorm\x20数据源\x20','Inject','/pages/','ApicreateService','Fields','apply','../templateFun/Event','vueapiprefix','controller','PRI','toLowerCase','toString','getConfig','/apis/apps/','/config.ts','3204VjAaeZ','typeorm\x20未配置数据源\x20','@midwayjs/core','connection','comment','\x22\x20AND\x20table_name\x20','existsSync','../templateFun/Entities','checkOption','replace','=\x20\x22','vuedialog','design:type','@midwayjs/typeorm','hasvue','join','isArray','metadata','getDataSource','SHOW\x20FULL\x20COLUMNS\x20FROM\x20`','.js','basic','isConnected','dataSource','(((.+)+)+)+$','CreateModuleConfig','603168dcrtIO','length','module','controllers','/index.vue','defineProperty','../templateVue/LayoutVue','substr','prototype','tableprefix','24984030hpErax','search','tablestartUpShort','\x20不存在','__esModule','/pages/apps/','TypeORMDataSourceManager','apitest','object','MidwayEnvironmentService','table','apporbasic','1345QCbYmr','Provide','environment','tablestart','../templateFun/Search','Singleton','MainApp','moduleName','tablestartUp','LIKE\x20\x22'];a4_0x3ee4=function(){return _0x2d99d7;};return a4_0x3ee4();}Object[a4_0x4463a6(0x11b)](exports,a4_0x4463a6(0x124),{'value':!![]}),exports[a4_0x4463a6(0xf0)]=void 0x0;const fs=require('fs'),path=require(a4_0x4463a6(0x149)),core_1=require(a4_0x4463a6(0xfe)),typeorm_1=require(a4_0x4463a6(0x109)),core_2=require(a4_0x4463a6(0xfe)),Common_1=require('../templateFun/Common'),Event_1=require(a4_0x4463a6(0xf3)),Search_1=require(a4_0x4463a6(0x130)),Entities_1=require(a4_0x4463a6(0x103)),Handler_1=require('../templateFun/Handler'),Validator_1=require('../templateFun/Validator'),Action_1=require(a4_0x4463a6(0xe1)),Api_1=require(a4_0x4463a6(0x153)),Router_1=require(a4_0x4463a6(0x151)),LayoutVue_1=require(a4_0x4463a6(0x11c)),Validator_2=require(a4_0x4463a6(0x13f));let ApicreateService=class ApicreateService{async['createApp'](_0x374dc7){const _0x54a698=a4_0x4463a6;return await this[_0x54a698(0x104)](_0x374dc7),await this[_0x54a698(0x152)]({..._0x374dc7,'apporbasic':_0x54a698(0x141)});}async['createBasic'](_0x5edfa3){const _0x3434ad=a4_0x4463a6;return await this[_0x3434ad(0x104)](_0x5edfa3),await this[_0x3434ad(0x152)]({..._0x5edfa3,'apporbasic':_0x3434ad(0x111)});}async[a4_0x4463a6(0x13a)](_0x1282c2){const _0xf2f34b=a4_0x4463a6;return await this[_0xf2f34b(0x104)](_0x1282c2),await this['createAction']({..._0x1282c2,'module':!![]});}async[a4_0x4463a6(0x152)](_0x4beb1f){const _0x558e38=a4_0x4463a6;var _0x569b7b,_0x1f9134;!_0x4beb1f['connection']&&(_0x4beb1f[_0x558e38(0xff)]=_0x558e38(0x14a));!_0x4beb1f[_0x558e38(0x12b)]&&(_0x4beb1f[_0x558e38(0x12b)]=_0x558e38(0x141));const _0x379551=this['app'][_0x558e38(0x150)](),_0x215563=this[_0x558e38(0x14d)][_0x558e38(0x10e)](_0x4beb1f[_0x558e38(0xff)]),_0x48979c=await _0x215563[_0x558e38(0x154)]('SELECT\x20TABLE_NAME\x20as\x20`table`\x20FROM\x20information_schema.TABLES\x20WHERE\x20TABLE_SCHEMA=\x22'+this[_0x558e38(0xea)][_0x558e38(0x113)][_0x4beb1f[_0x558e38(0xff)]][_0x558e38(0xeb)]+_0x558e38(0x101)+((_0x4beb1f===null||_0x4beb1f===void 0x0?void 0x0:_0x4beb1f['table'])?_0x558e38(0x106)+_0x4beb1f[_0x558e38(0x12a)]+'\x22':_0x558e38(0x135)+(_0x4beb1f[_0x558e38(0x11f)]||'')+'%\x22'))||[];for(let _0x268935=0x0;_0x268935<_0x48979c['length'];_0x268935++){const _0x54d935=_0x48979c[_0x268935][_0x558e38(0x12a)];if((_0x4beb1f===null||_0x4beb1f===void 0x0?void 0x0:_0x4beb1f[_0x558e38(0x12a)])&&(_0x4beb1f===null||_0x4beb1f===void 0x0?void 0x0:_0x4beb1f[_0x558e38(0x12a)])!=_0x54d935)continue;if((_0x4beb1f===null||_0x4beb1f===void 0x0?void 0x0:_0x4beb1f[_0x558e38(0x11f)])&&!(_0x54d935===null||_0x54d935===void 0x0?void 0x0:_0x54d935[_0x558e38(0x14c)](_0x4beb1f['tableprefix'])))continue;const _0x309749=await _0x215563['query']('SELECT\x20TABLE_COMMENT\x20as\x20`comment`\x20FROM\x20information_schema.TABLES\x20WHERE\x20TABLE_SCHEMA=\x22'+this[_0x558e38(0xea)][_0x558e38(0x113)][_0x4beb1f[_0x558e38(0xff)]]['database']+'\x22\x20AND\x20table_name\x20=\x20\x27'+_0x54d935+'\x27')||[];if((_0x569b7b=_0x309749[0x0])===null||_0x569b7b===void 0x0?void 0x0:_0x569b7b[_0x558e38(0x100)]){const _0x398bf6={'tablename':_0x54d935,'Primary':{},'Fields':{},'Comment':(_0x1f9134=_0x309749[0x0])===null||_0x1f9134===void 0x0?void 0x0:_0x1f9134[_0x558e38(0x100)],'vuedialog':_0x4beb1f[_0x558e38(0x107)],'vueapiprefix':_0x4beb1f[_0x558e38(0xf4)],'apporbasic':_0x4beb1f[_0x558e38(0x12b)]};_0x398bf6[_0x558e38(0x12f)]=_0x54d935[_0x558e38(0x11d)]((_0x4beb1f===null||_0x4beb1f===void 0x0?void 0x0:_0x4beb1f['substr'])||0x0,_0x54d935[_0x558e38(0x117)]),_0x398bf6[_0x558e38(0xe7)]=(_0x4beb1f===null||_0x4beb1f===void 0x0?void 0x0:_0x4beb1f[_0x558e38(0x118)])?_0x379551+_0x558e38(0x148)+_0x398bf6[_0x558e38(0x12f)][_0x558e38(0xe5)]('_')[0x0][_0x558e38(0xf7)]():_0x379551+'/'+_0x4beb1f[_0x558e38(0x12b)];const _0x5edd4f=_0x398bf6[_0x558e38(0x12f)][_0x558e38(0xe5)]('_')['filter'](_0x163fe3=>_0x163fe3&&_0x163fe3[_0x558e38(0xec)]());(_0x4beb1f===null||_0x4beb1f===void 0x0?void 0x0:_0x4beb1f[_0x558e38(0x118)])&&(await this[_0x558e38(0x115)](_0x398bf6),_0x398bf6[_0x558e38(0x133)]=_0x5edd4f[0x0][_0x558e38(0xf7)]());_0x398bf6[_0x558e38(0x146)]=_0x5edd4f['map'](_0x48e3e8=>_0x48e3e8['toLowerCase']())[_0x558e38(0x10b)](''),_0x398bf6['tablestartUp']=_0x5edd4f[_0x558e38(0x13c)](_0x1ddd17=>''+_0x1ddd17[_0x558e38(0xe8)](0x0,0x1)[_0x558e38(0x139)]()+_0x1ddd17[_0x558e38(0xe8)](0x1)[_0x558e38(0xf7)]())[_0x558e38(0x10b)]('');(_0x398bf6===null||_0x398bf6===void 0x0?void 0x0:_0x398bf6[_0x558e38(0x133)])&&_0x5edd4f['length']>0x1&&_0x5edd4f[0x0][_0x558e38(0xf7)]()==_0x398bf6['moduleName']?(_0x398bf6[_0x558e38(0x122)]=_0x398bf6['tablestartUp'][_0x558e38(0xe8)](_0x398bf6['moduleName'][_0x558e38(0x117)],_0x398bf6[_0x558e38(0x134)][_0x558e38(0x117)]),_0x398bf6[_0x558e38(0x14e)]=_0x398bf6[_0x558e38(0x146)]['substring'](_0x398bf6['moduleName']['length'],_0x398bf6[_0x558e38(0x146)][_0x558e38(0x117)])):(_0x398bf6['tablestartUpShort']=_0x398bf6[_0x558e38(0x134)],_0x398bf6[_0x558e38(0x14e)]=_0x398bf6[_0x558e38(0x146)]);_0x398bf6['tablestartUpShort2']=_0x398bf6[_0x558e38(0x122)][_0x558e38(0x105)](/\/{2,}/g,'/')['match'](/[\/|A-Z]*[^A-Z]+/g)[_0x558e38(0x10b)]('-')['toLowerCase']()[_0x558e38(0x105)](/\/\-/g,'/');for(let _0x1ac1cf of await _0x215563['query'](_0x558e38(0x10f)+_0x54d935+'`')){_0x1ac1cf[_0x558e38(0x137)]==_0x558e38(0xf6)?_0x398bf6[_0x558e38(0xe3)]=_0x1ac1cf:_0x398bf6[_0x558e38(0xf1)][_0x1ac1cf['Field']]=_0x1ac1cf;}if((_0x4beb1f===null||_0x4beb1f===void 0x0?void 0x0:_0x4beb1f[_0x558e38(0xf5)])&&!fs['existsSync'](_0x398bf6['basedir']+_0x558e38(0x140)+_0x398bf6['tablestartUpShort']+'.ts')){var _0x2de2cd=[];if(typeof(_0x4beb1f===null||_0x4beb1f===void 0x0?void 0x0:_0x4beb1f[_0x558e38(0xf5)])=='string')_0x2de2cd=[_0x4beb1f===null||_0x4beb1f===void 0x0?void 0x0:_0x4beb1f[_0x558e38(0xf5)]];else Array[_0x558e38(0x10c)](_0x4beb1f===null||_0x4beb1f===void 0x0?void 0x0:_0x4beb1f['controller'])?_0x2de2cd=_0x4beb1f===null||_0x4beb1f===void 0x0?void 0x0:_0x4beb1f['controller']:_0x2de2cd=[!![]];_0x398bf6[_0x558e38(0x119)]=_0x2de2cd,await(0x0,Search_1[_0x558e38(0x14a)])(_0x398bf6),await(0x0,Entities_1['default'])(_0x398bf6),await(0x0,Common_1[_0x558e38(0x14a)])(_0x398bf6),await(0x0,Event_1[_0x558e38(0x14a)])(_0x398bf6),await(0x0,Handler_1['default'])(_0x398bf6),await(0x0,Validator_1[_0x558e38(0x14a)])(_0x398bf6);for(let _0x281d4d of _0x2de2cd){_0x398bf6[_0x558e38(0xf5)]=_0x281d4d,await(0x0,Action_1[_0x558e38(0x14a)])(_0x398bf6);}}if(_0x4beb1f===null||_0x4beb1f===void 0x0?void 0x0:_0x4beb1f[_0x558e38(0x10a)]){var _0x2de2cd=[];if(typeof(_0x4beb1f===null||_0x4beb1f===void 0x0?void 0x0:_0x4beb1f[_0x558e38(0xf5)])==_0x558e38(0x144))_0x2de2cd=[_0x4beb1f===null||_0x4beb1f===void 0x0?void 0x0:_0x4beb1f['controller']];else Array[_0x558e38(0x10c)](_0x4beb1f===null||_0x4beb1f===void 0x0?void 0x0:_0x4beb1f[_0x558e38(0xf5)])?_0x2de2cd=_0x4beb1f===null||_0x4beb1f===void 0x0?void 0x0:_0x4beb1f[_0x558e38(0xf5)]:_0x2de2cd=[!![]];for(let _0x8fe847 of _0x2de2cd){_0x398bf6[_0x558e38(0xf5)]=_0x8fe847;let _0x3cf5e8=process['cwd']()+'/vue'+(typeof _0x398bf6['controller']==_0x558e38(0x144)?'/'+_0x398bf6[_0x558e38(0xf5)]:'');if(_0x398bf6['vueapiprefix'])_0x3cf5e8=_0x3cf5e8+(_0x398bf6[_0x558e38(0x133)]?_0x558e38(0x125)+_0x398bf6['moduleName']+'/'+_0x398bf6['tablestartUpShort2']+_0x558e38(0x11a):_0x558e38(0xef)+_0x398bf6[_0x558e38(0x12b)]+'/'+_0x398bf6['tablestartUpShort2']+_0x558e38(0x11a));else _0x398bf6['moduleName']?_0x3cf5e8=_0x3cf5e8+(_0x558e38(0xfa)+_0x398bf6[_0x558e38(0x133)]+_0x558e38(0x14b)+_0x398bf6[_0x558e38(0x122)]+_0x558e38(0x110)):_0x3cf5e8=_0x3cf5e8+(_0x558e38(0x14b)+_0x398bf6['apporbasic']+_0x558e38(0x14b)+_0x398bf6[_0x558e38(0x122)]+_0x558e38(0x110));!fs[_0x558e38(0x102)](_0x3cf5e8)&&(!_0x398bf6[_0x558e38(0xf4)]&&await(0x0,Api_1[_0x558e38(0x14a)])(_0x398bf6),await(0x0,Router_1[_0x558e38(0x14a)])(_0x398bf6),await(0x0,LayoutVue_1[_0x558e38(0x14a)])(_0x398bf6),await(0x0,Validator_2[_0x558e38(0x14a)])(_0x398bf6));}}}else console['error']('表:'+_0x54d935+'\x20表注释不存在');}return _0x558e38(0x15a);}async[a4_0x4463a6(0x104)](_0x3a0784){const _0x308e30=a4_0x4463a6;var _0x315f4b,_0x54c284,_0x32c7a4;if(!this[_0x308e30(0x12e)][_0x308e30(0x147)]()||!((_0x315f4b=this[_0x308e30(0xea)])===null||_0x315f4b===void 0x0?void 0x0:_0x315f4b['dataSource'])||!this[_0x308e30(0x141)][_0x308e30(0xf9)](_0x308e30(0x127)))throw new Error('无法生成');!_0x3a0784['connection']&&(_0x3a0784[_0x308e30(0xff)]=_0x308e30(0x14a));if(!((_0x32c7a4=(_0x54c284=this[_0x308e30(0xea)])===null||_0x54c284===void 0x0?void 0x0:_0x54c284[_0x308e30(0x113)])===null||_0x32c7a4===void 0x0?void 0x0:_0x32c7a4[_0x3a0784[_0x308e30(0xff)]]))throw new Error(_0x308e30(0xfd)+_0x3a0784[_0x308e30(0xff)]);if(!this[_0x308e30(0x14d)]['hasDataSource'](_0x3a0784[_0x308e30(0xff)]))throw new Error('typeorm\x20数据源\x20'+_0x3a0784['connection']+_0x308e30(0x123));if(!this[_0x308e30(0x14d)][_0x308e30(0x112)](_0x3a0784[_0x308e30(0xff)]))throw new Error(_0x308e30(0xed)+_0x3a0784[_0x308e30(0xff)]+_0x308e30(0xe2));return!![];}async[a4_0x4463a6(0x115)](_0x4c68ad){const _0x2746db=a4_0x4463a6,_0x493afc=_0x4c68ad['tablestart'][_0x2746db(0xe5)]('_')[0x0][_0x2746db(0xf7)]();if(!fs[_0x2746db(0x102)](_0x4c68ad[_0x2746db(0xe7)]+'/config.ts')){let _0x39d7c1=_0x2746db(0x13d)+(_0x4c68ad[_0x2746db(0x143)]||_0x493afc)+_0x2746db(0x158);fs[_0x2746db(0x14f)](path[_0x2746db(0x159)](_0x4c68ad[_0x2746db(0xe7)]+_0x2746db(0xfb)),{'recursive':!![]}),fs[_0x2746db(0x157)](_0x4c68ad[_0x2746db(0xe7)]+'/config.ts',_0x39d7c1,'utf-8');}}};exports[a4_0x4463a6(0xf0)]=ApicreateService,__decorate([(0x0,core_2[a4_0x4463a6(0x132)])(),__metadata(a4_0x4463a6(0x108),Object)],ApicreateService['prototype'],a4_0x4463a6(0x141),void 0x0),__decorate([(0x0,core_2['Config'])(a4_0x4463a6(0xe4)),__metadata(a4_0x4463a6(0x108),Object)],ApicreateService[a4_0x4463a6(0x11e)],a4_0x4463a6(0xea),void 0x0),__decorate([(0x0,core_2['Inject'])(),__metadata(a4_0x4463a6(0x108),core_1[a4_0x4463a6(0x129)])],ApicreateService[a4_0x4463a6(0x11e)],a4_0x4463a6(0x12e),void 0x0),__decorate([(0x0,core_2[a4_0x4463a6(0xee)])(),__metadata('design:type',typeorm_1[a4_0x4463a6(0x126)])],ApicreateService[a4_0x4463a6(0x11e)],a4_0x4463a6(0x14d),void 0x0),exports[a4_0x4463a6(0xf0)]=ApicreateService=__decorate([(0x0,core_2[a4_0x4463a6(0x12d)])('ApicreateService'),(0x0,core_2['Scope'])(core_2['ScopeEnum'][a4_0x4463a6(0x131)])],ApicreateService);
1
+ function a4_0x3d21(){const _0x2b98e3=['string','/vue','checkOption','SELECT\x20TABLE_COMMENT\x20as\x20`comment`\x20FROM\x20information_schema.TABLES\x20WHERE\x20TABLE_SCHEMA=\x22','query','getOwnPropertyDescriptor','dirname','app','vueapiprefix','\x20未连接','\x22\x20AND\x20table_name\x20','hasDataSource','apply','database','9aVjlma','tablestartUp','Inject','path','ScopeEnum','\x27,\x0a\x20\x20\x20\x20description:\x20\x27\x27,\x0a\x20\x20\x20\x20middleware:\x20[],\x0a}','\x22\x20AND\x20table_name\x20=\x20\x27','.ts','connection','writeFileSync','replace','\x20不存在','1915zwfYSu','ApicreateService','Config','config','__metadata','function','/pages/','tablestart','isConnected','../templateFun/Validator','typeorm\x20未配置数据源\x20','startsWith','dataSource','match','760827HunzVG','substring','cwd','12ixgXft','toUpperCase','37616856pcLyNB','existsSync','object','isDevelopmentEnvironment','/apis/apps/','../templateFun/Event','error','metadata','无法生成','/apps/','createApp','createAction','15045880jWxJiG','prototype','Provide','substr','search','../templateVue/Api','split','MainApp','Primary','/pages/apps/','CreateModuleConfig','Fields','environment','../templateFun/Search','264VRsUEq','basedir','apporbasic','../templateFun/Entities','typeorm\x20数据源\x20','apitest','toLowerCase','8513225jCvuci','TypeORMDataSourceManager','(((.+)+)+)+$','Field','isArray','controller','defineProperty','comment','MidwayEnvironmentService','length','die','742bhkXYR','Singleton','design:type','Comment','utf-8','9498672yBIlbY','module','/index.vue','default','toString','dataSourceManager','getConfig','SELECT\x20TABLE_NAME\x20as\x20`table`\x20FROM\x20information_schema.TABLES\x20WHERE\x20TABLE_SCHEMA=\x22','filter','table','64631wiNcQG','typeorm','moduleName','tablestartUpShort','../templateFun/Action','\x20表注释不存在','.js','/apis/','tablestartUpShort2','11OxjzZF','export\x20default\x20{\x0a\x20\x20\x20\x20name:\x20\x27','controllers','tableprefix','map','../templateFun/Common','tablestartLow','/exceptions/','join','../templateFun/Handler','constructor','trim','/config.ts'];a4_0x3d21=function(){return _0x2b98e3;};return a4_0x3d21();}const a4_0x51aa93=a4_0x10a9;function a4_0x10a9(_0x48567d,_0x3ab6c3){_0x48567d=_0x48567d-0x1ef;const _0x1c7dc3=a4_0x3d21();let _0x5bdfe7=_0x1c7dc3[_0x48567d];return _0x5bdfe7;}(function(_0xa94569,_0x4e295a){const _0x18a637=a4_0x10a9,_0xb476e4=_0xa94569();while(!![]){try{const _0x48f189=parseInt(_0x18a637(0x208))/0x1*(-parseInt(_0x18a637(0x247))/0x2)+-parseInt(_0x18a637(0x216))/0x3*(-parseInt(_0x18a637(0x219))/0x4)+parseInt(_0x18a637(0x23c))/0x5+parseInt(_0x18a637(0x235))/0x6*(-parseInt(_0x18a637(0x256))/0x7)+-parseInt(_0x18a637(0x24c))/0x8*(-parseInt(_0x18a637(0x1fc))/0x9)+parseInt(_0x18a637(0x227))/0xa*(parseInt(_0x18a637(0x25f))/0xb)+-parseInt(_0x18a637(0x21b))/0xc;if(_0x48f189===_0x4e295a)break;else _0xb476e4['push'](_0xb476e4['shift']());}catch(_0x38528c){_0xb476e4['push'](_0xb476e4['shift']());}}}(a4_0x3d21,0xdcb03));const a4_0x1462f=(function(){let _0x470f39=!![];return function(_0x4af6ab,_0x57bbe1){const _0xcfbd3b=_0x470f39?function(){const _0x4ef7d6=a4_0x10a9;if(_0x57bbe1){const _0x131ab9=_0x57bbe1[_0x4ef7d6(0x1fa)](_0x4af6ab,arguments);return _0x57bbe1=null,_0x131ab9;}}:function(){};return _0x470f39=![],_0xcfbd3b;};}()),a4_0x5bdfe7=a4_0x1462f(this,function(){const _0x2c734a=a4_0x10a9;return a4_0x5bdfe7[_0x2c734a(0x250)]()[_0x2c734a(0x22b)](_0x2c734a(0x23e))[_0x2c734a(0x250)]()[_0x2c734a(0x269)](a4_0x5bdfe7)[_0x2c734a(0x22b)]('(((.+)+)+)+$');});a4_0x5bdfe7();'use strict';var __decorate=this&&this['__decorate']||function(_0xfc49cc,_0x277f52,_0x49ac5c,_0x5f4ab0){const _0x1f0f76=a4_0x10a9;var _0x5697b6=arguments['length'],_0x5c751d=_0x5697b6<0x3?_0x277f52:_0x5f4ab0===null?_0x5f4ab0=Object[_0x1f0f76(0x1f3)](_0x277f52,_0x49ac5c):_0x5f4ab0,_0x1ba585;if(typeof Reflect===_0x1f0f76(0x21d)&&typeof Reflect['decorate']===_0x1f0f76(0x20d))_0x5c751d=Reflect['decorate'](_0xfc49cc,_0x277f52,_0x49ac5c,_0x5f4ab0);else{for(var _0xf49504=_0xfc49cc[_0x1f0f76(0x245)]-0x1;_0xf49504>=0x0;_0xf49504--)if(_0x1ba585=_0xfc49cc[_0xf49504])_0x5c751d=(_0x5697b6<0x3?_0x1ba585(_0x5c751d):_0x5697b6>0x3?_0x1ba585(_0x277f52,_0x49ac5c,_0x5c751d):_0x1ba585(_0x277f52,_0x49ac5c))||_0x5c751d;}return _0x5697b6>0x3&&_0x5c751d&&Object['defineProperty'](_0x277f52,_0x49ac5c,_0x5c751d),_0x5c751d;},__metadata=this&&this[a4_0x51aa93(0x20c)]||function(_0x18258b,_0xb01b4d){const _0x413f47=a4_0x51aa93;if(typeof Reflect===_0x413f47(0x21d)&&typeof Reflect[_0x413f47(0x222)]===_0x413f47(0x20d))return Reflect[_0x413f47(0x222)](_0x18258b,_0xb01b4d);};Object[a4_0x51aa93(0x242)](exports,'__esModule',{'value':!![]}),exports[a4_0x51aa93(0x209)]=void 0x0;const fs=require('fs'),path=require(a4_0x51aa93(0x1ff)),core_1=require('@midwayjs/core'),typeorm_1=require('@midwayjs/typeorm'),core_2=require('@midwayjs/core'),Common_1=require(a4_0x51aa93(0x264)),Event_1=require(a4_0x51aa93(0x220)),Search_1=require(a4_0x51aa93(0x234)),Entities_1=require(a4_0x51aa93(0x238)),Handler_1=require(a4_0x51aa93(0x268)),Validator_1=require(a4_0x51aa93(0x211)),Action_1=require(a4_0x51aa93(0x25a)),Api_1=require(a4_0x51aa93(0x22c)),Router_1=require('../templateVue/Router'),LayoutVue_1=require('../templateVue/LayoutVue'),Validator_2=require('../templateVue/Validator');let ApicreateService=class ApicreateService{async[a4_0x51aa93(0x225)](_0x11db6f){const _0x145778=a4_0x51aa93;return await this[_0x145778(0x1f0)](_0x11db6f),await this['createAction']({..._0x11db6f,'apporbasic':_0x145778(0x1f5)});}async['createBasic'](_0x39cd97){const _0x4cea81=a4_0x51aa93;return await this[_0x4cea81(0x1f0)](_0x39cd97),await this[_0x4cea81(0x226)]({..._0x39cd97,'apporbasic':'basic'});}async['createPlugin'](_0x53fc20){const _0x423537=a4_0x51aa93;return await this[_0x423537(0x1f0)](_0x53fc20),await this[_0x423537(0x226)]({..._0x53fc20,'module':!![]});}async['createAction'](_0x5ea6f1){const _0x51a3c2=a4_0x51aa93;var _0x22545f,_0x461e21;!_0x5ea6f1[_0x51a3c2(0x204)]&&(_0x5ea6f1[_0x51a3c2(0x204)]=_0x51a3c2(0x24f));!_0x5ea6f1['apporbasic']&&(_0x5ea6f1[_0x51a3c2(0x237)]=_0x51a3c2(0x1f5));const _0x42daab=this[_0x51a3c2(0x1f5)]['getBaseDir'](),_0x25b517=this[_0x51a3c2(0x251)]['getDataSource'](_0x5ea6f1[_0x51a3c2(0x204)]),_0x401772=await _0x25b517[_0x51a3c2(0x1f2)](_0x51a3c2(0x253)+this[_0x51a3c2(0x20b)]['dataSource'][_0x5ea6f1['connection']][_0x51a3c2(0x1fb)]+_0x51a3c2(0x1f8)+((_0x5ea6f1===null||_0x5ea6f1===void 0x0?void 0x0:_0x5ea6f1['table'])?'=\x20\x22'+_0x5ea6f1[_0x51a3c2(0x255)]+'\x22':'LIKE\x20\x22'+(_0x5ea6f1[_0x51a3c2(0x262)]||'')+'%\x22'))||[];for(let _0x5bf02e=0x0;_0x5bf02e<_0x401772[_0x51a3c2(0x245)];_0x5bf02e++){const _0x38501a=_0x401772[_0x5bf02e][_0x51a3c2(0x255)];if((_0x5ea6f1===null||_0x5ea6f1===void 0x0?void 0x0:_0x5ea6f1[_0x51a3c2(0x255)])&&(_0x5ea6f1===null||_0x5ea6f1===void 0x0?void 0x0:_0x5ea6f1['table'])!=_0x38501a)continue;if((_0x5ea6f1===null||_0x5ea6f1===void 0x0?void 0x0:_0x5ea6f1[_0x51a3c2(0x262)])&&!(_0x38501a===null||_0x38501a===void 0x0?void 0x0:_0x38501a[_0x51a3c2(0x213)](_0x5ea6f1['tableprefix'])))continue;const _0x1268bb=await _0x25b517['query'](_0x51a3c2(0x1f1)+this[_0x51a3c2(0x20b)][_0x51a3c2(0x214)][_0x5ea6f1['connection']][_0x51a3c2(0x1fb)]+_0x51a3c2(0x202)+_0x38501a+'\x27')||[];if((_0x22545f=_0x1268bb[0x0])===null||_0x22545f===void 0x0?void 0x0:_0x22545f[_0x51a3c2(0x243)]){const _0x191db0={'tablename':_0x38501a,'Primary':{},'Fields':{},'Comment':(_0x461e21=_0x1268bb[0x0])===null||_0x461e21===void 0x0?void 0x0:_0x461e21[_0x51a3c2(0x243)],'vuedialog':_0x5ea6f1['vuedialog'],'vueapiprefix':_0x5ea6f1[_0x51a3c2(0x1f6)],'apporbasic':_0x5ea6f1[_0x51a3c2(0x237)]};_0x191db0[_0x51a3c2(0x20f)]=_0x38501a[_0x51a3c2(0x22a)]((_0x5ea6f1===null||_0x5ea6f1===void 0x0?void 0x0:_0x5ea6f1[_0x51a3c2(0x22a)])||0x0,_0x38501a[_0x51a3c2(0x245)]),_0x191db0[_0x51a3c2(0x236)]=(_0x5ea6f1===null||_0x5ea6f1===void 0x0?void 0x0:_0x5ea6f1[_0x51a3c2(0x24d)])?_0x42daab+_0x51a3c2(0x224)+_0x191db0[_0x51a3c2(0x20f)][_0x51a3c2(0x22d)]('_')[0x0]['toLowerCase']():_0x42daab+'/'+_0x5ea6f1['apporbasic'];const _0x59ab6d=_0x191db0[_0x51a3c2(0x20f)][_0x51a3c2(0x22d)]('_')[_0x51a3c2(0x254)](_0x2e5b66=>_0x2e5b66&&_0x2e5b66[_0x51a3c2(0x26a)]());(_0x5ea6f1===null||_0x5ea6f1===void 0x0?void 0x0:_0x5ea6f1[_0x51a3c2(0x24d)])&&(await this['CreateModuleConfig'](_0x191db0),_0x191db0[_0x51a3c2(0x258)]=_0x59ab6d[0x0][_0x51a3c2(0x23b)]());_0x191db0[_0x51a3c2(0x265)]=_0x59ab6d[_0x51a3c2(0x263)](_0x5400f0=>_0x5400f0[_0x51a3c2(0x23b)]())[_0x51a3c2(0x267)](''),_0x191db0['tablestartUp']=_0x59ab6d['map'](_0x5d98bb=>''+_0x5d98bb[_0x51a3c2(0x217)](0x0,0x1)[_0x51a3c2(0x21a)]()+_0x5d98bb[_0x51a3c2(0x217)](0x1)[_0x51a3c2(0x23b)]())[_0x51a3c2(0x267)]('');(_0x191db0===null||_0x191db0===void 0x0?void 0x0:_0x191db0[_0x51a3c2(0x258)])&&_0x59ab6d[_0x51a3c2(0x245)]>0x1&&_0x59ab6d[0x0][_0x51a3c2(0x23b)]()==_0x191db0[_0x51a3c2(0x258)]?(_0x191db0['tablestartUpShort']=_0x191db0[_0x51a3c2(0x1fd)][_0x51a3c2(0x217)](_0x191db0[_0x51a3c2(0x258)][_0x51a3c2(0x245)],_0x191db0['tablestartUp'][_0x51a3c2(0x245)]),_0x191db0['tablestartLowShort']=_0x191db0[_0x51a3c2(0x265)][_0x51a3c2(0x217)](_0x191db0[_0x51a3c2(0x258)][_0x51a3c2(0x245)],_0x191db0[_0x51a3c2(0x265)][_0x51a3c2(0x245)])):(_0x191db0['tablestartUpShort']=_0x191db0['tablestartUp'],_0x191db0['tablestartLowShort']=_0x191db0['tablestartLow']);_0x191db0[_0x51a3c2(0x25e)]=_0x191db0[_0x51a3c2(0x259)][_0x51a3c2(0x206)](/\/{2,}/g,'/')[_0x51a3c2(0x215)](/[\/|A-Z]*[^A-Z]+/g)[_0x51a3c2(0x267)]('-')['toLowerCase']()[_0x51a3c2(0x206)](/\/\-/g,'/');for(let _0x3c26aa of await _0x25b517['query']('SHOW\x20FULL\x20COLUMNS\x20FROM\x20`'+_0x38501a+'`')){_0x3c26aa['Key']=='PRI'?_0x191db0[_0x51a3c2(0x22f)]=_0x3c26aa:_0x191db0[_0x51a3c2(0x232)][_0x3c26aa[_0x51a3c2(0x23f)]]=_0x3c26aa;}if((_0x5ea6f1===null||_0x5ea6f1===void 0x0?void 0x0:_0x5ea6f1[_0x51a3c2(0x241)])&&!fs[_0x51a3c2(0x21c)](_0x191db0[_0x51a3c2(0x236)]+_0x51a3c2(0x266)+_0x191db0[_0x51a3c2(0x259)]+_0x51a3c2(0x203))){var _0x445bda=[];if(typeof(_0x5ea6f1===null||_0x5ea6f1===void 0x0?void 0x0:_0x5ea6f1[_0x51a3c2(0x241)])==_0x51a3c2(0x26c))_0x445bda=[_0x5ea6f1===null||_0x5ea6f1===void 0x0?void 0x0:_0x5ea6f1['controller']];else Array[_0x51a3c2(0x240)](_0x5ea6f1===null||_0x5ea6f1===void 0x0?void 0x0:_0x5ea6f1['controller'])?_0x445bda=_0x5ea6f1===null||_0x5ea6f1===void 0x0?void 0x0:_0x5ea6f1['controller']:_0x445bda=[!![]];_0x191db0[_0x51a3c2(0x261)]=_0x445bda,await(0x0,Search_1[_0x51a3c2(0x24f)])(_0x191db0),await(0x0,Entities_1[_0x51a3c2(0x24f)])(_0x191db0),await(0x0,Common_1[_0x51a3c2(0x24f)])(_0x191db0),await(0x0,Event_1[_0x51a3c2(0x24f)])(_0x191db0),await(0x0,Handler_1[_0x51a3c2(0x24f)])(_0x191db0),await(0x0,Validator_1[_0x51a3c2(0x24f)])(_0x191db0);for(let _0x1a7ab1 of _0x445bda){_0x191db0[_0x51a3c2(0x241)]=_0x1a7ab1,await(0x0,Action_1['default'])(_0x191db0);}}if(_0x5ea6f1===null||_0x5ea6f1===void 0x0?void 0x0:_0x5ea6f1['hasvue']){var _0x445bda=[];if(typeof(_0x5ea6f1===null||_0x5ea6f1===void 0x0?void 0x0:_0x5ea6f1[_0x51a3c2(0x241)])==_0x51a3c2(0x26c))_0x445bda=[_0x5ea6f1===null||_0x5ea6f1===void 0x0?void 0x0:_0x5ea6f1[_0x51a3c2(0x241)]];else Array['isArray'](_0x5ea6f1===null||_0x5ea6f1===void 0x0?void 0x0:_0x5ea6f1[_0x51a3c2(0x241)])?_0x445bda=_0x5ea6f1===null||_0x5ea6f1===void 0x0?void 0x0:_0x5ea6f1[_0x51a3c2(0x241)]:_0x445bda=[!![]];for(let _0x15239c of _0x445bda){_0x191db0[_0x51a3c2(0x241)]=_0x15239c;let _0x310243=process[_0x51a3c2(0x218)]()+_0x51a3c2(0x1ef)+(typeof _0x191db0[_0x51a3c2(0x241)]==_0x51a3c2(0x26c)?'/'+_0x191db0[_0x51a3c2(0x241)]:'');if(_0x191db0[_0x51a3c2(0x1f6)])_0x310243=_0x310243+(_0x191db0[_0x51a3c2(0x258)]?_0x51a3c2(0x230)+_0x191db0[_0x51a3c2(0x258)]+'/'+_0x191db0[_0x51a3c2(0x25e)]+_0x51a3c2(0x24e):_0x51a3c2(0x20e)+_0x191db0[_0x51a3c2(0x237)]+'/'+_0x191db0[_0x51a3c2(0x25e)]+_0x51a3c2(0x24e));else _0x191db0[_0x51a3c2(0x258)]?_0x310243=_0x310243+(_0x51a3c2(0x21f)+_0x191db0[_0x51a3c2(0x258)]+_0x51a3c2(0x25d)+_0x191db0[_0x51a3c2(0x259)]+_0x51a3c2(0x25c)):_0x310243=_0x310243+(_0x51a3c2(0x25d)+_0x191db0[_0x51a3c2(0x237)]+_0x51a3c2(0x25d)+_0x191db0[_0x51a3c2(0x259)]+'.js');!fs[_0x51a3c2(0x21c)](_0x310243)&&(!_0x191db0['vueapiprefix']&&await(0x0,Api_1['default'])(_0x191db0),await(0x0,Router_1['default'])(_0x191db0),await(0x0,LayoutVue_1[_0x51a3c2(0x24f)])(_0x191db0),await(0x0,Validator_2[_0x51a3c2(0x24f)])(_0x191db0));}}}else console[_0x51a3c2(0x221)]('表:'+_0x38501a+_0x51a3c2(0x25b));}return _0x51a3c2(0x246);}async[a4_0x51aa93(0x1f0)](_0x49e44c){const _0x27c19b=a4_0x51aa93;var _0x9ba177,_0x4b6c61,_0x574856;if(!this[_0x27c19b(0x233)][_0x27c19b(0x21e)]()||!((_0x9ba177=this[_0x27c19b(0x20b)])===null||_0x9ba177===void 0x0?void 0x0:_0x9ba177[_0x27c19b(0x214)])||!this[_0x27c19b(0x1f5)][_0x27c19b(0x252)](_0x27c19b(0x23a)))throw new Error(_0x27c19b(0x223));!_0x49e44c[_0x27c19b(0x204)]&&(_0x49e44c['connection']=_0x27c19b(0x24f));if(!((_0x574856=(_0x4b6c61=this[_0x27c19b(0x20b)])===null||_0x4b6c61===void 0x0?void 0x0:_0x4b6c61['dataSource'])===null||_0x574856===void 0x0?void 0x0:_0x574856[_0x49e44c['connection']]))throw new Error(_0x27c19b(0x212)+_0x49e44c[_0x27c19b(0x204)]);if(!this['dataSourceManager'][_0x27c19b(0x1f9)](_0x49e44c[_0x27c19b(0x204)]))throw new Error(_0x27c19b(0x239)+_0x49e44c[_0x27c19b(0x204)]+_0x27c19b(0x207));if(!this[_0x27c19b(0x251)][_0x27c19b(0x210)](_0x49e44c[_0x27c19b(0x204)]))throw new Error(_0x27c19b(0x239)+_0x49e44c[_0x27c19b(0x204)]+_0x27c19b(0x1f7));return!![];}async[a4_0x51aa93(0x231)](_0x4ef193){const _0x564586=a4_0x51aa93,_0x1e5609=_0x4ef193[_0x564586(0x20f)][_0x564586(0x22d)]('_')[0x0][_0x564586(0x23b)]();if(!fs['existsSync'](_0x4ef193['basedir']+_0x564586(0x26b))){let _0x397fd2=_0x564586(0x260)+(_0x4ef193[_0x564586(0x24a)]||_0x1e5609)+_0x564586(0x201);fs['mkdirSync'](path[_0x564586(0x1f4)](_0x4ef193['basedir']+_0x564586(0x26b)),{'recursive':!![]}),fs[_0x564586(0x205)](_0x4ef193[_0x564586(0x236)]+'/config.ts',_0x397fd2,_0x564586(0x24b));}}};exports['ApicreateService']=ApicreateService,__decorate([(0x0,core_2[a4_0x51aa93(0x22e)])(),__metadata(a4_0x51aa93(0x249),Object)],ApicreateService[a4_0x51aa93(0x228)],'app',void 0x0),__decorate([(0x0,core_2[a4_0x51aa93(0x20a)])(a4_0x51aa93(0x257)),__metadata(a4_0x51aa93(0x249),Object)],ApicreateService[a4_0x51aa93(0x228)],a4_0x51aa93(0x20b),void 0x0),__decorate([(0x0,core_2[a4_0x51aa93(0x1fe)])(),__metadata(a4_0x51aa93(0x249),core_1[a4_0x51aa93(0x244)])],ApicreateService['prototype'],a4_0x51aa93(0x233),void 0x0),__decorate([(0x0,core_2['Inject'])(),__metadata(a4_0x51aa93(0x249),typeorm_1[a4_0x51aa93(0x23d)])],ApicreateService[a4_0x51aa93(0x228)],a4_0x51aa93(0x251),void 0x0),exports[a4_0x51aa93(0x209)]=ApicreateService=__decorate([(0x0,core_2[a4_0x51aa93(0x229)])(a4_0x51aa93(0x209)),(0x0,core_2['Scope'])(core_2[a4_0x51aa93(0x200)][a4_0x51aa93(0x248)])],ApicreateService);
@@ -1 +1 @@
1
- function a5_0xb3fe(){const _0x476358=['/controller/','getProp','/Search\x27;\x0a','\x20\x20\x20\x20@Inject()\x20protected\x20ctx:\x20Context;\x0a\x0a','DTOUpdate)\x20{\x0a','DTOSearch,\x20pageinfo:\x20PageDTO)\x20{\x0a\x0a','Handler.create(params);\x0a\x0a','indexOf','436328UuABmR','default','import\x20{\x20','\x20\x20\x20\x20@Inject()\x20protected\x20','Handler\x20}\x20from\x20\x27','apply','1grYpRw',',\x20params:\x20','(((.+)+)+)+$','Handler.update(conditions,\x20params);\x0a\x0a','2066112rJaqpu','mkdirSync','\x27)\x0a','number','Controller\x20{\x0a\x0a','\x20\x20\x20\x20@Action.get(\x27列表\x27,\x20\x27list\x27)\x0a','utf-8','\x20\x20\x20\x20@Action.get(\x27详情\x27,\x20\x27detail/:','14jgAjgo','search','2030gynFLE','DTOCreate)\x20{\x0a\x0a','\x20\x20\x20\x20async\x20index(conditions:\x20','constructor','dirname','\x20\x20\x20\x20}\x0a\x0a\x0a','__esModule','Handler.detail(conditions);\x0a\x0a','.ts','\x20\x20\x20\x20@Action.post(\x27修改\x27,\x20\x27edit/:','substring','\x20\x20\x20\x20@Action.post(\x27添加\x27,\x20\x27add\x27)\x0a','Field','Handler:\x20','\x20\x20\x20\x20async\x20remove(conditions:\x20','/validators/','mediumtext','305132ixbndb','string','DTOSearch\x20=\x20{\x20','3nFvIPl','15255UpOtsd','DTOCreate\x20}\x20from\x20\x27','\x20\x20\x20\x20\x20\x20\x20\x20const\x20tmpModel\x20=\x20await\x20this.','\x20\x20\x20\x20\x20\x20\x20\x20return\x20this.ctx.ok(tmpModel);\x0a','existsSync','2400125bfIStf','DTOSearch)\x20{\x0a\x0a','Handler.remove(conditions);\x0a\x0a','@/apps/','DTOUpdate\x20}\x20from\x20\x27','/Create\x27;\x0a','\x20\x20\x20\x20async\x20create(params:\x20','Type','@Action(__filename,\x20\x27','../helper','text','Handler\x0a\x0a\x0a','writeFileSync','\x20\x20\x20\x20\x20\x20\x20\x20return\x20this.ctx.ok(removes);\x0a','\x20\x20\x20\x20\x20\x20\x20\x20const\x20[pagelist,\x20pagetotal]\x20=\x20await\x20this.','\x20};\x0a\x0a',')\x20{\x0a','/handlers/','defineProperty','Handler.list(conditions,\x20pageinfo);\x0a\x0a','13717957JQjTLw','toString','\x20\x20\x20\x20\x20\x20\x20\x20const\x20conditions:\x20','\x20\x20\x20\x20\x20\x20\x20\x20const\x20removes\x20=\x20await\x20this.','\x20\x20\x20\x20async\x20update(','1185778KTOJuQ'];a5_0xb3fe=function(){return _0x476358;};return a5_0xb3fe();}function a5_0x1bd9(_0x1213ed,_0x120671){_0x1213ed=_0x1213ed-0x17e;const _0x4ba5bc=a5_0xb3fe();let _0x44b6ec=_0x4ba5bc[_0x1213ed];return _0x44b6ec;}const a5_0x84789b=a5_0x1bd9;(function(_0x5d6db3,_0x15656c){const _0x49e09f=a5_0x1bd9,_0x1c5317=_0x5d6db3();while(!![]){try{const _0x28f2e4=-parseInt(_0x49e09f(0x17f))/0x1*(parseInt(_0x49e09f(0x1c0))/0x2)+parseInt(_0x49e09f(0x1a1))/0x3*(parseInt(_0x49e09f(0x19e))/0x4)+-parseInt(_0x49e09f(0x1a7))/0x5+parseInt(_0x49e09f(0x183))/0x6+parseInt(_0x49e09f(0x18b))/0x7*(parseInt(_0x49e09f(0x1c9))/0x8)+parseInt(_0x49e09f(0x1a2))/0x9*(-parseInt(_0x49e09f(0x18d))/0xa)+parseInt(_0x49e09f(0x1bb))/0xb;if(_0x28f2e4===_0x15656c)break;else _0x1c5317['push'](_0x1c5317['shift']());}catch(_0x5ab80f){_0x1c5317['push'](_0x1c5317['shift']());}}}(a5_0xb3fe,0x57d7d));const a5_0x53a3ea=(function(){let _0x5a451f=!![];return function(_0x873196,_0x30f36d){const _0x114cd3=_0x5a451f?function(){const _0x57dddf=a5_0x1bd9;if(_0x30f36d){const _0x525e23=_0x30f36d[_0x57dddf(0x17e)](_0x873196,arguments);return _0x30f36d=null,_0x525e23;}}:function(){};return _0x5a451f=![],_0x114cd3;};}()),a5_0x44b6ec=a5_0x53a3ea(this,function(){const _0x142ffa=a5_0x1bd9;return a5_0x44b6ec[_0x142ffa(0x1bc)]()[_0x142ffa(0x18c)](_0x142ffa(0x181))[_0x142ffa(0x1bc)]()[_0x142ffa(0x190)](a5_0x44b6ec)[_0x142ffa(0x18c)](_0x142ffa(0x181));});a5_0x44b6ec();'use strict';Object[a5_0x84789b(0x1b9)](exports,a5_0x84789b(0x193),{'value':!![]}),exports[a5_0x84789b(0x1ca)]=default_1;const fs=require('fs'),path_1=require('path'),helper_1=require(a5_0x84789b(0x1b0));async function default_1({controller:_0x4995a5,tablestartUp:_0x250570,tablestartUpShort:_0x35fa86,basedir:_0x22d05f,Primary:_0x47ccaf,Comment:_0x1e74da,moduleName:_0x4c83ad,apporbasic:_0x3c1bcb}){const _0x57a3f4=a5_0x84789b;if(_0x4995a5){const _0x13595c=_0x22d05f+(typeof _0x4995a5=='string'?_0x57a3f4(0x1c1)+_0x4995a5+'/'+_0x35fa86+_0x57a3f4(0x195):_0x57a3f4(0x1c1)+_0x35fa86+_0x57a3f4(0x195));if(!fs[_0x57a3f4(0x1a6)](_0x13595c)){let _0x427c69='',_0xadf230=[_0x57a3f4(0x1b1),_0x57a3f4(0x19d),_0x57a3f4(0x19f)][_0x57a3f4(0x1c8)]((0x0,helper_1[_0x57a3f4(0x1c2)])(_0x47ccaf[_0x57a3f4(0x1ae)]))==-0x1;_0x427c69+='import\x20{\x20Context\x20}\x20from\x20\x27@midwayjs/koa\x27;\x0a',_0x427c69+='import\x20{\x20Inject,\x20Action,\x20PageDTO\x20}\x20from\x20\x27anvero-api\x27;\x0a\x0a',_0x427c69+='import\x20{\x20'+_0x250570+_0x57a3f4(0x1cd)+(typeof _0x4c83ad==_0x57a3f4(0x19f)?'@/apps/'+_0x4c83ad:'@/'+_0x3c1bcb)+_0x57a3f4(0x1b8)+_0x35fa86+'\x27;\x0a',_0x427c69+='import\x20{\x20'+_0x250570+'DTOSearch\x20}\x20from\x20\x27'+(typeof _0x4c83ad==_0x57a3f4(0x19f)?_0x57a3f4(0x1aa)+_0x4c83ad:'@/'+_0x3c1bcb)+_0x57a3f4(0x19c)+_0x35fa86+_0x57a3f4(0x1c3),_0x427c69+='import\x20{\x20'+_0x250570+_0x57a3f4(0x1a3)+(typeof _0x4c83ad=='string'?_0x57a3f4(0x1aa)+_0x4c83ad:'@/'+_0x3c1bcb)+_0x57a3f4(0x19c)+_0x35fa86+_0x57a3f4(0x1ac),_0x427c69+=_0x57a3f4(0x1cb)+_0x250570+_0x57a3f4(0x1ab)+(typeof _0x4c83ad==_0x57a3f4(0x19f)?_0x57a3f4(0x1aa)+_0x4c83ad:'@/'+_0x3c1bcb)+_0x57a3f4(0x19c)+_0x35fa86+'/Update\x27;\x0a\x0a',_0x427c69+=_0x57a3f4(0x1af)+_0x1e74da+_0x57a3f4(0x185),_0x427c69+='export\x20class\x20'+(typeof _0x4995a5==_0x57a3f4(0x19f)?_0x4995a5[_0x57a3f4(0x197)](0x0,0x1)['toUpperCase']()+_0x4995a5[_0x57a3f4(0x197)](0x1):'')+_0x250570+_0x57a3f4(0x187),_0x427c69+=_0x57a3f4(0x1c4),_0x427c69+=_0x57a3f4(0x1cc)+_0x250570+_0x57a3f4(0x19a)+_0x250570+_0x57a3f4(0x1b2),_0x427c69+=_0x57a3f4(0x188),_0x427c69+=_0x57a3f4(0x18f)+_0x250570+_0x57a3f4(0x1c6),_0x427c69+=_0x57a3f4(0x1b5)+_0x250570+_0x57a3f4(0x1ba),_0x427c69+='\x20\x20\x20\x20\x20\x20\x20\x20return\x20this.ctx.ok(pagelist,\x20{\x20pageinfo,\x20pagetotal\x20});\x0a',_0x427c69+=_0x57a3f4(0x192),_0x427c69+=_0x57a3f4(0x18a)+_0x47ccaf[_0x57a3f4(0x199)]+_0x57a3f4(0x185),_0x427c69+='\x20\x20\x20\x20async\x20detail('+_0x47ccaf[_0x57a3f4(0x199)]+':\x20'+(_0xadf230?_0x57a3f4(0x186):_0x57a3f4(0x19f))+_0x57a3f4(0x1b7),_0x427c69+='\x20\x20\x20\x20\x20\x20\x20\x20const\x20conditions:\x20'+_0x250570+_0x57a3f4(0x1a0)+_0x47ccaf[_0x57a3f4(0x199)]+_0x57a3f4(0x1b6),_0x427c69+='\x20\x20\x20\x20\x20\x20\x20\x20const\x20tmpModel\x20=\x20await\x20this.'+_0x250570+_0x57a3f4(0x194),_0x427c69+=_0x57a3f4(0x1a5),_0x427c69+=_0x57a3f4(0x192),_0x427c69+=_0x57a3f4(0x198),_0x427c69+=_0x57a3f4(0x1ad)+_0x250570+_0x57a3f4(0x18e),_0x427c69+=_0x57a3f4(0x1a4)+_0x250570+_0x57a3f4(0x1c7),_0x427c69+=_0x57a3f4(0x1a5),_0x427c69+=_0x57a3f4(0x192),_0x427c69+=_0x57a3f4(0x196)+_0x47ccaf[_0x57a3f4(0x199)]+'\x27)\x0a',_0x427c69+=_0x57a3f4(0x1bf)+_0x47ccaf[_0x57a3f4(0x199)]+':\x20'+(_0xadf230?'number':_0x57a3f4(0x19f))+_0x57a3f4(0x180)+_0x250570+_0x57a3f4(0x1c5),_0x427c69+=_0x57a3f4(0x1bd)+_0x250570+_0x57a3f4(0x1a0)+_0x47ccaf[_0x57a3f4(0x199)]+_0x57a3f4(0x1b6),_0x427c69+='\x20\x20\x20\x20\x20\x20\x20\x20const\x20tmpModel\x20=\x20await\x20this.'+_0x250570+_0x57a3f4(0x182),_0x427c69+=_0x57a3f4(0x1a5),_0x427c69+='\x20\x20\x20\x20}\x0a\x0a\x0a',_0x427c69+='\x20\x20\x20\x20@Action.post(\x22删除\x22,\x20\x27remove\x27)\x0a',_0x427c69+=_0x57a3f4(0x19b)+_0x250570+_0x57a3f4(0x1a8),_0x427c69+=_0x57a3f4(0x1be)+_0x250570+_0x57a3f4(0x1a9),_0x427c69+=_0x57a3f4(0x1b4),_0x427c69+='\x20\x20\x20\x20}\x0a\x0a\x0a',_0x427c69+='}',!fs[_0x57a3f4(0x1a6)]((0x0,path_1[_0x57a3f4(0x191)])(_0x13595c))&&fs[_0x57a3f4(0x184)]((0x0,path_1[_0x57a3f4(0x191)])(_0x13595c),{'recursive':!![]}),fs[_0x57a3f4(0x1b3)](_0x13595c,_0x427c69,_0x57a3f4(0x189));}}}
1
+ const a5_0x4ba27d=a5_0x3969;(function(_0x31f089,_0x4cdd59){const _0x2e25d8=a5_0x3969,_0x4f0927=_0x31f089();while(!![]){try{const _0x2f6d88=parseInt(_0x2e25d8(0x192))/0x1*(parseInt(_0x2e25d8(0x1af))/0x2)+parseInt(_0x2e25d8(0x1bd))/0x3*(-parseInt(_0x2e25d8(0x1a8))/0x4)+parseInt(_0x2e25d8(0x1a9))/0x5+parseInt(_0x2e25d8(0x1d4))/0x6*(parseInt(_0x2e25d8(0x1a4))/0x7)+-parseInt(_0x2e25d8(0x1c3))/0x8*(parseInt(_0x2e25d8(0x1ae))/0x9)+-parseInt(_0x2e25d8(0x1d1))/0xa*(parseInt(_0x2e25d8(0x1a2))/0xb)+-parseInt(_0x2e25d8(0x1ba))/0xc*(-parseInt(_0x2e25d8(0x1d5))/0xd);if(_0x2f6d88===_0x4cdd59)break;else _0x4f0927['push'](_0x4f0927['shift']());}catch(_0xa34305){_0x4f0927['push'](_0x4f0927['shift']());}}}(a5_0x15bf,0xb0202));function a5_0x3969(_0x57fa81,_0xcea43a){_0x57fa81=_0x57fa81-0x184;const _0x2cf1f2=a5_0x15bf();let _0x6f68c6=_0x2cf1f2[_0x57fa81];return _0x6f68c6;}const a5_0x470acd=(function(){let _0x2e25f3=!![];return function(_0x24fd81,_0x11e656){const _0x4d0ec0=_0x2e25f3?function(){const _0x224e49=a5_0x3969;if(_0x11e656){const _0xbbeeab=_0x11e656[_0x224e49(0x1ca)](_0x24fd81,arguments);return _0x11e656=null,_0xbbeeab;}}:function(){};return _0x2e25f3=![],_0x4d0ec0;};}()),a5_0x6f68c6=a5_0x470acd(this,function(){const _0x53fe3a=a5_0x3969;return a5_0x6f68c6['toString']()[_0x53fe3a(0x197)]('(((.+)+)+)+$')['toString']()[_0x53fe3a(0x1b9)](a5_0x6f68c6)[_0x53fe3a(0x197)](_0x53fe3a(0x19d));});a5_0x6f68c6();'use strict';Object['defineProperty'](exports,a5_0x4ba27d(0x190),{'value':!![]}),exports[a5_0x4ba27d(0x1a3)]=default_1;const fs=require('fs'),path_1=require(a5_0x4ba27d(0x1ce)),helper_1=require(a5_0x4ba27d(0x1c8));async function default_1({controller:_0x3c696a,tablestartUp:_0x5b9f9e,tablestartUpShort:_0x369776,basedir:_0x19c00e,Primary:_0x1432d8,Comment:_0x27e7e7,moduleName:_0x2f495a,apporbasic:_0x190cd6}){const _0x58f67f=a5_0x4ba27d;if(_0x3c696a){const _0x2f1bbd=_0x19c00e+(typeof _0x3c696a==_0x58f67f(0x19a)?_0x58f67f(0x1b7)+_0x3c696a+'/'+_0x369776+'.ts':_0x58f67f(0x1b7)+_0x369776+_0x58f67f(0x1bb));if(!fs[_0x58f67f(0x1a7)](_0x2f1bbd)){let _0x4d4575='',_0x24edf8=['text',_0x58f67f(0x1d0),_0x58f67f(0x19a)][_0x58f67f(0x1b0)]((0x0,helper_1['getProp'])(_0x1432d8[_0x58f67f(0x18e)]))==-0x1;_0x4d4575+=_0x58f67f(0x19f),_0x4d4575+=_0x58f67f(0x1b5),_0x4d4575+=_0x58f67f(0x18c)+_0x5b9f9e+_0x58f67f(0x1b1)+(typeof _0x2f495a==_0x58f67f(0x19a)?_0x58f67f(0x1b8)+_0x2f495a:'@/'+_0x190cd6)+_0x58f67f(0x19c)+_0x369776+_0x58f67f(0x18d),_0x4d4575+=_0x58f67f(0x18c)+_0x5b9f9e+_0x58f67f(0x1d7)+(typeof _0x2f495a==_0x58f67f(0x19a)?_0x58f67f(0x1b8)+_0x2f495a:'@/'+_0x190cd6)+_0x58f67f(0x1a6)+_0x369776+_0x58f67f(0x1d8),_0x4d4575+=_0x58f67f(0x18c)+_0x5b9f9e+_0x58f67f(0x1d6)+(typeof _0x2f495a==_0x58f67f(0x19a)?_0x58f67f(0x1b8)+_0x2f495a:'@/'+_0x190cd6)+'/validators/'+_0x369776+'/Create\x27;\x0a',_0x4d4575+=_0x58f67f(0x18c)+_0x5b9f9e+_0x58f67f(0x1c2)+(typeof _0x2f495a==_0x58f67f(0x19a)?'@/apps/'+_0x2f495a:'@/'+_0x190cd6)+'/validators/'+_0x369776+_0x58f67f(0x19e),_0x4d4575+=_0x58f67f(0x185)+_0x27e7e7+_0x58f67f(0x189),_0x4d4575+=_0x58f67f(0x187)+(typeof _0x3c696a=='string'?_0x3c696a[_0x58f67f(0x18a)](0x0,0x1)[_0x58f67f(0x1ac)]()+_0x3c696a[_0x58f67f(0x18a)](0x1):'')+_0x5b9f9e+_0x58f67f(0x1c0),_0x4d4575+=_0x58f67f(0x1c6),_0x4d4575+=_0x58f67f(0x1d2)+_0x5b9f9e+_0x58f67f(0x1b3)+_0x5b9f9e+_0x58f67f(0x1cc),_0x4d4575+='\x20\x20\x20\x20@Action.get(\x27列表\x27,\x20\x27list\x27)\x0a',_0x4d4575+=_0x58f67f(0x1b4)+_0x5b9f9e+_0x58f67f(0x1bc),_0x4d4575+=_0x58f67f(0x1b6)+_0x5b9f9e+_0x58f67f(0x1a1),_0x4d4575+='\x20\x20\x20\x20\x20\x20\x20\x20return\x20this.ctx.ok(pagelist,\x20{\x20pageinfo,\x20pagetotal\x20});\x0a',_0x4d4575+=_0x58f67f(0x188),_0x4d4575+='\x20\x20\x20\x20@Action.get(\x27详情\x27,\x20\x27detail/:'+_0x1432d8[_0x58f67f(0x195)]+_0x58f67f(0x189),_0x4d4575+=_0x58f67f(0x1cb)+_0x1432d8[_0x58f67f(0x195)]+':\x20'+(_0x24edf8?_0x58f67f(0x1a5):_0x58f67f(0x19a))+_0x58f67f(0x1c9),_0x4d4575+='\x20\x20\x20\x20\x20\x20\x20\x20const\x20conditions:\x20'+_0x5b9f9e+_0x58f67f(0x18f)+_0x1432d8[_0x58f67f(0x195)]+'\x20};\x0a\x0a',_0x4d4575+='\x20\x20\x20\x20\x20\x20\x20\x20const\x20tmpModel\x20=\x20await\x20this.'+_0x5b9f9e+_0x58f67f(0x1a0),_0x4d4575+='\x20\x20\x20\x20\x20\x20\x20\x20return\x20this.ctx.ok(tmpModel);\x0a',_0x4d4575+=_0x58f67f(0x188),_0x4d4575+=_0x58f67f(0x1c1),_0x4d4575+=_0x58f67f(0x191)+_0x5b9f9e+_0x58f67f(0x1cf),_0x4d4575+=_0x58f67f(0x1cd)+_0x5b9f9e+_0x58f67f(0x19b),_0x4d4575+=_0x58f67f(0x186),_0x4d4575+=_0x58f67f(0x188),_0x4d4575+=_0x58f67f(0x193)+_0x1432d8[_0x58f67f(0x195)]+_0x58f67f(0x189),_0x4d4575+=_0x58f67f(0x199)+_0x1432d8['Field']+':\x20'+(_0x24edf8?_0x58f67f(0x1a5):_0x58f67f(0x19a))+_0x58f67f(0x1b2)+_0x5b9f9e+_0x58f67f(0x196),_0x4d4575+=_0x58f67f(0x1ad)+_0x5b9f9e+_0x58f67f(0x18f)+_0x1432d8[_0x58f67f(0x195)]+_0x58f67f(0x1d3),_0x4d4575+=_0x58f67f(0x1cd)+_0x5b9f9e+_0x58f67f(0x1be),_0x4d4575+=_0x58f67f(0x186),_0x4d4575+=_0x58f67f(0x188),_0x4d4575+=_0x58f67f(0x1bf),_0x4d4575+=_0x58f67f(0x184)+_0x5b9f9e+_0x58f67f(0x1c5),_0x4d4575+=_0x58f67f(0x1aa)+_0x5b9f9e+_0x58f67f(0x198),_0x4d4575+=_0x58f67f(0x194),_0x4d4575+='\x20\x20\x20\x20}\x0a\x0a\x0a',_0x4d4575+='}',!fs[_0x58f67f(0x1a7)]((0x0,path_1[_0x58f67f(0x1c4)])(_0x2f1bbd))&&fs[_0x58f67f(0x1ab)]((0x0,path_1[_0x58f67f(0x1c4)])(_0x2f1bbd),{'recursive':!![]}),fs[_0x58f67f(0x1c7)](_0x2f1bbd,_0x4d4575,_0x58f67f(0x18b));}}}function a5_0x15bf(){const _0x1c2b84=['DTOCreate)\x20{\x0a\x0a','mediumtext','70oMChxs','\x20\x20\x20\x20@Inject()\x20protected\x20','\x20};\x0a\x0a','1909296unXYdN','1170FeEnQy','DTOCreate\x20}\x20from\x20\x27','DTOSearch\x20}\x20from\x20\x27','/Search\x27;\x0a','\x20\x20\x20\x20async\x20remove(conditions:\x20','@Action(__filename,\x20\x27','\x20\x20\x20\x20\x20\x20\x20\x20return\x20this.ctx.ok(tmpModel);\x0a','export\x20class\x20','\x20\x20\x20\x20}\x0a\x0a\x0a','\x27)\x0a','substring','utf-8','import\x20{\x20','\x27;\x0a','Type','DTOSearch\x20=\x20{\x20','__esModule','\x20\x20\x20\x20async\x20create(params:\x20','371869Verdtl','\x20\x20\x20\x20@Action.post(\x27修改\x27,\x20\x27edit/:','\x20\x20\x20\x20\x20\x20\x20\x20return\x20this.ctx.ok(removes);\x0a','Field','DTOUpdate)\x20{\x0a','search','Handler.remove(conditions);\x0a\x0a','\x20\x20\x20\x20async\x20update(','string','Handler.create(params);\x0a\x0a','/handlers/','(((.+)+)+)+$','/Update\x27;\x0a\x0a','import\x20{\x20Context\x20}\x20from\x20\x27@midwayjs/koa\x27;\x0a','Handler.detail(conditions);\x0a\x0a','Handler.list(conditions,\x20pageinfo);\x0a\x0a','663993rzVdHm','default','21mDzkYW','number','/validators/','existsSync','46836UJPXQo','1974950VgkOMr','\x20\x20\x20\x20\x20\x20\x20\x20const\x20removes\x20=\x20await\x20this.','mkdirSync','toUpperCase','\x20\x20\x20\x20\x20\x20\x20\x20const\x20conditions:\x20','9hwtLea','6IiVaLH','indexOf','Handler\x20}\x20from\x20\x27',',\x20params:\x20','Handler:\x20','\x20\x20\x20\x20async\x20index(conditions:\x20','import\x20{\x20Inject,\x20Action,\x20PageDTO\x20}\x20from\x20\x27anvero-api\x27;\x0a\x0a','\x20\x20\x20\x20\x20\x20\x20\x20const\x20[pagelist,\x20pagetotal]\x20=\x20await\x20this.','/controller/','@/apps/','constructor','936KkqVhu','.ts','DTOSearch,\x20pageinfo:\x20PageDTO)\x20{\x0a\x0a','339fXfDZD','Handler.update(conditions,\x20params);\x0a\x0a','\x20\x20\x20\x20@Action.post(\x22删除\x22,\x20\x27remove\x27)\x0a','Controller\x20{\x0a\x0a','\x20\x20\x20\x20@Action.post(\x27添加\x27,\x20\x27add\x27)\x0a','DTOUpdate\x20}\x20from\x20\x27','41576ReAXcq','dirname','DTOSearch)\x20{\x0a\x0a','\x20\x20\x20\x20@Inject()\x20protected\x20ctx:\x20Context;\x0a\x0a','writeFileSync','../helper',')\x20{\x0a','apply','\x20\x20\x20\x20async\x20detail(','Handler\x0a\x0a\x0a','\x20\x20\x20\x20\x20\x20\x20\x20const\x20tmpModel\x20=\x20await\x20this.','path'];a5_0x15bf=function(){return _0x1c2b84;};return a5_0x15bf();}
@@ -1 +1 @@
1
- const a6_0x55e2e4=a6_0x222e;(function(_0xf112cb,_0x18790d){const _0x2484fb=a6_0x222e,_0x2dc6bc=_0xf112cb();while(!![]){try{const _0x4e2d17=-parseInt(_0x2484fb(0x11d))/0x1*(parseInt(_0x2484fb(0x10e))/0x2)+-parseInt(_0x2484fb(0x10b))/0x3*(parseInt(_0x2484fb(0x112))/0x4)+parseInt(_0x2484fb(0x126))/0x5*(-parseInt(_0x2484fb(0x116))/0x6)+-parseInt(_0x2484fb(0x122))/0x7+-parseInt(_0x2484fb(0x10d))/0x8+parseInt(_0x2484fb(0x127))/0x9+parseInt(_0x2484fb(0x12a))/0xa;if(_0x4e2d17===_0x18790d)break;else _0x2dc6bc['push'](_0x2dc6bc['shift']());}catch(_0x16c472){_0x2dc6bc['push'](_0x2dc6bc['shift']());}}}(a6_0x1126,0x64d8e));const a6_0x2859b0=(function(){let _0x346ee3=!![];return function(_0x2cd0db,_0x591d13){const _0x5f4ddd=_0x346ee3?function(){const _0x475001=a6_0x222e;if(_0x591d13){const _0x209706=_0x591d13[_0x475001(0x110)](_0x2cd0db,arguments);return _0x591d13=null,_0x209706;}}:function(){};return _0x346ee3=![],_0x5f4ddd;};}()),a6_0x30f67c=a6_0x2859b0(this,function(){const _0x5d907b=a6_0x222e;return a6_0x30f67c['toString']()[_0x5d907b(0x12f)](_0x5d907b(0x124))['toString']()[_0x5d907b(0x11e)](a6_0x30f67c)[_0x5d907b(0x12f)](_0x5d907b(0x124));});function a6_0x1126(){const _0x759083=['44945fccBeQ','2489589JBkFzx','indexOf','existsSync','14573860gJwIzR','tinyint','.ts','_ON:\x20number\x20=\x201;\x0a\x0a','/**\x0a','search','dirname','/enums/','Type','\x27,\x20\x27开启','/exceptions/','__esModule','toUpperCase','writeFileSync','2133057xtpCKO','\x20*\x20**/\x0a','748064hxhtSV','1942XSVuUf','Comment','apply','mkdirSync','4stHPDV','default','-常量设置\x0a','utf-8','102NKCmVR','getProp','\x27)\x0a','Enum\x20{\x0a\x0a','path','Error\x20extends\x20AnnError\x20{\x0a\x0a','\x20\x20\x20\x20@AnnEnumMsg(\x27','371ooxpUu','constructor','-错误信息设置\x0a','../helper','export\x20class\x20','23492kLbNyo','\x20\x20\x20\x20static\x20readonly\x20','(((.+)+)+)+$','\x20*\x20'];a6_0x1126=function(){return _0x759083;};return a6_0x1126();}a6_0x30f67c();'use strict';Object['defineProperty'](exports,a6_0x55e2e4(0x135),{'value':!![]}),exports[a6_0x55e2e4(0x113)]=default_1;function a6_0x222e(_0x3c745b,_0x348b0f){_0x3c745b=_0x3c745b-0x10b;const _0x4d8ced=a6_0x1126();let _0x30f67c=_0x4d8ced[_0x3c745b];return _0x30f67c;}const fs=require('fs'),path=require(a6_0x55e2e4(0x11a)),helper_1=require(a6_0x55e2e4(0x120));async function default_1({tablestartUp:_0x5eb625,tablestartUpShort:_0x1c70e3,basedir:_0x909980,Comment:_0x386009,Fields:_0x2c8afb}){await entity_emum({'tablestartUp':_0x5eb625,'tablestartUpShort':_0x1c70e3,'basedir':_0x909980,'Comment':_0x386009,'Fields':_0x2c8afb}),await entity_exceptions({'tablestartUp':_0x5eb625,'tablestartUpShort':_0x1c70e3,'basedir':_0x909980,'Comment':_0x386009});}async function entity_emum({tablestartUp:_0x32a070,tablestartUpShort:_0x5e1b69,basedir:_0x363a32,Comment:_0x594c21,Fields:_0x585281}){const _0x4db338=a6_0x55e2e4,_0x5740c6=_0x363a32+(_0x4db338(0x131)+_0x5e1b69+_0x4db338(0x12c));if(!fs[_0x4db338(0x129)](_0x5740c6)){let _0x4068b5='';_0x4068b5+='/**\x0a',_0x4068b5+=_0x4db338(0x125)+_0x594c21+_0x4db338(0x114),_0x4068b5+=_0x4db338(0x10c),_0x4068b5+=_0x4db338(0x121)+_0x32a070+_0x4db338(0x119);for(let _0x44b022 in _0x585281){let _0x104126=_0x585281[_0x44b022],_0x5d998f=(0x0,helper_1[_0x4db338(0x117)])(_0x104126[_0x4db338(0x132)]);[_0x4db338(0x12b)][_0x4db338(0x128)](_0x5d998f)!=-0x1&&(_0x4068b5+=_0x4db338(0x11c)+_0x44b022+_0x4db338(0x133)+_0x104126[_0x4db338(0x10f)]+_0x4db338(0x118),_0x4068b5+=_0x4db338(0x123)+_0x44b022[_0x4db338(0x136)]()+_0x4db338(0x12d),_0x4068b5+=_0x4db338(0x11c)+_0x44b022+'\x27,\x20\x27关闭'+_0x104126['Comment']+_0x4db338(0x118),_0x4068b5+=_0x4db338(0x123)+_0x44b022['toUpperCase']()+'_OFF:\x20number\x20=\x200;\x0a\x0a\x0a');}_0x4068b5+='}',!fs['existsSync'](path[_0x4db338(0x130)](_0x5740c6))&&fs[_0x4db338(0x111)](path[_0x4db338(0x130)](_0x5740c6),{'recursive':!![]}),fs[_0x4db338(0x137)](_0x5740c6,_0x4068b5,_0x4db338(0x115));}}async function entity_exceptions({tablestartUp:_0x2f508e,tablestartUpShort:_0x315fb0,basedir:_0x4c2604,Comment:_0x2642ce}){const _0x10ff46=a6_0x55e2e4,_0x3a5639=_0x4c2604+(_0x10ff46(0x134)+_0x315fb0+_0x10ff46(0x12c));if(!fs['existsSync'](_0x3a5639)){let _0x394c2c='';_0x394c2c+=_0x10ff46(0x12e),_0x394c2c+=_0x10ff46(0x125)+_0x2642ce+_0x10ff46(0x11f),_0x394c2c+=_0x10ff46(0x10c),_0x394c2c+=_0x10ff46(0x121)+_0x2f508e+_0x10ff46(0x11b),_0x394c2c+='}',!fs[_0x10ff46(0x129)](path['dirname'](_0x3a5639))&&fs[_0x10ff46(0x111)](path[_0x10ff46(0x130)](_0x3a5639),{'recursive':!![]}),fs[_0x10ff46(0x137)](_0x3a5639,_0x394c2c,_0x10ff46(0x115));}}
1
+ function a6_0x2e24(){const _0x5d3e97=['dirname','26423903OPjBbN','/exceptions/','5005VAcgTw','(((.+)+)+)+$','760eeqQKd','toString','export\x20class\x20','indexOf','../helper','Comment','utf-8','apply','default','path','\x20*\x20','existsSync','/enums/','5817810BqzUcA','defineProperty','writeFileSync','527872hpGXPE','\x20\x20\x20\x20@AnnEnumMsg(\x27','constructor','1597374Stnbna','\x20\x20\x20\x20static\x20readonly\x20','1863404fTlGxU','.ts','5XYOHIO','_OFF:\x20number\x20=\x200;\x0a\x0a\x0a','_ON:\x20number\x20=\x201;\x0a\x0a','toUpperCase','\x27,\x20\x27开启','419793JQpzJP','/**\x0a','__esModule','search','1miScIu','Type','70EbAzpz','\x27)\x0a','mkdirSync','\x20*\x20**/\x0a','-错误信息设置\x0a'];a6_0x2e24=function(){return _0x5d3e97;};return a6_0x2e24();}const a6_0x32e3ad=a6_0x402b;(function(_0x39eb8f,_0x592a46){const _0x654aa6=a6_0x402b,_0x2b700d=_0x39eb8f();while(!![]){try{const _0x5e5604=-parseInt(_0x654aa6(0xa1))/0x1*(-parseInt(_0x654aa6(0x96))/0x2)+-parseInt(_0x654aa6(0x9d))/0x3+-parseInt(_0x654aa6(0x91))/0x4+parseInt(_0x654aa6(0x98))/0x5*(-parseInt(_0x654aa6(0x8e))/0x6)+parseInt(_0x654aa6(0x7f))/0x7*(-parseInt(_0x654aa6(0x81))/0x8)+-parseInt(_0x654aa6(0x94))/0x9*(parseInt(_0x654aa6(0x77))/0xa)+parseInt(_0x654aa6(0x7d))/0xb;if(_0x5e5604===_0x592a46)break;else _0x2b700d['push'](_0x2b700d['shift']());}catch(_0x56d5e1){_0x2b700d['push'](_0x2b700d['shift']());}}}(a6_0x2e24,0xbeebe));const a6_0x6d7391=(function(){let _0x5274ed=!![];return function(_0x304ccb,_0x4eb700){const _0x45d43e=_0x5274ed?function(){const _0x16950d=a6_0x402b;if(_0x4eb700){const _0x47a115=_0x4eb700[_0x16950d(0x88)](_0x304ccb,arguments);return _0x4eb700=null,_0x47a115;}}:function(){};return _0x5274ed=![],_0x45d43e;};}()),a6_0x5a43d0=a6_0x6d7391(this,function(){const _0x22cd4b=a6_0x402b;return a6_0x5a43d0[_0x22cd4b(0x82)]()[_0x22cd4b(0xa0)](_0x22cd4b(0x80))['toString']()[_0x22cd4b(0x93)](a6_0x5a43d0)[_0x22cd4b(0xa0)](_0x22cd4b(0x80));});a6_0x5a43d0();'use strict';Object[a6_0x32e3ad(0x8f)](exports,a6_0x32e3ad(0x9f),{'value':!![]}),exports[a6_0x32e3ad(0x89)]=default_1;function a6_0x402b(_0xe48db0,_0x4610d9){_0xe48db0=_0xe48db0-0x76;const _0x20a542=a6_0x2e24();let _0x5a43d0=_0x20a542[_0xe48db0];return _0x5a43d0;}const fs=require('fs'),path=require(a6_0x32e3ad(0x8a)),helper_1=require(a6_0x32e3ad(0x85));async function default_1({tablestartUp:_0x4fb7c1,tablestartUpShort:_0x467c99,basedir:_0xb84746,Comment:_0xff1549,Fields:_0x936ca6}){await entity_emum({'tablestartUp':_0x4fb7c1,'tablestartUpShort':_0x467c99,'basedir':_0xb84746,'Comment':_0xff1549,'Fields':_0x936ca6}),await entity_exceptions({'tablestartUp':_0x4fb7c1,'tablestartUpShort':_0x467c99,'basedir':_0xb84746,'Comment':_0xff1549});}async function entity_emum({tablestartUp:_0x344ae7,tablestartUpShort:_0xda9ddd,basedir:_0x10d233,Comment:_0x3d06be,Fields:_0x52733a}){const _0x1b8c76=a6_0x32e3ad,_0x1b0daf=_0x10d233+(_0x1b8c76(0x8d)+_0xda9ddd+_0x1b8c76(0x97));if(!fs[_0x1b8c76(0x8c)](_0x1b0daf)){let _0x2652d8='';_0x2652d8+=_0x1b8c76(0x9e),_0x2652d8+='\x20*\x20'+_0x3d06be+'-常量设置\x0a',_0x2652d8+='\x20*\x20**/\x0a',_0x2652d8+='export\x20class\x20'+_0x344ae7+'Enum\x20{\x0a\x0a';for(let _0x29d950 in _0x52733a){let _0x434c23=_0x52733a[_0x29d950],_0x146e62=(0x0,helper_1['getProp'])(_0x434c23[_0x1b8c76(0x76)]);['tinyint'][_0x1b8c76(0x84)](_0x146e62)!=-0x1&&(_0x2652d8+=_0x1b8c76(0x92)+_0x29d950+_0x1b8c76(0x9c)+_0x434c23['Comment']+_0x1b8c76(0x78),_0x2652d8+='\x20\x20\x20\x20static\x20readonly\x20'+_0x29d950[_0x1b8c76(0x9b)]()+_0x1b8c76(0x9a),_0x2652d8+=_0x1b8c76(0x92)+_0x29d950+'\x27,\x20\x27关闭'+_0x434c23[_0x1b8c76(0x86)]+_0x1b8c76(0x78),_0x2652d8+=_0x1b8c76(0x95)+_0x29d950[_0x1b8c76(0x9b)]()+_0x1b8c76(0x99));}_0x2652d8+='}',!fs[_0x1b8c76(0x8c)](path['dirname'](_0x1b0daf))&&fs[_0x1b8c76(0x79)](path[_0x1b8c76(0x7c)](_0x1b0daf),{'recursive':!![]}),fs[_0x1b8c76(0x90)](_0x1b0daf,_0x2652d8,_0x1b8c76(0x87));}}async function entity_exceptions({tablestartUp:_0x517a17,tablestartUpShort:_0x2e196b,basedir:_0x4eb6fd,Comment:_0x53196c}){const _0x4c9273=a6_0x32e3ad,_0x1f8640=_0x4eb6fd+(_0x4c9273(0x7e)+_0x2e196b+'.ts');if(!fs[_0x4c9273(0x8c)](_0x1f8640)){let _0x474ff7='';_0x474ff7+=_0x4c9273(0x9e),_0x474ff7+=_0x4c9273(0x8b)+_0x53196c+_0x4c9273(0x7b),_0x474ff7+=_0x4c9273(0x7a),_0x474ff7+=_0x4c9273(0x83)+_0x517a17+'Error\x20extends\x20AnnError\x20{\x0a\x0a',_0x474ff7+='}',!fs['existsSync'](path[_0x4c9273(0x7c)](_0x1f8640))&&fs['mkdirSync'](path['dirname'](_0x1f8640),{'recursive':!![]}),fs[_0x4c9273(0x90)](_0x1f8640,_0x474ff7,_0x4c9273(0x87));}}
@@ -1 +1 @@
1
- function a7_0x233c(_0x1a74ff,_0x154368){_0x1a74ff=_0x1a74ff-0x8b;const _0x3566f8=a7_0x5319();let _0x3e0029=_0x3566f8[_0x1a74ff];return _0x3e0029;}const a7_0x509522=a7_0x233c;(function(_0x3631b9,_0x43be4a){const _0x2999f3=a7_0x233c,_0x1e30e5=_0x3631b9();while(!![]){try{const _0x7ee016=-parseInt(_0x2999f3(0xd6))/0x1+parseInt(_0x2999f3(0xe0))/0x2*(parseInt(_0x2999f3(0xc0))/0x3)+parseInt(_0x2999f3(0xba))/0x4+parseInt(_0x2999f3(0xb7))/0x5+-parseInt(_0x2999f3(0xbb))/0x6+-parseInt(_0x2999f3(0x98))/0x7*(-parseInt(_0x2999f3(0xc1))/0x8)+-parseInt(_0x2999f3(0xa1))/0x9;if(_0x7ee016===_0x43be4a)break;else _0x1e30e5['push'](_0x1e30e5['shift']());}catch(_0x30e811){_0x1e30e5['push'](_0x1e30e5['shift']());}}}(a7_0x5319,0x426c1));const a7_0x531646=(function(){let _0x2fecb2=!![];return function(_0x2b16d5,_0x558417){const _0x1f7d2a=_0x2fecb2?function(){const _0x47b9a2=a7_0x233c;if(_0x558417){const _0x4a2820=_0x558417[_0x47b9a2(0x90)](_0x2b16d5,arguments);return _0x558417=null,_0x4a2820;}}:function(){};return _0x2fecb2=![],_0x1f7d2a;};}()),a7_0x3e0029=a7_0x531646(this,function(){const _0x523431=a7_0x233c;return a7_0x3e0029[_0x523431(0xf1)]()['search'](_0x523431(0xb6))[_0x523431(0xf1)]()[_0x523431(0x9c)](a7_0x3e0029)[_0x523431(0xcb)](_0x523431(0xb6));});a7_0x3e0029();'use strict';Object[a7_0x509522(0xf3)](exports,'__esModule',{'value':!![]}),exports['default']=default_1;function a7_0x5319(){const _0x5f35cc=['search','/entities/','\x20\x20\x20\x20@Column({\x20comment:\x20\x27','json','PrimaryGeneratedColumn','\x20*\x20','existsSync','\x27,\x20length:\x20188\x20})\x0a','true','\x20extends\x20Repository<','/entity\x27;\x0a\x0a','47550GEwGgS',':\x20string;\x0a\x0a','\x20\x20\x20\x20@DeleteDateColumn({\x20comment:\x20\x27删除时间\x27,\x20type:\x20\x27timestamp\x27,\x20select:\x20false\x20})\x0a','Entity>{\x0a\x0a','\x20\x20\x20\x20@Column(\x27timestamp\x27,\x20{\x20comment:\x20\x27','%column%','\x20\x20\x20\x20@UpdateDateColumn({\x20comment:\x20\x27修改时间\x27,\x20type:\x20\x27timestamp\x27\x20})\x0a','YES','getProp','Null','2gOuJZA','false','\x20*\x20**/\x0a','mkdirSync','\x20\x20\x20\x20@Column(\x27enum\x27,\x20{\x20comment:\x20\x27','-实体处理器\x0a','@ProvideEntity({\x20tableName:\x20\x27','\x20\x20\x20\x20deleted_at:\x20Date;\x0a\x0a','dirname','\x27,\x20precision:\x2010,\x20scale:\x202,\x20default:\x200.00,\x20nullable:\x20','\x20\x20\x20\x20@CreateDateColumn({\x20comment:\x20\x27创建时间\x27,\x20type:\x20\x27timestamp\x27\x20})\x0a','\x20\x20\x20\x20@PrimaryColumn({\x20comment:\x20\x27','tinyint','-实体\x0a','\x27;\x0a\x0a',',\x20unique:\x20false\x20})\x0a','\x27]\x20})\x0a','toString','number','defineProperty','\x27,\x20\x27','\x20\x20\x20\x20@PrimaryGeneratedColumn()\x0a','//\x20import\x20{\x20ManyToOne,\x20JoinColumn\x20}\x20from\x20\x27@anveroapi/typeorm\x27;\x0a','\x20\x20\x20\x20@Column(\x27mediumtext\x27,\x20{\x20comment:\x20\x27','timestamp','apply','/searchs/','Field','decimal','\x20\x20\x20\x20created_at:\x20Date;\x0a\x0a',':\x20\x27','longtext','\x27,\x20nullable:\x20','7091JWOQKN','indexOf','\x20\x20\x20\x20@Column(\x27longtext\x27,\x20{\x20comment:\x20\x27','@ProvideSearch(','constructor','\x20\x20\x20\x20@Column(\x27date\x27,\x20{\x20comment:\x20\x27','/entity.ts','utf-8','replace','2744199UxMeoN','displayorder','../helper','import\x20{\x20ProvideRepository,\x20Repository\x20}\x20from\x20\x27@anveroapi/typeorm\x27;\x0a','\x20})\x0a','\x27,\x20enum:\x20[\x27','\x20\x20\x20\x20@Column({\x20comment:\x20\x27默认显示排序\x27,\x20nullable:\x20true,\x20unique:\x20false\x20})\x0a','Type','writeFileSync','export\x20class\x20','Entity\x20}\x20from\x20\x27','\x27,\x20precision:\x2024,\x20scale:\x202,\x20default:\x200.00,\x20nullable:\x20','\x20\x20\x20\x20@Column(\x27text\x27,\x20{\x20comment:\x20\x27','\x27\x20},\x20{\x20orderBy:\x20{\x20displayorder:\x20\x27DESC\x27\x20}\x20})\x0a','string','Comment','getEnum','Search\x20}\x20from\x20\x27','path','float',':\x20number;\x0a\x0a','(((.+)+)+)+$','1150590rkKTPO','date','deleted_at','197600BSpevr','587868YUAOgW','\x20\x20\x20\x20@Column(\x27float\x27,\x20{\x20comment:\x20\x27','/**\x0a','@/apps/','import\x20{\x20','906537izSBRd','1112QOtYUi','text','\x20\x20\x20\x20@Column(\x27decimal\x27,\x20{\x20comment:\x20\x27','\x27\x20|\x20\x27','\x20\x20\x20\x20','datetime','/index.ts','\x20\x20\x20\x20@Column(\x27json\x27,\x20{\x20comment:\x20\x27','Entity)\x0a','mediumtext'];a7_0x5319=function(){return _0x5f35cc;};return a7_0x5319();}const fs=require('fs'),path_1=require(a7_0x509522(0xb3)),helper_1=require(a7_0x509522(0xa3));async function default_1({tablename:_0x1d4033,tablestartUp:_0x7fa76e,tablestartUpShort:_0x5c2d55,basedir:_0xd05971,Primary:_0x17c67e,Fields:_0x43edd8,Comment:_0x19cd5b,moduleName:_0x174715,apporbasic:_0x1491cb}){await entity({'tablename':_0x1d4033,'tablestartUp':_0x7fa76e,'tablestartUpShort':_0x5c2d55,'basedir':_0xd05971,'Primary':_0x17c67e,'Fields':_0x43edd8,'Comment':_0x19cd5b,'moduleName':_0x174715,'apporbasic':_0x1491cb}),await repository({'tablestartUp':_0x7fa76e,'tablestartUpShort':_0x5c2d55,'basedir':_0xd05971,'Comment':_0x19cd5b,'moduleName':_0x174715,'apporbasic':_0x1491cb});}async function entity({tablename:_0x2a1278,tablestartUp:_0x15eea9,tablestartUpShort:_0x4e9873,basedir:_0x530702,Primary:_0x2d175a,Fields:_0x545164,Comment:_0xe9635c,moduleName:_0x537a33,apporbasic:_0x3b98af}){const _0x314da7=a7_0x509522,_0x26ca2f=_0x530702+(_0x314da7(0xcc)+_0x4e9873+_0x314da7(0x9e));if(!fs[_0x314da7(0xd1)](_0x26ca2f)){let _0x4de009='',_0x4fbe2f='',_0x43031c=[_0x314da7(0xc2),'mediumtext',_0x314da7(0xaf)][_0x314da7(0x99)]((0x0,helper_1[_0x314da7(0xde)])(_0x2d175a[_0x314da7(0xa8)]))==-0x1;_0x43031c?(_0x4de009+=_0x314da7(0x8c),_0x4de009+=_0x314da7(0xc5)+_0x2d175a['Field']+_0x314da7(0xb5)):(_0x4de009+=_0x314da7(0xeb)+(_0x2d175a[_0x314da7(0xb0)]||'标识')+_0x314da7(0xd2),_0x4de009+=_0x314da7(0xc5)+_0x2d175a[_0x314da7(0x92)]+_0x314da7(0xd7));for(let _0x2040a3 in _0x545164){let _0x5be7ad=_0x545164[_0x2040a3],_0x27681a=(0x0,helper_1[_0x314da7(0xde)])(_0x5be7ad[_0x314da7(0xa8)]);if(_0x5be7ad[_0x314da7(0x92)]==_0x314da7(0xa2)||_0x5be7ad['Field']=='created_at'||_0x5be7ad['Field']=='updated_at'||_0x5be7ad[_0x314da7(0x92)]==_0x314da7(0xb9))continue;if(_0x27681a==_0x314da7(0xce))_0x4de009+=_0x314da7(0xc8)+_0x5be7ad['Comment']+_0x314da7(0x97)+(_0x5be7ad[_0x314da7(0xdf)]==_0x314da7(0xdd)?_0x314da7(0xd3):_0x314da7(0xe1))+',\x20unique:\x20false\x20})\x0a',_0x4de009+=_0x314da7(0xc5)+_0x5be7ad[_0x314da7(0x92)]+':\x20any\x20|\x20any[];\x0a\x0a';else{if(_0x27681a=='enum'){let _0x1ec099=(0x0,helper_1[_0x314da7(0xb1)])(_0x5be7ad['Type']);_0x4de009+=_0x314da7(0xe4)+_0x5be7ad[_0x314da7(0xb0)]+'\x27,\x20default:\x20\x27'+(_0x1ec099[0x0]||'')+_0x314da7(0xa6)+_0x1ec099['join'](_0x314da7(0x8b))+_0x314da7(0xf0),_0x4de009+=_0x314da7(0xc5)+_0x5be7ad[_0x314da7(0x92)]+_0x314da7(0x95)+_0x1ec099['join'](_0x314da7(0xc4))+'\x27;\x0a\x0a';}else{if(_0x27681a==_0x314da7(0xb4))_0x4de009+=_0x314da7(0xbc)+_0x5be7ad[_0x314da7(0xb0)]+_0x314da7(0xe9)+(_0x5be7ad[_0x314da7(0xdf)]==_0x314da7(0xdd)?_0x314da7(0xd3):_0x314da7(0xe1))+'\x20})\x0a',_0x4de009+=_0x314da7(0xc5)+_0x5be7ad['Field']+':\x20number;\x0a\x0a';else{if(_0x27681a=='double')_0x4de009+='\x20\x20\x20\x20@Column(\x27double\x27,\x20{\x20comment:\x20\x27'+_0x5be7ad['Comment']+'\x27,\x20precision:\x2010,\x20scale:\x202,\x20default:\x200.00,\x20nullable:\x20'+(_0x5be7ad['Null']==_0x314da7(0xdd)?_0x314da7(0xd3):_0x314da7(0xe1))+'\x20})\x0a',_0x4de009+='\x20\x20\x20\x20'+_0x5be7ad[_0x314da7(0x92)]+_0x314da7(0xb5);else{if(_0x27681a==_0x314da7(0x93))_0x4de009+=_0x314da7(0xc3)+_0x5be7ad[_0x314da7(0xb0)]+_0x314da7(0xac)+(_0x5be7ad[_0x314da7(0xdf)]==_0x314da7(0xdd)?_0x314da7(0xd3):_0x314da7(0xe1))+'\x20})\x0a',_0x4de009+='\x20\x20\x20\x20'+_0x5be7ad[_0x314da7(0x92)]+':\x20number;\x0a\x0a';else{if(_0x27681a==_0x314da7(0xf2))_0x4de009+=_0x314da7(0xcd)+_0x5be7ad['Comment']+'\x27,\x20nullable:\x20'+(_0x5be7ad['Null']==_0x314da7(0xdd)?'true':_0x314da7(0xe1))+',\x20unique:\x20false\x20})\x0a',_0x4de009+=_0x314da7(0xc5)+_0x5be7ad[_0x314da7(0x92)]+_0x314da7(0xb5);else{if(_0x27681a==_0x314da7(0xec))_0x4de009+='\x20\x20\x20\x20@Column(\x27tinyint\x27,\x20{\x20comment:\x20\x27'+_0x5be7ad['Comment']+'\x27,\x20nullable:\x20'+(_0x5be7ad[_0x314da7(0xdf)]=='YES'?'true':_0x314da7(0xe1))+_0x314da7(0xef),_0x4de009+=_0x314da7(0xc5)+_0x5be7ad['Field']+':\x20number;\x0a\x0a';else{if(_0x27681a==_0x314da7(0xb8))_0x4de009+=_0x314da7(0x9d)+_0x5be7ad['Comment']+_0x314da7(0x97)+(_0x5be7ad[_0x314da7(0xdf)]==_0x314da7(0xdd)?_0x314da7(0xd3):_0x314da7(0xe1))+'\x20})\x0a',_0x4de009+=_0x314da7(0xc5)+_0x5be7ad[_0x314da7(0x92)]+_0x314da7(0xd7);else{if(_0x27681a==_0x314da7(0xc6))_0x4de009+=_0x314da7(0xda)+_0x5be7ad['Comment']+_0x314da7(0x97)+(_0x5be7ad[_0x314da7(0xdf)]==_0x314da7(0xdd)?'true':_0x314da7(0xe1))+'\x20})\x0a',_0x4de009+=_0x314da7(0xc5)+_0x5be7ad[_0x314da7(0x92)]+_0x314da7(0xd7);else{if(_0x27681a==_0x314da7(0x8f))_0x4de009+=_0x314da7(0xda)+_0x5be7ad[_0x314da7(0xb0)]+_0x314da7(0x97)+(_0x5be7ad[_0x314da7(0xdf)]==_0x314da7(0xdd)?'true':_0x314da7(0xe1))+_0x314da7(0xa5),_0x4de009+='\x20\x20\x20\x20'+_0x5be7ad[_0x314da7(0x92)]+_0x314da7(0xd7);else{if(_0x27681a==_0x314da7(0xc2))_0x4de009+=_0x314da7(0xad)+_0x5be7ad[_0x314da7(0xb0)]+_0x314da7(0x97)+(_0x5be7ad[_0x314da7(0xdf)]==_0x314da7(0xdd)?_0x314da7(0xd3):_0x314da7(0xe1))+_0x314da7(0xef),_0x4de009+=_0x314da7(0xc5)+_0x5be7ad[_0x314da7(0x92)]+_0x314da7(0xd7);else{if(_0x27681a==_0x314da7(0x96))_0x4de009+=_0x314da7(0x9a)+_0x5be7ad[_0x314da7(0xb0)]+_0x314da7(0x97)+(_0x5be7ad[_0x314da7(0xdf)]==_0x314da7(0xdd)?'true':_0x314da7(0xe1))+_0x314da7(0xef),_0x4de009+=_0x314da7(0xc5)+_0x5be7ad['Field']+_0x314da7(0xd7);else _0x27681a==_0x314da7(0xca)?(_0x4de009+=_0x314da7(0x8e)+_0x5be7ad[_0x314da7(0xb0)]+'\x27,\x20nullable:\x20'+(_0x5be7ad[_0x314da7(0xdf)]==_0x314da7(0xdd)?_0x314da7(0xd3):_0x314da7(0xe1))+',\x20unique:\x20false\x20})\x0a',_0x4de009+=_0x314da7(0xc5)+_0x5be7ad[_0x314da7(0x92)]+_0x314da7(0xd7)):(_0x4de009+=_0x314da7(0xcd)+_0x5be7ad['Comment']+_0x314da7(0x97)+(_0x5be7ad['Null']==_0x314da7(0xdd)?_0x314da7(0xd3):_0x314da7(0xe1))+_0x314da7(0xef),_0x4de009+='\x20\x20\x20\x20'+_0x5be7ad[_0x314da7(0x92)]+_0x314da7(0xd7));}}}}}}}}}}}}_0x4fbe2f+=_0x314da7(0x8d),_0x4fbe2f+='import\x20{\x20CreateDateColumn,\x20UpdateDateColumn,\x20DeleteDateColumn\x20}\x20from\x20\x27@anveroapi/typeorm\x27;\x0a',_0x4fbe2f+='import\x20{\x20ProvideEntity,\x20ProvideSearch,\x20'+(_0x43031c?_0x314da7(0xcf):'PrimaryColumn')+',\x20Column\x20}\x20from\x20\x27@anveroapi/typeorm\x27;\x0a\x0a',_0x4fbe2f+=_0x314da7(0xbf)+_0x15eea9+_0x314da7(0xb2)+(typeof _0x537a33=='string'?_0x314da7(0xbe)+_0x537a33:'@/'+_0x3b98af)+_0x314da7(0x91)+_0x4e9873+_0x314da7(0xee),_0x4fbe2f+=_0x314da7(0xbd),_0x4fbe2f+=_0x314da7(0xd0)+_0xe9635c+_0x314da7(0xed),_0x4fbe2f+=_0x314da7(0xe2),_0x4fbe2f+=_0x314da7(0x9b)+_0x15eea9+'Search)\x0a',_0x4fbe2f+=_0x314da7(0xe6)+_0x2a1278+_0x314da7(0xae),_0x4fbe2f+='export\x20class\x20'+_0x15eea9+'Entity\x20{\x0a\x0a',_0x4fbe2f+=_0x314da7(0xdb),_0x4fbe2f+=_0x314da7(0xa7),_0x4fbe2f+='\x20\x20\x20\x20displayorder:\x20number;\x0a\x0a',_0x4fbe2f+=_0x314da7(0xea),_0x4fbe2f+=_0x314da7(0x94),_0x4fbe2f+=_0x314da7(0xdc),_0x4fbe2f+='\x20\x20\x20\x20updated_at:\x20Date;\x0a\x0a',_0x4fbe2f+=_0x314da7(0xd8),_0x4fbe2f+=_0x314da7(0xe7),_0x4fbe2f+='}',_0x4fbe2f=_0x4fbe2f[_0x314da7(0xa0)]('%column%',_0x4de009),!fs['existsSync']((0x0,path_1['dirname'])(_0x26ca2f))&&fs[_0x314da7(0xe3)]((0x0,path_1[_0x314da7(0xe8)])(_0x26ca2f),{'recursive':!![]}),fs[_0x314da7(0xa9)](_0x26ca2f,_0x4fbe2f,_0x314da7(0x9f));}}async function repository({tablestartUp:_0x59ef83,tablestartUpShort:_0x28490e,basedir:_0x3dc785,Comment:_0x372377,moduleName:_0x4592b4,apporbasic:_0x3787e1}){const _0x5760da=a7_0x509522,_0x562bf6=_0x3dc785+('/entities/'+_0x28490e+_0x5760da(0xc7));if(!fs[_0x5760da(0xd1)](_0x562bf6)){let _0x57527e='';_0x57527e+=_0x5760da(0xbd),_0x57527e+=_0x5760da(0xd0)+_0x372377+_0x5760da(0xe5),_0x57527e+='\x20*\x20**/\x0a',_0x57527e+=_0x5760da(0xa4),_0x57527e+='import\x20{\x20'+_0x59ef83+_0x5760da(0xab)+(typeof _0x4592b4==_0x5760da(0xaf)?_0x5760da(0xbe)+_0x4592b4:'@/'+_0x3787e1)+_0x5760da(0xcc)+_0x28490e+_0x5760da(0xd5),_0x57527e+='@ProvideRepository('+_0x59ef83+_0x5760da(0xc9),_0x57527e+=_0x5760da(0xaa)+_0x59ef83+_0x5760da(0xd4)+_0x59ef83+_0x5760da(0xd9),_0x57527e+='}',!fs[_0x5760da(0xd1)]((0x0,path_1[_0x5760da(0xe8)])(_0x562bf6))&&fs[_0x5760da(0xe3)]((0x0,path_1[_0x5760da(0xe8)])(_0x562bf6),{'recursive':!![]}),fs[_0x5760da(0xa9)](_0x562bf6,_0x57527e,'utf-8');}}
1
+ const a7_0x2834df=a7_0x32f2;function a7_0x2b60(){const _0x3917a0=['-实体处理器\x0a','mkdirSync','\x27,\x20\x27','1804YIFtYA',',\x20unique:\x20false\x20})\x0a','\x20\x20\x20\x20@Column(\x27date\x27,\x20{\x20comment:\x20\x27','../helper','\x20\x20\x20\x20@Column(\x27mediumtext\x27,\x20{\x20comment:\x20\x27','102450wVTuoT','created_at',':\x20string;\x0a\x0a','@ProvideEntity({\x20tableName:\x20\x27','\x20})\x0a','\x20\x20\x20\x20@Column(\x27timestamp\x27,\x20{\x20comment:\x20\x27','path','/entities/','Search)\x0a','Null','export\x20class\x20','apply','true','-实体\x0a','\x27]\x20})\x0a','\x20\x20\x20\x20@Column(\x27double\x27,\x20{\x20comment:\x20\x27','(((.+)+)+)+$','\x20*\x20**/\x0a','\x20\x20\x20\x20created_at:\x20Date;\x0a\x0a','tinyint','\x27,\x20enum:\x20[\x27','Entity\x20{\x0a\x0a','2329602CLGKwR','@/apps/','Comment','timestamp','/**\x0a','import\x20{\x20CreateDateColumn,\x20UpdateDateColumn,\x20DeleteDateColumn\x20}\x20from\x20\x27@anveroapi/typeorm\x27;\x0a','Entity\x20}\x20from\x20\x27','date','\x20\x20\x20\x20@Column(\x27longtext\x27,\x20{\x20comment:\x20\x27','updated_at','\x27\x20},\x20{\x20orderBy:\x20{\x20displayorder:\x20\x27DESC\x27\x20}\x20})\x0a','enum','import\x20{\x20','indexOf','\x20\x20\x20\x20@DeleteDateColumn({\x20comment:\x20\x27删除时间\x27,\x20type:\x20\x27timestamp\x27,\x20select:\x20false\x20})\x0a','420552kzypNB','Type','1779304esakFR','dirname','1108854OpiwAU','\x20extends\x20Repository<','\x20\x20\x20\x20','displayorder','float',',\x20Column\x20}\x20from\x20\x27@anveroapi/typeorm\x27;\x0a\x0a','replace','/searchs/','4gMHcOh','import\x20{\x20ProvideRepository,\x20Repository\x20}\x20from\x20\x27@anveroapi/typeorm\x27;\x0a','\x20\x20\x20\x20@PrimaryGeneratedColumn()\x0a','json','851715hvIzEL','\x20\x20\x20\x20@Column(\x27json\x27,\x20{\x20comment:\x20\x27','\x27,\x20nullable:\x20','\x20\x20\x20\x20@Column(\x27enum\x27,\x20{\x20comment:\x20\x27','import\x20{\x20ProvideEntity,\x20ProvideSearch,\x20','\x20\x20\x20\x20@Column({\x20comment:\x20\x27默认显示排序\x27,\x20nullable:\x20true,\x20unique:\x20false\x20})\x0a','%column%',':\x20any\x20|\x20any[];\x0a\x0a','\x20\x20\x20\x20@Column({\x20comment:\x20\x27','datetime','deleted_at','135LsfOCf','YES','\x20\x20\x20\x20@Column(\x27decimal\x27,\x20{\x20comment:\x20\x27','241OfBsBi','Entity>{\x0a\x0a','Field','getProp','\x27;\x0a\x0a','search','double','\x20*\x20','PrimaryGeneratedColumn','PrimaryColumn','constructor','\x20\x20\x20\x20@UpdateDateColumn({\x20comment:\x20\x27修改时间\x27,\x20type:\x20\x27timestamp\x27\x20})\x0a','__esModule','false','7aTAJOp','\x27,\x20length:\x20188\x20})\x0a','defineProperty','utf-8','toString','Search\x20}\x20from\x20\x27','\x27,\x20precision:\x2010,\x20scale:\x202,\x20default:\x200.00,\x20nullable:\x20','string','existsSync','mediumtext','writeFileSync','\x20\x20\x20\x20@CreateDateColumn({\x20comment:\x20\x27创建时间\x27,\x20type:\x20\x27timestamp\x27\x20})\x0a','@ProvideSearch(','\x20\x20\x20\x20@Column(\x27text\x27,\x20{\x20comment:\x20\x27','//\x20import\x20{\x20ManyToOne,\x20JoinColumn\x20}\x20from\x20\x27@anveroapi/typeorm\x27;\x0a','/entity\x27;\x0a\x0a',':\x20number;\x0a\x0a'];a7_0x2b60=function(){return _0x3917a0;};return a7_0x2b60();}(function(_0x5c2a31,_0x29150b){const _0x3d9587=a7_0x32f2,_0x47f129=_0x5c2a31();while(!![]){try{const _0x5e0ead=-parseInt(_0x3d9587(0xbf))/0x1*(parseInt(_0x3d9587(0xe1))/0x2)+parseInt(_0x3d9587(0xa1))/0x3+parseInt(_0x3d9587(0xad))/0x4*(parseInt(_0x3d9587(0xb1))/0x5)+-parseInt(_0x3d9587(0xa5))/0x6*(-parseInt(_0x3d9587(0xcd))/0x7)+parseInt(_0x3d9587(0xa3))/0x8+-parseInt(_0x3d9587(0xbc))/0x9*(parseInt(_0x3d9587(0xe6))/0xa)+-parseInt(_0x3d9587(0xfc))/0xb;if(_0x5e0ead===_0x29150b)break;else _0x47f129['push'](_0x47f129['shift']());}catch(_0x2c1f7c){_0x47f129['push'](_0x47f129['shift']());}}}(a7_0x2b60,0x20efe));const a7_0x397985=(function(){let _0x4b3b3d=!![];return function(_0x5deb10,_0x37ca13){const _0x81c86e=_0x4b3b3d?function(){const _0x15814f=a7_0x32f2;if(_0x37ca13){const _0x22a33b=_0x37ca13[_0x15814f(0xf1)](_0x5deb10,arguments);return _0x37ca13=null,_0x22a33b;}}:function(){};return _0x4b3b3d=![],_0x81c86e;};}()),a7_0x422dd8=a7_0x397985(this,function(){const _0x836c47=a7_0x32f2;return a7_0x422dd8[_0x836c47(0xd1)]()[_0x836c47(0xc4)]('(((.+)+)+)+$')[_0x836c47(0xd1)]()[_0x836c47(0xc9)](a7_0x422dd8)[_0x836c47(0xc4)](_0x836c47(0xf6));});a7_0x422dd8();function a7_0x32f2(_0x176f49,_0x41533c){_0x176f49=_0x176f49-0x96;const _0x793ea0=a7_0x2b60();let _0x422dd8=_0x793ea0[_0x176f49];return _0x422dd8;}'use strict';Object[a7_0x2834df(0xcf)](exports,a7_0x2834df(0xcb),{'value':!![]}),exports['default']=default_1;const fs=require('fs'),path_1=require(a7_0x2834df(0xec)),helper_1=require(a7_0x2834df(0xe4));async function default_1({tablename:_0x5cb1a9,tablestartUp:_0x10ae2b,tablestartUpShort:_0x2a47eb,basedir:_0x10f8f2,Primary:_0x48047b,Fields:_0x2deff5,Comment:_0x24c95d,moduleName:_0x2adb1e,apporbasic:_0x2d7093}){await entity({'tablename':_0x5cb1a9,'tablestartUp':_0x10ae2b,'tablestartUpShort':_0x2a47eb,'basedir':_0x10f8f2,'Primary':_0x48047b,'Fields':_0x2deff5,'Comment':_0x24c95d,'moduleName':_0x2adb1e,'apporbasic':_0x2d7093}),await repository({'tablestartUp':_0x10ae2b,'tablestartUpShort':_0x2a47eb,'basedir':_0x10f8f2,'Comment':_0x24c95d,'moduleName':_0x2adb1e,'apporbasic':_0x2d7093});}async function entity({tablename:_0x46614d,tablestartUp:_0x99fa96,tablestartUpShort:_0x2d9c85,basedir:_0x1b4e80,Primary:_0x26dfa6,Fields:_0x1be488,Comment:_0xc60daf,moduleName:_0x14378f,apporbasic:_0x74e298}){const _0x1b78db=a7_0x2834df,_0x14026b=_0x1b4e80+(_0x1b78db(0xed)+_0x2d9c85+'/entity.ts');if(!fs[_0x1b78db(0xd5)](_0x14026b)){let _0xf73fd9='',_0x226cc6='',_0x242151=['text',_0x1b78db(0xd6),_0x1b78db(0xd4)][_0x1b78db(0x9f)]((0x0,helper_1[_0x1b78db(0xc2)])(_0x26dfa6['Type']))==-0x1;_0x242151?(_0xf73fd9+=_0x1b78db(0xaf),_0xf73fd9+='\x20\x20\x20\x20'+_0x26dfa6['Field']+_0x1b78db(0xdd)):(_0xf73fd9+='\x20\x20\x20\x20@PrimaryColumn({\x20comment:\x20\x27'+(_0x26dfa6[_0x1b78db(0xfe)]||'标识')+_0x1b78db(0xce),_0xf73fd9+=_0x1b78db(0xa7)+_0x26dfa6[_0x1b78db(0xc1)]+_0x1b78db(0xe8));for(let _0x47448c in _0x1be488){let _0x11f7ec=_0x1be488[_0x47448c],_0x4890a2=(0x0,helper_1['getProp'])(_0x11f7ec[_0x1b78db(0xa2)]);if(_0x11f7ec[_0x1b78db(0xc1)]==_0x1b78db(0xa8)||_0x11f7ec[_0x1b78db(0xc1)]==_0x1b78db(0xe7)||_0x11f7ec[_0x1b78db(0xc1)]==_0x1b78db(0x9b)||_0x11f7ec[_0x1b78db(0xc1)]==_0x1b78db(0xbb))continue;if(_0x4890a2==_0x1b78db(0xb0))_0xf73fd9+=_0x1b78db(0xb2)+_0x11f7ec[_0x1b78db(0xfe)]+'\x27,\x20nullable:\x20'+(_0x11f7ec[_0x1b78db(0xef)]=='YES'?_0x1b78db(0xf2):_0x1b78db(0xcc))+_0x1b78db(0xe2),_0xf73fd9+=_0x1b78db(0xa7)+_0x11f7ec[_0x1b78db(0xc1)]+_0x1b78db(0xb8);else{if(_0x4890a2==_0x1b78db(0x9d)){let _0x847094=(0x0,helper_1['getEnum'])(_0x11f7ec['Type']);_0xf73fd9+=_0x1b78db(0xb4)+_0x11f7ec[_0x1b78db(0xfe)]+'\x27,\x20default:\x20\x27'+(_0x847094[0x0]||'')+_0x1b78db(0xfa)+_0x847094['join'](_0x1b78db(0xe0))+_0x1b78db(0xf4),_0xf73fd9+=_0x1b78db(0xa7)+_0x11f7ec[_0x1b78db(0xc1)]+':\x20\x27'+_0x847094['join']('\x27\x20|\x20\x27')+_0x1b78db(0xc3);}else{if(_0x4890a2==_0x1b78db(0xa9))_0xf73fd9+='\x20\x20\x20\x20@Column(\x27float\x27,\x20{\x20comment:\x20\x27'+_0x11f7ec[_0x1b78db(0xfe)]+_0x1b78db(0xd3)+(_0x11f7ec[_0x1b78db(0xef)]==_0x1b78db(0xbd)?_0x1b78db(0xf2):_0x1b78db(0xcc))+_0x1b78db(0xea),_0xf73fd9+=_0x1b78db(0xa7)+_0x11f7ec[_0x1b78db(0xc1)]+_0x1b78db(0xdd);else{if(_0x4890a2==_0x1b78db(0xc5))_0xf73fd9+=_0x1b78db(0xf5)+_0x11f7ec[_0x1b78db(0xfe)]+_0x1b78db(0xd3)+(_0x11f7ec['Null']==_0x1b78db(0xbd)?_0x1b78db(0xf2):_0x1b78db(0xcc))+_0x1b78db(0xea),_0xf73fd9+=_0x1b78db(0xa7)+_0x11f7ec['Field']+_0x1b78db(0xdd);else{if(_0x4890a2=='decimal')_0xf73fd9+=_0x1b78db(0xbe)+_0x11f7ec[_0x1b78db(0xfe)]+'\x27,\x20precision:\x2024,\x20scale:\x202,\x20default:\x200.00,\x20nullable:\x20'+(_0x11f7ec[_0x1b78db(0xef)]=='YES'?_0x1b78db(0xf2):_0x1b78db(0xcc))+'\x20})\x0a',_0xf73fd9+=_0x1b78db(0xa7)+_0x11f7ec['Field']+':\x20number;\x0a\x0a';else{if(_0x4890a2=='number')_0xf73fd9+=_0x1b78db(0xb9)+_0x11f7ec['Comment']+_0x1b78db(0xb3)+(_0x11f7ec['Null']=='YES'?_0x1b78db(0xf2):_0x1b78db(0xcc))+_0x1b78db(0xe2),_0xf73fd9+=_0x1b78db(0xa7)+_0x11f7ec[_0x1b78db(0xc1)]+_0x1b78db(0xdd);else{if(_0x4890a2==_0x1b78db(0xf9))_0xf73fd9+='\x20\x20\x20\x20@Column(\x27tinyint\x27,\x20{\x20comment:\x20\x27'+_0x11f7ec[_0x1b78db(0xfe)]+_0x1b78db(0xb3)+(_0x11f7ec[_0x1b78db(0xef)]=='YES'?_0x1b78db(0xf2):_0x1b78db(0xcc))+_0x1b78db(0xe2),_0xf73fd9+=_0x1b78db(0xa7)+_0x11f7ec[_0x1b78db(0xc1)]+_0x1b78db(0xdd);else{if(_0x4890a2==_0x1b78db(0x99))_0xf73fd9+=_0x1b78db(0xe3)+_0x11f7ec['Comment']+_0x1b78db(0xb3)+(_0x11f7ec[_0x1b78db(0xef)]==_0x1b78db(0xbd)?'true':_0x1b78db(0xcc))+'\x20})\x0a',_0xf73fd9+=_0x1b78db(0xa7)+_0x11f7ec['Field']+_0x1b78db(0xe8);else{if(_0x4890a2==_0x1b78db(0xba))_0xf73fd9+=_0x1b78db(0xeb)+_0x11f7ec['Comment']+_0x1b78db(0xb3)+(_0x11f7ec[_0x1b78db(0xef)]==_0x1b78db(0xbd)?_0x1b78db(0xf2):_0x1b78db(0xcc))+_0x1b78db(0xea),_0xf73fd9+=_0x1b78db(0xa7)+_0x11f7ec[_0x1b78db(0xc1)]+_0x1b78db(0xe8);else{if(_0x4890a2==_0x1b78db(0xff))_0xf73fd9+=_0x1b78db(0xeb)+_0x11f7ec[_0x1b78db(0xfe)]+_0x1b78db(0xb3)+(_0x11f7ec[_0x1b78db(0xef)]==_0x1b78db(0xbd)?_0x1b78db(0xf2):_0x1b78db(0xcc))+_0x1b78db(0xea),_0xf73fd9+='\x20\x20\x20\x20'+_0x11f7ec['Field']+_0x1b78db(0xe8);else{if(_0x4890a2=='text')_0xf73fd9+=_0x1b78db(0xda)+_0x11f7ec[_0x1b78db(0xfe)]+_0x1b78db(0xb3)+(_0x11f7ec[_0x1b78db(0xef)]==_0x1b78db(0xbd)?_0x1b78db(0xf2):_0x1b78db(0xcc))+_0x1b78db(0xe2),_0xf73fd9+=_0x1b78db(0xa7)+_0x11f7ec[_0x1b78db(0xc1)]+_0x1b78db(0xe8);else{if(_0x4890a2=='longtext')_0xf73fd9+=_0x1b78db(0x9a)+_0x11f7ec['Comment']+_0x1b78db(0xb3)+(_0x11f7ec['Null']==_0x1b78db(0xbd)?_0x1b78db(0xf2):'false')+_0x1b78db(0xe2),_0xf73fd9+=_0x1b78db(0xa7)+_0x11f7ec[_0x1b78db(0xc1)]+_0x1b78db(0xe8);else _0x4890a2=='mediumtext'?(_0xf73fd9+=_0x1b78db(0xe5)+_0x11f7ec[_0x1b78db(0xfe)]+_0x1b78db(0xb3)+(_0x11f7ec[_0x1b78db(0xef)]==_0x1b78db(0xbd)?_0x1b78db(0xf2):'false')+_0x1b78db(0xe2),_0xf73fd9+=_0x1b78db(0xa7)+_0x11f7ec['Field']+_0x1b78db(0xe8)):(_0xf73fd9+=_0x1b78db(0xb9)+_0x11f7ec['Comment']+_0x1b78db(0xb3)+(_0x11f7ec['Null']==_0x1b78db(0xbd)?_0x1b78db(0xf2):_0x1b78db(0xcc))+_0x1b78db(0xe2),_0xf73fd9+='\x20\x20\x20\x20'+_0x11f7ec[_0x1b78db(0xc1)]+_0x1b78db(0xe8));}}}}}}}}}}}}_0x226cc6+=_0x1b78db(0xdb),_0x226cc6+=_0x1b78db(0x97),_0x226cc6+=_0x1b78db(0xb5)+(_0x242151?_0x1b78db(0xc7):_0x1b78db(0xc8))+_0x1b78db(0xaa),_0x226cc6+=_0x1b78db(0x9e)+_0x99fa96+_0x1b78db(0xd2)+(typeof _0x14378f==_0x1b78db(0xd4)?_0x1b78db(0xfd)+_0x14378f:'@/'+_0x74e298)+_0x1b78db(0xac)+_0x2d9c85+'\x27;\x0a\x0a',_0x226cc6+=_0x1b78db(0x96),_0x226cc6+='\x20*\x20'+_0xc60daf+_0x1b78db(0xf3),_0x226cc6+=_0x1b78db(0xf7),_0x226cc6+=_0x1b78db(0xd9)+_0x99fa96+_0x1b78db(0xee),_0x226cc6+=_0x1b78db(0xe9)+_0x46614d+_0x1b78db(0x9c),_0x226cc6+=_0x1b78db(0xf0)+_0x99fa96+_0x1b78db(0xfb),_0x226cc6+='%column%',_0x226cc6+=_0x1b78db(0xb6),_0x226cc6+='\x20\x20\x20\x20displayorder:\x20number;\x0a\x0a',_0x226cc6+=_0x1b78db(0xd8),_0x226cc6+=_0x1b78db(0xf8),_0x226cc6+=_0x1b78db(0xca),_0x226cc6+='\x20\x20\x20\x20updated_at:\x20Date;\x0a\x0a',_0x226cc6+=_0x1b78db(0xa0),_0x226cc6+='\x20\x20\x20\x20deleted_at:\x20Date;\x0a\x0a',_0x226cc6+='}',_0x226cc6=_0x226cc6[_0x1b78db(0xab)](_0x1b78db(0xb7),_0xf73fd9),!fs[_0x1b78db(0xd5)]((0x0,path_1[_0x1b78db(0xa4)])(_0x14026b))&&fs[_0x1b78db(0xdf)]((0x0,path_1['dirname'])(_0x14026b),{'recursive':!![]}),fs['writeFileSync'](_0x14026b,_0x226cc6,_0x1b78db(0xd0));}}async function repository({tablestartUp:_0x5cc13a,tablestartUpShort:_0x4c5812,basedir:_0x4a0f1e,Comment:_0x376a6d,moduleName:_0x43b4a9,apporbasic:_0x3b8d03}){const _0x5cab1f=a7_0x2834df,_0x409a08=_0x4a0f1e+(_0x5cab1f(0xed)+_0x4c5812+'/index.ts');if(!fs[_0x5cab1f(0xd5)](_0x409a08)){let _0x16ff94='';_0x16ff94+=_0x5cab1f(0x96),_0x16ff94+=_0x5cab1f(0xc6)+_0x376a6d+_0x5cab1f(0xde),_0x16ff94+=_0x5cab1f(0xf7),_0x16ff94+=_0x5cab1f(0xae),_0x16ff94+=_0x5cab1f(0x9e)+_0x5cc13a+_0x5cab1f(0x98)+(typeof _0x43b4a9=='string'?_0x5cab1f(0xfd)+_0x43b4a9:'@/'+_0x3b8d03)+_0x5cab1f(0xed)+_0x4c5812+_0x5cab1f(0xdc),_0x16ff94+='@ProvideRepository('+_0x5cc13a+'Entity)\x0a',_0x16ff94+='export\x20class\x20'+_0x5cc13a+_0x5cab1f(0xa6)+_0x5cc13a+_0x5cab1f(0xc0),_0x16ff94+='}',!fs[_0x5cab1f(0xd5)]((0x0,path_1[_0x5cab1f(0xa4)])(_0x409a08))&&fs[_0x5cab1f(0xdf)]((0x0,path_1['dirname'])(_0x409a08),{'recursive':!![]}),fs[_0x5cab1f(0xd7)](_0x409a08,_0x16ff94,_0x5cab1f(0xd0));}}
@@ -1 +1 @@
1
- const a8_0x1b0582=a8_0x3182;(function(_0x2ecefe,_0x1c0adf){const _0x21b735=a8_0x3182,_0x2d659b=_0x2ecefe();while(!![]){try{const _0x264587=parseInt(_0x21b735(0x193))/0x1*(parseInt(_0x21b735(0x19c))/0x2)+parseInt(_0x21b735(0x1b2))/0x3*(-parseInt(_0x21b735(0x1a6))/0x4)+-parseInt(_0x21b735(0x1aa))/0x5+parseInt(_0x21b735(0x198))/0x6*(-parseInt(_0x21b735(0x192))/0x7)+parseInt(_0x21b735(0x195))/0x8+-parseInt(_0x21b735(0x1a3))/0x9+parseInt(_0x21b735(0x1a8))/0xa*(parseInt(_0x21b735(0x19b))/0xb);if(_0x264587===_0x1c0adf)break;else _0x2d659b['push'](_0x2d659b['shift']());}catch(_0x245ca7){_0x2d659b['push'](_0x2d659b['shift']());}}}(a8_0x13eb,0xcd50d));const a8_0x5e6696=(function(){let _0x35b55c=!![];return function(_0x3a4649,_0x4e081a){const _0x46fa5a=_0x35b55c?function(){const _0x40e92e=a8_0x3182;if(_0x4e081a){const _0x29f0db=_0x4e081a[_0x40e92e(0x19a)](_0x3a4649,arguments);return _0x4e081a=null,_0x29f0db;}}:function(){};return _0x35b55c=![],_0x46fa5a;};}()),a8_0x52b937=a8_0x5e6696(this,function(){const _0x4f0f3c=a8_0x3182;return a8_0x52b937[_0x4f0f3c(0x1a4)]()[_0x4f0f3c(0x1b1)]('(((.+)+)+)+$')['toString']()['constructor'](a8_0x52b937)['search']('(((.+)+)+)+$');});a8_0x52b937();'use strict';Object[a8_0x1b0582(0x1af)](exports,'__esModule',{'value':!![]}),exports['default']=default_1;const fs=require('fs'),path_1=require(a8_0x1b0582(0x1ac));function a8_0x3182(_0x55af03,_0x53a350){_0x55af03=_0x55af03-0x192;const _0x546117=a8_0x13eb();let _0x52b937=_0x546117[_0x55af03];return _0x52b937;}function a8_0x13eb(){const _0x59728c=['@/apps/','3690064lBiPxm',')\x20protected\x20','existsSync','978ZenVhQ','/entities/','apply','104016HflKnR','3139502ICPhUv','\x27;\x0a\x0a','mkdirSync','string','\x20\x20\x20\x20@InjectRepository(','.ts','import\x20{\x20','8495424vQXwbJ','toString','import\x20{\x20Inject,\x20InjectRepository\x20}\x20from\x20\x27@anveroapi/typeorm\x27;\x0a\x0a','4hpbxlN','@Event()\x0a','2570rhVltU','Event\x20{\x0a\x0a','5659835rNmOgL','import\x20{\x20Event,\x20EventService\x20}\x20from\x20\x27@anveroapi/event\x27;\x0a','path','/listeners/','\x20\x20\x20\x20@Inject()\x20protected\x20EventService:\x20EventService;\x0a\x0a','defineProperty','utf-8','search','581610ixcVXR','57995ESCPeG','1AXOAYs'];a8_0x13eb=function(){return _0x59728c;};return a8_0x13eb();}async function default_1({tablestartUp:_0x35e486,tablestartUpShort:_0x410f4d,basedir:_0x2c75f1,moduleName:_0x5af079,apporbasic:_0x176beb}){const _0x1c469d=a8_0x1b0582,_0x52922b=_0x2c75f1+(_0x1c469d(0x1ad)+_0x410f4d+_0x1c469d(0x1a1));if(!fs['existsSync'](_0x52922b)){let _0x45d00c='';_0x45d00c+=_0x1c469d(0x1ab),_0x45d00c+=_0x1c469d(0x1a5),_0x45d00c+=_0x1c469d(0x1a2)+_0x35e486+'\x20}\x20from\x20\x27'+(typeof _0x5af079==_0x1c469d(0x19f)?_0x1c469d(0x194)+_0x5af079:'@/'+_0x176beb)+_0x1c469d(0x199)+_0x410f4d+_0x1c469d(0x19d),_0x45d00c+=_0x1c469d(0x1a7),_0x45d00c+='export\x20class\x20'+_0x35e486+_0x1c469d(0x1a9),_0x45d00c+=_0x1c469d(0x1ae),_0x45d00c+=_0x1c469d(0x1a0)+_0x35e486+_0x1c469d(0x196)+_0x35e486+':\x20'+_0x35e486+';\x0a\x0a\x0a',_0x45d00c+='}',!fs[_0x1c469d(0x197)]((0x0,path_1['dirname'])(_0x52922b))&&fs[_0x1c469d(0x19e)]((0x0,path_1['dirname'])(_0x52922b),{'recursive':!![]}),fs['writeFileSync'](_0x52922b,_0x45d00c,_0x1c469d(0x1b0));}}
1
+ function a8_0x40e1(){const _0x2899d0=['1693MwyTEQ','writeFileSync','/listeners/','\x20\x20\x20\x20@InjectRepository(','18640fUOXgY','search','__esModule','string','Event\x20{\x0a\x0a','\x27;\x0a\x0a','82881rYlcNv','@/apps/','utf-8','constructor','219gRwdfS','1582133uNJyux','5HIgAHZ','defineProperty','2107626mDSDfR','apply','385824jQOfAI','existsSync','278BYhhMP','\x20\x20\x20\x20@Inject()\x20protected\x20EventService:\x20EventService;\x0a\x0a','130icqlzW','@Event()\x0a','mkdirSync',')\x20protected\x20','20740BaNvhL','424SwuAVH','toString',';\x0a\x0a\x0a','1859pBUElo','import\x20{\x20Event,\x20EventService\x20}\x20from\x20\x27@anveroapi/event\x27;\x0a','default','(((.+)+)+)+$'];a8_0x40e1=function(){return _0x2899d0;};return a8_0x40e1();}const a8_0xfb9dac=a8_0x2339;(function(_0xfc12f1,_0x1530e2){const _0x333f81=a8_0x2339,_0x33a759=_0xfc12f1();while(!![]){try{const _0x4d00ad=parseInt(_0x333f81(0x132))/0x1*(parseInt(_0x333f81(0x148))/0x2)+-parseInt(_0x333f81(0x140))/0x3*(-parseInt(_0x333f81(0x14e))/0x4)+parseInt(_0x333f81(0x142))/0x5*(parseInt(_0x333f81(0x144))/0x6)+-parseInt(_0x333f81(0x141))/0x7+parseInt(_0x333f81(0x14f))/0x8*(-parseInt(_0x333f81(0x13c))/0x9)+-parseInt(_0x333f81(0x136))/0xa*(-parseInt(_0x333f81(0x12e))/0xb)+parseInt(_0x333f81(0x146))/0xc*(-parseInt(_0x333f81(0x14a))/0xd);if(_0x4d00ad===_0x1530e2)break;else _0x33a759['push'](_0x33a759['shift']());}catch(_0x5c4f15){_0x33a759['push'](_0x33a759['shift']());}}}(a8_0x40e1,0x3bb17));const a8_0x1d85e6=(function(){let _0x229597=!![];return function(_0x2d7664,_0x3b88a4){const _0x5c4d43=_0x229597?function(){const _0x43a7f5=a8_0x2339;if(_0x3b88a4){const _0x3d43ca=_0x3b88a4[_0x43a7f5(0x145)](_0x2d7664,arguments);return _0x3b88a4=null,_0x3d43ca;}}:function(){};return _0x229597=![],_0x5c4d43;};}()),a8_0x550c5d=a8_0x1d85e6(this,function(){const _0x125321=a8_0x2339;return a8_0x550c5d[_0x125321(0x150)]()[_0x125321(0x137)](_0x125321(0x131))[_0x125321(0x150)]()[_0x125321(0x13f)](a8_0x550c5d)['search'](_0x125321(0x131));});a8_0x550c5d();'use strict';Object[a8_0xfb9dac(0x143)](exports,a8_0xfb9dac(0x138),{'value':!![]}),exports[a8_0xfb9dac(0x130)]=default_1;function a8_0x2339(_0x11b734,_0x22c38d){_0x11b734=_0x11b734-0x12d;const _0x393031=a8_0x40e1();let _0x550c5d=_0x393031[_0x11b734];return _0x550c5d;}const fs=require('fs'),path_1=require('path');async function default_1({tablestartUp:_0x259599,tablestartUpShort:_0x52f400,basedir:_0x58b026,moduleName:_0x2b3ea7,apporbasic:_0x195b0a}){const _0x4ea2a2=a8_0xfb9dac,_0x1afe29=_0x58b026+(_0x4ea2a2(0x134)+_0x52f400+'.ts');if(!fs[_0x4ea2a2(0x147)](_0x1afe29)){let _0x5e0f79='';_0x5e0f79+=_0x4ea2a2(0x12f),_0x5e0f79+='import\x20{\x20Inject,\x20InjectRepository\x20}\x20from\x20\x27@anveroapi/typeorm\x27;\x0a\x0a',_0x5e0f79+='import\x20{\x20'+_0x259599+'\x20}\x20from\x20\x27'+(typeof _0x2b3ea7==_0x4ea2a2(0x139)?_0x4ea2a2(0x13d)+_0x2b3ea7:'@/'+_0x195b0a)+'/entities/'+_0x52f400+_0x4ea2a2(0x13b),_0x5e0f79+=_0x4ea2a2(0x14b),_0x5e0f79+='export\x20class\x20'+_0x259599+_0x4ea2a2(0x13a),_0x5e0f79+=_0x4ea2a2(0x149),_0x5e0f79+=_0x4ea2a2(0x135)+_0x259599+_0x4ea2a2(0x14d)+_0x259599+':\x20'+_0x259599+_0x4ea2a2(0x12d),_0x5e0f79+='}',!fs['existsSync']((0x0,path_1['dirname'])(_0x1afe29))&&fs[_0x4ea2a2(0x14c)]((0x0,path_1['dirname'])(_0x1afe29),{'recursive':!![]}),fs[_0x4ea2a2(0x133)](_0x1afe29,_0x5e0f79,_0x4ea2a2(0x13e));}}
@@ -1 +1 @@
1
- function a9_0x3559(_0x5d377b,_0x30907b){_0x5d377b=_0x5d377b-0x12e;const _0x9b5b5b=a9_0x225a();let _0x72745f=_0x9b5b5b[_0x5d377b];return _0x72745f;}const a9_0x314b66=a9_0x3559;(function(_0x35117c,_0x11c5ee){const _0x53eee5=a9_0x3559,_0x471110=_0x35117c();while(!![]){try{const _0x545fc4=-parseInt(_0x53eee5(0x169))/0x1+parseInt(_0x53eee5(0x13f))/0x2+parseInt(_0x53eee5(0x172))/0x3+-parseInt(_0x53eee5(0x176))/0x4*(parseInt(_0x53eee5(0x180))/0x5)+parseInt(_0x53eee5(0x152))/0x6+-parseInt(_0x53eee5(0x12f))/0x7*(-parseInt(_0x53eee5(0x150))/0x8)+-parseInt(_0x53eee5(0x16d))/0x9*(-parseInt(_0x53eee5(0x161))/0xa);if(_0x545fc4===_0x11c5ee)break;else _0x471110['push'](_0x471110['shift']());}catch(_0x326e8b){_0x471110['push'](_0x471110['shift']());}}}(a9_0x225a,0x3c6ea));function a9_0x225a(){const _0x83af7a=['\x20\x20\x20\x20@InjectRepository(','30mYdhAL','Error._NOTFIND_,\x20{\x20message:\x20\x27','/handlers/','\x20\x20\x20\x20\x20\x20\x20\x20}\x0a','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20});\x0a','\x20\x20\x20\x20\x20*\x20添加数据\x0a','\x20\x20\x20\x20\x20\x20\x20\x20return\x20await\x20this.','\x20\x20\x20\x20\x20*\x20恢复删除的数据\x0a','269508CdMZNV','\x20\x20\x20\x20\x20\x20\x20\x20this.','constructor','\x20\x20\x20\x20async\x20update(conditions:\x20SearchParams<','1107531owrfKs','\x20\x20\x20\x20/**\x0a','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20search.withDeleted().andWhere(`${search.alias}.deleted_at\x20IS\x20NOT\x20NULL`);\x0a','\x20\x20\x20\x20\x20\x20\x20\x20});\x0a\x0a','__esModule','322539XgzVRL','default','@Singleton()\x0a','import\x20{\x20','2936YShisk','toString','defineProperty','(((.+)+)+)+$','/entity\x27;\x0a','Error(','\x20\x20\x20\x20@Inject()\x20EventService:\x20EventService;\x0a','DTOCreate)\x20{\x0a','.search(conditions,\x20pageinfo,\x20options).then(async\x20search\x20=>\x20{\x0a\x0a','\x27;\x0a','2815lhEhQn','\x20\x20\x20\x20async\x20restores(conditions:\x20SearchParams<','path','/entities/','554449XTJLAL','\x20\x20\x20\x20async\x20detail(conditions?:\x20SearchParams<','Entity\x20}\x20from\x20\x27','Handler\x20{\x0a\x0a','/exceptions/','@/apps/','DTOUpdate\x20}\x20from\x20\x27','import\x20{\x20CacheService,\x20EventService,\x20ValidatorService\x20}\x20from\x20\x27anvero-api\x27;\x0a','\x20\x20\x20\x20\x20*\x20数据详情\x0a','\x20\x20\x20\x20}\x0a\x0a\x0a','/Update\x27;\x0a','\x20\x20\x20\x20\x20\x20\x20\x20const\x20restores:\x20any\x20=\x20[],\x20tmpModels\x20=\x20await\x20this.','\x20\x20\x20\x20\x20\x20\x20\x20for\x20(let\x20tmpModel\x20of\x20tmpModels)\x20{\x0a','.ts','\x20*\x20**/\x0a','Entity>,\x20options:\x20SearchOptions\x20=\x20{})\x20{\x0a','725582nLNwMw','\x20\x20\x20\x20\x20\x20\x20\x20return\x20deletes\x0a','\x20\x20\x20\x20\x20\x20\x20\x20const\x20deletes:\x20any\x20=\x20[],\x20tmpModels\x20=\x20await\x20this.','\x20*\x20','/validators/','.search(conditions,\x20{},\x20options).then(async\x20search\x20=>\x20{\x0a\x0a','/**\x0a','search','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20return\x20search.getOneOrFail().catch(()\x20=>\x20{\x0a','mkdirSync','\x20\x20\x20\x20\x20\x20\x20\x20const\x20tmpModel\x20=\x20this.','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20throw\x20new\x20','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20return\x20search.getMany();\x0a','.create(params)\x0a\x0a','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20restores.push(await\x20this.','\x20\x20\x20\x20\x20*\x20删除数据\x0a','Entity>,\x20pageinfo?:\x20SearchPaginate,\x20options:\x20SearchOptions\x20=\x20{}):\x20Promise<[','8XOMpSD','existsSync','69552neBZQm','\x20\x20\x20\x20\x20\x20\x20\x20const\x20tmpModel\x20=\x20await\x20this.','.recover(tmpModel))\x0a','import\x20{\x20InjectRepository,\x20SearchParams,\x20SearchPaginate,\x20SearchOptions\x20}\x20from\x20\x27@anveroapi/typeorm\x27;\x0a\x0a','不存在\x27\x20})\x0a','\x20\x20\x20\x20async\x20remove(conditions:\x20SearchParams<','DTOUpdate,\x20options:\x20SearchOptions\x20=\x20{})\x20{\x0a','dirname','string','\x20\x20\x20\x20@Inject()\x20ValidatorService:\x20ValidatorService;\x0a\x0a','\x20}\x20from\x20\x27','\x20\x20\x20\x20async\x20create(params:\x20','\x20\x20\x20\x20\x20*\x20**/\x0a','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20deletes.push(await\x20this.'];a9_0x225a=function(){return _0x83af7a;};return a9_0x225a();}const a9_0x16ae00=(function(){let _0x4d8982=!![];return function(_0x492193,_0x319332){const _0x2e858e=_0x4d8982?function(){if(_0x319332){const _0x5127c8=_0x319332['apply'](_0x492193,arguments);return _0x319332=null,_0x5127c8;}}:function(){};return _0x4d8982=![],_0x2e858e;};}()),a9_0x72745f=a9_0x16ae00(this,function(){const _0x16f308=a9_0x3559;return a9_0x72745f['toString']()[_0x16f308(0x146)](_0x16f308(0x179))[_0x16f308(0x177)]()[_0x16f308(0x16b)](a9_0x72745f)[_0x16f308(0x146)]('(((.+)+)+)+$');});a9_0x72745f();'use strict';Object[a9_0x314b66(0x178)](exports,a9_0x314b66(0x171),{'value':!![]}),exports[a9_0x314b66(0x173)]=default_1;const fs=require('fs'),path_1=require(a9_0x314b66(0x182));async function default_1({tablestartUp:_0x5f441e,tablestartUpShort:_0x4096e8,basedir:_0x1813a7,Primary:_0x4bd2a1,Comment:_0x1fda0d,moduleName:_0x3100c0,apporbasic:_0x11a6f4}){const _0x302f2f=a9_0x314b66,_0x59fbd5=_0x1813a7+(_0x302f2f(0x163)+_0x4096e8+_0x302f2f(0x13c));if(!fs[_0x302f2f(0x151)](_0x59fbd5)){let _0x55bf2b='';_0x55bf2b+='import\x20{\x20Inject,\x20Singleton\x20}\x20from\x20\x27anvero-api\x27;\x0a',_0x55bf2b+=_0x302f2f(0x136),_0x55bf2b+=_0x302f2f(0x155),_0x55bf2b+='import\x20{\x20'+_0x5f441e+_0x302f2f(0x15c)+(typeof _0x3100c0==_0x302f2f(0x15a)?_0x302f2f(0x134)+_0x3100c0:'@/'+_0x11a6f4)+'/entities/'+_0x4096e8+_0x302f2f(0x17f),_0x55bf2b+=_0x302f2f(0x175)+_0x5f441e+'Error\x20}\x20from\x20\x27'+(typeof _0x3100c0=='string'?_0x302f2f(0x134)+_0x3100c0:'@/'+_0x11a6f4)+_0x302f2f(0x133)+_0x4096e8+'\x27;\x0a',_0x55bf2b+=_0x302f2f(0x175)+_0x5f441e+_0x302f2f(0x131)+(typeof _0x3100c0==_0x302f2f(0x15a)?'@/apps/'+_0x3100c0:'@/'+_0x11a6f4)+_0x302f2f(0x12e)+_0x4096e8+_0x302f2f(0x17a),_0x55bf2b+=_0x302f2f(0x175)+_0x5f441e+'DTOCreate\x20}\x20from\x20\x27'+(typeof _0x3100c0=='string'?_0x302f2f(0x134)+_0x3100c0:'@/'+_0x11a6f4)+_0x302f2f(0x143)+_0x4096e8+'/Create\x27;\x0a',_0x55bf2b+='import\x20{\x20'+_0x5f441e+_0x302f2f(0x135)+(typeof _0x3100c0==_0x302f2f(0x15a)?'@/apps/'+_0x3100c0:'@/'+_0x11a6f4)+'/validators/'+_0x4096e8+_0x302f2f(0x139),_0x55bf2b+='\x0a',_0x55bf2b+=_0x302f2f(0x145),_0x55bf2b+=_0x302f2f(0x142)+_0x1fda0d+'\x0a',_0x55bf2b+=_0x302f2f(0x13d),_0x55bf2b+=_0x302f2f(0x174),_0x55bf2b+='export\x20class\x20'+_0x5f441e+_0x302f2f(0x132),_0x55bf2b+='\x20\x20\x20\x20@Inject()\x20CacheService:\x20CacheService;\x0a',_0x55bf2b+=_0x302f2f(0x17c),_0x55bf2b+=_0x302f2f(0x15b),_0x55bf2b+=_0x302f2f(0x160)+_0x5f441e+')\x20'+_0x4096e8+':\x20'+_0x5f441e+';\x0a\x0a\x0a',_0x55bf2b+=_0x302f2f(0x16e),_0x55bf2b+='\x20\x20\x20\x20\x20*\x20数据列表\x0a',_0x55bf2b+=_0x302f2f(0x15e),_0x55bf2b+='\x20\x20\x20\x20async\x20list(conditions?:\x20SearchParams<'+_0x5f441e+_0x302f2f(0x14f)+_0x5f441e+'Entity[],\x20number]>\x20{\x0a',_0x55bf2b+='\x20\x20\x20\x20\x20\x20\x20\x20const\x20[pagelist,\x20pagetotal]\x20=\x20await\x20this.'+_0x4096e8+_0x302f2f(0x17e),_0x55bf2b+='\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20return\x20search.getManyAndCount();\x0a',_0x55bf2b+=_0x302f2f(0x170),_0x55bf2b+='\x20\x20\x20\x20\x20\x20\x20\x20return\x20[pagelist,\x20pagetotal];\x0a',_0x55bf2b+=_0x302f2f(0x138),_0x55bf2b+=_0x302f2f(0x16e),_0x55bf2b+=_0x302f2f(0x137),_0x55bf2b+=_0x302f2f(0x15e),_0x55bf2b+=_0x302f2f(0x130)+_0x5f441e+_0x302f2f(0x13e),_0x55bf2b+='\x20\x20\x20\x20\x20\x20\x20\x20const\x20tmpModel\x20=\x20await\x20this.'+_0x4096e8+_0x302f2f(0x144),_0x55bf2b+='\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20return\x20search.getOneOrFail().catch(()\x20=>\x20{\x0a',_0x55bf2b+='\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20throw\x20new\x20'+_0x5f441e+_0x302f2f(0x17b)+_0x5f441e+_0x302f2f(0x162)+_0x1fda0d+_0x302f2f(0x156),_0x55bf2b+=_0x302f2f(0x165),_0x55bf2b+=_0x302f2f(0x170),_0x55bf2b+='\x20\x20\x20\x20\x20\x20\x20\x20return\x20tmpModel\x0a',_0x55bf2b+=_0x302f2f(0x138),_0x55bf2b+=_0x302f2f(0x16e),_0x55bf2b+=_0x302f2f(0x166),_0x55bf2b+='\x20\x20\x20\x20\x20*\x20**/\x0a',_0x55bf2b+=_0x302f2f(0x15d)+_0x5f441e+_0x302f2f(0x17d),_0x55bf2b+=_0x302f2f(0x149)+_0x4096e8+_0x302f2f(0x14c),_0x55bf2b+=_0x302f2f(0x167)+_0x4096e8+'.save(tmpModel);\x0a',_0x55bf2b+='\x20\x20\x20\x20}\x0a\x0a\x0a',_0x55bf2b+='\x20\x20\x20\x20/**\x0a',_0x55bf2b+='\x20\x20\x20\x20\x20*\x20修改数据\x0a',_0x55bf2b+=_0x302f2f(0x15e),_0x55bf2b+=_0x302f2f(0x16c)+_0x5f441e+'Entity>,\x20params:\x20'+_0x5f441e+_0x302f2f(0x158),_0x55bf2b+=_0x302f2f(0x153)+_0x4096e8+_0x302f2f(0x144),_0x55bf2b+=_0x302f2f(0x147),_0x55bf2b+=_0x302f2f(0x14a)+_0x5f441e+'Error('+_0x5f441e+_0x302f2f(0x162)+_0x1fda0d+_0x302f2f(0x156),_0x55bf2b+=_0x302f2f(0x165),_0x55bf2b+=_0x302f2f(0x170),_0x55bf2b+=_0x302f2f(0x16a)+_0x4096e8+'.merge(tmpModel,\x20params);\x0a',_0x55bf2b+=_0x302f2f(0x167)+_0x4096e8+'.save(tmpModel);\x0a',_0x55bf2b+=_0x302f2f(0x138),_0x55bf2b+=_0x302f2f(0x16e),_0x55bf2b+=_0x302f2f(0x14e),_0x55bf2b+='\x20\x20\x20\x20\x20*\x20**/\x0a',_0x55bf2b+=_0x302f2f(0x157)+_0x5f441e+_0x302f2f(0x13e),_0x55bf2b+=_0x302f2f(0x141)+_0x4096e8+_0x302f2f(0x144),_0x55bf2b+='\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20return\x20search.getMany();\x0a',_0x55bf2b+=_0x302f2f(0x170),_0x55bf2b+=_0x302f2f(0x13b),_0x55bf2b+=_0x302f2f(0x15f)+_0x4096e8+'.softRemove(tmpModel))\x0a',_0x55bf2b+=_0x302f2f(0x164),_0x55bf2b+=_0x302f2f(0x140),_0x55bf2b+=_0x302f2f(0x138),_0x55bf2b+='\x20\x20\x20\x20/**\x0a',_0x55bf2b+=_0x302f2f(0x168),_0x55bf2b+=_0x302f2f(0x15e),_0x55bf2b+=_0x302f2f(0x181)+_0x5f441e+_0x302f2f(0x13e),_0x55bf2b+=_0x302f2f(0x13a)+_0x4096e8+_0x302f2f(0x144),_0x55bf2b+=_0x302f2f(0x16f),_0x55bf2b+=_0x302f2f(0x14b),_0x55bf2b+=_0x302f2f(0x170),_0x55bf2b+=_0x302f2f(0x13b),_0x55bf2b+=_0x302f2f(0x14d)+_0x4096e8+_0x302f2f(0x154),_0x55bf2b+=_0x302f2f(0x164),_0x55bf2b+='\x20\x20\x20\x20\x20\x20\x20\x20return\x20restores\x0a',_0x55bf2b+=_0x302f2f(0x138),_0x55bf2b+='}',!fs[_0x302f2f(0x151)]((0x0,path_1[_0x302f2f(0x159)])(_0x59fbd5))&&fs[_0x302f2f(0x148)]((0x0,path_1[_0x302f2f(0x159)])(_0x59fbd5),{'recursive':!![]}),fs['writeFileSync'](_0x59fbd5,_0x55bf2b,'utf-8');}}
1
+ const a9_0x27b303=a9_0x4a03;(function(_0x53e8b5,_0x3e87a6){const _0x5ba45b=a9_0x4a03,_0x38d20b=_0x53e8b5();while(!![]){try{const _0x498d29=-parseInt(_0x5ba45b(0x190))/0x1+-parseInt(_0x5ba45b(0x1a9))/0x2*(parseInt(_0x5ba45b(0x17c))/0x3)+parseInt(_0x5ba45b(0x17f))/0x4+-parseInt(_0x5ba45b(0x193))/0x5+-parseInt(_0x5ba45b(0x196))/0x6*(parseInt(_0x5ba45b(0x178))/0x7)+-parseInt(_0x5ba45b(0x159))/0x8+-parseInt(_0x5ba45b(0x15b))/0x9*(-parseInt(_0x5ba45b(0x17b))/0xa);if(_0x498d29===_0x3e87a6)break;else _0x38d20b['push'](_0x38d20b['shift']());}catch(_0xfb24d6){_0x38d20b['push'](_0x38d20b['shift']());}}}(a9_0x5c7e,0x3f47e));const a9_0x6b57e7=(function(){let _0x560655=!![];return function(_0xa64ed0,_0x42fa2a){const _0x1c1e35=_0x560655?function(){const _0x28ec77=a9_0x4a03;if(_0x42fa2a){const _0x206385=_0x42fa2a[_0x28ec77(0x191)](_0xa64ed0,arguments);return _0x42fa2a=null,_0x206385;}}:function(){};return _0x560655=![],_0x1c1e35;};}()),a9_0x1f60be=a9_0x6b57e7(this,function(){const _0x38b4c0=a9_0x4a03;return a9_0x1f60be['toString']()['search'](_0x38b4c0(0x158))[_0x38b4c0(0x175)]()['constructor'](a9_0x1f60be)[_0x38b4c0(0x170)]('(((.+)+)+)+$');});a9_0x1f60be();'use strict';Object['defineProperty'](exports,a9_0x27b303(0x185),{'value':!![]}),exports[a9_0x27b303(0x183)]=default_1;const fs=require('fs'),path_1=require(a9_0x27b303(0x19a));function a9_0x5c7e(){const _0x58bbd1=['9OZMZsD','\x20\x20\x20\x20\x20*\x20添加数据\x0a','export\x20class\x20','Error(','Entity>,\x20options:\x20SearchOptions\x20=\x20{})\x20{\x0a','/**\x0a','\x20\x20\x20\x20@Inject()\x20EventService:\x20EventService;\x0a','\x20\x20\x20\x20\x20*\x20删除数据\x0a','\x20\x20\x20\x20async\x20update(conditions:\x20SearchParams<','\x20\x20\x20\x20\x20\x20\x20\x20});\x0a\x0a','\x20\x20\x20\x20\x20*\x20**/\x0a','/exceptions/','writeFileSync','\x20\x20\x20\x20\x20\x20\x20\x20return\x20deletes\x0a','\x20\x20\x20\x20async\x20restores(conditions:\x20SearchParams<','/entities/','existsSync','/entity\x27;\x0a','\x20\x20\x20\x20\x20*\x20恢复删除的数据\x0a','Entity\x20}\x20from\x20\x27','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20});\x0a','search','\x27;\x0a','\x20\x20\x20\x20@Inject()\x20CacheService:\x20CacheService;\x0a','Entity>,\x20pageinfo?:\x20SearchPaginate,\x20options:\x20SearchOptions\x20=\x20{}):\x20Promise<[','\x20\x20\x20\x20}\x0a\x0a\x0a','toString','\x20\x20\x20\x20\x20\x20\x20\x20return\x20await\x20this.','/Update\x27;\x0a','749YIrWOu','\x20}\x20from\x20\x27','@/apps/','18320810UlNHrn','228NkXqLr','string','\x20\x20\x20\x20\x20\x20\x20\x20const\x20[pagelist,\x20pagetotal]\x20=\x20await\x20this.','126424XgQKCE','import\x20{\x20InjectRepository,\x20SearchParams,\x20SearchPaginate,\x20SearchOptions\x20}\x20from\x20\x27@anveroapi/typeorm\x27;\x0a\x0a','.merge(tmpModel,\x20params);\x0a','\x20\x20\x20\x20async\x20create(params:\x20','default','\x20\x20\x20\x20async\x20list(conditions?:\x20SearchParams<','__esModule','\x20*\x20','Error._NOTFIND_,\x20{\x20message:\x20\x27','.save(tmpModel);\x0a','DTOUpdate,\x20options:\x20SearchOptions\x20=\x20{})\x20{\x0a','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20restores.push(await\x20this.','Error\x20}\x20from\x20\x27','.search(conditions,\x20{},\x20options).then(async\x20search\x20=>\x20{\x0a\x0a','\x20\x20\x20\x20/**\x0a','\x20\x20\x20\x20\x20\x20\x20\x20return\x20restores\x0a','@Singleton()\x0a','329881CWYskC','apply','\x20\x20\x20\x20\x20\x20\x20\x20const\x20deletes:\x20any\x20=\x20[],\x20tmpModels\x20=\x20await\x20this.','2032595yGOEKa','不存在\x27\x20})\x0a','dirname','27198XCfTwR','DTOCreate)\x20{\x0a','\x20\x20\x20\x20\x20*\x20修改数据\x0a','utf-8','path','import\x20{\x20','mkdirSync','\x20\x20\x20\x20@InjectRepository(','/handlers/','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20search.withDeleted().andWhere(`${search.alias}.deleted_at\x20IS\x20NOT\x20NULL`);\x0a','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20throw\x20new\x20','/Create\x27;\x0a','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20return\x20search.getMany();\x0a','import\x20{\x20Inject,\x20Singleton\x20}\x20from\x20\x27anvero-api\x27;\x0a','\x20\x20\x20\x20\x20\x20\x20\x20const\x20tmpModel\x20=\x20await\x20this.','\x20\x20\x20\x20@Inject()\x20ValidatorService:\x20ValidatorService;\x0a\x0a','import\x20{\x20CacheService,\x20EventService,\x20ValidatorService\x20}\x20from\x20\x27anvero-api\x27;\x0a','\x20\x20\x20\x20\x20*\x20数据列表\x0a','/validators/','7342VvIKGC','.softRemove(tmpModel))\x0a','.ts','(((.+)+)+)+$','832496DYKmuL',';\x0a\x0a\x0a'];a9_0x5c7e=function(){return _0x58bbd1;};return a9_0x5c7e();}function a9_0x4a03(_0x2ed702,_0x369c92){_0x2ed702=_0x2ed702-0x156;const _0x2baed2=a9_0x5c7e();let _0x1f60be=_0x2baed2[_0x2ed702];return _0x1f60be;}async function default_1({tablestartUp:_0x27a63b,tablestartUpShort:_0x55fe34,basedir:_0x21ef14,Primary:_0x1a3ec0,Comment:_0x2c35ba,moduleName:_0x4fb333,apporbasic:_0x2bb7f2}){const _0x49a87a=a9_0x27b303,_0x2b7cd8=_0x21ef14+(_0x49a87a(0x19e)+_0x55fe34+_0x49a87a(0x157));if(!fs[_0x49a87a(0x16b)](_0x2b7cd8)){let _0x104df9='';_0x104df9+=_0x49a87a(0x1a3),_0x104df9+=_0x49a87a(0x1a6),_0x104df9+=_0x49a87a(0x180),_0x104df9+='import\x20{\x20'+_0x27a63b+_0x49a87a(0x179)+(typeof _0x4fb333==_0x49a87a(0x17d)?_0x49a87a(0x17a)+_0x4fb333:'@/'+_0x2bb7f2)+_0x49a87a(0x16a)+_0x55fe34+_0x49a87a(0x171),_0x104df9+=_0x49a87a(0x19b)+_0x27a63b+_0x49a87a(0x18b)+(typeof _0x4fb333==_0x49a87a(0x17d)?_0x49a87a(0x17a)+_0x4fb333:'@/'+_0x2bb7f2)+_0x49a87a(0x166)+_0x55fe34+_0x49a87a(0x171),_0x104df9+=_0x49a87a(0x19b)+_0x27a63b+_0x49a87a(0x16e)+(typeof _0x4fb333==_0x49a87a(0x17d)?_0x49a87a(0x17a)+_0x4fb333:'@/'+_0x2bb7f2)+'/entities/'+_0x55fe34+_0x49a87a(0x16c),_0x104df9+=_0x49a87a(0x19b)+_0x27a63b+'DTOCreate\x20}\x20from\x20\x27'+(typeof _0x4fb333==_0x49a87a(0x17d)?_0x49a87a(0x17a)+_0x4fb333:'@/'+_0x2bb7f2)+_0x49a87a(0x1a8)+_0x55fe34+_0x49a87a(0x1a1),_0x104df9+=_0x49a87a(0x19b)+_0x27a63b+'DTOUpdate\x20}\x20from\x20\x27'+(typeof _0x4fb333==_0x49a87a(0x17d)?'@/apps/'+_0x4fb333:'@/'+_0x2bb7f2)+_0x49a87a(0x1a8)+_0x55fe34+_0x49a87a(0x177),_0x104df9+='\x0a',_0x104df9+=_0x49a87a(0x160),_0x104df9+=_0x49a87a(0x186)+_0x2c35ba+'\x0a',_0x104df9+='\x20*\x20**/\x0a',_0x104df9+=_0x49a87a(0x18f),_0x104df9+=_0x49a87a(0x15d)+_0x27a63b+'Handler\x20{\x0a\x0a',_0x104df9+=_0x49a87a(0x172),_0x104df9+=_0x49a87a(0x161),_0x104df9+=_0x49a87a(0x1a5),_0x104df9+=_0x49a87a(0x19d)+_0x27a63b+')\x20'+_0x55fe34+':\x20'+_0x27a63b+_0x49a87a(0x15a),_0x104df9+=_0x49a87a(0x18d),_0x104df9+=_0x49a87a(0x1a7),_0x104df9+=_0x49a87a(0x165),_0x104df9+=_0x49a87a(0x184)+_0x27a63b+_0x49a87a(0x173)+_0x27a63b+'Entity[],\x20number]>\x20{\x0a',_0x104df9+=_0x49a87a(0x17e)+_0x55fe34+'.search(conditions,\x20pageinfo,\x20options).then(async\x20search\x20=>\x20{\x0a\x0a',_0x104df9+='\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20return\x20search.getManyAndCount();\x0a',_0x104df9+='\x20\x20\x20\x20\x20\x20\x20\x20});\x0a\x0a',_0x104df9+='\x20\x20\x20\x20\x20\x20\x20\x20return\x20[pagelist,\x20pagetotal];\x0a',_0x104df9+=_0x49a87a(0x174),_0x104df9+=_0x49a87a(0x18d),_0x104df9+='\x20\x20\x20\x20\x20*\x20数据详情\x0a',_0x104df9+=_0x49a87a(0x165),_0x104df9+='\x20\x20\x20\x20async\x20detail(conditions?:\x20SearchParams<'+_0x27a63b+_0x49a87a(0x15f),_0x104df9+=_0x49a87a(0x1a4)+_0x55fe34+_0x49a87a(0x18c),_0x104df9+='\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20return\x20search.getOneOrFail().catch(()\x20=>\x20{\x0a',_0x104df9+=_0x49a87a(0x1a0)+_0x27a63b+_0x49a87a(0x15e)+_0x27a63b+_0x49a87a(0x187)+_0x2c35ba+_0x49a87a(0x194),_0x104df9+=_0x49a87a(0x16f),_0x104df9+=_0x49a87a(0x164),_0x104df9+='\x20\x20\x20\x20\x20\x20\x20\x20return\x20tmpModel\x0a',_0x104df9+=_0x49a87a(0x174),_0x104df9+=_0x49a87a(0x18d),_0x104df9+=_0x49a87a(0x15c),_0x104df9+=_0x49a87a(0x165),_0x104df9+=_0x49a87a(0x182)+_0x27a63b+_0x49a87a(0x197),_0x104df9+='\x20\x20\x20\x20\x20\x20\x20\x20const\x20tmpModel\x20=\x20this.'+_0x55fe34+'.create(params)\x0a\x0a',_0x104df9+=_0x49a87a(0x176)+_0x55fe34+'.save(tmpModel);\x0a',_0x104df9+='\x20\x20\x20\x20}\x0a\x0a\x0a',_0x104df9+=_0x49a87a(0x18d),_0x104df9+=_0x49a87a(0x198),_0x104df9+='\x20\x20\x20\x20\x20*\x20**/\x0a',_0x104df9+=_0x49a87a(0x163)+_0x27a63b+'Entity>,\x20params:\x20'+_0x27a63b+_0x49a87a(0x189),_0x104df9+=_0x49a87a(0x1a4)+_0x55fe34+_0x49a87a(0x18c),_0x104df9+='\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20return\x20search.getOneOrFail().catch(()\x20=>\x20{\x0a',_0x104df9+=_0x49a87a(0x1a0)+_0x27a63b+_0x49a87a(0x15e)+_0x27a63b+_0x49a87a(0x187)+_0x2c35ba+_0x49a87a(0x194),_0x104df9+=_0x49a87a(0x16f),_0x104df9+=_0x49a87a(0x164),_0x104df9+='\x20\x20\x20\x20\x20\x20\x20\x20this.'+_0x55fe34+_0x49a87a(0x181),_0x104df9+=_0x49a87a(0x176)+_0x55fe34+_0x49a87a(0x188),_0x104df9+=_0x49a87a(0x174),_0x104df9+=_0x49a87a(0x18d),_0x104df9+=_0x49a87a(0x162),_0x104df9+=_0x49a87a(0x165),_0x104df9+='\x20\x20\x20\x20async\x20remove(conditions:\x20SearchParams<'+_0x27a63b+_0x49a87a(0x15f),_0x104df9+=_0x49a87a(0x192)+_0x55fe34+_0x49a87a(0x18c),_0x104df9+='\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20return\x20search.getMany();\x0a',_0x104df9+='\x20\x20\x20\x20\x20\x20\x20\x20});\x0a\x0a',_0x104df9+='\x20\x20\x20\x20\x20\x20\x20\x20for\x20(let\x20tmpModel\x20of\x20tmpModels)\x20{\x0a',_0x104df9+='\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20deletes.push(await\x20this.'+_0x55fe34+_0x49a87a(0x156),_0x104df9+='\x20\x20\x20\x20\x20\x20\x20\x20}\x0a',_0x104df9+=_0x49a87a(0x168),_0x104df9+=_0x49a87a(0x174),_0x104df9+=_0x49a87a(0x18d),_0x104df9+=_0x49a87a(0x16d),_0x104df9+=_0x49a87a(0x165),_0x104df9+=_0x49a87a(0x169)+_0x27a63b+_0x49a87a(0x15f),_0x104df9+='\x20\x20\x20\x20\x20\x20\x20\x20const\x20restores:\x20any\x20=\x20[],\x20tmpModels\x20=\x20await\x20this.'+_0x55fe34+_0x49a87a(0x18c),_0x104df9+=_0x49a87a(0x19f),_0x104df9+=_0x49a87a(0x1a2),_0x104df9+='\x20\x20\x20\x20\x20\x20\x20\x20});\x0a\x0a',_0x104df9+='\x20\x20\x20\x20\x20\x20\x20\x20for\x20(let\x20tmpModel\x20of\x20tmpModels)\x20{\x0a',_0x104df9+=_0x49a87a(0x18a)+_0x55fe34+'.recover(tmpModel))\x0a',_0x104df9+='\x20\x20\x20\x20\x20\x20\x20\x20}\x0a',_0x104df9+=_0x49a87a(0x18e),_0x104df9+=_0x49a87a(0x174),_0x104df9+='}',!fs['existsSync']((0x0,path_1[_0x49a87a(0x195)])(_0x2b7cd8))&&fs[_0x49a87a(0x19c)]((0x0,path_1[_0x49a87a(0x195)])(_0x2b7cd8),{'recursive':!![]}),fs[_0x49a87a(0x167)](_0x2b7cd8,_0x104df9,_0x49a87a(0x199));}}
@@ -1 +1 @@
1
- function a10_0x3057(_0x5928cb,_0xd069cc){_0x5928cb=_0x5928cb-0xe2;const _0x5488f2=a10_0x35ae();let _0x338a2b=_0x5488f2[_0x5928cb];return _0x338a2b;}const a10_0x13c13c=a10_0x3057;(function(_0xf2ece,_0x4f6c8b){const _0x190151=a10_0x3057,_0x6aeda4=_0xf2ece();while(!![]){try{const _0x80c6eb=parseInt(_0x190151(0xef))/0x1+-parseInt(_0x190151(0xf4))/0x2*(parseInt(_0x190151(0xee))/0x3)+parseInt(_0x190151(0xe7))/0x4+parseInt(_0x190151(0x120))/0x5*(parseInt(_0x190151(0x128))/0x6)+-parseInt(_0x190151(0x12b))/0x7+parseInt(_0x190151(0xed))/0x8+parseInt(_0x190151(0xff))/0x9*(parseInt(_0x190151(0x105))/0xa);if(_0x80c6eb===_0x4f6c8b)break;else _0x6aeda4['push'](_0x6aeda4['shift']());}catch(_0x326c0e){_0x6aeda4['push'](_0x6aeda4['shift']());}}}(a10_0x35ae,0xacd47));const a10_0x3337fc=(function(){let _0x31955d=!![];return function(_0x6adc35,_0x334e8d){const _0x53e579=_0x31955d?function(){const _0x5165c6=a10_0x3057;if(_0x334e8d){const _0x4f0148=_0x334e8d[_0x5165c6(0x11f)](_0x6adc35,arguments);return _0x334e8d=null,_0x4f0148;}}:function(){};return _0x31955d=![],_0x53e579;};}()),a10_0x338a2b=a10_0x3337fc(this,function(){const _0x2a2929=a10_0x3057;return a10_0x338a2b[_0x2a2929(0x117)]()[_0x2a2929(0xf5)]('(((.+)+)+)+$')[_0x2a2929(0x117)]()[_0x2a2929(0xea)](a10_0x338a2b)[_0x2a2929(0xf5)](_0x2a2929(0xf6));});a10_0x338a2b();'use strict';Object['defineProperty'](exports,a10_0x13c13c(0x10b),{'value':!![]}),exports['default']=default_1;const fs=require('fs'),path_1=require(a10_0x13c13c(0x12a)),helper_1=require('../helper');async function default_1({tablestartUp:_0x84e6a,tablestartUpShort:_0x2b709c,basedir:_0xb90333,Fields:_0x143055,Comment:_0x111143}){const _0x24b0bb=a10_0x13c13c,_0x35a952=_0xb90333+('/searchs/'+_0x2b709c+'.ts');if(!fs['existsSync'](_0x35a952)){let _0x5492fb='',_0x39d441='';for(let _0x3b9f21 in _0x143055){let _0x2f3521=_0x143055[_0x3b9f21],_0x30ee24=(0x0,helper_1[_0x24b0bb(0x125)])(_0x2f3521[_0x24b0bb(0xe2)]);if(_0x2f3521['Field']=='displayorder'||_0x2f3521[_0x24b0bb(0x109)]==_0x24b0bb(0x104)||_0x2f3521[_0x24b0bb(0x109)]=='updated_at'||_0x2f3521[_0x24b0bb(0x109)]=='deleted_at')continue;if(_0x30ee24==_0x24b0bb(0x11c)){}else{if(_0x30ee24=='text'){}else{if(_0x30ee24=='longtext'){}else[_0x24b0bb(0x101),_0x24b0bb(0x127),_0x24b0bb(0xf3)][_0x24b0bb(0x126)](_0x30ee24)>-0x1&&(_0x5492fb+=_0x24b0bb(0x123)+_0x2f3521[_0x24b0bb(0x109)]+_0x24b0bb(0xe9)+_0x2f3521[_0x24b0bb(0xe4)]+_0x24b0bb(0xfe),_0x5492fb+=_0x24b0bb(0x11d)+_0x2f3521['Field']+'_between(query:\x20SelectQueryBuilder<ObjectLiteral>,\x20'+_0x2f3521['Field']+_0x24b0bb(0xe5),_0x5492fb+=_0x24b0bb(0x12c)+_0x2f3521[_0x24b0bb(0x109)]+'_between.length\x20==\x202\x20){\x0a',_0x5492fb+=_0x24b0bb(0x100)+_0x2f3521[_0x24b0bb(0x109)]+_0x24b0bb(0xfa)+_0x2f3521[_0x24b0bb(0x109)]+_0x24b0bb(0x106),_0x5492fb+='\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20this.'+_0x2f3521['Field']+_0x24b0bb(0x102)+_0x2f3521['Field']+_0x24b0bb(0x124),_0x5492fb+=_0x24b0bb(0xf0),_0x5492fb+=_0x24b0bb(0x129),_0x5492fb+=_0x24b0bb(0x123)+_0x2f3521[_0x24b0bb(0x109)]+_0x24b0bb(0xeb)+_0x2f3521['Comment']+':>=\x20起始时间(之后)\x27)\x0a',_0x5492fb+='\x20\x20\x20\x20async\x20'+_0x2f3521['Field']+_0x24b0bb(0xec)+_0x2f3521[_0x24b0bb(0x109)]+_0x24b0bb(0x119),_0x5492fb+=_0x24b0bb(0xfd)+_0x2f3521[_0x24b0bb(0x109)]+'\x20>=\x20:'+_0x2f3521['Field']+_0x24b0bb(0xf7)+_0x2f3521[_0x24b0bb(0x109)]+'_start\x20})\x0a',_0x5492fb+=_0x24b0bb(0x129),_0x5492fb+=_0x24b0bb(0x123)+_0x2f3521['Field']+_0x24b0bb(0x10f)+_0x2f3521[_0x24b0bb(0xe4)]+':<=\x20起始时间(之前)\x27)\x0a',_0x5492fb+='\x20\x20\x20\x20async\x20'+_0x2f3521[_0x24b0bb(0x109)]+_0x24b0bb(0x115)+_0x2f3521[_0x24b0bb(0x109)]+_0x24b0bb(0x10e),_0x5492fb+=_0x24b0bb(0xfd)+_0x2f3521['Field']+'\x20<=\x20:'+_0x2f3521[_0x24b0bb(0x109)]+'_end`,\x20{\x20'+_0x2f3521[_0x24b0bb(0x109)]+_0x24b0bb(0xf8),_0x5492fb+='\x20\x20\x20\x20}\x0a\x0a');}}}_0x5492fb+=_0x24b0bb(0x110),_0x5492fb+=_0x24b0bb(0x111),_0x5492fb+=_0x24b0bb(0xe6),_0x5492fb+=_0x24b0bb(0x118),_0x5492fb+=_0x24b0bb(0x11a),_0x5492fb+=_0x24b0bb(0xf0),_0x5492fb+=_0x24b0bb(0x129),_0x5492fb+=_0x24b0bb(0x121),_0x5492fb+=_0x24b0bb(0xf9),_0x5492fb+=_0x24b0bb(0x108),_0x5492fb+=_0x24b0bb(0x129),_0x5492fb+='\x20\x20\x20\x20@Search(\x27created_at_end\x27,\x20\x27创建时间:<=\x20起始时间(之前)\x27)\x0a',_0x5492fb+=_0x24b0bb(0xf2),_0x5492fb+='\x20\x20\x20\x20\x20\x20\x20\x20query.andWhere(`${query.alias}.created_at\x20<=\x20:created_at_end`,\x20{\x20created_at_end\x20})\x0a',_0x5492fb+=_0x24b0bb(0x129),_0x5492fb+=_0x24b0bb(0x10a),_0x5492fb+=_0x24b0bb(0xe8),_0x5492fb+=_0x24b0bb(0xe3),_0x5492fb+=_0x24b0bb(0x10d),_0x5492fb+=_0x24b0bb(0x107),_0x5492fb+='\x20\x20\x20\x20\x20\x20\x20\x20}\x0a',_0x5492fb+=_0x24b0bb(0x129),_0x5492fb+=_0x24b0bb(0x122),_0x5492fb+='\x20\x20\x20\x20async\x20updated_at_start(query:\x20SelectQueryBuilder<ObjectLiteral>,\x20updated_at_start:\x20string)\x20{\x0a',_0x5492fb+=_0x24b0bb(0x113),_0x5492fb+=_0x24b0bb(0x129),_0x5492fb+=_0x24b0bb(0x116),_0x5492fb+=_0x24b0bb(0x114),_0x5492fb+=_0x24b0bb(0xfb),_0x5492fb+=_0x24b0bb(0x129),_0x39d441+=_0x24b0bb(0x11b),_0x39d441+=_0x24b0bb(0x103),_0x39d441+='\x20*\x20'+_0x111143+_0x24b0bb(0x10c),_0x39d441+='\x20*\x20**/\x0a',_0x39d441+=_0x24b0bb(0x112),_0x39d441+='export\x20class\x20'+_0x84e6a+'Search\x20{\x0a\x0a',_0x39d441+=_0x24b0bb(0x11e),_0x39d441+='}',_0x39d441=_0x39d441['replace']('%column%',_0x5492fb),!fs['existsSync']((0x0,path_1[_0x24b0bb(0xfc)])(_0x35a952))&&fs[_0x24b0bb(0xf1)]((0x0,path_1[_0x24b0bb(0xfc)])(_0x35a952),{'recursive':!![]}),fs['writeFileSync'](_0x35a952,_0x39d441,'utf-8');}}function a10_0x35ae(){const _0xec2d40=['\x20\x20\x20\x20@Search(\x27updated_at_start\x27,\x20\x27修改时间:>=\x20起始时间(之后)\x27)\x0a','\x20\x20\x20\x20@Search(\x27','_between[0]).format(\x27YYYY-MM-DD\x20HH:mm:ss\x27))\x0a','getProp','indexOf','datetime','348YGNXAZ','\x20\x20\x20\x20}\x0a\x0a','path','6032173Drqlyb','\x20\x20\x20\x20\x20\x20\x20\x20if(\x20','Type','\x20\x20\x20\x20\x20\x20\x20\x20if(\x20updated_at_between.length\x20==\x202\x20){\x0a','Comment','_between:\x20string[])\x20{\x0a','\x20\x20\x20\x20\x20\x20\x20\x20if(\x20created_at_between.length\x20==\x202\x20){\x0a','1795508hNjaIE','\x20\x20\x20\x20async\x20updated_at_between(query:\x20SelectQueryBuilder<ObjectLiteral>,\x20updated_at_between:\x20string[])\x20{\x0a','_between\x27,\x20\x27','constructor','_start\x27,\x20\x27','_start(query:\x20SelectQueryBuilder<ObjectLiteral>,\x20','3071640cFKaEq','317637gCMTrk','229575LfgITS','\x20\x20\x20\x20\x20\x20\x20\x20}\x0a','mkdirSync','\x20\x20\x20\x20async\x20created_at_end(query:\x20SelectQueryBuilder<ObjectLiteral>,\x20created_at_end:\x20string)\x20{\x0a','timestamp','14YpxsCJ','search','(((.+)+)+)+$','_start`,\x20{\x20','_end\x20})\x0a','\x20\x20\x20\x20async\x20created_at_start(query:\x20SelectQueryBuilder<ObjectLiteral>,\x20created_at_start:\x20string)\x20{\x0a','_end(query,\x20dayjs(','\x20\x20\x20\x20\x20\x20\x20\x20query.andWhere(`${query.alias}.updated_at\x20<=\x20:updated_at_end`,\x20{\x20updated_at_end\x20})\x0a','dirname','\x20\x20\x20\x20\x20\x20\x20\x20query.andWhere(`${query.alias}.','在选定时间之内\x27)\x0a','9UhjHwW','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20this.','date','_start(query,\x20dayjs(','/**\x0a','created_at','11884240NAfCfz','_between[1]).format(\x27YYYY-MM-DD\x20HH:mm:ss\x27))\x0a','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20this.updated_at_start(query,\x20dayjs(updated_at_between[0]).format(\x27YYYY-MM-DD\x20HH:mm:ss\x27))\x0a','\x20\x20\x20\x20\x20\x20\x20\x20query.andWhere(`${query.alias}.created_at\x20>=\x20:created_at_start`,\x20{\x20created_at_start\x20})\x0a','Field','\x20\x20\x20\x20@Search(\x27updated_at_between\x27,\x20\x27修改时间在选定时间之内\x27)\x0a','__esModule','-自定义检索\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','_end:\x20string)\x20{\x0a','_end\x27,\x20\x27','\x20\x20\x20\x20@Search(\x27created_at_between\x27,\x20\x27创建时间在选定时间之内\x27)\x0a','\x20\x20\x20\x20async\x20created_at_between(query:\x20SelectQueryBuilder<ObjectLiteral>,\x20created_at_between:\x20string[])\x20{\x0a','@Provide()\x0a','\x20\x20\x20\x20\x20\x20\x20\x20query.andWhere(`${query.alias}.updated_at\x20>=\x20:updated_at_start`,\x20{\x20updated_at_start\x20})\x0a','\x20\x20\x20\x20async\x20updated_at_end(query:\x20SelectQueryBuilder<ObjectLiteral>,\x20updated_at_end:\x20string)\x20{\x0a','_end(query:\x20SelectQueryBuilder<ObjectLiteral>,\x20','\x20\x20\x20\x20@Search(\x27updated_at_end\x27,\x20\x27修改时间:<=\x20起始时间(之前)\x27)\x0a','toString','\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','_start:\x20string)\x20{\x0a','\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','import\x20{\x20Provide,\x20Search,\x20ObjectLiteral,\x20SelectQueryBuilder\x20}\x20from\x20\x27@anveroapi/typeorm\x27;\x0a\x0a','json','\x20\x20\x20\x20async\x20','%column%','apply','5170HGRPZV','\x20\x20\x20\x20@Search(\x27created_at_start\x27,\x20\x27创建时间:>=\x20起始时间(之后)\x27)\x0a'];a10_0x35ae=function(){return _0xec2d40;};return a10_0x35ae();}
1
+ const a10_0x32b5e0=a10_0x44c8;function a10_0x44c8(_0x91ceaf,_0xf81a5f){_0x91ceaf=_0x91ceaf-0x1a1;const _0x203645=a10_0x1500();let _0x5610e0=_0x203645[_0x91ceaf];return _0x5610e0;}(function(_0x3e4481,_0x432717){const _0x11c47f=a10_0x44c8,_0x300c69=_0x3e4481();while(!![]){try{const _0x19e75e=-parseInt(_0x11c47f(0x1f0))/0x1*(-parseInt(_0x11c47f(0x1b9))/0x2)+parseInt(_0x11c47f(0x1cd))/0x3*(parseInt(_0x11c47f(0x1da))/0x4)+parseInt(_0x11c47f(0x1bc))/0x5+parseInt(_0x11c47f(0x1bd))/0x6+parseInt(_0x11c47f(0x1d7))/0x7*(parseInt(_0x11c47f(0x1e1))/0x8)+parseInt(_0x11c47f(0x1c3))/0x9*(parseInt(_0x11c47f(0x1b7))/0xa)+-parseInt(_0x11c47f(0x1a7))/0xb;if(_0x19e75e===_0x432717)break;else _0x300c69['push'](_0x300c69['shift']());}catch(_0x3cffd6){_0x300c69['push'](_0x300c69['shift']());}}}(a10_0x1500,0x27ee6));function a10_0x1500(){const _0x2c0fc4=['\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20this.created_at_end(query,\x20dayjs(created_at_between[1]).format(\x27YYYY-MM-DD\x20HH:mm:ss\x27))\x0a','\x20\x20\x20\x20@Search(\x27updated_at_end\x27,\x20\x27修改时间:<=\x20起始时间(之前)\x27)\x0a','default','\x20\x20\x20\x20async\x20created_at_start(query:\x20SelectQueryBuilder<ObjectLiteral>,\x20created_at_start:\x20string)\x20{\x0a','Comment','Field','1wtFRir','text','_end\x27,\x20\x27','utf-8','\x20\x20\x20\x20\x20\x20\x20\x20query.andWhere(`${query.alias}.updated_at\x20<=\x20:updated_at_end`,\x20{\x20updated_at_end\x20})\x0a','updated_at','getProp','\x20\x20\x20\x20async\x20','Type','import\x20{\x20Provide,\x20Search,\x20ObjectLiteral,\x20SelectQueryBuilder\x20}\x20from\x20\x27@anveroapi/typeorm\x27;\x0a\x0a','12653146QsBqEv','__esModule','_between(query:\x20SelectQueryBuilder<ObjectLiteral>,\x20','date','indexOf','\x20\x20\x20\x20async\x20updated_at_end(query:\x20SelectQueryBuilder<ObjectLiteral>,\x20updated_at_end:\x20string)\x20{\x0a','toString','dirname','\x20\x20\x20\x20\x20\x20\x20\x20}\x0a','\x20\x20\x20\x20\x20\x20\x20\x20query.andWhere(`${query.alias}.updated_at\x20>=\x20:updated_at_start`,\x20{\x20updated_at_start\x20})\x0a','timestamp','deleted_at','existsSync','_start`,\x20{\x20','\x20\x20\x20\x20}\x0a\x0a','_between[0]).format(\x27YYYY-MM-DD\x20HH:mm:ss\x27))\x0a','160FXdFjE','\x20*\x20','259736wFlsyY','%column%','\x20\x20\x20\x20async\x20created_at_end(query:\x20SelectQueryBuilder<ObjectLiteral>,\x20created_at_end:\x20string)\x20{\x0a','1507950XCkdjq','577854sfxZDr','_start(query,\x20dayjs(','mkdirSync','在选定时间之内\x27)\x0a','\x20\x20\x20\x20@Search(\x27updated_at_between\x27,\x20\x27修改时间在选定时间之内\x27)\x0a','_between:\x20string[])\x20{\x0a','101979NUFNfY',':<=\x20起始时间(之前)\x27)\x0a',':>=\x20起始时间(之后)\x27)\x0a','_end(query:\x20SelectQueryBuilder<ObjectLiteral>,\x20','\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','\x20\x20\x20\x20\x20\x20\x20\x20if(\x20','search','writeFileSync','/**\x0a','\x20\x20\x20\x20\x20\x20\x20\x20query.andWhere(`${query.alias}.','884517zmyEvf','\x20\x20\x20\x20@Search(\x27updated_at_start\x27,\x20\x27修改时间:>=\x20起始时间(之后)\x27)\x0a','path','\x20\x20\x20\x20@Search(\x27created_at_end\x27,\x20\x27创建时间:<=\x20起始时间(之前)\x27)\x0a','\x20\x20\x20\x20\x20\x20\x20\x20if(\x20updated_at_between.length\x20==\x202\x20){\x0a','\x20>=\x20:','datetime','export\x20class\x20','longtext','_start\x20})\x0a','938brLMIi','_end`,\x20{\x20','@Provide()\x0a','4cftnug','_between.length\x20==\x202\x20){\x0a','created_at','\x20\x20\x20\x20@Search(\x27created_at_between\x27,\x20\x27创建时间在选定时间之内\x27)\x0a','\x20\x20\x20\x20@Search(\x27','displayorder','\x20\x20\x20\x20\x20\x20\x20\x20query.andWhere(`${query.alias}.created_at\x20>=\x20:created_at_start`,\x20{\x20created_at_start\x20})\x0a','18504rmXhvZ','.ts','\x20*\x20**/\x0a','_start:\x20string)\x20{\x0a','_between\x27,\x20\x27','\x20\x20\x20\x20async\x20updated_at_start(query:\x20SelectQueryBuilder<ObjectLiteral>,\x20updated_at_start:\x20string)\x20{\x0a','_end:\x20string)\x20{\x0a','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20this.','\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'];a10_0x1500=function(){return _0x2c0fc4;};return a10_0x1500();}const a10_0xa53de8=(function(){let _0x3cecf3=!![];return function(_0x3a45f7,_0x1d5385){const _0x483003=_0x3cecf3?function(){if(_0x1d5385){const _0x712e7f=_0x1d5385['apply'](_0x3a45f7,arguments);return _0x1d5385=null,_0x712e7f;}}:function(){};return _0x3cecf3=![],_0x483003;};}()),a10_0x5610e0=a10_0xa53de8(this,function(){const _0x444ef9=a10_0x44c8;return a10_0x5610e0[_0x444ef9(0x1ad)]()[_0x444ef9(0x1c9)]('(((.+)+)+)+$')['toString']()['constructor'](a10_0x5610e0)[_0x444ef9(0x1c9)]('(((.+)+)+)+$');});a10_0x5610e0();'use strict';Object['defineProperty'](exports,a10_0x32b5e0(0x1a8),{'value':!![]}),exports[a10_0x32b5e0(0x1ec)]=default_1;const fs=require('fs'),path_1=require(a10_0x32b5e0(0x1cf)),helper_1=require('../helper');async function default_1({tablestartUp:_0x471597,tablestartUpShort:_0x4aca31,basedir:_0x5c3bc2,Fields:_0x222847,Comment:_0x404f1c}){const _0x4ea786=a10_0x32b5e0,_0x1578f1=_0x5c3bc2+('/searchs/'+_0x4aca31+_0x4ea786(0x1e2));if(!fs[_0x4ea786(0x1b3)](_0x1578f1)){let _0x5a25be='',_0x355756='';for(let _0x5aa410 in _0x222847){let _0x283a08=_0x222847[_0x5aa410],_0x37ad99=(0x0,helper_1[_0x4ea786(0x1a3)])(_0x283a08[_0x4ea786(0x1a5)]);if(_0x283a08[_0x4ea786(0x1ef)]==_0x4ea786(0x1df)||_0x283a08[_0x4ea786(0x1ef)]==_0x4ea786(0x1dc)||_0x283a08[_0x4ea786(0x1ef)]==_0x4ea786(0x1a2)||_0x283a08['Field']==_0x4ea786(0x1b2))continue;if(_0x37ad99=='json'){}else{if(_0x37ad99==_0x4ea786(0x1f1)){}else{if(_0x37ad99==_0x4ea786(0x1d5)){}else[_0x4ea786(0x1aa),_0x4ea786(0x1d3),_0x4ea786(0x1b1)][_0x4ea786(0x1ab)](_0x37ad99)>-0x1&&(_0x5a25be+=_0x4ea786(0x1de)+_0x283a08[_0x4ea786(0x1ef)]+_0x4ea786(0x1e5)+_0x283a08[_0x4ea786(0x1ee)]+_0x4ea786(0x1c0),_0x5a25be+=_0x4ea786(0x1a4)+_0x283a08['Field']+_0x4ea786(0x1a9)+_0x283a08[_0x4ea786(0x1ef)]+_0x4ea786(0x1c2),_0x5a25be+=_0x4ea786(0x1c8)+_0x283a08[_0x4ea786(0x1ef)]+_0x4ea786(0x1db),_0x5a25be+='\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20this.'+_0x283a08[_0x4ea786(0x1ef)]+'_end(query,\x20dayjs('+_0x283a08[_0x4ea786(0x1ef)]+'_between[1]).format(\x27YYYY-MM-DD\x20HH:mm:ss\x27))\x0a',_0x5a25be+=_0x4ea786(0x1e8)+_0x283a08[_0x4ea786(0x1ef)]+_0x4ea786(0x1be)+_0x283a08['Field']+_0x4ea786(0x1b6),_0x5a25be+=_0x4ea786(0x1af),_0x5a25be+=_0x4ea786(0x1b5),_0x5a25be+=_0x4ea786(0x1de)+_0x283a08[_0x4ea786(0x1ef)]+'_start\x27,\x20\x27'+_0x283a08[_0x4ea786(0x1ee)]+_0x4ea786(0x1c5),_0x5a25be+=_0x4ea786(0x1a4)+_0x283a08[_0x4ea786(0x1ef)]+'_start(query:\x20SelectQueryBuilder<ObjectLiteral>,\x20'+_0x283a08[_0x4ea786(0x1ef)]+_0x4ea786(0x1e4),_0x5a25be+=_0x4ea786(0x1cc)+_0x283a08[_0x4ea786(0x1ef)]+_0x4ea786(0x1d2)+_0x283a08['Field']+_0x4ea786(0x1b4)+_0x283a08[_0x4ea786(0x1ef)]+_0x4ea786(0x1d6),_0x5a25be+=_0x4ea786(0x1b5),_0x5a25be+=_0x4ea786(0x1de)+_0x283a08['Field']+_0x4ea786(0x1f2)+_0x283a08['Comment']+_0x4ea786(0x1c4),_0x5a25be+='\x20\x20\x20\x20async\x20'+_0x283a08[_0x4ea786(0x1ef)]+_0x4ea786(0x1c6)+_0x283a08[_0x4ea786(0x1ef)]+_0x4ea786(0x1e7),_0x5a25be+=_0x4ea786(0x1cc)+_0x283a08['Field']+'\x20<=\x20:'+_0x283a08['Field']+_0x4ea786(0x1d8)+_0x283a08[_0x4ea786(0x1ef)]+'_end\x20})\x0a',_0x5a25be+=_0x4ea786(0x1b5));}}}_0x5a25be+=_0x4ea786(0x1dd),_0x5a25be+='\x20\x20\x20\x20async\x20created_at_between(query:\x20SelectQueryBuilder<ObjectLiteral>,\x20created_at_between:\x20string[])\x20{\x0a',_0x5a25be+='\x20\x20\x20\x20\x20\x20\x20\x20if(\x20created_at_between.length\x20==\x202\x20){\x0a',_0x5a25be+=_0x4ea786(0x1ea),_0x5a25be+=_0x4ea786(0x1c7),_0x5a25be+=_0x4ea786(0x1af),_0x5a25be+=_0x4ea786(0x1b5),_0x5a25be+='\x20\x20\x20\x20@Search(\x27created_at_start\x27,\x20\x27创建时间:>=\x20起始时间(之后)\x27)\x0a',_0x5a25be+=_0x4ea786(0x1ed),_0x5a25be+=_0x4ea786(0x1e0),_0x5a25be+=_0x4ea786(0x1b5),_0x5a25be+=_0x4ea786(0x1d0),_0x5a25be+=_0x4ea786(0x1bb),_0x5a25be+='\x20\x20\x20\x20\x20\x20\x20\x20query.andWhere(`${query.alias}.created_at\x20<=\x20:created_at_end`,\x20{\x20created_at_end\x20})\x0a',_0x5a25be+=_0x4ea786(0x1b5),_0x5a25be+=_0x4ea786(0x1c1),_0x5a25be+='\x20\x20\x20\x20async\x20updated_at_between(query:\x20SelectQueryBuilder<ObjectLiteral>,\x20updated_at_between:\x20string[])\x20{\x0a',_0x5a25be+=_0x4ea786(0x1d1),_0x5a25be+=_0x4ea786(0x1e9),_0x5a25be+='\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',_0x5a25be+=_0x4ea786(0x1af),_0x5a25be+='\x20\x20\x20\x20}\x0a\x0a',_0x5a25be+=_0x4ea786(0x1ce),_0x5a25be+=_0x4ea786(0x1e6),_0x5a25be+=_0x4ea786(0x1b0),_0x5a25be+=_0x4ea786(0x1b5),_0x5a25be+=_0x4ea786(0x1eb),_0x5a25be+=_0x4ea786(0x1ac),_0x5a25be+=_0x4ea786(0x1a1),_0x5a25be+=_0x4ea786(0x1b5),_0x355756+=_0x4ea786(0x1a6),_0x355756+=_0x4ea786(0x1cb),_0x355756+=_0x4ea786(0x1b8)+_0x404f1c+'-自定义检索\x0a',_0x355756+=_0x4ea786(0x1e3),_0x355756+=_0x4ea786(0x1d9),_0x355756+=_0x4ea786(0x1d4)+_0x471597+'Search\x20{\x0a\x0a',_0x355756+=_0x4ea786(0x1ba),_0x355756+='}',_0x355756=_0x355756['replace']('%column%',_0x5a25be),!fs['existsSync']((0x0,path_1[_0x4ea786(0x1ae)])(_0x1578f1))&&fs[_0x4ea786(0x1bf)]((0x0,path_1[_0x4ea786(0x1ae)])(_0x1578f1),{'recursive':!![]}),fs[_0x4ea786(0x1ca)](_0x1578f1,_0x355756,_0x4ea786(0x1f3));}}