anvero-apihelper 4.0.1 → 4.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.
- package/dist/command/AnveroGen.command.js +1 -1
- package/dist/configuration.js +1 -1
- package/dist/helper.js +1 -1
- package/dist/index.js +1 -1
- package/dist/service/ApicreateService.js +1 -1
- package/dist/templateFun/Action.js +1 -1
- package/dist/templateFun/Common.js +1 -1
- package/dist/templateFun/Entities.js +1 -1
- package/dist/templateFun/Event.js +1 -1
- package/dist/templateFun/Handler.js +1 -1
- package/dist/templateFun/Search.js +1 -1
- package/dist/templateFun/Validator.js +1 -1
- package/dist/templateVue/Api.js +1 -1
- package/dist/templateVue/LayoutVue.js +1 -1
- package/dist/templateVue/Router.js +1 -1
- package/dist/templateVue/Validator.js +1 -1
- package/dist/types/index.js +1 -1
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
const a0_0x1f48b1=a0_0x22b5;function a0_0x22b5(_0x363457,_0x46f98e){_0x363457=_0x363457-0x13f;const _0x1a9986=a0_0x33c6();let _0x2fad33=_0x1a9986[_0x363457];return _0x2fad33;}(function(_0x4af60f,_0x37e0e1){const _0x3b4194=a0_0x22b5,_0x273a8d=_0x4af60f();while(!![]){try{const _0x25edfe=-parseInt(_0x3b4194(0x159))/0x1*(-parseInt(_0x3b4194(0x193))/0x2)+parseInt(_0x3b4194(0x13f))/0x3*(-parseInt(_0x3b4194(0x188))/0x4)+-parseInt(_0x3b4194(0x151))/0x5*(-parseInt(_0x3b4194(0x17b))/0x6)+-parseInt(_0x3b4194(0x16b))/0x7*(-parseInt(_0x3b4194(0x16e))/0x8)+-parseInt(_0x3b4194(0x17d))/0x9+-parseInt(_0x3b4194(0x147))/0xa*(parseInt(_0x3b4194(0x166))/0xb)+parseInt(_0x3b4194(0x180))/0xc*(parseInt(_0x3b4194(0x184))/0xd);if(_0x25edfe===_0x37e0e1)break;else _0x273a8d['push'](_0x273a8d['shift']());}catch(_0xd4ae6f){_0x273a8d['push'](_0x273a8d['shift']());}}}(a0_0x33c6,0xde0ef));function a0_0x33c6(){const _0x1dcdd4=['basic','-p,\x20--tableprefix\x20[tableprefix]','3607345WbkIzh','isFinite','parseTables','filter','anvero:gen','parseTableprefix','map','--vueapiprefix\x20[vueapiprefix]','601zNJgDr','app','controller','../service/ApicreateService','vueapiprefix','length','__decorate','default','mode','__esModule','exit','search','createApp','253yKgTlZ','parseVueapiprefix','toString','__metadata','(((.+)+)+)+$','14KqXVET','--vuedialog','prototype','5041976IziEFm','Inject','-c,\x20--controller\x20[controller]','-m,\x20--mode\x20[mode]','split','ApicreateService','design:paramtypes','anveroGenCommand','getOwnPropertyDescriptor','按数据库表生成分层\x20API\x20代码(--mode\x20app|basic|plugin,默认\x20app:表前缀\x20app_,控制器\x20admin,输出\x20src/app)','error','前端生成弹窗形态标记(配合\x20--hasvue)','parseConnection','12uggqlC','constructor','13991823xUzebG','生成前端代码到\x20./vue;不带此参数不生成前端','createPlugin','1560324KvBjJM','src/apps/<模块>','apply','function','13iRmAof','defineProperty','admin','substr','296cQLnup','decorate','object','trim','Option','log','tableprefix','tables','hasvue','plugin','控制器目录名,逗号分隔多个,默认\x20admin;裸\x20flag\x20落\x20app/basic\x20根目录;空串只生成基础分层','3792EBSlke','-s,\x20--substr\x20[substr]','design:type','string','精确表名,逗号分隔多个;缺省按\x20tableprefix\x20全量匹配','48495GOOadG','design:returntype','parseVuedialog','run','typeorm\x20数据源名,默认\x20default',',可选\x20app\x20|\x20basic\x20|\x20plugin','src/','metadata','135890tNRKbA','生成模式\x20app|basic|plugin,默认\x20app(产物依次为\x20src/app、src/basic、src/apps/<模块>)','parseMode','@midwayjs/commander','parseController','[gen:api]\x20产物目录:','connection','parseSubstr'];a0_0x33c6=function(){return _0x1dcdd4;};return a0_0x33c6();}const a0_0x17e11a=(function(){let _0x4952ff=!![];return function(_0x4fdc87,_0x4ec183){const _0x210d40=_0x4952ff?function(){const _0x567cad=a0_0x22b5;if(_0x4ec183){const _0x12966c=_0x4ec183[_0x567cad(0x182)](_0x4fdc87,arguments);return _0x4ec183=null,_0x12966c;}}:function(){};return _0x4952ff=![],_0x210d40;};}()),a0_0x2fad33=a0_0x17e11a(this,function(){const _0x141896=a0_0x22b5;return a0_0x2fad33[_0x141896(0x168)]()[_0x141896(0x164)](_0x141896(0x16a))[_0x141896(0x168)]()[_0x141896(0x17c)](a0_0x2fad33)[_0x141896(0x164)](_0x141896(0x16a));});a0_0x2fad33();'use strict';var __decorate=this&&this[a0_0x1f48b1(0x15f)]||function(_0x3d5639,_0x597005,_0x2f61c1,_0x5bd6b6){const _0x1260db=a0_0x1f48b1;var _0x23738d=arguments[_0x1260db(0x15e)],_0x36a1b3=_0x23738d<0x3?_0x597005:_0x5bd6b6===null?_0x5bd6b6=Object[_0x1260db(0x176)](_0x597005,_0x2f61c1):_0x5bd6b6,_0x53d70c;if(typeof Reflect===_0x1260db(0x18a)&&typeof Reflect[_0x1260db(0x189)]===_0x1260db(0x183))_0x36a1b3=Reflect[_0x1260db(0x189)](_0x3d5639,_0x597005,_0x2f61c1,_0x5bd6b6);else{for(var _0x2d0d10=_0x3d5639[_0x1260db(0x15e)]-0x1;_0x2d0d10>=0x0;_0x2d0d10--)if(_0x53d70c=_0x3d5639[_0x2d0d10])_0x36a1b3=(_0x23738d<0x3?_0x53d70c(_0x36a1b3):_0x23738d>0x3?_0x53d70c(_0x597005,_0x2f61c1,_0x36a1b3):_0x53d70c(_0x597005,_0x2f61c1))||_0x36a1b3;}return _0x23738d>0x3&&_0x36a1b3&&Object[_0x1260db(0x185)](_0x597005,_0x2f61c1,_0x36a1b3),_0x36a1b3;},__metadata=this&&this[a0_0x1f48b1(0x169)]||function(_0x2d7754,_0x319def){const _0x39e136=a0_0x1f48b1;if(typeof Reflect===_0x39e136(0x18a)&&typeof Reflect[_0x39e136(0x146)]===_0x39e136(0x183))return Reflect['metadata'](_0x2d7754,_0x319def);};Object[a0_0x1f48b1(0x185)](exports,a0_0x1f48b1(0x162),{'value':!![]}),exports['anveroGenCommand']=void 0x0;const core_1=require('@midwayjs/core'),commander_1=require(a0_0x1f48b1(0x14a)),ApicreateService_1=require(a0_0x1f48b1(0x15c));let anveroGenCommand=class anveroGenCommand{[a0_0x1f48b1(0x149)](_0x26467b){return _0x26467b;}[a0_0x1f48b1(0x153)](_0x18fed0){const _0x1718b1=a0_0x1f48b1;return(_0x18fed0||'')[_0x1718b1(0x172)](',')[_0x1718b1(0x157)](_0xb3ce40=>_0xb3ce40[_0x1718b1(0x18b)]())[_0x1718b1(0x154)](Boolean);}[a0_0x1f48b1(0x156)](_0x394ac7){const _0x5716a9=a0_0x1f48b1;return typeof _0x394ac7===_0x5716a9(0x196)?_0x394ac7:undefined;}[a0_0x1f48b1(0x14e)](_0xf8687f){const _0x1a57bd=a0_0x1f48b1;return typeof _0xf8687f===_0x1a57bd(0x196)&&_0xf8687f!==''&&Number['isFinite'](Number(_0xf8687f))?Number(_0xf8687f):undefined;}[a0_0x1f48b1(0x14b)](_0x574579){const _0x1b3b5f=a0_0x1f48b1;if(_0x574579===undefined)return!![];return(_0x574579||'')['split'](',')['map'](_0x548e78=>_0x548e78['trim']())[_0x1b3b5f(0x154)](Boolean);}['parseHasvue'](){return!![];}['parseVuedialog'](){return!![];}[a0_0x1f48b1(0x167)](_0x36c7ed){const _0x59a5a5=a0_0x1f48b1;return typeof _0x36c7ed===_0x59a5a5(0x196)&&_0x36c7ed?_0x36c7ed:undefined;}[a0_0x1f48b1(0x17a)](_0x5a5371){const _0x547c0e=a0_0x1f48b1;return typeof _0x5a5371===_0x547c0e(0x196)&&_0x5a5371?_0x5a5371:undefined;}async[a0_0x1f48b1(0x142)](_0x5c5592,_0xb898e1){const _0x17dfb5=a0_0x1f48b1,_0x18a41b=_0xb898e1[_0x17dfb5(0x161)]||_0x17dfb5(0x15a);!['app',_0x17dfb5(0x14f),_0x17dfb5(0x191)]['includes'](_0x18a41b)&&(console[_0x17dfb5(0x178)]('[gen:api]\x20未知模式\x20'+_0x18a41b+_0x17dfb5(0x144)),process[_0x17dfb5(0x163)](0x1));const _0x5abb3b={'app':{'tableprefix':'app_','substr':0x4},'basic':{'tableprefix':'basic_','substr':0x6},'plugin':{'tableprefix':'','substr':0x0}},_0x3f777c=typeof _0xb898e1[_0x17dfb5(0x18e)]===_0x17dfb5(0x196)?_0xb898e1[_0x17dfb5(0x18e)]:_0x5abb3b[_0x18a41b][_0x17dfb5(0x18e)],_0x521881=Number[_0x17dfb5(0x152)](_0xb898e1[_0x17dfb5(0x187)])?_0xb898e1[_0x17dfb5(0x187)]:_0x5abb3b[_0x18a41b][_0x17dfb5(0x187)],_0x33b0c6=_0xb898e1['controller']===undefined?[_0x17dfb5(0x186)]:_0xb898e1[_0x17dfb5(0x15b)],_0x24e8d2=typeof _0xb898e1[_0x17dfb5(0x14d)]===_0x17dfb5(0x196)?_0xb898e1['connection']:_0x17dfb5(0x160),_0x326e94={'substr':_0x521881,'tableprefix':_0x3f777c,'controller':_0x33b0c6,'connection':_0x24e8d2,'hasvue':_0xb898e1[_0x17dfb5(0x190)],'vuedialog':!!_0xb898e1['vuedialog'],'vueapiprefix':_0xb898e1[_0x17dfb5(0x15d)]},_0x1d97cf=_0xb898e1[_0x17dfb5(0x18f)]||[],_0x355348=_0x1d97cf[_0x17dfb5(0x15e)]?_0x1d97cf:[''];for(const _0x371e5d of _0x355348){const _0x1fbe47={..._0x326e94,..._0x371e5d?{'table':_0x371e5d}:{}};if(_0x18a41b===_0x17dfb5(0x14f))await this[_0x17dfb5(0x173)]['createBasic'](_0x1fbe47);else _0x18a41b==='plugin'?await this['ApicreateService'][_0x17dfb5(0x17f)](_0x1fbe47):await this[_0x17dfb5(0x173)][_0x17dfb5(0x165)](_0x1fbe47);console[_0x17dfb5(0x18d)]('[gen:api]\x20完成:'+(_0x371e5d||'按前缀\x20'+(_0x3f777c||'*')+'\x20全量匹配'));}console[_0x17dfb5(0x18d)](_0x17dfb5(0x14c)+(_0x18a41b===_0x17dfb5(0x191)?_0x17dfb5(0x181):_0x17dfb5(0x145)+_0x18a41b)),process[_0x17dfb5(0x163)](0x0);}};exports[a0_0x1f48b1(0x175)]=anveroGenCommand,__decorate([(0x0,core_1[a0_0x1f48b1(0x16f)])(),__metadata(a0_0x1f48b1(0x195),ApicreateService_1[a0_0x1f48b1(0x173)])],anveroGenCommand['prototype'],a0_0x1f48b1(0x173),void 0x0),__decorate([(0x0,commander_1[a0_0x1f48b1(0x18c)])({'flags':a0_0x1f48b1(0x171),'description':a0_0x1f48b1(0x148)}),__metadata('design:type',Function),__metadata(a0_0x1f48b1(0x174),[String]),__metadata(a0_0x1f48b1(0x140),void 0x0)],anveroGenCommand[a0_0x1f48b1(0x16d)],a0_0x1f48b1(0x149),null),__decorate([(0x0,commander_1[a0_0x1f48b1(0x18c)])({'flags':'-t,\x20--tables\x20[tables]','description':a0_0x1f48b1(0x197)}),__metadata('design:type',Function),__metadata(a0_0x1f48b1(0x174),[String]),__metadata('design:returntype',void 0x0)],anveroGenCommand[a0_0x1f48b1(0x16d)],a0_0x1f48b1(0x153),null),__decorate([(0x0,commander_1['Option'])({'flags':a0_0x1f48b1(0x150),'description':'表前缀过滤,默认\x20app\x20模式\x20\x27app_\x27、basic\x20模式\x20\x27basic_\x27、plugin\x20模式\x20\x27\x27(全表)'}),__metadata('design:type',Function),__metadata(a0_0x1f48b1(0x174),[String]),__metadata('design:returntype',void 0x0)],anveroGenCommand[a0_0x1f48b1(0x16d)],'parseTableprefix',null),__decorate([(0x0,commander_1['Option'])({'flags':a0_0x1f48b1(0x194),'description':'表名截断长度,默认\x20app\x20模式\x204(去\x20app_)、basic\x20模式\x206(去\x20basic_)、plugin\x20模式\x200'}),__metadata(a0_0x1f48b1(0x195),Function),__metadata(a0_0x1f48b1(0x174),[String]),__metadata('design:returntype',void 0x0)],anveroGenCommand[a0_0x1f48b1(0x16d)],a0_0x1f48b1(0x14e),null),__decorate([(0x0,commander_1[a0_0x1f48b1(0x18c)])({'flags':a0_0x1f48b1(0x170),'description':a0_0x1f48b1(0x192)}),__metadata(a0_0x1f48b1(0x195),Function),__metadata(a0_0x1f48b1(0x174),[String]),__metadata(a0_0x1f48b1(0x140),void 0x0)],anveroGenCommand[a0_0x1f48b1(0x16d)],a0_0x1f48b1(0x14b),null),__decorate([(0x0,commander_1['Option'])({'flags':'--hasvue','description':a0_0x1f48b1(0x17e)}),__metadata('design:type',Function),__metadata(a0_0x1f48b1(0x174),[]),__metadata(a0_0x1f48b1(0x140),void 0x0)],anveroGenCommand[a0_0x1f48b1(0x16d)],'parseHasvue',null),__decorate([(0x0,commander_1[a0_0x1f48b1(0x18c)])({'flags':a0_0x1f48b1(0x16c),'description':a0_0x1f48b1(0x179)}),__metadata(a0_0x1f48b1(0x195),Function),__metadata('design:paramtypes',[]),__metadata('design:returntype',void 0x0)],anveroGenCommand[a0_0x1f48b1(0x16d)],a0_0x1f48b1(0x141),null),__decorate([(0x0,commander_1[a0_0x1f48b1(0x18c)])({'flags':a0_0x1f48b1(0x158),'description':'前端全局\x20api\x20前缀(配合\x20--hasvue,如\x20$api):设置时不生成独立\x20api\x20文件,页面直接调\x20${前缀}.${模块}${表Pascal}.${方法}($api.Order.List\x20/\x20$api.helloincshOrders.List)适配\x20alova;缺省按原规则生成\x20vue/apis\x20独立\x20api\x20文件'}),__metadata(a0_0x1f48b1(0x195),Function),__metadata(a0_0x1f48b1(0x174),[String]),__metadata(a0_0x1f48b1(0x140),void 0x0)],anveroGenCommand[a0_0x1f48b1(0x16d)],a0_0x1f48b1(0x167),null),__decorate([(0x0,commander_1[a0_0x1f48b1(0x18c)])({'flags':'--connection\x20[connection]','description':a0_0x1f48b1(0x143)}),__metadata(a0_0x1f48b1(0x195),Function),__metadata(a0_0x1f48b1(0x174),[String]),__metadata('design:returntype',void 0x0)],anveroGenCommand[a0_0x1f48b1(0x16d)],a0_0x1f48b1(0x17a),null),exports['anveroGenCommand']=anveroGenCommand=__decorate([(0x0,commander_1['Command'])({'name':a0_0x1f48b1(0x155),'description':a0_0x1f48b1(0x177)})],anveroGenCommand);
|
|
1
|
+
const a0_0x2b195b=a0_0x2300;(function(_0x17e8bf,_0x2e82b8){const _0x356558=a0_0x2300,_0x34ebec=_0x17e8bf();while(!![]){try{const _0x181aa5=-parseInt(_0x356558(0x114))/0x1*(parseInt(_0x356558(0xff))/0x2)+parseInt(_0x356558(0x134))/0x3+parseInt(_0x356558(0x123))/0x4+-parseInt(_0x356558(0x135))/0x5+-parseInt(_0x356558(0x12f))/0x6*(parseInt(_0x356558(0x10f))/0x7)+-parseInt(_0x356558(0x13d))/0x8*(parseInt(_0x356558(0x14f))/0x9)+parseInt(_0x356558(0x13f))/0xa;if(_0x181aa5===_0x2e82b8)break;else _0x34ebec['push'](_0x34ebec['shift']());}catch(_0x446fcf){_0x34ebec['push'](_0x34ebec['shift']());}}}(a0_0x4a24,0xc475c));const a0_0x39b29f=(function(){let _0x3665a6=!![];return function(_0x426155,_0xd69318){const _0x147adb=_0x3665a6?function(){if(_0xd69318){const _0x2cbc53=_0xd69318['apply'](_0x426155,arguments);return _0xd69318=null,_0x2cbc53;}}:function(){};return _0x3665a6=![],_0x147adb;};}()),a0_0x1d7fd2=a0_0x39b29f(this,function(){const _0x5c335a=a0_0x2300;return a0_0x1d7fd2['toString']()[_0x5c335a(0x11f)](_0x5c335a(0x100))[_0x5c335a(0x127)]()['constructor'](a0_0x1d7fd2)[_0x5c335a(0x11f)]('(((.+)+)+)+$');});a0_0x1d7fd2();'use strict';var __decorate=this&&this[a0_0x2b195b(0x13c)]||function(_0x18d7fd,_0x55c999,_0x123117,_0x3c3df7){const _0x3d7f47=a0_0x2b195b;var _0x4e80b9=arguments['length'],_0x2761f4=_0x4e80b9<0x3?_0x55c999:_0x3c3df7===null?_0x3c3df7=Object[_0x3d7f47(0x13b)](_0x55c999,_0x123117):_0x3c3df7,_0x2b2b7e;if(typeof Reflect===_0x3d7f47(0x144)&&typeof Reflect[_0x3d7f47(0x14d)]===_0x3d7f47(0x121))_0x2761f4=Reflect[_0x3d7f47(0x14d)](_0x18d7fd,_0x55c999,_0x123117,_0x3c3df7);else{for(var _0x3ef509=_0x18d7fd[_0x3d7f47(0x150)]-0x1;_0x3ef509>=0x0;_0x3ef509--)if(_0x2b2b7e=_0x18d7fd[_0x3ef509])_0x2761f4=(_0x4e80b9<0x3?_0x2b2b7e(_0x2761f4):_0x4e80b9>0x3?_0x2b2b7e(_0x55c999,_0x123117,_0x2761f4):_0x2b2b7e(_0x55c999,_0x123117))||_0x2761f4;}return _0x4e80b9>0x3&&_0x2761f4&&Object[_0x3d7f47(0x113)](_0x55c999,_0x123117,_0x2761f4),_0x2761f4;},__metadata=this&&this['__metadata']||function(_0x13c093,_0x14b04c){const _0x3f6e13=a0_0x2b195b;if(typeof Reflect===_0x3f6e13(0x144)&&typeof Reflect[_0x3f6e13(0x13e)]===_0x3f6e13(0x121))return Reflect[_0x3f6e13(0x13e)](_0x13c093,_0x14b04c);};function a0_0x2300(_0x2d10c9,_0x550e73){_0x2d10c9=_0x2d10c9-0xfd;const _0x4e17f7=a0_0x4a24();let _0x1d7fd2=_0x4e17f7[_0x2d10c9];return _0x1d7fd2;}Object[a0_0x2b195b(0x113)](exports,a0_0x2b195b(0x122),{'value':!![]}),exports[a0_0x2b195b(0x152)]=void 0x0;function a0_0x4a24(){const _0x3aeb8e=['按数据库表生成分层\x20API\x20代码(--mode\x20app|basic|plugin,默认\x20app:表前缀\x20app_,控制器\x20admin,输出\x20src/app)','控制器目录名,逗号分隔多个,默认\x20admin;裸\x20flag\x20落\x20app/basic\x20根目录;空串只生成基础分层','前端全局\x20api\x20前缀(配合\x20--hasvue,如\x20$api):设置时不生成独立\x20api\x20文件,页面直接调\x20${前缀}.${模块}${表Pascal}.${方法}($api.Order.List\x20/\x20$api.helloincshOrders.List)适配\x20alova;缺省按原规则生成\x20vue/apis\x20独立\x20api\x20文件','[gen:api]\x20完成:','error','-t,\x20--tables\x20[tables]','src/','map','1561YukvaL','log','string','prototype','defineProperty','57514adXUdf','--vueapiprefix\x20[vueapiprefix]','表前缀过滤,默认\x20app\x20模式\x20\x27app_\x27、basic\x20模式\x20\x27basic_\x27、plugin\x20模式\x20\x27\x27(全表)','filter','parseVuedialog','anvero:gen','tableprefix','[gen:api]\x20产物目录:','design:returntype','design:paramtypes','connection','search','表名截断长度,默认\x20app\x20模式\x204(去\x20app_)、basic\x20模式\x206(去\x20basic_)、plugin\x20模式\x200','function','__esModule','4653980InMNQr','parseMode','trim','[gen:api]\x20未知模式\x20','toString','vuedialog','substr','app','design:type','plugin','src/apps/<模块>','-m,\x20--mode\x20[mode]','38184VXGiFW','hasvue','ApicreateService','parseConnection','--hasvue','4509891ZwTArk','6303195ycFflf','Option','parseTables','createPlugin','basic_','@midwayjs/commander','getOwnPropertyDescriptor','__decorate','351760GSHzkH','metadata','28609430MPvjYf','admin','parseController','mode','-s,\x20--substr\x20[substr]','object','basic','-p,\x20--tableprefix\x20[tableprefix]','Command','--connection\x20[connection]','parseTableprefix','-c,\x20--controller\x20[controller]','\x20全量匹配','parseSubstr','decorate','精确表名,逗号分隔多个;缺省按\x20tableprefix\x20全量匹配','171bQajrl','length','default','anveroGenCommand','parseVueapiprefix','split','createBasic','42zLBUgH','(((.+)+)+)+$','生成前端代码到\x20./vue;不带此参数不生成前端','生成模式\x20app|basic|plugin,默认\x20app(产物依次为\x20src/app、src/basic、src/apps/<模块>)','createApp','app_','按前缀\x20','exit'];a0_0x4a24=function(){return _0x3aeb8e;};return a0_0x4a24();}const core_1=require('@midwayjs/core'),commander_1=require(a0_0x2b195b(0x13a)),ApicreateService_1=require('../service/ApicreateService');let anveroGenCommand=class anveroGenCommand{[a0_0x2b195b(0x124)](_0x4ea343){return _0x4ea343;}[a0_0x2b195b(0x137)](_0x335af8){const _0x247252=a0_0x2b195b;return(_0x335af8||'')['split'](',')['map'](_0x56899f=>_0x56899f[_0x247252(0x125)]())[_0x247252(0x117)](Boolean);}['parseTableprefix'](_0x3ecacf){return typeof _0x3ecacf==='string'?_0x3ecacf:undefined;}[a0_0x2b195b(0x14c)](_0x36dd95){return typeof _0x36dd95==='string'&&_0x36dd95!==''&&Number['isFinite'](Number(_0x36dd95))?Number(_0x36dd95):undefined;}[a0_0x2b195b(0x141)](_0xa7854d){const _0x14beee=a0_0x2b195b;if(_0xa7854d===undefined)return!![];return(_0xa7854d||'')[_0x14beee(0xfd)](',')[_0x14beee(0x10e)](_0x15a463=>_0x15a463[_0x14beee(0x125)]())['filter'](Boolean);}['parseHasvue'](){return!![];}['parseVuedialog'](){return!![];}[a0_0x2b195b(0x153)](_0x22cc9b){const _0x561578=a0_0x2b195b;return typeof _0x22cc9b===_0x561578(0x111)&&_0x22cc9b?_0x22cc9b:undefined;}[a0_0x2b195b(0x132)](_0x3e1958){const _0x56e923=a0_0x2b195b;return typeof _0x3e1958===_0x56e923(0x111)&&_0x3e1958?_0x3e1958:undefined;}async['run'](_0x2e7ed2,_0x3f61fb){const _0x11cb22=a0_0x2b195b,_0x783e99=_0x3f61fb[_0x11cb22(0x142)]||'app';![_0x11cb22(0x12a),_0x11cb22(0x145),_0x11cb22(0x12c)]['includes'](_0x783e99)&&(console[_0x11cb22(0x10b)](_0x11cb22(0x126)+_0x783e99+',可选\x20app\x20|\x20basic\x20|\x20plugin'),process[_0x11cb22(0x106)](0x1));const _0x4bfc36={'app':{'tableprefix':_0x11cb22(0x104),'substr':0x4},'basic':{'tableprefix':_0x11cb22(0x139),'substr':0x6},'plugin':{'tableprefix':'','substr':0x0}},_0x2223b0=typeof _0x3f61fb[_0x11cb22(0x11a)]===_0x11cb22(0x111)?_0x3f61fb[_0x11cb22(0x11a)]:_0x4bfc36[_0x783e99][_0x11cb22(0x11a)],_0x3e72f3=Number['isFinite'](_0x3f61fb[_0x11cb22(0x129)])?_0x3f61fb[_0x11cb22(0x129)]:_0x4bfc36[_0x783e99][_0x11cb22(0x129)],_0x3d4c80=_0x3f61fb['controller']===undefined?[_0x11cb22(0x140)]:_0x3f61fb['controller'],_0x2e44f1=typeof _0x3f61fb[_0x11cb22(0x11e)]===_0x11cb22(0x111)?_0x3f61fb[_0x11cb22(0x11e)]:_0x11cb22(0x151),_0x43350e={'substr':_0x3e72f3,'tableprefix':_0x2223b0,'controller':_0x3d4c80,'connection':_0x2e44f1,'hasvue':_0x3f61fb[_0x11cb22(0x130)],'vuedialog':!!_0x3f61fb[_0x11cb22(0x128)],'vueapiprefix':_0x3f61fb['vueapiprefix']},_0xb3a094=_0x3f61fb['tables']||[],_0x5e834e=_0xb3a094['length']?_0xb3a094:[''];for(const _0x2a8d21 of _0x5e834e){const _0x1b5bbd={..._0x43350e,..._0x2a8d21?{'table':_0x2a8d21}:{}};if(_0x783e99===_0x11cb22(0x145))await this[_0x11cb22(0x131)][_0x11cb22(0xfe)](_0x1b5bbd);else _0x783e99===_0x11cb22(0x12c)?await this[_0x11cb22(0x131)][_0x11cb22(0x138)](_0x1b5bbd):await this[_0x11cb22(0x131)][_0x11cb22(0x103)](_0x1b5bbd);console['log'](_0x11cb22(0x10a)+(_0x2a8d21||_0x11cb22(0x105)+(_0x2223b0||'*')+_0x11cb22(0x14b)));}console[_0x11cb22(0x110)](_0x11cb22(0x11b)+(_0x783e99===_0x11cb22(0x12c)?_0x11cb22(0x12d):_0x11cb22(0x10d)+_0x783e99)),process[_0x11cb22(0x106)](0x0);}};exports['anveroGenCommand']=anveroGenCommand,__decorate([(0x0,core_1['Inject'])(),__metadata('design:type',ApicreateService_1['ApicreateService'])],anveroGenCommand[a0_0x2b195b(0x112)],a0_0x2b195b(0x131),void 0x0),__decorate([(0x0,commander_1[a0_0x2b195b(0x136)])({'flags':a0_0x2b195b(0x12e),'description':a0_0x2b195b(0x102)}),__metadata(a0_0x2b195b(0x12b),Function),__metadata(a0_0x2b195b(0x11d),[String]),__metadata(a0_0x2b195b(0x11c),void 0x0)],anveroGenCommand[a0_0x2b195b(0x112)],'parseMode',null),__decorate([(0x0,commander_1[a0_0x2b195b(0x136)])({'flags':a0_0x2b195b(0x10c),'description':a0_0x2b195b(0x14e)}),__metadata(a0_0x2b195b(0x12b),Function),__metadata(a0_0x2b195b(0x11d),[String]),__metadata(a0_0x2b195b(0x11c),void 0x0)],anveroGenCommand[a0_0x2b195b(0x112)],a0_0x2b195b(0x137),null),__decorate([(0x0,commander_1[a0_0x2b195b(0x136)])({'flags':a0_0x2b195b(0x146),'description':a0_0x2b195b(0x116)}),__metadata(a0_0x2b195b(0x12b),Function),__metadata('design:paramtypes',[String]),__metadata(a0_0x2b195b(0x11c),void 0x0)],anveroGenCommand[a0_0x2b195b(0x112)],a0_0x2b195b(0x149),null),__decorate([(0x0,commander_1[a0_0x2b195b(0x136)])({'flags':a0_0x2b195b(0x143),'description':a0_0x2b195b(0x120)}),__metadata(a0_0x2b195b(0x12b),Function),__metadata('design:paramtypes',[String]),__metadata(a0_0x2b195b(0x11c),void 0x0)],anveroGenCommand['prototype'],a0_0x2b195b(0x14c),null),__decorate([(0x0,commander_1[a0_0x2b195b(0x136)])({'flags':a0_0x2b195b(0x14a),'description':a0_0x2b195b(0x108)}),__metadata('design:type',Function),__metadata(a0_0x2b195b(0x11d),[String]),__metadata('design:returntype',void 0x0)],anveroGenCommand[a0_0x2b195b(0x112)],a0_0x2b195b(0x141),null),__decorate([(0x0,commander_1[a0_0x2b195b(0x136)])({'flags':a0_0x2b195b(0x133),'description':a0_0x2b195b(0x101)}),__metadata('design:type',Function),__metadata(a0_0x2b195b(0x11d),[]),__metadata(a0_0x2b195b(0x11c),void 0x0)],anveroGenCommand['prototype'],'parseHasvue',null),__decorate([(0x0,commander_1[a0_0x2b195b(0x136)])({'flags':'--vuedialog','description':'前端生成弹窗形态标记(配合\x20--hasvue)'}),__metadata(a0_0x2b195b(0x12b),Function),__metadata(a0_0x2b195b(0x11d),[]),__metadata(a0_0x2b195b(0x11c),void 0x0)],anveroGenCommand[a0_0x2b195b(0x112)],a0_0x2b195b(0x118),null),__decorate([(0x0,commander_1['Option'])({'flags':a0_0x2b195b(0x115),'description':a0_0x2b195b(0x109)}),__metadata(a0_0x2b195b(0x12b),Function),__metadata(a0_0x2b195b(0x11d),[String]),__metadata(a0_0x2b195b(0x11c),void 0x0)],anveroGenCommand[a0_0x2b195b(0x112)],'parseVueapiprefix',null),__decorate([(0x0,commander_1[a0_0x2b195b(0x136)])({'flags':a0_0x2b195b(0x148),'description':'typeorm\x20数据源名,默认\x20default'}),__metadata(a0_0x2b195b(0x12b),Function),__metadata(a0_0x2b195b(0x11d),[String]),__metadata(a0_0x2b195b(0x11c),void 0x0)],anveroGenCommand['prototype'],a0_0x2b195b(0x132),null),exports[a0_0x2b195b(0x152)]=anveroGenCommand=__decorate([(0x0,commander_1[a0_0x2b195b(0x147)])({'name':a0_0x2b195b(0x119),'description':a0_0x2b195b(0x107)})],anveroGenCommand);
|
package/dist/configuration.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
function a1_0x5096(){var _0x21150c=['CustomConfiguration','toString','decorator','prototype','function','2QAbABy','onReady','(((.+)+)+)+$','search','design:type','@midwayjs/core','6346080offhin','config','889191LTmAtL','apply','metadata','8QzPHqQ','__decorate','object','Configuration','934602OZlSUa','constructor','MidwayDecoratorService','5529167VSeJOZ','5455340UwwhtU','Inject','@midwayjs/commander','anvero-apihelper','9900603HcAKuI','decorate','defineProperty','165014OmUxgs','@anveroapi/typeorm'];a1_0x5096=function(){return _0x21150c;};return a1_0x5096();}var a1_0x14bdbd=a1_0x58c2;(function(_0x1ebe2e,_0x4dfbf6){var _0x599730=a1_0x58c2,_0x5db389=_0x1ebe2e();while(!![]){try{var _0x3eef48=-parseInt(_0x599730(0x1ad))/0x1*(parseInt(_0x599730(0x1a6))/0x2)+parseInt(_0x599730(0x1b5))/0x3*(parseInt(_0x599730(0x1b8))/0x4)+parseInt(_0x599730(0x1c0))/0x5+parseInt(_0x599730(0x1bc))/0x6+-parseInt(_0x599730(0x1bf))/0x7+parseInt(_0x599730(0x1b3))/0x8+-parseInt(_0x599730(0x1c4))/0x9;if(_0x3eef48===_0x4dfbf6)break;else _0x5db389['push'](_0x5db389['shift']());}catch(_0x1136ce){_0x5db389['push'](_0x5db389['shift']());}}}(a1_0x5096,0x8d187));var a1_0x26c2d3=(function(){var _0x1c647e=!![];return function(_0x5d1b92,_0x4a81c2){var _0x50a6da=_0x1c647e?function(){var _0x553cb2=a1_0x58c2;if(_0x4a81c2){var _0x3ee4bb=_0x4a81c2[_0x553cb2(0x1b6)](_0x5d1b92,arguments);return _0x4a81c2=null,_0x3ee4bb;}}:function(){};return _0x1c647e=![],_0x50a6da;};}()),a1_0x189dfa=a1_0x26c2d3(this,function(){var _0x503785=a1_0x58c2;return a1_0x189dfa[_0x503785(0x1a9)]()[_0x503785(0x1b0)](_0x503785(0x1af))[_0x503785(0x1a9)]()[_0x503785(0x1bd)](a1_0x189dfa)[_0x503785(0x1b0)](_0x503785(0x1af));});a1_0x189dfa();'use strict';var __decorate=this&&this[a1_0x14bdbd(0x1b9)]||function(_0x541f8c,_0x20abfd,_0x49fead,_0x39f7ea){var _0xc0e17d=a1_0x14bdbd,_0x3ca87f=arguments['length'],_0x34208e=_0x3ca87f<0x3?_0x20abfd:_0x39f7ea===null?_0x39f7ea=Object['getOwnPropertyDescriptor'](_0x20abfd,_0x49fead):_0x39f7ea,_0x1f53b6;if(typeof Reflect===_0xc0e17d(0x1ba)&&typeof Reflect[_0xc0e17d(0x1c5)]===_0xc0e17d(0x1ac))_0x34208e=Reflect[_0xc0e17d(0x1c5)](_0x541f8c,_0x20abfd,_0x49fead,_0x39f7ea);else{for(var _0x13535e=_0x541f8c['length']-0x1;_0x13535e>=0x0;_0x13535e--)if(_0x1f53b6=_0x541f8c[_0x13535e])_0x34208e=(_0x3ca87f<0x3?_0x1f53b6(_0x34208e):_0x3ca87f>0x3?_0x1f53b6(_0x20abfd,_0x49fead,_0x34208e):_0x1f53b6(_0x20abfd,_0x49fead))||_0x34208e;}return _0x3ca87f>0x3&&_0x34208e&&Object[_0xc0e17d(0x1c6)](_0x20abfd,_0x49fead,_0x34208e),_0x34208e;},__metadata=this&&this['__metadata']||function(_0x24f474,_0x9cb443){var _0x119468=a1_0x14bdbd;if(typeof Reflect===_0x119468(0x1ba)&&typeof Reflect[_0x119468(0x1b7)]==='function')return Reflect[_0x119468(0x1b7)](_0x24f474,_0x9cb443);};function a1_0x58c2(_0x70f8dd,_0x556f0d){_0x70f8dd=_0x70f8dd-0x1a6;var _0x221b6c=a1_0x5096();var _0x189dfa=_0x221b6c[_0x70f8dd];return _0x189dfa;}Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[a1_0x14bdbd(0x1a8)]=void 0x0;const core_1=require('@midwayjs/core'),core_2=require(a1_0x14bdbd(0x1b2)),typeorm=require(a1_0x14bdbd(0x1a7)),commander=require(a1_0x14bdbd(0x1c2));let CustomConfiguration=class CustomConfiguration{async[a1_0x14bdbd(0x1ae)](){}};exports[a1_0x14bdbd(0x1a8)]=CustomConfiguration,__decorate([(0x0,core_1[a1_0x14bdbd(0x1c1)])(),__metadata('design:type',core_2['MidwayConfigService'])],CustomConfiguration['prototype'],a1_0x14bdbd(0x1b4),void 0x0),__decorate([(0x0,core_1['Inject'])(),__metadata(a1_0x14bdbd(0x1b1),core_2[a1_0x14bdbd(0x1be)])],CustomConfiguration[a1_0x14bdbd(0x1ab)],a1_0x14bdbd(0x1aa),void 0x0),__decorate([(0x0,core_1['Inject'])(),__metadata('design:type',core_2['MidwayApplicationManager'])],CustomConfiguration[a1_0x14bdbd(0x1ab)],'application',void 0x0),exports[a1_0x14bdbd(0x1a8)]=CustomConfiguration=__decorate([(0x0,core_1[a1_0x14bdbd(0x1bb)])({'imports':[typeorm,commander],'namespace':a1_0x14bdbd(0x1c3)})],CustomConfiguration);
|
package/dist/helper.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a2_0x3631(){const _0x1d1b92=['4945808GEFylo','13257wdMMmw','4cqPxNi','length','timestamp','5304397nVgyTV','decimal','toString','longtext','date','tinyint','text','search','getEnum','float','14244ZoIEsM','split','(((.+)+)+)+$','string','apply','3ztcPvL','mediumtext','defineProperty','enum','22PGLJXw','replace','1072905nxUNPN','12Iwmjno','indexOf','number','constructor','2296qgAPpu','datetime','6966490JNwszc','36868nYTOct','420029EROxDC','__esModule','json'];a2_0x3631=function(){return _0x1d1b92;};return a2_0x3631();}const a2_0x21b988=a2_0x5de7;(function(_0xe97e9b,_0x4d4e5d){const _0x5b69c3=a2_0x5de7,_0x290780=_0xe97e9b();while(!![]){try{const _0x483c3d=parseInt(_0x5b69c3(0xf5))/0x1*(-parseInt(_0x5b69c3(0xfa))/0x2)+-parseInt(_0x5b69c3(0xe6))/0x3*(-parseInt(_0x5b69c3(0xf8))/0x4)+-parseInt(_0x5b69c3(0xec))/0x5*(parseInt(_0x5b69c3(0xed))/0x6)+-parseInt(_0x5b69c3(0xfd))/0x7+-parseInt(_0x5b69c3(0xf1))/0x8*(parseInt(_0x5b69c3(0xf9))/0x9)+parseInt(_0x5b69c3(0xf3))/0xa*(-parseInt(_0x5b69c3(0xea))/0xb)+parseInt(_0x5b69c3(0xe1))/0xc*(parseInt(_0x5b69c3(0xf4))/0xd);if(_0x483c3d===_0x4d4e5d)break;else _0x290780['push'](_0x290780['shift']());}catch(_0x26540a){_0x290780['push'](_0x290780['shift']());}}}(a2_0x3631,0xb97c0));function a2_0x5de7(_0x4078ef,_0x56423f){_0x4078ef=_0x4078ef-0xe1;const _0x45352b=a2_0x3631();let _0x55f2c7=_0x45352b[_0x4078ef];return _0x55f2c7;}const a2_0x371aa0=(function(){let _0x3f3ba1=!![];return function(_0x3ad4fd,_0x17f294){const _0x424a39=_0x3f3ba1?function(){const _0x2b5492=a2_0x5de7;if(_0x17f294){const _0x570755=_0x17f294[_0x2b5492(0xe5)](_0x3ad4fd,arguments);return _0x17f294=null,_0x570755;}}:function(){};return _0x3f3ba1=![],_0x424a39;};}()),a2_0x55f2c7=a2_0x371aa0(this,function(){const _0x35ffb6=a2_0x5de7;return a2_0x55f2c7[_0x35ffb6(0xff)]()[_0x35ffb6(0x104)](_0x35ffb6(0xe3))[_0x35ffb6(0xff)]()[_0x35ffb6(0xf0)](a2_0x55f2c7)[_0x35ffb6(0x104)](_0x35ffb6(0xe3));});a2_0x55f2c7();'use strict';Object[a2_0x21b988(0xe8)](exports,a2_0x21b988(0xf6),{'value':!![]}),exports['getProp']=getProp,exports[a2_0x21b988(0x105)]=getEnum;const columnTypes={'json':a2_0x21b988(0xf7),'char':a2_0x21b988(0xe4),'varchar':a2_0x21b988(0xe4),'text':a2_0x21b988(0x103),'longtext':a2_0x21b988(0x100),'mediumtext':a2_0x21b988(0xe7),'int':a2_0x21b988(0xef),'float':'float','double':a2_0x21b988(0x106),'decimal':a2_0x21b988(0xfe),'date':a2_0x21b988(0x101),'time':'datetime','datetime':a2_0x21b988(0xf2),'timestamp':a2_0x21b988(0xfc),'tinyint':a2_0x21b988(0x102)};function getProp(_0x572537){const _0x6c1ff8=a2_0x21b988;if(columnTypes['hasOwnProperty'](_0x572537))return columnTypes[_0x572537];else return _0x572537[_0x6c1ff8(0xee)]('(')>-0x1||_0x572537[_0x6c1ff8(0xee)]('\x20')>-0x1?(_0x572537=_0x572537['substr'](0x0,_0x572537['indexOf']('(')>-0x1?_0x572537[_0x6c1ff8(0xee)]('('):_0x572537[_0x6c1ff8(0xee)]('\x20')),columnTypes[_0x572537]||_0x572537):_0x6c1ff8(0xe4);}function getEnum(_0x3bcf90){const _0x46813a=a2_0x21b988;if(getProp(_0x3bcf90)==_0x46813a(0xe9))return _0x3bcf90['substr'](0x5,_0x3bcf90[_0x46813a(0xfb)]-0x6)[_0x46813a(0xeb)](/[\'|\"]/g,'')[_0x46813a(0xe2)](',');return[];}
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a3_0x19e6d8=a3_0x5551;(function(_0x4b134a,_0x379164){var _0x3888d5=a3_0x5551,_0x523bfc=_0x4b134a();while(!![]){try{var _0x7be7d6=-parseInt(_0x3888d5(0x91))/0x1*(parseInt(_0x3888d5(0x82))/0x2)+parseInt(_0x3888d5(0x83))/0x3*(parseInt(_0x3888d5(0x88))/0x4)+parseInt(_0x3888d5(0x84))/0x5*(parseInt(_0x3888d5(0x95))/0x6)+parseInt(_0x3888d5(0x93))/0x7+parseInt(_0x3888d5(0x8c))/0x8*(parseInt(_0x3888d5(0x94))/0x9)+parseInt(_0x3888d5(0x87))/0xa+-parseInt(_0x3888d5(0x8a))/0xb;if(_0x7be7d6===_0x379164)break;else _0x523bfc['push'](_0x523bfc['shift']());}catch(_0x5549d5){_0x523bfc['push'](_0x523bfc['shift']());}}}(a3_0x1566,0x82ab6));var a3_0x27688f=(function(){var _0x1656c6=!![];return function(_0x30000b,_0x1bca26){var _0x550a35=_0x1656c6?function(){if(_0x1bca26){var _0x5a8cc4=_0x1bca26['apply'](_0x30000b,arguments);return _0x1bca26=null,_0x5a8cc4;}}:function(){};return _0x1656c6=![],_0x550a35;};}()),a3_0x5c2b65=a3_0x27688f(this,function(){var _0x29c5b2=a3_0x5551;return a3_0x5c2b65['toString']()['search'](_0x29c5b2(0x85))[_0x29c5b2(0x89)]()[_0x29c5b2(0x86)](a3_0x5c2b65)[_0x29c5b2(0x81)](_0x29c5b2(0x85));});a3_0x5c2b65();'use strict';Object[a3_0x19e6d8(0x8f)](exports,'__esModule',{'value':!![]}),exports[a3_0x19e6d8(0x92)]=exports[a3_0x19e6d8(0x8d)]=exports[a3_0x19e6d8(0x8e)]=void 0x0;var ApicreateService_1=require(a3_0x19e6d8(0x90));Object[a3_0x19e6d8(0x8f)](exports,a3_0x19e6d8(0x8e),{'enumerable':!![],'get':function(){var _0x4de407=a3_0x19e6d8;return ApicreateService_1[_0x4de407(0x8e)];}});var anverogen_command_1=require('./command/anverogen.command');Object[a3_0x19e6d8(0x8f)](exports,a3_0x19e6d8(0x8d),{'enumerable':!![],'get':function(){return anverogen_command_1['anveroGenCommand'];}});var configuration_1=require(a3_0x19e6d8(0x8b));function a3_0x5551(_0x53e4f0,_0xa8134b){_0x53e4f0=_0x53e4f0-0x81;var _0x2e778f=a3_0x1566();var _0x5c2b65=_0x2e778f[_0x53e4f0];return _0x5c2b65;}Object[a3_0x19e6d8(0x8f)](exports,a3_0x19e6d8(0x92),{'enumerable':!![],'get':function(){return configuration_1['CustomConfiguration'];}});function a3_0x1566(){var _0x502263=['./service/ApicreateService','2TRjTLy','Configuration','7227605gLKmbN','146196cOfPnk','60lGpXhJ','search','1043318nuOtQC','2081526zxtKAd','172370Zosgrf','(((.+)+)+)+$','constructor','7208040aEccCT','4kXKyac','toString','17456703UhVdxK','./configuration','184gHyOXm','anveroGenCommand','ApicreateService','defineProperty'];a3_0x1566=function(){return _0x502263;};return a3_0x1566();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a4_0x2c53ab=a4_0x5cd8;function a4_0x5cd8(_0x1cc0f5,_0x144681){_0x1cc0f5=_0x1cc0f5-0x110;const _0x1a2be6=a4_0x3d35();let _0x50e13b=_0x1a2be6[_0x1cc0f5];return _0x50e13b;}(function(_0xa40376,_0x28f453){const _0x5eb827=a4_0x5cd8,_0x4291e1=_0xa40376();while(!![]){try{const _0x1d1bb6=parseInt(_0x5eb827(0x134))/0x1*(parseInt(_0x5eb827(0x18d))/0x2)+-parseInt(_0x5eb827(0x15a))/0x3+-parseInt(_0x5eb827(0x12a))/0x4*(-parseInt(_0x5eb827(0x187))/0x5)+-parseInt(_0x5eb827(0x156))/0x6+-parseInt(_0x5eb827(0x17d))/0x7+parseInt(_0x5eb827(0x11a))/0x8*(-parseInt(_0x5eb827(0x18c))/0x9)+parseInt(_0x5eb827(0x14f))/0xa;if(_0x1d1bb6===_0x28f453)break;else _0x4291e1['push'](_0x4291e1['shift']());}catch(_0x58b4df){_0x4291e1['push'](_0x4291e1['shift']());}}}(a4_0x3d35,0xee7b1));const a4_0x3149a2=(function(){let _0x47eba7=!![];return function(_0x1d3960,_0x5b9ef4){const _0x4527f8=_0x47eba7?function(){const _0x2353a5=a4_0x5cd8;if(_0x5b9ef4){const _0x289d6f=_0x5b9ef4[_0x2353a5(0x184)](_0x1d3960,arguments);return _0x5b9ef4=null,_0x289d6f;}}:function(){};return _0x47eba7=![],_0x4527f8;};}()),a4_0x50e13b=a4_0x3149a2(this,function(){const _0x2d44f=a4_0x5cd8;return a4_0x50e13b[_0x2d44f(0x155)]()[_0x2d44f(0x11b)](_0x2d44f(0x12e))[_0x2d44f(0x155)]()[_0x2d44f(0x147)](a4_0x50e13b)[_0x2d44f(0x11b)](_0x2d44f(0x12e));});a4_0x50e13b();'use strict';var __decorate=this&&this['__decorate']||function(_0x3055de,_0xa145ff,_0x4f2d71,_0x581ef6){const _0x1e6f8a=a4_0x5cd8;var _0x5911d9=arguments[_0x1e6f8a(0x14d)],_0xb02318=_0x5911d9<0x3?_0xa145ff:_0x581ef6===null?_0x581ef6=Object[_0x1e6f8a(0x181)](_0xa145ff,_0x4f2d71):_0x581ef6,_0x39d653;if(typeof Reflect==='object'&&typeof Reflect[_0x1e6f8a(0x189)]===_0x1e6f8a(0x125))_0xb02318=Reflect[_0x1e6f8a(0x189)](_0x3055de,_0xa145ff,_0x4f2d71,_0x581ef6);else{for(var _0x38f562=_0x3055de['length']-0x1;_0x38f562>=0x0;_0x38f562--)if(_0x39d653=_0x3055de[_0x38f562])_0xb02318=(_0x5911d9<0x3?_0x39d653(_0xb02318):_0x5911d9>0x3?_0x39d653(_0xa145ff,_0x4f2d71,_0xb02318):_0x39d653(_0xa145ff,_0x4f2d71))||_0xb02318;}return _0x5911d9>0x3&&_0xb02318&&Object['defineProperty'](_0xa145ff,_0x4f2d71,_0xb02318),_0xb02318;},__metadata=this&&this[a4_0x2c53ab(0x177)]||function(_0x406d1a,_0x4094a4){const _0x165620=a4_0x2c53ab;if(typeof Reflect===_0x165620(0x135)&&typeof Reflect[_0x165620(0x130)]==='function')return Reflect[_0x165620(0x130)](_0x406d1a,_0x4094a4);};Object[a4_0x2c53ab(0x14e)](exports,a4_0x2c53ab(0x153),{'value':!![]}),exports[a4_0x2c53ab(0x152)]=void 0x0;const fs=require('fs'),path=require(a4_0x2c53ab(0x182)),core_1=require(a4_0x2c53ab(0x12c)),typeorm_1=require(a4_0x2c53ab(0x14a)),core_2=require('@midwayjs/core'),Common_1=require(a4_0x2c53ab(0x133)),Event_1=require(a4_0x2c53ab(0x13e)),Search_1=require('../templateFun/Search'),Entities_1=require(a4_0x2c53ab(0x159)),Handler_1=require(a4_0x2c53ab(0x172)),Validator_1=require(a4_0x2c53ab(0x119)),Action_1=require(a4_0x2c53ab(0x120)),Api_1=require(a4_0x2c53ab(0x127)),Router_1=require(a4_0x2c53ab(0x138)),LayoutVue_1=require('../templateVue/LayoutVue'),Validator_2=require('../templateVue/Validator');function a4_0x3d35(){const _0x2d2a82=['\x20未连接','string','join','function','connection','../templateVue/Api','CreateModuleConfig','filter','804VZFCmy','TypeORMDataSourceManager','@midwayjs/core','moduleName','(((.+)+)+)+$','map','metadata','\x22\x20AND\x20table_name\x20=\x20\x27','hasDataSource','../templateFun/Common','773jrnFHy','object','createApp','tablestartUp','../templateVue/Router','Key','apporbasic','hasvue','toUpperCase','/index.vue','../templateFun/Event','startsWith','controllers','\x27,\x0a\x20\x20\x20\x20description:\x20\x27\x27,\x0a\x20\x20\x20\x20middleware:\x20[],\x0a}','die','tablestart','=\x20\x22','SHOW\x20FULL\x20COLUMNS\x20FROM\x20`','typeorm\x20数据源\x20','constructor','database','.js','@midwayjs/typeorm','apitest','tablestartUpShort2','length','defineProperty','43660920GwqfQZ','Comment','Inject','ApicreateService','__esModule','split','toString','10338576AqyTYr','tablestartUpShort','comment','../templateFun/Entities','2742879SMhobJ','export\x20default\x20{\x0a\x20\x20\x20\x20name:\x20\x27','replace','error','Primary','isDevelopmentEnvironment','/pages/','app','/apis/apps/','无法生成','substr','tablestartLowShort','toLowerCase','PRI','table','createAction','\x20不存在','tablestartLow','Config','module','/config.ts','SELECT\x20TABLE_COMMENT\x20as\x20`comment`\x20FROM\x20information_schema.TABLES\x20WHERE\x20TABLE_SCHEMA=\x22','ScopeEnum','dirname','../templateFun/Handler','\x22\x20AND\x20table_name\x20','getBaseDir','basedir','/apis/','__metadata','MainApp','vuedialog','getDataSource','prototype','Field','7054537SlMdOy','existsSync','dataSource','checkOption','getOwnPropertyDescriptor','path','.ts','apply','typeorm\x20未配置数据源\x20','substring','35585KLEpGZ','controller','decorate','trim','MidwayEnvironmentService','90qtzZUg','1212lyomrw','/pages/apps/','SELECT\x20TABLE_NAME\x20as\x20`table`\x20FROM\x20information_schema.TABLES\x20WHERE\x20TABLE_SCHEMA=\x22','environment','getConfig','isArray','LIKE\x20\x22','tableprefix','dataSourceManager','design:type','Provide','../templateFun/Validator','1314440ZoptBn','search','/apps/','config','\x20表注释不存在','default','../templateFun/Action','query'];a4_0x3d35=function(){return _0x2d2a82;};return a4_0x3d35();}let ApicreateService=class ApicreateService{async[a4_0x2c53ab(0x136)](_0x5f02bc){const _0x30d1b1=a4_0x2c53ab;return await this['checkOption'](_0x5f02bc),await this['createAction']({..._0x5f02bc,'apporbasic':_0x30d1b1(0x161)});}async['createBasic'](_0x7b665f){const _0x5d928e=a4_0x2c53ab;return await this['checkOption'](_0x7b665f),await this[_0x5d928e(0x169)]({..._0x7b665f,'apporbasic':'basic'});}async['createPlugin'](_0x39cf26){const _0x2ca32d=a4_0x2c53ab;return await this['checkOption'](_0x39cf26),await this[_0x2ca32d(0x169)]({..._0x39cf26,'module':!![]});}async[a4_0x2c53ab(0x169)](_0x63e8a2){const _0x24c3a3=a4_0x2c53ab;var _0x13747c,_0x2cb34c;!_0x63e8a2[_0x24c3a3(0x126)]&&(_0x63e8a2[_0x24c3a3(0x126)]=_0x24c3a3(0x11f));!_0x63e8a2[_0x24c3a3(0x13a)]&&(_0x63e8a2['apporbasic']=_0x24c3a3(0x161));const _0x21a4e0=this[_0x24c3a3(0x161)][_0x24c3a3(0x174)](),_0x585890=this[_0x24c3a3(0x116)][_0x24c3a3(0x17a)](_0x63e8a2['connection']),_0x3f3cdc=await _0x585890[_0x24c3a3(0x121)](_0x24c3a3(0x110)+this[_0x24c3a3(0x11d)]['dataSource'][_0x63e8a2['connection']]['database']+_0x24c3a3(0x173)+((_0x63e8a2===null||_0x63e8a2===void 0x0?void 0x0:_0x63e8a2[_0x24c3a3(0x168)])?_0x24c3a3(0x144)+_0x63e8a2[_0x24c3a3(0x168)]+'\x22':_0x24c3a3(0x114)+(_0x63e8a2[_0x24c3a3(0x115)]||'')+'%\x22'))||[];for(let _0x2341c9=0x0;_0x2341c9<_0x3f3cdc['length'];_0x2341c9++){const _0x262bb5=_0x3f3cdc[_0x2341c9][_0x24c3a3(0x168)];if((_0x63e8a2===null||_0x63e8a2===void 0x0?void 0x0:_0x63e8a2['table'])&&(_0x63e8a2===null||_0x63e8a2===void 0x0?void 0x0:_0x63e8a2['table'])!=_0x262bb5)continue;if((_0x63e8a2===null||_0x63e8a2===void 0x0?void 0x0:_0x63e8a2['tableprefix'])&&!(_0x262bb5===null||_0x262bb5===void 0x0?void 0x0:_0x262bb5[_0x24c3a3(0x13f)](_0x63e8a2[_0x24c3a3(0x115)])))continue;const _0x47cb4e=await _0x585890[_0x24c3a3(0x121)](_0x24c3a3(0x16f)+this[_0x24c3a3(0x11d)][_0x24c3a3(0x17f)][_0x63e8a2[_0x24c3a3(0x126)]][_0x24c3a3(0x148)]+_0x24c3a3(0x131)+_0x262bb5+'\x27')||[];if((_0x13747c=_0x47cb4e[0x0])===null||_0x13747c===void 0x0?void 0x0:_0x13747c[_0x24c3a3(0x158)]){const _0x323e34={'tablename':_0x262bb5,'Primary':{},'Fields':{},'Comment':(_0x2cb34c=_0x47cb4e[0x0])===null||_0x2cb34c===void 0x0?void 0x0:_0x2cb34c[_0x24c3a3(0x158)],'vuedialog':_0x63e8a2[_0x24c3a3(0x179)],'vueapiprefix':_0x63e8a2['vueapiprefix'],'apporbasic':_0x63e8a2[_0x24c3a3(0x13a)]};_0x323e34[_0x24c3a3(0x143)]=_0x262bb5[_0x24c3a3(0x164)]((_0x63e8a2===null||_0x63e8a2===void 0x0?void 0x0:_0x63e8a2[_0x24c3a3(0x164)])||0x0,_0x262bb5[_0x24c3a3(0x14d)]),_0x323e34['basedir']=(_0x63e8a2===null||_0x63e8a2===void 0x0?void 0x0:_0x63e8a2[_0x24c3a3(0x16d)])?_0x21a4e0+_0x24c3a3(0x11c)+_0x323e34[_0x24c3a3(0x143)]['split']('_')[0x0][_0x24c3a3(0x166)]():_0x21a4e0+'/'+_0x63e8a2[_0x24c3a3(0x13a)];const _0x5e33f7=_0x323e34['tablestart']['split']('_')[_0x24c3a3(0x129)](_0x20f3fc=>_0x20f3fc&&_0x20f3fc[_0x24c3a3(0x18a)]());(_0x63e8a2===null||_0x63e8a2===void 0x0?void 0x0:_0x63e8a2[_0x24c3a3(0x16d)])&&(await this[_0x24c3a3(0x128)](_0x323e34),_0x323e34['moduleName']=_0x5e33f7[0x0][_0x24c3a3(0x166)]());_0x323e34['tablestartLow']=_0x5e33f7['map'](_0x1c9a6e=>_0x1c9a6e['toLowerCase']())[_0x24c3a3(0x124)](''),_0x323e34[_0x24c3a3(0x137)]=_0x5e33f7[_0x24c3a3(0x12f)](_0x2ea3f7=>''+_0x2ea3f7[_0x24c3a3(0x186)](0x0,0x1)[_0x24c3a3(0x13c)]()+_0x2ea3f7[_0x24c3a3(0x186)](0x1)[_0x24c3a3(0x166)]())[_0x24c3a3(0x124)]('');(_0x323e34===null||_0x323e34===void 0x0?void 0x0:_0x323e34['moduleName'])&&_0x5e33f7[_0x24c3a3(0x14d)]>0x1&&_0x5e33f7[0x0][_0x24c3a3(0x166)]()==_0x323e34['moduleName']?(_0x323e34[_0x24c3a3(0x157)]=_0x323e34[_0x24c3a3(0x137)][_0x24c3a3(0x186)](_0x323e34[_0x24c3a3(0x12d)]['length'],_0x323e34[_0x24c3a3(0x137)][_0x24c3a3(0x14d)]),_0x323e34[_0x24c3a3(0x165)]=_0x323e34[_0x24c3a3(0x16b)]['substring'](_0x323e34['moduleName'][_0x24c3a3(0x14d)],_0x323e34[_0x24c3a3(0x16b)]['length'])):(_0x323e34[_0x24c3a3(0x157)]=_0x323e34[_0x24c3a3(0x137)],_0x323e34[_0x24c3a3(0x165)]=_0x323e34['tablestartLow']);_0x323e34[_0x24c3a3(0x14c)]=_0x323e34['tablestartUpShort']['replace'](/\/{2,}/g,'/')['match'](/[\/|A-Z]*[^A-Z]+/g)['join']('-')[_0x24c3a3(0x166)]()[_0x24c3a3(0x15c)](/\/\-/g,'/');for(let _0x344d83 of await _0x585890[_0x24c3a3(0x121)](_0x24c3a3(0x145)+_0x262bb5+'`')){_0x344d83[_0x24c3a3(0x139)]==_0x24c3a3(0x167)?_0x323e34[_0x24c3a3(0x15e)]=_0x344d83:_0x323e34['Fields'][_0x344d83[_0x24c3a3(0x17c)]]=_0x344d83;}if((_0x63e8a2===null||_0x63e8a2===void 0x0?void 0x0:_0x63e8a2[_0x24c3a3(0x188)])&&!fs[_0x24c3a3(0x17e)](_0x323e34[_0x24c3a3(0x175)]+'/exceptions/'+_0x323e34[_0x24c3a3(0x157)]+_0x24c3a3(0x183))){var _0x27073c=[];if(typeof(_0x63e8a2===null||_0x63e8a2===void 0x0?void 0x0:_0x63e8a2['controller'])==_0x24c3a3(0x123))_0x27073c=[_0x63e8a2===null||_0x63e8a2===void 0x0?void 0x0:_0x63e8a2[_0x24c3a3(0x188)]];else Array[_0x24c3a3(0x113)](_0x63e8a2===null||_0x63e8a2===void 0x0?void 0x0:_0x63e8a2[_0x24c3a3(0x188)])?_0x27073c=_0x63e8a2===null||_0x63e8a2===void 0x0?void 0x0:_0x63e8a2[_0x24c3a3(0x188)]:_0x27073c=[!![]];_0x323e34[_0x24c3a3(0x140)]=_0x27073c,await(0x0,Search_1[_0x24c3a3(0x11f)])(_0x323e34),await(0x0,Entities_1[_0x24c3a3(0x11f)])(_0x323e34),await(0x0,Common_1['default'])(_0x323e34),await(0x0,Event_1['default'])(_0x323e34),await(0x0,Handler_1['default'])(_0x323e34),await(0x0,Validator_1['default'])(_0x323e34);for(let _0x3f85b6 of _0x27073c){_0x323e34[_0x24c3a3(0x188)]=_0x3f85b6,await(0x0,Action_1[_0x24c3a3(0x11f)])(_0x323e34);}}if(_0x63e8a2===null||_0x63e8a2===void 0x0?void 0x0:_0x63e8a2[_0x24c3a3(0x13b)]){var _0x27073c=[];if(typeof(_0x63e8a2===null||_0x63e8a2===void 0x0?void 0x0:_0x63e8a2[_0x24c3a3(0x188)])==_0x24c3a3(0x123))_0x27073c=[_0x63e8a2===null||_0x63e8a2===void 0x0?void 0x0:_0x63e8a2['controller']];else Array[_0x24c3a3(0x113)](_0x63e8a2===null||_0x63e8a2===void 0x0?void 0x0:_0x63e8a2[_0x24c3a3(0x188)])?_0x27073c=_0x63e8a2===null||_0x63e8a2===void 0x0?void 0x0:_0x63e8a2[_0x24c3a3(0x188)]:_0x27073c=[!![]];for(let _0x10d3ce of _0x27073c){_0x323e34[_0x24c3a3(0x188)]=_0x10d3ce;let _0x160111=process['cwd']()+'/vue'+(typeof _0x323e34[_0x24c3a3(0x188)]==_0x24c3a3(0x123)?'/'+_0x323e34[_0x24c3a3(0x188)]:'');if(_0x323e34['vueapiprefix'])_0x160111=_0x160111+(_0x323e34[_0x24c3a3(0x12d)]?_0x24c3a3(0x18e)+_0x323e34[_0x24c3a3(0x12d)]+'/'+_0x323e34[_0x24c3a3(0x14c)]+'/index.vue':_0x24c3a3(0x160)+_0x323e34['apporbasic']+'/'+_0x323e34[_0x24c3a3(0x14c)]+_0x24c3a3(0x13d));else _0x323e34[_0x24c3a3(0x12d)]?_0x160111=_0x160111+(_0x24c3a3(0x162)+_0x323e34[_0x24c3a3(0x12d)]+_0x24c3a3(0x176)+_0x323e34[_0x24c3a3(0x157)]+_0x24c3a3(0x149)):_0x160111=_0x160111+(_0x24c3a3(0x176)+_0x323e34[_0x24c3a3(0x13a)]+_0x24c3a3(0x176)+_0x323e34[_0x24c3a3(0x157)]+'.js');!fs['existsSync'](_0x160111)&&(!_0x323e34['vueapiprefix']&&await(0x0,Api_1[_0x24c3a3(0x11f)])(_0x323e34),await(0x0,Router_1[_0x24c3a3(0x11f)])(_0x323e34),await(0x0,LayoutVue_1[_0x24c3a3(0x11f)])(_0x323e34),await(0x0,Validator_2[_0x24c3a3(0x11f)])(_0x323e34));}}}else console[_0x24c3a3(0x15d)]('表:'+_0x262bb5+_0x24c3a3(0x11e));}return _0x24c3a3(0x142);}async[a4_0x2c53ab(0x180)](_0x541075){const _0x4f9751=a4_0x2c53ab;var _0x121fa3,_0x13fccd,_0x3bb7eb;if(!this[_0x4f9751(0x111)][_0x4f9751(0x15f)]()||!((_0x121fa3=this[_0x4f9751(0x11d)])===null||_0x121fa3===void 0x0?void 0x0:_0x121fa3[_0x4f9751(0x17f)])||!this[_0x4f9751(0x161)][_0x4f9751(0x112)](_0x4f9751(0x14b)))throw new Error(_0x4f9751(0x163));!_0x541075['connection']&&(_0x541075[_0x4f9751(0x126)]=_0x4f9751(0x11f));if(!((_0x3bb7eb=(_0x13fccd=this[_0x4f9751(0x11d)])===null||_0x13fccd===void 0x0?void 0x0:_0x13fccd[_0x4f9751(0x17f)])===null||_0x3bb7eb===void 0x0?void 0x0:_0x3bb7eb[_0x541075[_0x4f9751(0x126)]]))throw new Error(_0x4f9751(0x185)+_0x541075[_0x4f9751(0x126)]);if(!this['dataSourceManager'][_0x4f9751(0x132)](_0x541075['connection']))throw new Error(_0x4f9751(0x146)+_0x541075['connection']+_0x4f9751(0x16a));if(!this[_0x4f9751(0x116)]['isConnected'](_0x541075['connection']))throw new Error(_0x4f9751(0x146)+_0x541075[_0x4f9751(0x126)]+_0x4f9751(0x122));return!![];}async[a4_0x2c53ab(0x128)](_0x39d6aa){const _0x140b8d=a4_0x2c53ab,_0x47cab2=_0x39d6aa[_0x140b8d(0x143)][_0x140b8d(0x154)]('_')[0x0][_0x140b8d(0x166)]();if(!fs['existsSync'](_0x39d6aa['basedir']+_0x140b8d(0x16e))){let _0x48cf16=_0x140b8d(0x15b)+(_0x39d6aa[_0x140b8d(0x150)]||_0x47cab2)+_0x140b8d(0x141);fs['mkdirSync'](path[_0x140b8d(0x171)](_0x39d6aa[_0x140b8d(0x175)]+'/config.ts'),{'recursive':!![]}),fs['writeFileSync'](_0x39d6aa['basedir']+_0x140b8d(0x16e),_0x48cf16,'utf-8');}}};exports['ApicreateService']=ApicreateService,__decorate([(0x0,core_2[a4_0x2c53ab(0x178)])(),__metadata('design:type',Object)],ApicreateService['prototype'],a4_0x2c53ab(0x161),void 0x0),__decorate([(0x0,core_2[a4_0x2c53ab(0x16c)])('typeorm'),__metadata(a4_0x2c53ab(0x117),Object)],ApicreateService[a4_0x2c53ab(0x17b)],a4_0x2c53ab(0x11d),void 0x0),__decorate([(0x0,core_2[a4_0x2c53ab(0x151)])(),__metadata(a4_0x2c53ab(0x117),core_1[a4_0x2c53ab(0x18b)])],ApicreateService['prototype'],a4_0x2c53ab(0x111),void 0x0),__decorate([(0x0,core_2[a4_0x2c53ab(0x151)])(),__metadata(a4_0x2c53ab(0x117),typeorm_1[a4_0x2c53ab(0x12b)])],ApicreateService[a4_0x2c53ab(0x17b)],a4_0x2c53ab(0x116),void 0x0),exports[a4_0x2c53ab(0x152)]=ApicreateService=__decorate([(0x0,core_2[a4_0x2c53ab(0x118)])(a4_0x2c53ab(0x152)),(0x0,core_2['Scope'])(core_2[a4_0x2c53ab(0x170)]['Singleton'])],ApicreateService);
|
|
1
|
+
function a4_0x4f55(){const _0x1fe889=['config','export\x20default\x20{\x0a\x20\x20\x20\x20name:\x20\x27','tablestartLow','prototype','Key','../templateVue/Router','table','tablestartUpShort','ScopeEnum','tablestart','vueapiprefix','\x20表注释不存在','../templateFun/Search','replace','SELECT\x20TABLE_NAME\x20as\x20`table`\x20FROM\x20information_schema.TABLES\x20WHERE\x20TABLE_SCHEMA=\x22','tablestartUpShort2','无法生成','string','basedir','controller','die','tablestartUp','MidwayEnvironmentService','moduleName','createApp','/apis/apps/','isConnected','typeorm\x20未配置数据源\x20','design:type','Singleton','object','Primary','default','length','390GURXcT','isArray','70fbyoYh','database','__esModule','function','dataSource','Fields','writeFileSync','defineProperty','../templateFun/Handler','../templateFun/Action','cwd','dirname','(((.+)+)+)+$','module','isDevelopmentEnvironment','\x20未连接','11264671KPBzSi','__metadata','getConfig','../templateVue/LayoutVue','map','\x22\x20AND\x20table_name\x20','search','2652zquknl','Provide','/apis/','/vue','createAction','query','constructor','vuedialog','198414ZxUYGD','metadata','join','1056582OKxQBZ','environment','substring','/apps/','createBasic','hasvue','connection','24955nVCfnN','\x22\x20AND\x20table_name\x20=\x20\x27','/pages/apps/','SHOW\x20FULL\x20COLUMNS\x20FROM\x20`','typeorm','\x20不存在','Field','filter','PRI','Inject','28UIrzne','../templateVue/Validator','/pages/','toLowerCase','dataSourceManager','app','startsWith','/exceptions/','12mrtrFg','getBaseDir','toUpperCase','Config','TypeORMDataSourceManager','toString','.js','/config.ts','=\x20\x22','286348wJmPzh','LIKE\x20\x22','path','hasDataSource','tableprefix','decorate','comment','existsSync','SELECT\x20TABLE_COMMENT\x20as\x20`comment`\x20FROM\x20information_schema.TABLES\x20WHERE\x20TABLE_SCHEMA=\x22','substr','basic','split','104983BUYuYR','/index.vue','3826016yelaGo','checkOption','../templateFun/Validator','apporbasic','ApicreateService','createPlugin','../templateFun/Event','error','controllers','apitest','MainApp','@midwayjs/core'];a4_0x4f55=function(){return _0x1fe889;};return a4_0x4f55();}const a4_0x2b4550=a4_0x30df;(function(_0x45779d,_0x1bad2b){const _0x18467d=a4_0x30df,_0x324da9=_0x45779d();while(!![]){try{const _0x58b255=-parseInt(_0x18467d(0x1c2))/0x1*(parseInt(_0x18467d(0x227))/0x2)+parseInt(_0x18467d(0x216))/0x3+parseInt(_0x18467d(0x1b6))/0x4*(parseInt(_0x18467d(0x1f4))/0x5)+-parseInt(_0x18467d(0x20b))/0x6*(-parseInt(_0x18467d(0x21d))/0x7)+-parseInt(_0x18467d(0x1c4))/0x8+parseInt(_0x18467d(0x213))/0x9*(parseInt(_0x18467d(0x1f2))/0xa)+-parseInt(_0x18467d(0x204))/0xb*(parseInt(_0x18467d(0x22f))/0xc);if(_0x58b255===_0x1bad2b)break;else _0x324da9['push'](_0x324da9['shift']());}catch(_0x325836){_0x324da9['push'](_0x324da9['shift']());}}}(a4_0x4f55,0xc7ac5));function a4_0x30df(_0x6103ce,_0x2c0d3b){_0x6103ce=_0x6103ce-0x1b6;const _0x46467c=a4_0x4f55();let _0x239684=_0x46467c[_0x6103ce];return _0x239684;}const a4_0x5f1f58=(function(){let _0x3327ea=!![];return function(_0x52240f,_0x5430cf){const _0x7d19e2=_0x3327ea?function(){if(_0x5430cf){const _0x514f75=_0x5430cf['apply'](_0x52240f,arguments);return _0x5430cf=null,_0x514f75;}}:function(){};return _0x3327ea=![],_0x7d19e2;};}()),a4_0x239684=a4_0x5f1f58(this,function(){const _0xe9afd=a4_0x30df;return a4_0x239684[_0xe9afd(0x234)]()[_0xe9afd(0x20a)](_0xe9afd(0x200))[_0xe9afd(0x234)]()[_0xe9afd(0x211)](a4_0x239684)[_0xe9afd(0x20a)](_0xe9afd(0x200));});a4_0x239684();'use strict';var __decorate=this&&this['__decorate']||function(_0x344828,_0x36dfdd,_0x3734ad,_0x10e15b){const _0x112b49=a4_0x30df;var _0x4fefbc=arguments[_0x112b49(0x1f1)],_0x5b2846=_0x4fefbc<0x3?_0x36dfdd:_0x10e15b===null?_0x10e15b=Object['getOwnPropertyDescriptor'](_0x36dfdd,_0x3734ad):_0x10e15b,_0x71fddc;if(typeof Reflect===_0x112b49(0x1ee)&&typeof Reflect[_0x112b49(0x1bb)]==='function')_0x5b2846=Reflect['decorate'](_0x344828,_0x36dfdd,_0x3734ad,_0x10e15b);else{for(var _0x234eab=_0x344828[_0x112b49(0x1f1)]-0x1;_0x234eab>=0x0;_0x234eab--)if(_0x71fddc=_0x344828[_0x234eab])_0x5b2846=(_0x4fefbc<0x3?_0x71fddc(_0x5b2846):_0x4fefbc>0x3?_0x71fddc(_0x36dfdd,_0x3734ad,_0x5b2846):_0x71fddc(_0x36dfdd,_0x3734ad))||_0x5b2846;}return _0x4fefbc>0x3&&_0x5b2846&&Object[_0x112b49(0x1fb)](_0x36dfdd,_0x3734ad,_0x5b2846),_0x5b2846;},__metadata=this&&this[a4_0x2b4550(0x205)]||function(_0x2ad2d0,_0x3701af){const _0x59c341=a4_0x2b4550;if(typeof Reflect===_0x59c341(0x1ee)&&typeof Reflect[_0x59c341(0x214)]===_0x59c341(0x1f7))return Reflect[_0x59c341(0x214)](_0x2ad2d0,_0x3701af);};Object[a4_0x2b4550(0x1fb)](exports,a4_0x2b4550(0x1f6),{'value':!![]}),exports['ApicreateService']=void 0x0;const fs=require('fs'),path=require(a4_0x2b4550(0x1b8)),core_1=require(a4_0x2b4550(0x1cf)),typeorm_1=require('@midwayjs/typeorm'),core_2=require(a4_0x2b4550(0x1cf)),Common_1=require('../templateFun/Common'),Event_1=require(a4_0x2b4550(0x1ca)),Search_1=require(a4_0x2b4550(0x1dc)),Entities_1=require('../templateFun/Entities'),Handler_1=require(a4_0x2b4550(0x1fc)),Validator_1=require(a4_0x2b4550(0x1c6)),Action_1=require(a4_0x2b4550(0x1fd)),Api_1=require('../templateVue/Api'),Router_1=require(a4_0x2b4550(0x1d5)),LayoutVue_1=require(a4_0x2b4550(0x207)),Validator_2=require(a4_0x2b4550(0x228));let ApicreateService=class ApicreateService{async[a4_0x2b4550(0x1e8)](_0x21ea38){const _0x43deeb=a4_0x2b4550;return await this[_0x43deeb(0x1c5)](_0x21ea38),await this[_0x43deeb(0x20f)]({..._0x21ea38,'apporbasic':_0x43deeb(0x22c)});}async[a4_0x2b4550(0x21a)](_0x3d91ab){const _0x295ce9=a4_0x2b4550;return await this[_0x295ce9(0x1c5)](_0x3d91ab),await this[_0x295ce9(0x20f)]({..._0x3d91ab,'apporbasic':_0x295ce9(0x1c0)});}async[a4_0x2b4550(0x1c9)](_0x323a01){const _0x102378=a4_0x2b4550;return await this[_0x102378(0x1c5)](_0x323a01),await this[_0x102378(0x20f)]({..._0x323a01,'module':!![]});}async[a4_0x2b4550(0x20f)](_0x5d4159){const _0x4b7a6f=a4_0x2b4550;var _0x1908ef,_0x2f01e6;!_0x5d4159['connection']&&(_0x5d4159[_0x4b7a6f(0x21c)]=_0x4b7a6f(0x1f0));!_0x5d4159[_0x4b7a6f(0x1c7)]&&(_0x5d4159[_0x4b7a6f(0x1c7)]=_0x4b7a6f(0x22c));const _0x478563=this[_0x4b7a6f(0x22c)][_0x4b7a6f(0x230)](),_0x29fcd9=this[_0x4b7a6f(0x22b)]['getDataSource'](_0x5d4159[_0x4b7a6f(0x21c)]),_0x30d684=await _0x29fcd9[_0x4b7a6f(0x210)](_0x4b7a6f(0x1de)+this[_0x4b7a6f(0x1d0)][_0x4b7a6f(0x1f8)][_0x5d4159[_0x4b7a6f(0x21c)]][_0x4b7a6f(0x1f5)]+_0x4b7a6f(0x209)+((_0x5d4159===null||_0x5d4159===void 0x0?void 0x0:_0x5d4159[_0x4b7a6f(0x1d6)])?_0x4b7a6f(0x237)+_0x5d4159[_0x4b7a6f(0x1d6)]+'\x22':_0x4b7a6f(0x1b7)+(_0x5d4159[_0x4b7a6f(0x1ba)]||'')+'%\x22'))||[];for(let _0xd6bc3c=0x0;_0xd6bc3c<_0x30d684[_0x4b7a6f(0x1f1)];_0xd6bc3c++){const _0x3972c8=_0x30d684[_0xd6bc3c][_0x4b7a6f(0x1d6)];if((_0x5d4159===null||_0x5d4159===void 0x0?void 0x0:_0x5d4159[_0x4b7a6f(0x1d6)])&&(_0x5d4159===null||_0x5d4159===void 0x0?void 0x0:_0x5d4159[_0x4b7a6f(0x1d6)])!=_0x3972c8)continue;if((_0x5d4159===null||_0x5d4159===void 0x0?void 0x0:_0x5d4159['tableprefix'])&&!(_0x3972c8===null||_0x3972c8===void 0x0?void 0x0:_0x3972c8[_0x4b7a6f(0x22d)](_0x5d4159[_0x4b7a6f(0x1ba)])))continue;const _0x2f6a16=await _0x29fcd9[_0x4b7a6f(0x210)](_0x4b7a6f(0x1be)+this[_0x4b7a6f(0x1d0)][_0x4b7a6f(0x1f8)][_0x5d4159[_0x4b7a6f(0x21c)]][_0x4b7a6f(0x1f5)]+_0x4b7a6f(0x21e)+_0x3972c8+'\x27')||[];if((_0x1908ef=_0x2f6a16[0x0])===null||_0x1908ef===void 0x0?void 0x0:_0x1908ef[_0x4b7a6f(0x1bc)]){const _0xbf27c9={'tablename':_0x3972c8,'Primary':{},'Fields':{},'Comment':(_0x2f01e6=_0x2f6a16[0x0])===null||_0x2f01e6===void 0x0?void 0x0:_0x2f01e6[_0x4b7a6f(0x1bc)],'vuedialog':_0x5d4159[_0x4b7a6f(0x212)],'vueapiprefix':_0x5d4159[_0x4b7a6f(0x1da)],'apporbasic':_0x5d4159[_0x4b7a6f(0x1c7)]};_0xbf27c9[_0x4b7a6f(0x1d9)]=_0x3972c8['substr']((_0x5d4159===null||_0x5d4159===void 0x0?void 0x0:_0x5d4159[_0x4b7a6f(0x1bf)])||0x0,_0x3972c8[_0x4b7a6f(0x1f1)]),_0xbf27c9[_0x4b7a6f(0x1e2)]=(_0x5d4159===null||_0x5d4159===void 0x0?void 0x0:_0x5d4159[_0x4b7a6f(0x201)])?_0x478563+_0x4b7a6f(0x219)+_0xbf27c9[_0x4b7a6f(0x1d9)][_0x4b7a6f(0x1c1)]('_')[0x0][_0x4b7a6f(0x22a)]():_0x478563+'/'+_0x5d4159['apporbasic'];const _0x42187f=_0xbf27c9['tablestart'][_0x4b7a6f(0x1c1)]('_')[_0x4b7a6f(0x224)](_0x11a2e6=>_0x11a2e6&&_0x11a2e6['trim']());(_0x5d4159===null||_0x5d4159===void 0x0?void 0x0:_0x5d4159['module'])&&(await this['CreateModuleConfig'](_0xbf27c9),_0xbf27c9[_0x4b7a6f(0x1e7)]=_0x42187f[0x0][_0x4b7a6f(0x22a)]());_0xbf27c9[_0x4b7a6f(0x1d2)]=_0x42187f[_0x4b7a6f(0x208)](_0x59cd91=>_0x59cd91[_0x4b7a6f(0x22a)]())['join'](''),_0xbf27c9[_0x4b7a6f(0x1e5)]=_0x42187f[_0x4b7a6f(0x208)](_0xf01bf8=>''+_0xf01bf8[_0x4b7a6f(0x218)](0x0,0x1)[_0x4b7a6f(0x231)]()+_0xf01bf8[_0x4b7a6f(0x218)](0x1)[_0x4b7a6f(0x22a)]())['join']('');(_0xbf27c9===null||_0xbf27c9===void 0x0?void 0x0:_0xbf27c9[_0x4b7a6f(0x1e7)])&&_0x42187f[_0x4b7a6f(0x1f1)]>0x1&&_0x42187f[0x0]['toLowerCase']()==_0xbf27c9[_0x4b7a6f(0x1e7)]?(_0xbf27c9[_0x4b7a6f(0x1d7)]=_0xbf27c9[_0x4b7a6f(0x1e5)][_0x4b7a6f(0x218)](_0xbf27c9[_0x4b7a6f(0x1e7)][_0x4b7a6f(0x1f1)],_0xbf27c9[_0x4b7a6f(0x1e5)][_0x4b7a6f(0x1f1)]),_0xbf27c9['tablestartLowShort']=_0xbf27c9[_0x4b7a6f(0x1d2)]['substring'](_0xbf27c9[_0x4b7a6f(0x1e7)][_0x4b7a6f(0x1f1)],_0xbf27c9['tablestartLow'][_0x4b7a6f(0x1f1)])):(_0xbf27c9[_0x4b7a6f(0x1d7)]=_0xbf27c9[_0x4b7a6f(0x1e5)],_0xbf27c9['tablestartLowShort']=_0xbf27c9['tablestartLow']);_0xbf27c9[_0x4b7a6f(0x1df)]=_0xbf27c9[_0x4b7a6f(0x1d7)]['replace'](/\/{2,}/g,'/')['match'](/[\/|A-Z]*[^A-Z]+/g)[_0x4b7a6f(0x215)]('-')[_0x4b7a6f(0x22a)]()[_0x4b7a6f(0x1dd)](/\/\-/g,'/');for(let _0x527ebe of await _0x29fcd9['query'](_0x4b7a6f(0x220)+_0x3972c8+'`')){_0x527ebe[_0x4b7a6f(0x1d4)]==_0x4b7a6f(0x225)?_0xbf27c9[_0x4b7a6f(0x1ef)]=_0x527ebe:_0xbf27c9[_0x4b7a6f(0x1f9)][_0x527ebe[_0x4b7a6f(0x223)]]=_0x527ebe;}if((_0x5d4159===null||_0x5d4159===void 0x0?void 0x0:_0x5d4159['controller'])&&!fs[_0x4b7a6f(0x1bd)](_0xbf27c9[_0x4b7a6f(0x1e2)]+_0x4b7a6f(0x22e)+_0xbf27c9[_0x4b7a6f(0x1d7)]+'.ts')){var _0xfa27ed=[];if(typeof(_0x5d4159===null||_0x5d4159===void 0x0?void 0x0:_0x5d4159[_0x4b7a6f(0x1e3)])==_0x4b7a6f(0x1e1))_0xfa27ed=[_0x5d4159===null||_0x5d4159===void 0x0?void 0x0:_0x5d4159['controller']];else Array[_0x4b7a6f(0x1f3)](_0x5d4159===null||_0x5d4159===void 0x0?void 0x0:_0x5d4159[_0x4b7a6f(0x1e3)])?_0xfa27ed=_0x5d4159===null||_0x5d4159===void 0x0?void 0x0:_0x5d4159[_0x4b7a6f(0x1e3)]:_0xfa27ed=[!![]];_0xbf27c9[_0x4b7a6f(0x1cc)]=_0xfa27ed,await(0x0,Search_1[_0x4b7a6f(0x1f0)])(_0xbf27c9),await(0x0,Entities_1[_0x4b7a6f(0x1f0)])(_0xbf27c9),await(0x0,Common_1[_0x4b7a6f(0x1f0)])(_0xbf27c9),await(0x0,Event_1[_0x4b7a6f(0x1f0)])(_0xbf27c9),await(0x0,Handler_1[_0x4b7a6f(0x1f0)])(_0xbf27c9),await(0x0,Validator_1[_0x4b7a6f(0x1f0)])(_0xbf27c9);for(let _0x511384 of _0xfa27ed){_0xbf27c9['controller']=_0x511384,await(0x0,Action_1[_0x4b7a6f(0x1f0)])(_0xbf27c9);}}if(_0x5d4159===null||_0x5d4159===void 0x0?void 0x0:_0x5d4159[_0x4b7a6f(0x21b)]){var _0xfa27ed=[];if(typeof(_0x5d4159===null||_0x5d4159===void 0x0?void 0x0:_0x5d4159['controller'])==_0x4b7a6f(0x1e1))_0xfa27ed=[_0x5d4159===null||_0x5d4159===void 0x0?void 0x0:_0x5d4159['controller']];else Array[_0x4b7a6f(0x1f3)](_0x5d4159===null||_0x5d4159===void 0x0?void 0x0:_0x5d4159[_0x4b7a6f(0x1e3)])?_0xfa27ed=_0x5d4159===null||_0x5d4159===void 0x0?void 0x0:_0x5d4159[_0x4b7a6f(0x1e3)]:_0xfa27ed=[!![]];for(let _0x3a6e8a of _0xfa27ed){_0xbf27c9[_0x4b7a6f(0x1e3)]=_0x3a6e8a;let _0x4cd157=process[_0x4b7a6f(0x1fe)]()+_0x4b7a6f(0x20e)+(typeof _0xbf27c9[_0x4b7a6f(0x1e3)]==_0x4b7a6f(0x1e1)?'/'+_0xbf27c9[_0x4b7a6f(0x1e3)]:'');if(_0xbf27c9['vueapiprefix'])_0x4cd157=_0x4cd157+(_0xbf27c9[_0x4b7a6f(0x1e7)]?_0x4b7a6f(0x21f)+_0xbf27c9[_0x4b7a6f(0x1e7)]+'/'+_0xbf27c9[_0x4b7a6f(0x1df)]+_0x4b7a6f(0x1c3):_0x4b7a6f(0x229)+_0xbf27c9[_0x4b7a6f(0x1c7)]+'/'+_0xbf27c9[_0x4b7a6f(0x1df)]+'/index.vue');else _0xbf27c9[_0x4b7a6f(0x1e7)]?_0x4cd157=_0x4cd157+(_0x4b7a6f(0x1e9)+_0xbf27c9['moduleName']+_0x4b7a6f(0x20d)+_0xbf27c9[_0x4b7a6f(0x1d7)]+_0x4b7a6f(0x235)):_0x4cd157=_0x4cd157+(_0x4b7a6f(0x20d)+_0xbf27c9['apporbasic']+_0x4b7a6f(0x20d)+_0xbf27c9[_0x4b7a6f(0x1d7)]+_0x4b7a6f(0x235));!fs['existsSync'](_0x4cd157)&&(!_0xbf27c9['vueapiprefix']&&await(0x0,Api_1['default'])(_0xbf27c9),await(0x0,Router_1[_0x4b7a6f(0x1f0)])(_0xbf27c9),await(0x0,LayoutVue_1['default'])(_0xbf27c9),await(0x0,Validator_2[_0x4b7a6f(0x1f0)])(_0xbf27c9));}}}else console[_0x4b7a6f(0x1cb)]('表:'+_0x3972c8+_0x4b7a6f(0x1db));}return _0x4b7a6f(0x1e4);}async[a4_0x2b4550(0x1c5)](_0x28b5f8){const _0x280895=a4_0x2b4550;var _0x18f85b,_0x122519,_0x398b4c;if(!this['environment'][_0x280895(0x202)]()||!((_0x18f85b=this[_0x280895(0x1d0)])===null||_0x18f85b===void 0x0?void 0x0:_0x18f85b[_0x280895(0x1f8)])||!this[_0x280895(0x22c)][_0x280895(0x206)](_0x280895(0x1cd)))throw new Error(_0x280895(0x1e0));!_0x28b5f8[_0x280895(0x21c)]&&(_0x28b5f8[_0x280895(0x21c)]=_0x280895(0x1f0));if(!((_0x398b4c=(_0x122519=this[_0x280895(0x1d0)])===null||_0x122519===void 0x0?void 0x0:_0x122519[_0x280895(0x1f8)])===null||_0x398b4c===void 0x0?void 0x0:_0x398b4c[_0x28b5f8[_0x280895(0x21c)]]))throw new Error(_0x280895(0x1eb)+_0x28b5f8[_0x280895(0x21c)]);if(!this[_0x280895(0x22b)][_0x280895(0x1b9)](_0x28b5f8[_0x280895(0x21c)]))throw new Error('typeorm\x20数据源\x20'+_0x28b5f8[_0x280895(0x21c)]+_0x280895(0x222));if(!this[_0x280895(0x22b)][_0x280895(0x1ea)](_0x28b5f8['connection']))throw new Error('typeorm\x20数据源\x20'+_0x28b5f8[_0x280895(0x21c)]+_0x280895(0x203));return!![];}async['CreateModuleConfig'](_0xffc60e){const _0x19de3c=a4_0x2b4550,_0x2a1847=_0xffc60e[_0x19de3c(0x1d9)][_0x19de3c(0x1c1)]('_')[0x0][_0x19de3c(0x22a)]();if(!fs[_0x19de3c(0x1bd)](_0xffc60e[_0x19de3c(0x1e2)]+_0x19de3c(0x236))){let _0x3fa283=_0x19de3c(0x1d1)+(_0xffc60e['Comment']||_0x2a1847)+'\x27,\x0a\x20\x20\x20\x20description:\x20\x27\x27,\x0a\x20\x20\x20\x20middleware:\x20[],\x0a}';fs['mkdirSync'](path[_0x19de3c(0x1ff)](_0xffc60e[_0x19de3c(0x1e2)]+_0x19de3c(0x236)),{'recursive':!![]}),fs[_0x19de3c(0x1fa)](_0xffc60e[_0x19de3c(0x1e2)]+'/config.ts',_0x3fa283,'utf-8');}}};exports[a4_0x2b4550(0x1c8)]=ApicreateService,__decorate([(0x0,core_2[a4_0x2b4550(0x1ce)])(),__metadata('design:type',Object)],ApicreateService[a4_0x2b4550(0x1d3)],a4_0x2b4550(0x22c),void 0x0),__decorate([(0x0,core_2[a4_0x2b4550(0x232)])(a4_0x2b4550(0x221)),__metadata(a4_0x2b4550(0x1ec),Object)],ApicreateService['prototype'],'config',void 0x0),__decorate([(0x0,core_2['Inject'])(),__metadata(a4_0x2b4550(0x1ec),core_1[a4_0x2b4550(0x1e6)])],ApicreateService[a4_0x2b4550(0x1d3)],a4_0x2b4550(0x217),void 0x0),__decorate([(0x0,core_2[a4_0x2b4550(0x226)])(),__metadata(a4_0x2b4550(0x1ec),typeorm_1[a4_0x2b4550(0x233)])],ApicreateService['prototype'],a4_0x2b4550(0x22b),void 0x0),exports[a4_0x2b4550(0x1c8)]=ApicreateService=__decorate([(0x0,core_2[a4_0x2b4550(0x20c)])(a4_0x2b4550(0x1c8)),(0x0,core_2['Scope'])(core_2[a4_0x2b4550(0x1d8)][a4_0x2b4550(0x1ed)])],ApicreateService);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a5_0x5a2501=a5_0x2ce2;(function(_0x307042,_0x4e763b){const _0x2682c2=a5_0x2ce2,_0x8818fa=_0x307042();while(!![]){try{const _0x5148f7=parseInt(_0x2682c2(0xfe))/0x1*(parseInt(_0x2682c2(0x102))/0x2)+-parseInt(_0x2682c2(0x114))/0x3+-parseInt(_0x2682c2(0x118))/0x4*(-parseInt(_0x2682c2(0xe9))/0x5)+parseInt(_0x2682c2(0xf5))/0x6+parseInt(_0x2682c2(0x116))/0x7+-parseInt(_0x2682c2(0x10c))/0x8*(parseInt(_0x2682c2(0xd5))/0x9)+-parseInt(_0x2682c2(0xee))/0xa;if(_0x5148f7===_0x4e763b)break;else _0x8818fa['push'](_0x8818fa['shift']());}catch(_0x26ada8){_0x8818fa['push'](_0x8818fa['shift']());}}}(a5_0x1667,0x25be0));const a5_0x72c14b=(function(){let _0x5525fd=!![];return function(_0x253417,_0x53222d){const _0x23647c=_0x5525fd?function(){const _0x5a29b2=a5_0x2ce2;if(_0x53222d){const _0x543235=_0x53222d[_0x5a29b2(0x11a)](_0x253417,arguments);return _0x53222d=null,_0x543235;}}:function(){};return _0x5525fd=![],_0x23647c;};}()),a5_0x573f5b=a5_0x72c14b(this,function(){const _0x3ff55e=a5_0x2ce2;return a5_0x573f5b[_0x3ff55e(0xf0)]()[_0x3ff55e(0x104)]('(((.+)+)+)+$')['toString']()[_0x3ff55e(0xd6)](a5_0x573f5b)[_0x3ff55e(0x104)](_0x3ff55e(0xdc));});a5_0x573f5b();'use strict';Object['defineProperty'](exports,a5_0x5a2501(0xf3),{'value':!![]}),exports['default']=default_1;function a5_0x2ce2(_0x4907f2,_0x4e7231){_0x4907f2=_0x4907f2-0xd5;const _0x2adfea=a5_0x1667();let _0x573f5b=_0x2adfea[_0x4907f2];return _0x573f5b;}function a5_0x1667(){const _0x2b676a=['substring','\x20\x20\x20\x20@Action.get(\x27列表\x27,\x20\x27list\x27)\x0a','Handler.remove(conditions);\x0a\x0a','DTOSearch)\x20{\x0a\x0a','../helper','545733snYSfE','constructor','\x20\x20\x20\x20\x20\x20\x20\x20const\x20conditions:\x20','import\x20{\x20Inject,\x20Action,\x20PageDTO\x20}\x20from\x20\x27anvero-api\x27;\x0a\x0a','utf-8','existsSync','Handler:\x20','(((.+)+)+)+$','Handler.create(params);\x0a\x0a','Handler\x20}\x20from\x20\x27',')\x20{\x0a','\x20\x20\x20\x20}\x0a\x0a\x0a','/Update\x27;\x0a\x0a','toUpperCase','mediumtext','Type','\x20\x20\x20\x20async\x20detail(','/validators/','\x20\x20\x20\x20async\x20create(params:\x20','\x20\x20\x20\x20@Action.get(\x27详情\x27,\x20\x27detail/:','5IuORHl','\x20\x20\x20\x20\x20\x20\x20\x20const\x20tmpModel\x20=\x20await\x20this.','\x20};\x0a\x0a','indexOf','Handler\x0a\x0a\x0a','3198940yFkLKj','string','toString','/Search\x27;\x0a','\x20\x20\x20\x20\x20\x20\x20\x20return\x20this.ctx.ok(tmpModel);\x0a','__esModule','DTOSearch\x20=\x20{\x20','1230006QtILFI','@/apps/','\x27)\x0a',',\x20params:\x20','import\x20{\x20','.ts','Handler.list(conditions,\x20pageinfo);\x0a\x0a','\x20\x20\x20\x20@Action.post(\x27修改\x27,\x20\x27edit/:','\x20\x20\x20\x20@Action.post(\x27添加\x27,\x20\x27add\x27)\x0a','2164zLlsAL','Handler.update(conditions,\x20params);\x0a\x0a','/Create\x27;\x0a','dirname','110DhPTmk','writeFileSync','search','DTOCreate\x20}\x20from\x20\x27','\x20\x20\x20\x20\x20\x20\x20\x20const\x20removes\x20=\x20await\x20this.','Field','DTOSearch\x20}\x20from\x20\x27','\x20\x20\x20\x20async\x20remove(conditions:\x20','DTOCreate)\x20{\x0a\x0a','number','8qhMDwK','Handler.detail(conditions);\x0a\x0a','/controller/','Controller\x20{\x0a\x0a','\x20\x20\x20\x20\x20\x20\x20\x20return\x20this.ctx.ok(removes);\x0a','DTOUpdate)\x20{\x0a','mkdirSync','getProp','612171mVyRGY','\x20\x20\x20\x20@Inject()\x20protected\x20','1735069uVfWJX','\x27;\x0a','669168hRAbMc','\x20\x20\x20\x20@Inject()\x20protected\x20ctx:\x20Context;\x0a\x0a','apply','import\x20{\x20Context\x20}\x20from\x20\x27@midwayjs/koa\x27;\x0a'];a5_0x1667=function(){return _0x2b676a;};return a5_0x1667();}const fs=require('fs'),path_1=require('path'),helper_1=require(a5_0x5a2501(0x120));async function default_1({controller:_0x337474,tablestartUp:_0x5dc2b6,tablestartUpShort:_0x2be93d,basedir:_0x179862,Primary:_0x204dc2,Comment:_0x557c84,moduleName:_0x4056b4,apporbasic:_0x25f051}){const _0x3ef5e0=a5_0x5a2501;if(_0x337474){const _0x3ce3f3=_0x179862+(typeof _0x337474==_0x3ef5e0(0xef)?_0x3ef5e0(0x10e)+_0x337474+'/'+_0x2be93d+_0x3ef5e0(0xfa):_0x3ef5e0(0x10e)+_0x2be93d+_0x3ef5e0(0xfa));if(!fs[_0x3ef5e0(0xda)](_0x3ce3f3)){let _0x5c5c0b='',_0x2d191a=['text',_0x3ef5e0(0xe3),'string'][_0x3ef5e0(0xec)]((0x0,helper_1[_0x3ef5e0(0x113)])(_0x204dc2[_0x3ef5e0(0xe4)]))==-0x1;_0x5c5c0b+=_0x3ef5e0(0x11b),_0x5c5c0b+=_0x3ef5e0(0xd8),_0x5c5c0b+=_0x3ef5e0(0xf9)+_0x5dc2b6+_0x3ef5e0(0xde)+(typeof _0x4056b4==_0x3ef5e0(0xef)?_0x3ef5e0(0xf6)+_0x4056b4:'@/'+_0x25f051)+'/handlers/'+_0x2be93d+_0x3ef5e0(0x117),_0x5c5c0b+=_0x3ef5e0(0xf9)+_0x5dc2b6+_0x3ef5e0(0x108)+(typeof _0x4056b4=='string'?_0x3ef5e0(0xf6)+_0x4056b4:'@/'+_0x25f051)+_0x3ef5e0(0xe6)+_0x2be93d+_0x3ef5e0(0xf1),_0x5c5c0b+=_0x3ef5e0(0xf9)+_0x5dc2b6+_0x3ef5e0(0x105)+(typeof _0x4056b4==_0x3ef5e0(0xef)?'@/apps/'+_0x4056b4:'@/'+_0x25f051)+_0x3ef5e0(0xe6)+_0x2be93d+_0x3ef5e0(0x100),_0x5c5c0b+=_0x3ef5e0(0xf9)+_0x5dc2b6+'DTOUpdate\x20}\x20from\x20\x27'+(typeof _0x4056b4==_0x3ef5e0(0xef)?'@/apps/'+_0x4056b4:'@/'+_0x25f051)+_0x3ef5e0(0xe6)+_0x2be93d+_0x3ef5e0(0xe1),_0x5c5c0b+='@Action(__filename,\x20\x27'+_0x557c84+_0x3ef5e0(0xf7),_0x5c5c0b+='export\x20class\x20'+(typeof _0x337474==_0x3ef5e0(0xef)?_0x337474[_0x3ef5e0(0x11c)](0x0,0x1)[_0x3ef5e0(0xe2)]()+_0x337474[_0x3ef5e0(0x11c)](0x1):'')+_0x5dc2b6+_0x3ef5e0(0x10f),_0x5c5c0b+=_0x3ef5e0(0x119),_0x5c5c0b+=_0x3ef5e0(0x115)+_0x5dc2b6+_0x3ef5e0(0xdb)+_0x5dc2b6+_0x3ef5e0(0xed),_0x5c5c0b+=_0x3ef5e0(0x11d),_0x5c5c0b+='\x20\x20\x20\x20async\x20index(conditions:\x20'+_0x5dc2b6+'DTOSearch,\x20pageinfo:\x20PageDTO)\x20{\x0a\x0a',_0x5c5c0b+='\x20\x20\x20\x20\x20\x20\x20\x20const\x20[pagelist,\x20pagetotal]\x20=\x20await\x20this.'+_0x5dc2b6+_0x3ef5e0(0xfb),_0x5c5c0b+='\x20\x20\x20\x20\x20\x20\x20\x20return\x20this.ctx.ok(pagelist,\x20{\x20pageinfo,\x20pagetotal\x20});\x0a',_0x5c5c0b+='\x20\x20\x20\x20}\x0a\x0a\x0a',_0x5c5c0b+=_0x3ef5e0(0xe8)+_0x204dc2[_0x3ef5e0(0x107)]+_0x3ef5e0(0xf7),_0x5c5c0b+=_0x3ef5e0(0xe5)+_0x204dc2[_0x3ef5e0(0x107)]+':\x20'+(_0x2d191a?_0x3ef5e0(0x10b):_0x3ef5e0(0xef))+_0x3ef5e0(0xdf),_0x5c5c0b+=_0x3ef5e0(0xd7)+_0x5dc2b6+_0x3ef5e0(0xf4)+_0x204dc2[_0x3ef5e0(0x107)]+'\x20};\x0a\x0a',_0x5c5c0b+=_0x3ef5e0(0xea)+_0x5dc2b6+_0x3ef5e0(0x10d),_0x5c5c0b+=_0x3ef5e0(0xf2),_0x5c5c0b+=_0x3ef5e0(0xe0),_0x5c5c0b+=_0x3ef5e0(0xfd),_0x5c5c0b+=_0x3ef5e0(0xe7)+_0x5dc2b6+_0x3ef5e0(0x10a),_0x5c5c0b+='\x20\x20\x20\x20\x20\x20\x20\x20const\x20tmpModel\x20=\x20await\x20this.'+_0x5dc2b6+_0x3ef5e0(0xdd),_0x5c5c0b+=_0x3ef5e0(0xf2),_0x5c5c0b+='\x20\x20\x20\x20}\x0a\x0a\x0a',_0x5c5c0b+=_0x3ef5e0(0xfc)+_0x204dc2[_0x3ef5e0(0x107)]+_0x3ef5e0(0xf7),_0x5c5c0b+='\x20\x20\x20\x20async\x20update('+_0x204dc2['Field']+':\x20'+(_0x2d191a?_0x3ef5e0(0x10b):_0x3ef5e0(0xef))+_0x3ef5e0(0xf8)+_0x5dc2b6+_0x3ef5e0(0x111),_0x5c5c0b+='\x20\x20\x20\x20\x20\x20\x20\x20const\x20conditions:\x20'+_0x5dc2b6+_0x3ef5e0(0xf4)+_0x204dc2[_0x3ef5e0(0x107)]+_0x3ef5e0(0xeb),_0x5c5c0b+=_0x3ef5e0(0xea)+_0x5dc2b6+_0x3ef5e0(0xff),_0x5c5c0b+=_0x3ef5e0(0xf2),_0x5c5c0b+=_0x3ef5e0(0xe0),_0x5c5c0b+='\x20\x20\x20\x20@Action.post(\x22删除\x22,\x20\x27remove\x27)\x0a',_0x5c5c0b+=_0x3ef5e0(0x109)+_0x5dc2b6+_0x3ef5e0(0x11f),_0x5c5c0b+=_0x3ef5e0(0x106)+_0x5dc2b6+_0x3ef5e0(0x11e),_0x5c5c0b+=_0x3ef5e0(0x110),_0x5c5c0b+=_0x3ef5e0(0xe0),_0x5c5c0b+='}',!fs['existsSync']((0x0,path_1[_0x3ef5e0(0x101)])(_0x3ce3f3))&&fs[_0x3ef5e0(0x112)]((0x0,path_1[_0x3ef5e0(0x101)])(_0x3ce3f3),{'recursive':!![]}),fs[_0x3ef5e0(0x103)](_0x3ce3f3,_0x5c5c0b,_0x3ef5e0(0xd9));}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a6_0x131bc9=a6_0x4bb7;(function(_0x5db04d,_0x5970eb){const _0x4a5e19=a6_0x4bb7,_0x564f0d=_0x5db04d();while(!![]){try{const _0xecb00=parseInt(_0x4a5e19(0x152))/0x1+parseInt(_0x4a5e19(0x158))/0x2*(parseInt(_0x4a5e19(0x135))/0x3)+-parseInt(_0x4a5e19(0x159))/0x4+parseInt(_0x4a5e19(0x13f))/0x5*(-parseInt(_0x4a5e19(0x140))/0x6)+-parseInt(_0x4a5e19(0x155))/0x7+-parseInt(_0x4a5e19(0x156))/0x8+parseInt(_0x4a5e19(0x14f))/0x9;if(_0xecb00===_0x5970eb)break;else _0x564f0d['push'](_0x564f0d['shift']());}catch(_0x27ff3b){_0x564f0d['push'](_0x564f0d['shift']());}}}(a6_0x57c5,0xaae28));const a6_0x10e8b5=(function(){let _0xb99398=!![];return function(_0x1a8099,_0x3794bf){const _0x1402a7=_0xb99398?function(){if(_0x3794bf){const _0x1cadb6=_0x3794bf['apply'](_0x1a8099,arguments);return _0x3794bf=null,_0x1cadb6;}}:function(){};return _0xb99398=![],_0x1402a7;};}()),a6_0x2997db=a6_0x10e8b5(this,function(){const _0x15dfd3=a6_0x4bb7;return a6_0x2997db[_0x15dfd3(0x141)]()[_0x15dfd3(0x14a)]('(((.+)+)+)+$')[_0x15dfd3(0x141)]()[_0x15dfd3(0x139)](a6_0x2997db)[_0x15dfd3(0x14a)](_0x15dfd3(0x154));});a6_0x2997db();'use strict';Object[a6_0x131bc9(0x13b)](exports,'__esModule',{'value':!![]}),exports[a6_0x131bc9(0x14e)]=default_1;const fs=require('fs'),path=require(a6_0x131bc9(0x157)),helper_1=require('../helper');function a6_0x57c5(){const _0x110a02=['Comment','3BnSoEL','-错误信息设置\x0a','writeFileSync','indexOf','constructor','.ts','defineProperty','\x27)\x0a','Type','\x20*\x20**/\x0a','740340RiGJcH','30RGGMnN','toString','/exceptions/','getProp','/**\x0a','_ON:\x20number\x20=\x201;\x0a\x0a','export\x20class\x20','dirname','\x27,\x20\x27开启','Enum\x20{\x0a\x0a','search','\x20*\x20','-常量设置\x0a','/enums/','default','18102501DTwtAg','\x20\x20\x20\x20static\x20readonly\x20','tinyint','1186168pfSRTP','\x27,\x20\x27关闭','(((.+)+)+)+$','2318225aENNGf','10725224bEprZZ','path','1001770tZiTeW','2345320nAKlzB','utf-8','Error\x20extends\x20AnnError\x20{\x0a\x0a','mkdirSync','existsSync'];a6_0x57c5=function(){return _0x110a02;};return a6_0x57c5();}async function default_1({tablestartUp:_0x5c4735,tablestartUpShort:_0x5f4cff,basedir:_0x2c3eda,Comment:_0x3844bf,Fields:_0x76d58c}){await entity_emum({'tablestartUp':_0x5c4735,'tablestartUpShort':_0x5f4cff,'basedir':_0x2c3eda,'Comment':_0x3844bf,'Fields':_0x76d58c}),await entity_exceptions({'tablestartUp':_0x5c4735,'tablestartUpShort':_0x5f4cff,'basedir':_0x2c3eda,'Comment':_0x3844bf});}function a6_0x4bb7(_0x3058eb,_0x33dd7f){_0x3058eb=_0x3058eb-0x133;const _0x524eac=a6_0x57c5();let _0x2997db=_0x524eac[_0x3058eb];return _0x2997db;}async function entity_emum({tablestartUp:_0x5c4251,tablestartUpShort:_0x1d90b7,basedir:_0x1cfc9c,Comment:_0x2c29ed,Fields:_0x7c57f9}){const _0x57b1ec=a6_0x131bc9,_0x28e402=_0x1cfc9c+(_0x57b1ec(0x14d)+_0x1d90b7+_0x57b1ec(0x13a));if(!fs[_0x57b1ec(0x133)](_0x28e402)){let _0x1eeca2='';_0x1eeca2+=_0x57b1ec(0x144),_0x1eeca2+=_0x57b1ec(0x14b)+_0x2c29ed+_0x57b1ec(0x14c),_0x1eeca2+=_0x57b1ec(0x13e),_0x1eeca2+='export\x20class\x20'+_0x5c4251+_0x57b1ec(0x149);for(let _0x4a2ee2 in _0x7c57f9){let _0x2a46f2=_0x7c57f9[_0x4a2ee2],_0x5cae78=(0x0,helper_1[_0x57b1ec(0x143)])(_0x2a46f2[_0x57b1ec(0x13d)]);[_0x57b1ec(0x151)][_0x57b1ec(0x138)](_0x5cae78)!=-0x1&&(_0x1eeca2+='\x20\x20\x20\x20@AnnEnumMsg(\x27'+_0x4a2ee2+_0x57b1ec(0x148)+_0x2a46f2[_0x57b1ec(0x134)]+_0x57b1ec(0x13c),_0x1eeca2+='\x20\x20\x20\x20static\x20readonly\x20'+_0x4a2ee2['toUpperCase']()+_0x57b1ec(0x145),_0x1eeca2+='\x20\x20\x20\x20@AnnEnumMsg(\x27'+_0x4a2ee2+_0x57b1ec(0x153)+_0x2a46f2[_0x57b1ec(0x134)]+_0x57b1ec(0x13c),_0x1eeca2+=_0x57b1ec(0x150)+_0x4a2ee2['toUpperCase']()+'_OFF:\x20number\x20=\x200;\x0a\x0a\x0a');}_0x1eeca2+='}',!fs['existsSync'](path[_0x57b1ec(0x147)](_0x28e402))&&fs['mkdirSync'](path[_0x57b1ec(0x147)](_0x28e402),{'recursive':!![]}),fs['writeFileSync'](_0x28e402,_0x1eeca2,_0x57b1ec(0x15a));}}async function entity_exceptions({tablestartUp:_0x1b4c8d,tablestartUpShort:_0x5707f8,basedir:_0x23fea0,Comment:_0x19d954}){const _0x4a3291=a6_0x131bc9,_0x18c681=_0x23fea0+(_0x4a3291(0x142)+_0x5707f8+_0x4a3291(0x13a));if(!fs[_0x4a3291(0x133)](_0x18c681)){let _0x5eccef='';_0x5eccef+=_0x4a3291(0x144),_0x5eccef+='\x20*\x20'+_0x19d954+_0x4a3291(0x136),_0x5eccef+=_0x4a3291(0x13e),_0x5eccef+=_0x4a3291(0x146)+_0x1b4c8d+_0x4a3291(0x15b),_0x5eccef+='}',!fs['existsSync'](path[_0x4a3291(0x147)](_0x18c681))&&fs[_0x4a3291(0x15c)](path['dirname'](_0x18c681),{'recursive':!![]}),fs[_0x4a3291(0x137)](_0x18c681,_0x5eccef,_0x4a3291(0x15a));}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a7_0x5691e0=a7_0x40f4;function a7_0x5152(){const _0x4e7274=['longtext','import\x20{\x20ProvideEntity,\x20ProvideSearch,\x20','\x20\x20\x20\x20@Column(\x27tinyint\x27,\x20{\x20comment:\x20\x27','Null','\x20\x20\x20\x20@Column(\x27timestamp\x27,\x20{\x20comment:\x20\x27',',\x20unique:\x20false\x20})\x0a','@ProvideEntity({\x20tableName:\x20\x27','\x20\x20\x20\x20@CreateDateColumn({\x20comment:\x20\x27创建时间\x27,\x20type:\x20\x27timestamp\x27\x20})\x0a','\x20*\x20','\x20\x20\x20\x20@Column(\x27longtext\x27,\x20{\x20comment:\x20\x27','timestamp','YES','export\x20class\x20','24015046RHldaD','created_at','true','getEnum','deleted_at','18iKNvVR','\x27]\x20})\x0a','\x27\x20},\x20{\x20orderBy:\x20{\x20displayorder:\x20\x27DESC\x27\x20}\x20})\x0a','updated_at','import\x20{\x20ProvideRepository,\x20Repository\x20}\x20from\x20\x27@anveroapi/typeorm\x27;\x0a','(((.+)+)+)+$','Search)\x0a','search','\x27;\x0a\x0a','567tcCtdt',':\x20string;\x0a\x0a','getProp','\x20\x20\x20\x20@Column(\x27double\x27,\x20{\x20comment:\x20\x27','\x27\x20|\x20\x27','text','\x27,\x20enum:\x20[\x27','Entity\x20}\x20from\x20\x27','\x20*\x20**/\x0a','-实体处理器\x0a','\x27,\x20precision:\x2010,\x20scale:\x202,\x20default:\x200.00,\x20nullable:\x20','\x20\x20\x20\x20deleted_at:\x20Date;\x0a\x0a','\x20\x20\x20\x20@PrimaryGeneratedColumn()\x0a','json','1720pEcfaj','\x20\x20\x20\x20@Column({\x20comment:\x20\x27','existsSync','-实体\x0a','enum','date','Type','12qlCAIw','\x20extends\x20Repository<',':\x20\x27','\x20\x20\x20\x20@Column(\x27float\x27,\x20{\x20comment:\x20\x27','Comment','/**\x0a','mkdirSync','%column%','33126tHlEhV','string','false','\x20\x20\x20\x20','\x20\x20\x20\x20@Column({\x20comment:\x20\x27默认显示排序\x27,\x20nullable:\x20true,\x20unique:\x20false\x20})\x0a',':\x20any\x20|\x20any[];\x0a\x0a','/entity.ts','import\x20{\x20','replace','176446TqSNBo','\x27,\x20nullable:\x20','join','77347uCUHQJ','15wWycCC','\x27,\x20default:\x20\x27','\x20\x20\x20\x20updated_at:\x20Date;\x0a\x0a','\x20\x20\x20\x20@DeleteDateColumn({\x20comment:\x20\x27删除时间\x27,\x20type:\x20\x27timestamp\x27,\x20select:\x20false\x20})\x0a','@/apps/','\x20\x20\x20\x20@Column(\x27date\x27,\x20{\x20comment:\x20\x27',',\x20Column\x20}\x20from\x20\x27@anveroapi/typeorm\x27;\x0a\x0a',':\x20number;\x0a\x0a','decimal','\x27,\x20length:\x20188\x20})\x0a','path','@ProvideSearch(','utf-8','\x20})\x0a','\x20\x20\x20\x20@Column(\x27mediumtext\x27,\x20{\x20comment:\x20\x27','\x20\x20\x20\x20@Column(\x27enum\x27,\x20{\x20comment:\x20\x27','__esModule','Search\x20}\x20from\x20\x27','//\x20import\x20{\x20ManyToOne,\x20JoinColumn\x20}\x20from\x20\x27@anveroapi/typeorm\x27;\x0a','import\x20{\x20CreateDateColumn,\x20UpdateDateColumn,\x20DeleteDateColumn\x20}\x20from\x20\x27@anveroapi/typeorm\x27;\x0a','toString','/entities/','\x20\x20\x20\x20@Column(\x27json\x27,\x20{\x20comment:\x20\x27','/searchs/','6795kqTHJi','mediumtext','/index.ts','4379100lvqWSt','Field','double','1453164ITMRVG','displayorder','/entity\x27;\x0a\x0a','tinyint','\x20\x20\x20\x20displayorder:\x20number;\x0a\x0a','../helper','dirname'];a7_0x5152=function(){return _0x4e7274;};return a7_0x5152();}(function(_0x26f582,_0x483b5d){const _0x3f7f3c=a7_0x40f4,_0x16b279=_0x26f582();while(!![]){try{const _0x14afe0=-parseInt(_0x3f7f3c(0xf4))/0x1+parseInt(_0x3f7f3c(0xf1))/0x2*(-parseInt(_0x3f7f3c(0x12c))/0x3)+parseInt(_0x3f7f3c(0x113))/0x4*(-parseInt(_0x3f7f3c(0xf5))/0x5)+-parseInt(_0x3f7f3c(0xe8))/0x6*(parseInt(_0x3f7f3c(0x135))/0x7)+-parseInt(_0x3f7f3c(0xd9))/0x8*(-parseInt(_0x3f7f3c(0x10d))/0x9)+parseInt(_0x3f7f3c(0x110))/0xa+parseInt(_0x3f7f3c(0x127))/0xb*(parseInt(_0x3f7f3c(0xe0))/0xc);if(_0x14afe0===_0x483b5d)break;else _0x16b279['push'](_0x16b279['shift']());}catch(_0x34ed30){_0x16b279['push'](_0x16b279['shift']());}}}(a7_0x5152,0x9c2ae));const a7_0x209fc7=(function(){let _0xdb1786=!![];return function(_0xe7de96,_0x29ac53){const _0x4c6fe1=_0xdb1786?function(){if(_0x29ac53){const _0x74a8b7=_0x29ac53['apply'](_0xe7de96,arguments);return _0x29ac53=null,_0x74a8b7;}}:function(){};return _0xdb1786=![],_0x4c6fe1;};}()),a7_0x3d1a5f=a7_0x209fc7(this,function(){const _0xc04baf=a7_0x40f4;return a7_0x3d1a5f[_0xc04baf(0x109)]()['search'](_0xc04baf(0x131))[_0xc04baf(0x109)]()['constructor'](a7_0x3d1a5f)[_0xc04baf(0x133)](_0xc04baf(0x131));});a7_0x3d1a5f();'use strict';Object['defineProperty'](exports,a7_0x5691e0(0x105),{'value':!![]}),exports['default']=default_1;const fs=require('fs'),path_1=require(a7_0x5691e0(0xff)),helper_1=require(a7_0x5691e0(0x118));async function default_1({tablename:_0x555a6d,tablestartUp:_0x3e1bfc,tablestartUpShort:_0x5c479d,basedir:_0x237cb4,Primary:_0x5f5108,Fields:_0xf01f4a,Comment:_0xba92bc,moduleName:_0x142e06,apporbasic:_0x13fb68}){await entity({'tablename':_0x555a6d,'tablestartUp':_0x3e1bfc,'tablestartUpShort':_0x5c479d,'basedir':_0x237cb4,'Primary':_0x5f5108,'Fields':_0xf01f4a,'Comment':_0xba92bc,'moduleName':_0x142e06,'apporbasic':_0x13fb68}),await repository({'tablestartUp':_0x3e1bfc,'tablestartUpShort':_0x5c479d,'basedir':_0x237cb4,'Comment':_0xba92bc,'moduleName':_0x142e06,'apporbasic':_0x13fb68});}function a7_0x40f4(_0x342d2f,_0xd3ec65){_0x342d2f=_0x342d2f-0xd0;const _0x267455=a7_0x5152();let _0x3d1a5f=_0x267455[_0x342d2f];return _0x3d1a5f;}async function entity({tablename:_0x48eaa8,tablestartUp:_0x5eecfc,tablestartUpShort:_0x4a42e7,basedir:_0xbed3b0,Primary:_0x375795,Fields:_0x3ea7f5,Comment:_0x33f0f0,moduleName:_0x2481ea,apporbasic:_0xf1960d}){const _0x187227=a7_0x5691e0,_0x50d64f=_0xbed3b0+(_0x187227(0x10a)+_0x4a42e7+_0x187227(0xee));if(!fs[_0x187227(0xdb)](_0x50d64f)){let _0x210796='',_0x49136c='',_0x552efa=[_0x187227(0xd0),'mediumtext',_0x187227(0xe9)]['indexOf']((0x0,helper_1[_0x187227(0x137)])(_0x375795[_0x187227(0xdf)]))==-0x1;_0x552efa?(_0x210796+=_0x187227(0xd7),_0x210796+=_0x187227(0xeb)+_0x375795[_0x187227(0x111)]+_0x187227(0xfc)):(_0x210796+='\x20\x20\x20\x20@PrimaryColumn({\x20comment:\x20\x27'+(_0x375795[_0x187227(0xe4)]||'标识')+_0x187227(0xfe),_0x210796+=_0x187227(0xeb)+_0x375795[_0x187227(0x111)]+_0x187227(0x136));for(let _0x4ac4ff in _0x3ea7f5){let _0x5d0b8f=_0x3ea7f5[_0x4ac4ff],_0x4e93b8=(0x0,helper_1[_0x187227(0x137)])(_0x5d0b8f['Type']);if(_0x5d0b8f[_0x187227(0x111)]==_0x187227(0x114)||_0x5d0b8f[_0x187227(0x111)]==_0x187227(0x128)||_0x5d0b8f['Field']==_0x187227(0x12f)||_0x5d0b8f[_0x187227(0x111)]==_0x187227(0x12b))continue;if(_0x4e93b8==_0x187227(0xd8))_0x210796+=_0x187227(0x10b)+_0x5d0b8f[_0x187227(0xe4)]+_0x187227(0xf2)+(_0x5d0b8f[_0x187227(0x11d)]==_0x187227(0x125)?'true':_0x187227(0xea))+_0x187227(0x11f),_0x210796+=_0x187227(0xeb)+_0x5d0b8f[_0x187227(0x111)]+_0x187227(0xed);else{if(_0x4e93b8==_0x187227(0xdd)){let _0x39f90d=(0x0,helper_1[_0x187227(0x12a)])(_0x5d0b8f['Type']);_0x210796+=_0x187227(0x104)+_0x5d0b8f['Comment']+_0x187227(0xf6)+(_0x39f90d[0x0]||'')+_0x187227(0xd1)+_0x39f90d[_0x187227(0xf3)]('\x27,\x20\x27')+_0x187227(0x12d),_0x210796+='\x20\x20\x20\x20'+_0x5d0b8f[_0x187227(0x111)]+_0x187227(0xe2)+_0x39f90d[_0x187227(0xf3)](_0x187227(0x139))+_0x187227(0x134);}else{if(_0x4e93b8=='float')_0x210796+=_0x187227(0xe3)+_0x5d0b8f[_0x187227(0xe4)]+_0x187227(0xd5)+(_0x5d0b8f['Null']==_0x187227(0x125)?_0x187227(0x129):_0x187227(0xea))+_0x187227(0x102),_0x210796+=_0x187227(0xeb)+_0x5d0b8f[_0x187227(0x111)]+_0x187227(0xfc);else{if(_0x4e93b8==_0x187227(0x112))_0x210796+=_0x187227(0x138)+_0x5d0b8f[_0x187227(0xe4)]+_0x187227(0xd5)+(_0x5d0b8f['Null']==_0x187227(0x125)?'true':'false')+_0x187227(0x102),_0x210796+=_0x187227(0xeb)+_0x5d0b8f['Field']+':\x20number;\x0a\x0a';else{if(_0x4e93b8==_0x187227(0xfd))_0x210796+='\x20\x20\x20\x20@Column(\x27decimal\x27,\x20{\x20comment:\x20\x27'+_0x5d0b8f[_0x187227(0xe4)]+'\x27,\x20precision:\x2024,\x20scale:\x202,\x20default:\x200.00,\x20nullable:\x20'+(_0x5d0b8f[_0x187227(0x11d)]==_0x187227(0x125)?_0x187227(0x129):'false')+_0x187227(0x102),_0x210796+=_0x187227(0xeb)+_0x5d0b8f[_0x187227(0x111)]+_0x187227(0xfc);else{if(_0x4e93b8=='number')_0x210796+=_0x187227(0xda)+_0x5d0b8f[_0x187227(0xe4)]+_0x187227(0xf2)+(_0x5d0b8f[_0x187227(0x11d)]==_0x187227(0x125)?_0x187227(0x129):_0x187227(0xea))+',\x20unique:\x20false\x20})\x0a',_0x210796+='\x20\x20\x20\x20'+_0x5d0b8f[_0x187227(0x111)]+_0x187227(0xfc);else{if(_0x4e93b8==_0x187227(0x116))_0x210796+=_0x187227(0x11c)+_0x5d0b8f['Comment']+_0x187227(0xf2)+(_0x5d0b8f[_0x187227(0x11d)]==_0x187227(0x125)?_0x187227(0x129):_0x187227(0xea))+_0x187227(0x11f),_0x210796+=_0x187227(0xeb)+_0x5d0b8f[_0x187227(0x111)]+_0x187227(0xfc);else{if(_0x4e93b8==_0x187227(0xde))_0x210796+=_0x187227(0xfa)+_0x5d0b8f[_0x187227(0xe4)]+_0x187227(0xf2)+(_0x5d0b8f['Null']==_0x187227(0x125)?'true':_0x187227(0xea))+_0x187227(0x102),_0x210796+='\x20\x20\x20\x20'+_0x5d0b8f[_0x187227(0x111)]+_0x187227(0x136);else{if(_0x4e93b8=='datetime')_0x210796+=_0x187227(0x11e)+_0x5d0b8f['Comment']+'\x27,\x20nullable:\x20'+(_0x5d0b8f['Null']==_0x187227(0x125)?_0x187227(0x129):'false')+_0x187227(0x102),_0x210796+='\x20\x20\x20\x20'+_0x5d0b8f[_0x187227(0x111)]+':\x20string;\x0a\x0a';else{if(_0x4e93b8==_0x187227(0x124))_0x210796+=_0x187227(0x11e)+_0x5d0b8f[_0x187227(0xe4)]+'\x27,\x20nullable:\x20'+(_0x5d0b8f[_0x187227(0x11d)]==_0x187227(0x125)?_0x187227(0x129):_0x187227(0xea))+_0x187227(0x102),_0x210796+=_0x187227(0xeb)+_0x5d0b8f[_0x187227(0x111)]+':\x20string;\x0a\x0a';else{if(_0x4e93b8==_0x187227(0xd0))_0x210796+='\x20\x20\x20\x20@Column(\x27text\x27,\x20{\x20comment:\x20\x27'+_0x5d0b8f[_0x187227(0xe4)]+_0x187227(0xf2)+(_0x5d0b8f['Null']=='YES'?_0x187227(0x129):'false')+_0x187227(0x11f),_0x210796+='\x20\x20\x20\x20'+_0x5d0b8f['Field']+_0x187227(0x136);else{if(_0x4e93b8==_0x187227(0x11a))_0x210796+=_0x187227(0x123)+_0x5d0b8f[_0x187227(0xe4)]+_0x187227(0xf2)+(_0x5d0b8f[_0x187227(0x11d)]=='YES'?_0x187227(0x129):_0x187227(0xea))+_0x187227(0x11f),_0x210796+=_0x187227(0xeb)+_0x5d0b8f[_0x187227(0x111)]+':\x20string;\x0a\x0a';else _0x4e93b8==_0x187227(0x10e)?(_0x210796+=_0x187227(0x103)+_0x5d0b8f['Comment']+_0x187227(0xf2)+(_0x5d0b8f[_0x187227(0x11d)]==_0x187227(0x125)?_0x187227(0x129):_0x187227(0xea))+_0x187227(0x11f),_0x210796+=_0x187227(0xeb)+_0x5d0b8f['Field']+_0x187227(0x136)):(_0x210796+=_0x187227(0xda)+_0x5d0b8f[_0x187227(0xe4)]+_0x187227(0xf2)+(_0x5d0b8f[_0x187227(0x11d)]==_0x187227(0x125)?'true':_0x187227(0xea))+_0x187227(0x11f),_0x210796+=_0x187227(0xeb)+_0x5d0b8f['Field']+_0x187227(0x136));}}}}}}}}}}}}_0x49136c+=_0x187227(0x107),_0x49136c+=_0x187227(0x108),_0x49136c+=_0x187227(0x11b)+(_0x552efa?'PrimaryGeneratedColumn':'PrimaryColumn')+_0x187227(0xfb),_0x49136c+='import\x20{\x20'+_0x5eecfc+_0x187227(0x106)+(typeof _0x2481ea==_0x187227(0xe9)?'@/apps/'+_0x2481ea:'@/'+_0xf1960d)+_0x187227(0x10c)+_0x4a42e7+_0x187227(0x134),_0x49136c+=_0x187227(0xe5),_0x49136c+=_0x187227(0x122)+_0x33f0f0+_0x187227(0xdc),_0x49136c+=_0x187227(0xd3),_0x49136c+=_0x187227(0x100)+_0x5eecfc+_0x187227(0x132),_0x49136c+=_0x187227(0x120)+_0x48eaa8+_0x187227(0x12e),_0x49136c+=_0x187227(0x126)+_0x5eecfc+'Entity\x20{\x0a\x0a',_0x49136c+=_0x187227(0xe7),_0x49136c+=_0x187227(0xec),_0x49136c+=_0x187227(0x117),_0x49136c+=_0x187227(0x121),_0x49136c+='\x20\x20\x20\x20created_at:\x20Date;\x0a\x0a',_0x49136c+='\x20\x20\x20\x20@UpdateDateColumn({\x20comment:\x20\x27修改时间\x27,\x20type:\x20\x27timestamp\x27\x20})\x0a',_0x49136c+=_0x187227(0xf7),_0x49136c+=_0x187227(0xf8),_0x49136c+=_0x187227(0xd6),_0x49136c+='}',_0x49136c=_0x49136c[_0x187227(0xf0)]('%column%',_0x210796),!fs[_0x187227(0xdb)]((0x0,path_1['dirname'])(_0x50d64f))&&fs['mkdirSync']((0x0,path_1[_0x187227(0x119)])(_0x50d64f),{'recursive':!![]}),fs['writeFileSync'](_0x50d64f,_0x49136c,'utf-8');}}async function repository({tablestartUp:_0x778a12,tablestartUpShort:_0x1d1fb9,basedir:_0x3de13a,Comment:_0x112d43,moduleName:_0x3eb7a3,apporbasic:_0x23a03f}){const _0xe3df35=a7_0x5691e0,_0x2b4997=_0x3de13a+(_0xe3df35(0x10a)+_0x1d1fb9+_0xe3df35(0x10f));if(!fs[_0xe3df35(0xdb)](_0x2b4997)){let _0x4ff781='';_0x4ff781+=_0xe3df35(0xe5),_0x4ff781+=_0xe3df35(0x122)+_0x112d43+_0xe3df35(0xd4),_0x4ff781+='\x20*\x20**/\x0a',_0x4ff781+=_0xe3df35(0x130),_0x4ff781+=_0xe3df35(0xef)+_0x778a12+_0xe3df35(0xd2)+(typeof _0x3eb7a3==_0xe3df35(0xe9)?_0xe3df35(0xf9)+_0x3eb7a3:'@/'+_0x23a03f)+'/entities/'+_0x1d1fb9+_0xe3df35(0x115),_0x4ff781+='@ProvideRepository('+_0x778a12+'Entity)\x0a',_0x4ff781+=_0xe3df35(0x126)+_0x778a12+_0xe3df35(0xe1)+_0x778a12+'Entity>{\x0a\x0a',_0x4ff781+='}',!fs[_0xe3df35(0xdb)]((0x0,path_1[_0xe3df35(0x119)])(_0x2b4997))&&fs[_0xe3df35(0xe6)]((0x0,path_1[_0xe3df35(0x119)])(_0x2b4997),{'recursive':!![]}),fs['writeFileSync'](_0x2b4997,_0x4ff781,_0xe3df35(0x101));}}
|
|
1
|
+
function a7_0x4d16(_0x38f281,_0x40511f){_0x38f281=_0x38f281-0x191;const _0x3c9222=a7_0x419e();let _0x4a374e=_0x3c9222[_0x38f281];return _0x4a374e;}const a7_0x546d49=a7_0x4d16;(function(_0x4741af,_0x48ad91){const _0x261b84=a7_0x4d16,_0x4e378d=_0x4741af();while(!![]){try{const _0x1c557a=parseInt(_0x261b84(0x1fa))/0x1*(-parseInt(_0x261b84(0x1af))/0x2)+parseInt(_0x261b84(0x1f7))/0x3*(-parseInt(_0x261b84(0x1dd))/0x4)+-parseInt(_0x261b84(0x1bc))/0x5*(-parseInt(_0x261b84(0x1e6))/0x6)+parseInt(_0x261b84(0x196))/0x7+parseInt(_0x261b84(0x1a1))/0x8*(parseInt(_0x261b84(0x19e))/0x9)+-parseInt(_0x261b84(0x1a8))/0xa+parseInt(_0x261b84(0x1ea))/0xb;if(_0x1c557a===_0x48ad91)break;else _0x4e378d['push'](_0x4e378d['shift']());}catch(_0x1172ce){_0x4e378d['push'](_0x4e378d['shift']());}}}(a7_0x419e,0xdf522));const a7_0xe465f4=(function(){let _0x416992=!![];return function(_0x25ebf9,_0x1dda8f){const _0x3e287e=_0x416992?function(){const _0x54f0ec=a7_0x4d16;if(_0x1dda8f){const _0x4eeff1=_0x1dda8f[_0x54f0ec(0x1dc)](_0x25ebf9,arguments);return _0x1dda8f=null,_0x4eeff1;}}:function(){};return _0x416992=![],_0x3e287e;};}()),a7_0x4a374e=a7_0xe465f4(this,function(){const _0x447bf4=a7_0x4d16;return a7_0x4a374e[_0x447bf4(0x1c9)]()['search']('(((.+)+)+)+$')['toString']()['constructor'](a7_0x4a374e)[_0x447bf4(0x1b3)]('(((.+)+)+)+$');});a7_0x4a374e();'use strict';Object[a7_0x546d49(0x199)](exports,a7_0x546d49(0x1e7),{'value':!![]}),exports[a7_0x546d49(0x1ee)]=default_1;function a7_0x419e(){const _0x134d3b=['\x27\x20|\x20\x27','13676069udmcKM','%column%','\x20\x20\x20\x20deleted_at:\x20Date;\x0a\x0a','existsSync','default','import\x20{\x20CreateDateColumn,\x20UpdateDateColumn,\x20DeleteDateColumn\x20}\x20from\x20\x27@anveroapi/typeorm\x27;\x0a','dirname','false','\x20})\x0a','Entity)\x0a','\x20\x20\x20\x20@Column(\x27double\x27,\x20{\x20comment:\x20\x27','\x20extends\x20Repository<',',\x20unique:\x20false\x20})\x0a','66RKhLfo','\x20\x20\x20\x20@Column({\x20comment:\x20\x27','\x20\x20\x20\x20@DeleteDateColumn({\x20comment:\x20\x27删除时间\x27,\x20type:\x20\x27timestamp\x27,\x20select:\x20false\x20})\x0a','1jSukmz','mediumtext','mkdirSync','-实体处理器\x0a','\x20\x20\x20\x20@CreateDateColumn({\x20comment:\x20\x27创建时间\x27,\x20type:\x20\x27timestamp\x27\x20})\x0a','@ProvideRepository(','6191339zNWyew','\x27;\x0a\x0a','\x27,\x20\x27','defineProperty','\x27\x20},\x20{\x20orderBy:\x20{\x20displayorder:\x20\x27DESC\x27\x20}\x20})\x0a','writeFileSync','import\x20{\x20','displayorder','9iLslwB','\x20\x20\x20\x20@Column(\x27float\x27,\x20{\x20comment:\x20\x27','@/apps/','11992216dcgvls','Field','\x20\x20\x20\x20@Column(\x27tinyint\x27,\x20{\x20comment:\x20\x27','longtext','\x20\x20\x20\x20@Column(\x27json\x27,\x20{\x20comment:\x20\x27','Search\x20}\x20from\x20\x27','/entity.ts','12765410KUieKM','-实体\x0a','@ProvideEntity({\x20tableName:\x20\x27','replace','decimal','date','created_at','3367638IYCJUk','\x20\x20\x20\x20@PrimaryGeneratedColumn()\x0a','export\x20class\x20','tinyint','search','indexOf','\x27,\x20precision:\x2010,\x20scale:\x202,\x20default:\x200.00,\x20nullable:\x20','json','\x20\x20\x20\x20@PrimaryColumn({\x20comment:\x20\x27','Null','\x20\x20\x20\x20displayorder:\x20number;\x0a\x0a','\x20*\x20**/\x0a','\x20\x20\x20\x20@Column(\x27longtext\x27,\x20{\x20comment:\x20\x27','1527275UYhDIN','string','\x20\x20\x20\x20@Column(\x27enum\x27,\x20{\x20comment:\x20\x27','\x20\x20\x20\x20@Column({\x20comment:\x20\x27默认显示排序\x27,\x20nullable:\x20true,\x20unique:\x20false\x20})\x0a','../helper','/**\x0a','double',':\x20any\x20|\x20any[];\x0a\x0a','/entity\x27;\x0a\x0a','\x20\x20\x20\x20@Column(\x27timestamp\x27,\x20{\x20comment:\x20\x27','\x20\x20\x20\x20@Column(\x27decimal\x27,\x20{\x20comment:\x20\x27','Entity>{\x0a\x0a','\x27,\x20enum:\x20[\x27','toString','Comment',':\x20number;\x0a\x0a','\x27,\x20length:\x20188\x20})\x0a','\x20\x20\x20\x20@UpdateDateColumn({\x20comment:\x20\x27修改时间\x27,\x20type:\x20\x27timestamp\x27\x20})\x0a','YES','\x20\x20\x20\x20@Column(\x27date\x27,\x20{\x20comment:\x20\x27','true','\x20\x20\x20\x20created_at:\x20Date;\x0a\x0a','\x20\x20\x20\x20updated_at:\x20Date;\x0a\x0a','/index.ts','Type','Search)\x0a','\x20\x20\x20\x20@Column(\x27text\x27,\x20{\x20comment:\x20\x27','\x20\x20\x20\x20@Column(\x27mediumtext\x27,\x20{\x20comment:\x20\x27','/entities/','\x27,\x20nullable:\x20','\x20\x20\x20\x20','PrimaryGeneratedColumn','apply','10392kPzKyy',':\x20string;\x0a\x0a','\x27]\x20})\x0a',':\x20\x27','float','path','import\x20{\x20ProvideEntity,\x20ProvideSearch,\x20','Entity\x20}\x20from\x20\x27','text','6LsZhoH','__esModule','getProp'];a7_0x419e=function(){return _0x134d3b;};return a7_0x419e();}const fs=require('fs'),path_1=require(a7_0x546d49(0x1e2)),helper_1=require(a7_0x546d49(0x1c0));async function default_1({tablename:_0x1dca3c,tablestartUp:_0x378083,tablestartUpShort:_0x1c96d8,basedir:_0x3dc051,Primary:_0x477892,Fields:_0x565c54,Comment:_0x308f48,moduleName:_0x17d59a,apporbasic:_0x51ebec}){await entity({'tablename':_0x1dca3c,'tablestartUp':_0x378083,'tablestartUpShort':_0x1c96d8,'basedir':_0x3dc051,'Primary':_0x477892,'Fields':_0x565c54,'Comment':_0x308f48,'moduleName':_0x17d59a,'apporbasic':_0x51ebec}),await repository({'tablestartUp':_0x378083,'tablestartUpShort':_0x1c96d8,'basedir':_0x3dc051,'Comment':_0x308f48,'moduleName':_0x17d59a,'apporbasic':_0x51ebec});}async function entity({tablename:_0x4fce97,tablestartUp:_0x211e7f,tablestartUpShort:_0x1d9f49,basedir:_0x4e76da,Primary:_0x562a06,Fields:_0x2d7da5,Comment:_0x248d94,moduleName:_0x1f4f46,apporbasic:_0x50ead4}){const _0xd48b4c=a7_0x546d49,_0x14b5c6=_0x4e76da+(_0xd48b4c(0x1d8)+_0x1d9f49+_0xd48b4c(0x1a7));if(!fs[_0xd48b4c(0x1ed)](_0x14b5c6)){let _0x2e5e82='',_0x173e01='',_0x238673=[_0xd48b4c(0x1e5),_0xd48b4c(0x191),_0xd48b4c(0x1bd)][_0xd48b4c(0x1b4)]((0x0,helper_1['getProp'])(_0x562a06[_0xd48b4c(0x1d4)]))==-0x1;_0x238673?(_0x2e5e82+=_0xd48b4c(0x1b0),_0x2e5e82+=_0xd48b4c(0x1da)+_0x562a06[_0xd48b4c(0x1a2)]+_0xd48b4c(0x1cb)):(_0x2e5e82+=_0xd48b4c(0x1b7)+(_0x562a06['Comment']||'标识')+_0xd48b4c(0x1cc),_0x2e5e82+=_0xd48b4c(0x1da)+_0x562a06['Field']+_0xd48b4c(0x1de));for(let _0x5dd79a in _0x2d7da5){let _0x4e4a5e=_0x2d7da5[_0x5dd79a],_0x59658c=(0x0,helper_1[_0xd48b4c(0x1e8)])(_0x4e4a5e[_0xd48b4c(0x1d4)]);if(_0x4e4a5e[_0xd48b4c(0x1a2)]==_0xd48b4c(0x19d)||_0x4e4a5e[_0xd48b4c(0x1a2)]==_0xd48b4c(0x1ae)||_0x4e4a5e['Field']=='updated_at'||_0x4e4a5e[_0xd48b4c(0x1a2)]=='deleted_at')continue;if(_0x59658c==_0xd48b4c(0x1b6))_0x2e5e82+=_0xd48b4c(0x1a5)+_0x4e4a5e[_0xd48b4c(0x1ca)]+'\x27,\x20nullable:\x20'+(_0x4e4a5e[_0xd48b4c(0x1b8)]==_0xd48b4c(0x1ce)?_0xd48b4c(0x1d0):_0xd48b4c(0x1f1))+_0xd48b4c(0x1f6),_0x2e5e82+=_0xd48b4c(0x1da)+_0x4e4a5e[_0xd48b4c(0x1a2)]+_0xd48b4c(0x1c3);else{if(_0x59658c=='enum'){let _0x4a2ac1=(0x0,helper_1['getEnum'])(_0x4e4a5e['Type']);_0x2e5e82+=_0xd48b4c(0x1be)+_0x4e4a5e[_0xd48b4c(0x1ca)]+'\x27,\x20default:\x20\x27'+(_0x4a2ac1[0x0]||'')+_0xd48b4c(0x1c8)+_0x4a2ac1['join'](_0xd48b4c(0x198))+_0xd48b4c(0x1df),_0x2e5e82+='\x20\x20\x20\x20'+_0x4e4a5e['Field']+_0xd48b4c(0x1e0)+_0x4a2ac1['join'](_0xd48b4c(0x1e9))+'\x27;\x0a\x0a';}else{if(_0x59658c==_0xd48b4c(0x1e1))_0x2e5e82+=_0xd48b4c(0x19f)+_0x4e4a5e[_0xd48b4c(0x1ca)]+_0xd48b4c(0x1b5)+(_0x4e4a5e[_0xd48b4c(0x1b8)]==_0xd48b4c(0x1ce)?_0xd48b4c(0x1d0):_0xd48b4c(0x1f1))+_0xd48b4c(0x1f2),_0x2e5e82+=_0xd48b4c(0x1da)+_0x4e4a5e[_0xd48b4c(0x1a2)]+_0xd48b4c(0x1cb);else{if(_0x59658c==_0xd48b4c(0x1c2))_0x2e5e82+=_0xd48b4c(0x1f4)+_0x4e4a5e[_0xd48b4c(0x1ca)]+_0xd48b4c(0x1b5)+(_0x4e4a5e[_0xd48b4c(0x1b8)]==_0xd48b4c(0x1ce)?_0xd48b4c(0x1d0):_0xd48b4c(0x1f1))+_0xd48b4c(0x1f2),_0x2e5e82+=_0xd48b4c(0x1da)+_0x4e4a5e[_0xd48b4c(0x1a2)]+':\x20number;\x0a\x0a';else{if(_0x59658c==_0xd48b4c(0x1ac))_0x2e5e82+=_0xd48b4c(0x1c6)+_0x4e4a5e[_0xd48b4c(0x1ca)]+'\x27,\x20precision:\x2024,\x20scale:\x202,\x20default:\x200.00,\x20nullable:\x20'+(_0x4e4a5e[_0xd48b4c(0x1b8)]==_0xd48b4c(0x1ce)?_0xd48b4c(0x1d0):'false')+'\x20})\x0a',_0x2e5e82+=_0xd48b4c(0x1da)+_0x4e4a5e['Field']+':\x20number;\x0a\x0a';else{if(_0x59658c=='number')_0x2e5e82+=_0xd48b4c(0x1f8)+_0x4e4a5e[_0xd48b4c(0x1ca)]+_0xd48b4c(0x1d9)+(_0x4e4a5e[_0xd48b4c(0x1b8)]=='YES'?'true':_0xd48b4c(0x1f1))+_0xd48b4c(0x1f6),_0x2e5e82+=_0xd48b4c(0x1da)+_0x4e4a5e[_0xd48b4c(0x1a2)]+_0xd48b4c(0x1cb);else{if(_0x59658c==_0xd48b4c(0x1b2))_0x2e5e82+=_0xd48b4c(0x1a3)+_0x4e4a5e[_0xd48b4c(0x1ca)]+_0xd48b4c(0x1d9)+(_0x4e4a5e[_0xd48b4c(0x1b8)]==_0xd48b4c(0x1ce)?_0xd48b4c(0x1d0):_0xd48b4c(0x1f1))+',\x20unique:\x20false\x20})\x0a',_0x2e5e82+='\x20\x20\x20\x20'+_0x4e4a5e[_0xd48b4c(0x1a2)]+_0xd48b4c(0x1cb);else{if(_0x59658c==_0xd48b4c(0x1ad))_0x2e5e82+=_0xd48b4c(0x1cf)+_0x4e4a5e['Comment']+_0xd48b4c(0x1d9)+(_0x4e4a5e[_0xd48b4c(0x1b8)]==_0xd48b4c(0x1ce)?_0xd48b4c(0x1d0):_0xd48b4c(0x1f1))+_0xd48b4c(0x1f2),_0x2e5e82+=_0xd48b4c(0x1da)+_0x4e4a5e[_0xd48b4c(0x1a2)]+_0xd48b4c(0x1de);else{if(_0x59658c=='datetime')_0x2e5e82+=_0xd48b4c(0x1c5)+_0x4e4a5e['Comment']+_0xd48b4c(0x1d9)+(_0x4e4a5e[_0xd48b4c(0x1b8)]==_0xd48b4c(0x1ce)?_0xd48b4c(0x1d0):_0xd48b4c(0x1f1))+_0xd48b4c(0x1f2),_0x2e5e82+='\x20\x20\x20\x20'+_0x4e4a5e[_0xd48b4c(0x1a2)]+':\x20string;\x0a\x0a';else{if(_0x59658c=='timestamp')_0x2e5e82+=_0xd48b4c(0x1c5)+_0x4e4a5e['Comment']+_0xd48b4c(0x1d9)+(_0x4e4a5e[_0xd48b4c(0x1b8)]==_0xd48b4c(0x1ce)?_0xd48b4c(0x1d0):'false')+_0xd48b4c(0x1f2),_0x2e5e82+=_0xd48b4c(0x1da)+_0x4e4a5e[_0xd48b4c(0x1a2)]+_0xd48b4c(0x1de);else{if(_0x59658c==_0xd48b4c(0x1e5))_0x2e5e82+=_0xd48b4c(0x1d6)+_0x4e4a5e[_0xd48b4c(0x1ca)]+_0xd48b4c(0x1d9)+(_0x4e4a5e['Null']=='YES'?_0xd48b4c(0x1d0):_0xd48b4c(0x1f1))+_0xd48b4c(0x1f6),_0x2e5e82+=_0xd48b4c(0x1da)+_0x4e4a5e[_0xd48b4c(0x1a2)]+_0xd48b4c(0x1de);else{if(_0x59658c==_0xd48b4c(0x1a4))_0x2e5e82+=_0xd48b4c(0x1bb)+_0x4e4a5e[_0xd48b4c(0x1ca)]+_0xd48b4c(0x1d9)+(_0x4e4a5e['Null']==_0xd48b4c(0x1ce)?'true':'false')+_0xd48b4c(0x1f6),_0x2e5e82+=_0xd48b4c(0x1da)+_0x4e4a5e[_0xd48b4c(0x1a2)]+_0xd48b4c(0x1de);else _0x59658c==_0xd48b4c(0x191)?(_0x2e5e82+=_0xd48b4c(0x1d7)+_0x4e4a5e[_0xd48b4c(0x1ca)]+_0xd48b4c(0x1d9)+(_0x4e4a5e[_0xd48b4c(0x1b8)]==_0xd48b4c(0x1ce)?_0xd48b4c(0x1d0):_0xd48b4c(0x1f1))+_0xd48b4c(0x1f6),_0x2e5e82+=_0xd48b4c(0x1da)+_0x4e4a5e[_0xd48b4c(0x1a2)]+':\x20string;\x0a\x0a'):(_0x2e5e82+='\x20\x20\x20\x20@Column({\x20comment:\x20\x27'+_0x4e4a5e[_0xd48b4c(0x1ca)]+_0xd48b4c(0x1d9)+(_0x4e4a5e[_0xd48b4c(0x1b8)]==_0xd48b4c(0x1ce)?'true':_0xd48b4c(0x1f1))+_0xd48b4c(0x1f6),_0x2e5e82+=_0xd48b4c(0x1da)+_0x4e4a5e[_0xd48b4c(0x1a2)]+':\x20string;\x0a\x0a');}}}}}}}}}}}}_0x173e01+='//\x20import\x20{\x20ManyToOne,\x20JoinColumn\x20}\x20from\x20\x27@anveroapi/typeorm\x27;\x0a',_0x173e01+=_0xd48b4c(0x1ef),_0x173e01+=_0xd48b4c(0x1e3)+(_0x238673?_0xd48b4c(0x1db):'PrimaryColumn')+',\x20Column\x20}\x20from\x20\x27@anveroapi/typeorm\x27;\x0a\x0a',_0x173e01+=_0xd48b4c(0x19c)+_0x211e7f+_0xd48b4c(0x1a6)+(typeof _0x1f4f46==_0xd48b4c(0x1bd)?_0xd48b4c(0x1a0)+_0x1f4f46:'@/'+_0x50ead4)+'/searchs/'+_0x1d9f49+_0xd48b4c(0x197),_0x173e01+=_0xd48b4c(0x1c1),_0x173e01+='\x20*\x20'+_0x248d94+_0xd48b4c(0x1a9),_0x173e01+=_0xd48b4c(0x1ba),_0x173e01+='@ProvideSearch('+_0x211e7f+_0xd48b4c(0x1d5),_0x173e01+=_0xd48b4c(0x1aa)+_0x4fce97+_0xd48b4c(0x19a),_0x173e01+=_0xd48b4c(0x1b1)+_0x211e7f+'Entity\x20{\x0a\x0a',_0x173e01+=_0xd48b4c(0x1eb),_0x173e01+=_0xd48b4c(0x1bf),_0x173e01+=_0xd48b4c(0x1b9),_0x173e01+=_0xd48b4c(0x194),_0x173e01+=_0xd48b4c(0x1d1),_0x173e01+=_0xd48b4c(0x1cd),_0x173e01+=_0xd48b4c(0x1d2),_0x173e01+=_0xd48b4c(0x1f9),_0x173e01+=_0xd48b4c(0x1ec),_0x173e01+='}',_0x173e01=_0x173e01[_0xd48b4c(0x1ab)]('%column%',_0x2e5e82),!fs[_0xd48b4c(0x1ed)]((0x0,path_1[_0xd48b4c(0x1f0)])(_0x14b5c6))&&fs[_0xd48b4c(0x192)]((0x0,path_1[_0xd48b4c(0x1f0)])(_0x14b5c6),{'recursive':!![]}),fs[_0xd48b4c(0x19b)](_0x14b5c6,_0x173e01,'utf-8');}}async function repository({tablestartUp:_0x13504b,tablestartUpShort:_0x2e42a2,basedir:_0x27dc57,Comment:_0x2de49d,moduleName:_0x57303b,apporbasic:_0xd182c5}){const _0x1b095e=a7_0x546d49,_0x55f15d=_0x27dc57+('/entities/'+_0x2e42a2+_0x1b095e(0x1d3));if(!fs[_0x1b095e(0x1ed)](_0x55f15d)){let _0x24142d='';_0x24142d+=_0x1b095e(0x1c1),_0x24142d+='\x20*\x20'+_0x2de49d+_0x1b095e(0x193),_0x24142d+=_0x1b095e(0x1ba),_0x24142d+='import\x20{\x20ProvideRepository,\x20Repository\x20}\x20from\x20\x27@anveroapi/typeorm\x27;\x0a',_0x24142d+=_0x1b095e(0x19c)+_0x13504b+_0x1b095e(0x1e4)+(typeof _0x57303b==_0x1b095e(0x1bd)?_0x1b095e(0x1a0)+_0x57303b:'@/'+_0xd182c5)+_0x1b095e(0x1d8)+_0x2e42a2+_0x1b095e(0x1c4),_0x24142d+=_0x1b095e(0x195)+_0x13504b+_0x1b095e(0x1f3),_0x24142d+='export\x20class\x20'+_0x13504b+_0x1b095e(0x1f5)+_0x13504b+_0x1b095e(0x1c7),_0x24142d+='}',!fs['existsSync']((0x0,path_1[_0x1b095e(0x1f0)])(_0x55f15d))&&fs[_0x1b095e(0x192)]((0x0,path_1['dirname'])(_0x55f15d),{'recursive':!![]}),fs[_0x1b095e(0x19b)](_0x55f15d,_0x24142d,'utf-8');}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a8_0x4679c8=a8_0x300e;(function(_0x574a52,_0x37807b){const _0x55cdec=a8_0x300e,_0x3e6987=_0x574a52();while(!![]){try{const _0x183e19=-parseInt(_0x55cdec(0x182))/0x1*(-parseInt(_0x55cdec(0x18b))/0x2)+-parseInt(_0x55cdec(0x190))/0x3*(-parseInt(_0x55cdec(0x18d))/0x4)+parseInt(_0x55cdec(0x199))/0x5*(parseInt(_0x55cdec(0x186))/0x6)+-parseInt(_0x55cdec(0x18e))/0x7+parseInt(_0x55cdec(0x17d))/0x8+-parseInt(_0x55cdec(0x181))/0x9+-parseInt(_0x55cdec(0x192))/0xa;if(_0x183e19===_0x37807b)break;else _0x3e6987['push'](_0x3e6987['shift']());}catch(_0x10f753){_0x3e6987['push'](_0x3e6987['shift']());}}}(a8_0x233e,0x595bc));const a8_0x141608=(function(){let _0x27cb80=!![];return function(_0x331ce8,_0xc9cca6){const _0x374021=_0x27cb80?function(){const _0x32ac2b=a8_0x300e;if(_0xc9cca6){const _0x11afe3=_0xc9cca6[_0x32ac2b(0x18a)](_0x331ce8,arguments);return _0xc9cca6=null,_0x11afe3;}}:function(){};return _0x27cb80=![],_0x374021;};}()),a8_0x12421b=a8_0x141608(this,function(){const _0x113d09=a8_0x300e;return a8_0x12421b['toString']()[_0x113d09(0x17c)]('(((.+)+)+)+$')[_0x113d09(0x180)]()['constructor'](a8_0x12421b)[_0x113d09(0x17c)](_0x113d09(0x183));});a8_0x12421b();'use strict';Object[a8_0x4679c8(0x197)](exports,'__esModule',{'value':!![]}),exports[a8_0x4679c8(0x19b)]=default_1;const fs=require('fs'),path_1=require(a8_0x4679c8(0x17f));function a8_0x300e(_0x48843d,_0x569f2f){_0x48843d=_0x48843d-0x17c;const _0x40bf6a=a8_0x233e();let _0x12421b=_0x40bf6a[_0x48843d];return _0x12421b;}function a8_0x233e(){const _0x4c984f=['dirname','import\x20{\x20','apply','1009970IIwvVH','mkdirSync','62360pvIvQn','3391213HvnxLM',';\x0a\x0a\x0a','3sRdtHL','Event\x20{\x0a\x0a','779720zalzlT','/entities/','utf-8','existsSync','\x27;\x0a\x0a','defineProperty','\x20\x20\x20\x20@InjectRepository(','10130rykAlc','writeFileSync','default','search','4352264rjTBKf','.ts','path','toString','1644867jxdbNs','1kRkEws','(((.+)+)+)+$','@/apps/','/listeners/','138yKCGII','\x20}\x20from\x20\x27'];a8_0x233e=function(){return _0x4c984f;};return a8_0x233e();}async function default_1({tablestartUp:_0x147f7d,tablestartUpShort:_0x20c561,basedir:_0x273870,moduleName:_0x2fffce,apporbasic:_0x29c503}){const _0x221fac=a8_0x4679c8,_0x17a195=_0x273870+(_0x221fac(0x185)+_0x20c561+_0x221fac(0x17e));if(!fs[_0x221fac(0x195)](_0x17a195)){let _0x28e9ac='';_0x28e9ac+='import\x20{\x20Event,\x20EventService\x20}\x20from\x20\x27@anveroapi/event\x27;\x0a',_0x28e9ac+='import\x20{\x20Inject,\x20InjectRepository\x20}\x20from\x20\x27@anveroapi/typeorm\x27;\x0a\x0a',_0x28e9ac+=_0x221fac(0x189)+_0x147f7d+_0x221fac(0x187)+(typeof _0x2fffce=='string'?_0x221fac(0x184)+_0x2fffce:'@/'+_0x29c503)+_0x221fac(0x193)+_0x20c561+_0x221fac(0x196),_0x28e9ac+='@Event()\x0a',_0x28e9ac+='export\x20class\x20'+_0x147f7d+_0x221fac(0x191),_0x28e9ac+='\x20\x20\x20\x20@Inject()\x20protected\x20EventService:\x20EventService;\x0a\x0a',_0x28e9ac+=_0x221fac(0x198)+_0x147f7d+')\x20protected\x20'+_0x147f7d+':\x20'+_0x147f7d+_0x221fac(0x18f),_0x28e9ac+='}',!fs[_0x221fac(0x195)]((0x0,path_1[_0x221fac(0x188)])(_0x17a195))&&fs[_0x221fac(0x18c)]((0x0,path_1[_0x221fac(0x188)])(_0x17a195),{'recursive':!![]}),fs[_0x221fac(0x19a)](_0x17a195,_0x28e9ac,_0x221fac(0x194));}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a9_0x1a48ae=a9_0x4421;(function(_0x5d8f42,_0x4ac08b){const _0x18bafc=a9_0x4421,_0x2ab66a=_0x5d8f42();while(!![]){try{const _0x43a6f2=-parseInt(_0x18bafc(0x1d0))/0x1*(-parseInt(_0x18bafc(0x208))/0x2)+-parseInt(_0x18bafc(0x202))/0x3+parseInt(_0x18bafc(0x1cb))/0x4*(parseInt(_0x18bafc(0x1d8))/0x5)+parseInt(_0x18bafc(0x1db))/0x6+-parseInt(_0x18bafc(0x1f3))/0x7*(parseInt(_0x18bafc(0x20a))/0x8)+-parseInt(_0x18bafc(0x217))/0x9*(parseInt(_0x18bafc(0x1cc))/0xa)+-parseInt(_0x18bafc(0x1d4))/0xb;if(_0x43a6f2===_0x4ac08b)break;else _0x2ab66a['push'](_0x2ab66a['shift']());}catch(_0x432c74){_0x2ab66a['push'](_0x2ab66a['shift']());}}}(a9_0x3e29,0xa2e54));const a9_0x39ab60=(function(){let _0x135304=!![];return function(_0x212ca0,_0x1b32e5){const _0x5e8cbd=_0x135304?function(){if(_0x1b32e5){const _0x153ee5=_0x1b32e5['apply'](_0x212ca0,arguments);return _0x1b32e5=null,_0x153ee5;}}:function(){};return _0x135304=![],_0x5e8cbd;};}()),a9_0x443a10=a9_0x39ab60(this,function(){const _0x42f610=a9_0x4421;return a9_0x443a10[_0x42f610(0x1f1)]()[_0x42f610(0x209)]('(((.+)+)+)+$')[_0x42f610(0x1f1)]()[_0x42f610(0x1ea)](a9_0x443a10)['search'](_0x42f610(0x21a));});a9_0x443a10();'use strict';Object[a9_0x1a48ae(0x204)](exports,'__esModule',{'value':!![]}),exports[a9_0x1a48ae(0x1e4)]=default_1;function a9_0x4421(_0x4cf6a4,_0x35bba5){_0x4cf6a4=_0x4cf6a4-0x1c9;const _0x1d2e36=a9_0x3e29();let _0x443a10=_0x1d2e36[_0x4cf6a4];return _0x443a10;}function a9_0x3e29(){const _0x115e10=['/entities/','\x20\x20\x20\x20\x20\x20\x20\x20const\x20[pagelist,\x20pagetotal]\x20=\x20await\x20this.','10BdegRE','search','2409448cCulhO','\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@InjectRepository(','\x20*\x20',';\x0a\x0a\x0a','.softRemove(tmpModel))\x0a','Entity>,\x20options:\x20SearchOptions\x20=\x20{})\x20{\x0a','\x20\x20\x20\x20\x20\x20\x20\x20const\x20tmpModel\x20=\x20await\x20this.','\x20\x20\x20\x20async\x20create(params:\x20','\x20\x20\x20\x20\x20\x20\x20\x20});\x0a\x0a','.search(conditions,\x20{},\x20options).then(async\x20search\x20=>\x20{\x0a\x0a','\x20\x20\x20\x20\x20\x20\x20\x20return\x20tmpModel\x0a','.recover(tmpModel))\x0a','11871gcNKxX','\x20\x20\x20\x20\x20\x20\x20\x20const\x20tmpModel\x20=\x20this.','import\x20{\x20CacheService,\x20EventService,\x20ValidatorService\x20}\x20from\x20\x27anvero-api\x27;\x0a','(((.+)+)+)+$','\x20\x20\x20\x20\x20\x20\x20\x20this.','/Create\x27;\x0a','\x20\x20\x20\x20\x20\x20\x20\x20return\x20restores\x0a','import\x20{\x20','\x20\x20\x20\x20@Inject()\x20EventService:\x20EventService;\x0a','\x20\x20\x20\x20/**\x0a','Error\x20}\x20from\x20\x27','\x20\x20\x20\x20\x20\x20\x20\x20return\x20deletes\x0a','\x20}\x20from\x20\x27','dirname','8mKvGtf','1550guIhpD','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20deletes.push(await\x20this.','DTOCreate)\x20{\x0a','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20return\x20search.getOneOrFail().catch(()\x20=>\x20{\x0a','202396NxAxRW','path','\x20\x20\x20\x20async\x20restores(conditions:\x20SearchParams<','Entity\x20}\x20from\x20\x27','816057mGPgYv','.merge(tmpModel,\x20params);\x0a','\x20\x20\x20\x20\x20*\x20**/\x0a','\x20\x20\x20\x20async\x20remove(conditions:\x20SearchParams<','655190tTDDuQ','DTOUpdate\x20}\x20from\x20\x27','\x20*\x20**/\x0a','2458998lgGWbp','Entity>,\x20pageinfo?:\x20SearchPaginate,\x20options:\x20SearchOptions\x20=\x20{}):\x20Promise<[','\x20\x20\x20\x20\x20*\x20添加数据\x0a','existsSync','.ts','/validators/','\x20\x20\x20\x20\x20\x20\x20\x20return\x20[pagelist,\x20pagetotal];\x0a','Handler\x20{\x0a\x0a','import\x20{\x20InjectRepository,\x20SearchParams,\x20SearchPaginate,\x20SearchOptions\x20}\x20from\x20\x27@anveroapi/typeorm\x27;\x0a\x0a','default','\x27;\x0a','/**\x0a','@Singleton()\x0a','/handlers/','.create(params)\x0a\x0a','constructor','\x20\x20\x20\x20@Inject()\x20CacheService:\x20CacheService;\x0a','不存在\x27\x20})\x0a','writeFileSync','.search(conditions,\x20pageinfo,\x20options).then(async\x20search\x20=>\x20{\x0a\x0a','\x20\x20\x20\x20\x20*\x20修改数据\x0a','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20});\x0a','toString','@/apps/','7yuDoMP','import\x20{\x20Inject,\x20Singleton\x20}\x20from\x20\x27anvero-api\x27;\x0a','\x20\x20\x20\x20async\x20update(conditions:\x20SearchParams<','\x20\x20\x20\x20\x20\x20\x20\x20}\x0a','string','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20throw\x20new\x20','\x20\x20\x20\x20async\x20list(conditions?:\x20SearchParams<','Entity>,\x20params:\x20','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20return\x20search.getMany();\x0a','\x20\x20\x20\x20async\x20detail(conditions?:\x20SearchParams<','\x20\x20\x20\x20}\x0a\x0a\x0a','\x20\x20\x20\x20\x20\x20\x20\x20return\x20await\x20this.','Entity[],\x20number]>\x20{\x0a','DTOCreate\x20}\x20from\x20\x27','\x20\x20\x20\x20@Inject()\x20ValidatorService:\x20ValidatorService;\x0a\x0a','1310568IqsWjI','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20restores.push(await\x20this.','defineProperty','Error('];a9_0x3e29=function(){return _0x115e10;};return a9_0x3e29();}const fs=require('fs'),path_1=require(a9_0x1a48ae(0x1d1));async function default_1({tablestartUp:_0x437b5f,tablestartUpShort:_0x264987,basedir:_0x4a496a,Primary:_0x4819aa,Comment:_0x1861c9,moduleName:_0x3062f4,apporbasic:_0x14c2f9}){const _0x3e7925=a9_0x1a48ae,_0x3cf6f2=_0x4a496a+(_0x3e7925(0x1e8)+_0x264987+_0x3e7925(0x1df));if(!fs[_0x3e7925(0x1de)](_0x3cf6f2)){let _0x10ec83='';_0x10ec83+=_0x3e7925(0x1f4),_0x10ec83+=_0x3e7925(0x219),_0x10ec83+=_0x3e7925(0x1e3),_0x10ec83+=_0x3e7925(0x21e)+_0x437b5f+_0x3e7925(0x1c9)+(typeof _0x3062f4==_0x3e7925(0x1f7)?_0x3e7925(0x1f2)+_0x3062f4:'@/'+_0x14c2f9)+_0x3e7925(0x206)+_0x264987+_0x3e7925(0x1e5),_0x10ec83+='import\x20{\x20'+_0x437b5f+_0x3e7925(0x221)+(typeof _0x3062f4==_0x3e7925(0x1f7)?_0x3e7925(0x1f2)+_0x3062f4:'@/'+_0x14c2f9)+'/exceptions/'+_0x264987+'\x27;\x0a',_0x10ec83+=_0x3e7925(0x21e)+_0x437b5f+_0x3e7925(0x1d3)+(typeof _0x3062f4==_0x3e7925(0x1f7)?_0x3e7925(0x1f2)+_0x3062f4:'@/'+_0x14c2f9)+_0x3e7925(0x206)+_0x264987+'/entity\x27;\x0a',_0x10ec83+=_0x3e7925(0x21e)+_0x437b5f+_0x3e7925(0x200)+(typeof _0x3062f4==_0x3e7925(0x1f7)?'@/apps/'+_0x3062f4:'@/'+_0x14c2f9)+_0x3e7925(0x1e0)+_0x264987+_0x3e7925(0x21c),_0x10ec83+=_0x3e7925(0x21e)+_0x437b5f+_0x3e7925(0x1d9)+(typeof _0x3062f4==_0x3e7925(0x1f7)?_0x3e7925(0x1f2)+_0x3062f4:'@/'+_0x14c2f9)+_0x3e7925(0x1e0)+_0x264987+'/Update\x27;\x0a',_0x10ec83+='\x0a',_0x10ec83+=_0x3e7925(0x1e6),_0x10ec83+=_0x3e7925(0x20d)+_0x1861c9+'\x0a',_0x10ec83+=_0x3e7925(0x1da),_0x10ec83+=_0x3e7925(0x1e7),_0x10ec83+='export\x20class\x20'+_0x437b5f+_0x3e7925(0x1e2),_0x10ec83+=_0x3e7925(0x1eb),_0x10ec83+=_0x3e7925(0x21f),_0x10ec83+=_0x3e7925(0x201),_0x10ec83+=_0x3e7925(0x20c)+_0x437b5f+')\x20'+_0x264987+':\x20'+_0x437b5f+_0x3e7925(0x20e),_0x10ec83+=_0x3e7925(0x220),_0x10ec83+='\x20\x20\x20\x20\x20*\x20数据列表\x0a',_0x10ec83+=_0x3e7925(0x1d6),_0x10ec83+=_0x3e7925(0x1f9)+_0x437b5f+_0x3e7925(0x1dc)+_0x437b5f+_0x3e7925(0x1ff),_0x10ec83+=_0x3e7925(0x207)+_0x264987+_0x3e7925(0x1ee),_0x10ec83+='\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20return\x20search.getManyAndCount();\x0a',_0x10ec83+=_0x3e7925(0x213),_0x10ec83+=_0x3e7925(0x1e1),_0x10ec83+=_0x3e7925(0x1fd),_0x10ec83+=_0x3e7925(0x220),_0x10ec83+='\x20\x20\x20\x20\x20*\x20数据详情\x0a',_0x10ec83+=_0x3e7925(0x1d6),_0x10ec83+=_0x3e7925(0x1fc)+_0x437b5f+_0x3e7925(0x210),_0x10ec83+='\x20\x20\x20\x20\x20\x20\x20\x20const\x20tmpModel\x20=\x20await\x20this.'+_0x264987+_0x3e7925(0x214),_0x10ec83+=_0x3e7925(0x1cf),_0x10ec83+='\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20throw\x20new\x20'+_0x437b5f+_0x3e7925(0x205)+_0x437b5f+'Error._NOTFIND_,\x20{\x20message:\x20\x27'+_0x1861c9+_0x3e7925(0x1ec),_0x10ec83+=_0x3e7925(0x1f0),_0x10ec83+='\x20\x20\x20\x20\x20\x20\x20\x20});\x0a\x0a',_0x10ec83+=_0x3e7925(0x215),_0x10ec83+=_0x3e7925(0x1fd),_0x10ec83+=_0x3e7925(0x220),_0x10ec83+=_0x3e7925(0x1dd),_0x10ec83+=_0x3e7925(0x1d6),_0x10ec83+=_0x3e7925(0x212)+_0x437b5f+_0x3e7925(0x1ce),_0x10ec83+=_0x3e7925(0x218)+_0x264987+_0x3e7925(0x1e9),_0x10ec83+='\x20\x20\x20\x20\x20\x20\x20\x20return\x20await\x20this.'+_0x264987+'.save(tmpModel);\x0a',_0x10ec83+=_0x3e7925(0x1fd),_0x10ec83+='\x20\x20\x20\x20/**\x0a',_0x10ec83+=_0x3e7925(0x1ef),_0x10ec83+='\x20\x20\x20\x20\x20*\x20**/\x0a',_0x10ec83+=_0x3e7925(0x1f5)+_0x437b5f+_0x3e7925(0x1fa)+_0x437b5f+'DTOUpdate,\x20options:\x20SearchOptions\x20=\x20{})\x20{\x0a',_0x10ec83+=_0x3e7925(0x211)+_0x264987+'.search(conditions,\x20{},\x20options).then(async\x20search\x20=>\x20{\x0a\x0a',_0x10ec83+='\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20return\x20search.getOneOrFail().catch(()\x20=>\x20{\x0a',_0x10ec83+=_0x3e7925(0x1f8)+_0x437b5f+_0x3e7925(0x205)+_0x437b5f+'Error._NOTFIND_,\x20{\x20message:\x20\x27'+_0x1861c9+_0x3e7925(0x1ec),_0x10ec83+=_0x3e7925(0x1f0),_0x10ec83+=_0x3e7925(0x213),_0x10ec83+=_0x3e7925(0x21b)+_0x264987+_0x3e7925(0x1d5),_0x10ec83+=_0x3e7925(0x1fe)+_0x264987+'.save(tmpModel);\x0a',_0x10ec83+=_0x3e7925(0x1fd),_0x10ec83+='\x20\x20\x20\x20/**\x0a',_0x10ec83+='\x20\x20\x20\x20\x20*\x20删除数据\x0a',_0x10ec83+='\x20\x20\x20\x20\x20*\x20**/\x0a',_0x10ec83+=_0x3e7925(0x1d7)+_0x437b5f+_0x3e7925(0x210),_0x10ec83+='\x20\x20\x20\x20\x20\x20\x20\x20const\x20deletes:\x20any\x20=\x20[],\x20tmpModels\x20=\x20await\x20this.'+_0x264987+_0x3e7925(0x214),_0x10ec83+='\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20return\x20search.getMany();\x0a',_0x10ec83+='\x20\x20\x20\x20\x20\x20\x20\x20});\x0a\x0a',_0x10ec83+='\x20\x20\x20\x20\x20\x20\x20\x20for\x20(let\x20tmpModel\x20of\x20tmpModels)\x20{\x0a',_0x10ec83+=_0x3e7925(0x1cd)+_0x264987+_0x3e7925(0x20f),_0x10ec83+=_0x3e7925(0x1f6),_0x10ec83+=_0x3e7925(0x222),_0x10ec83+='\x20\x20\x20\x20}\x0a\x0a\x0a',_0x10ec83+='\x20\x20\x20\x20/**\x0a',_0x10ec83+='\x20\x20\x20\x20\x20*\x20恢复删除的数据\x0a',_0x10ec83+=_0x3e7925(0x1d6),_0x10ec83+=_0x3e7925(0x1d2)+_0x437b5f+'Entity>,\x20options:\x20SearchOptions\x20=\x20{})\x20{\x0a',_0x10ec83+='\x20\x20\x20\x20\x20\x20\x20\x20const\x20restores:\x20any\x20=\x20[],\x20tmpModels\x20=\x20await\x20this.'+_0x264987+_0x3e7925(0x214),_0x10ec83+=_0x3e7925(0x20b),_0x10ec83+=_0x3e7925(0x1fb),_0x10ec83+=_0x3e7925(0x213),_0x10ec83+='\x20\x20\x20\x20\x20\x20\x20\x20for\x20(let\x20tmpModel\x20of\x20tmpModels)\x20{\x0a',_0x10ec83+=_0x3e7925(0x203)+_0x264987+_0x3e7925(0x216),_0x10ec83+=_0x3e7925(0x1f6),_0x10ec83+=_0x3e7925(0x21d),_0x10ec83+=_0x3e7925(0x1fd),_0x10ec83+='}',!fs[_0x3e7925(0x1de)]((0x0,path_1[_0x3e7925(0x1ca)])(_0x3cf6f2))&&fs['mkdirSync']((0x0,path_1[_0x3e7925(0x1ca)])(_0x3cf6f2),{'recursive':!![]}),fs[_0x3e7925(0x1ed)](_0x3cf6f2,_0x10ec83,'utf-8');}}
|
|
1
|
+
const a9_0x31ad40=a9_0xfbb3;(function(_0x792d44,_0x3265a4){const _0x1771d2=a9_0xfbb3,_0x123dfb=_0x792d44();while(!![]){try{const _0x1ffbd6=parseInt(_0x1771d2(0xc5))/0x1*(parseInt(_0x1771d2(0x96))/0x2)+parseInt(_0x1771d2(0x93))/0x3*(parseInt(_0x1771d2(0xc6))/0x4)+-parseInt(_0x1771d2(0x8e))/0x5*(parseInt(_0x1771d2(0xb4))/0x6)+parseInt(_0x1771d2(0x8f))/0x7*(-parseInt(_0x1771d2(0xbf))/0x8)+-parseInt(_0x1771d2(0x74))/0x9*(parseInt(_0x1771d2(0x98))/0xa)+parseInt(_0x1771d2(0x83))/0xb+parseInt(_0x1771d2(0xb6))/0xc*(parseInt(_0x1771d2(0x88))/0xd);if(_0x1ffbd6===_0x3265a4)break;else _0x123dfb['push'](_0x123dfb['shift']());}catch(_0x3f1162){_0x123dfb['push'](_0x123dfb['shift']());}}}(a9_0x3d34,0xe5f40));function a9_0xfbb3(_0x109b90,_0x48cf17){_0x109b90=_0x109b90-0x70;const _0x2cd850=a9_0x3d34();let _0x4b35f9=_0x2cd850[_0x109b90];return _0x4b35f9;}const a9_0xb59f0f=(function(){let _0x579f23=!![];return function(_0x342834,_0x27c1be){const _0x275585=_0x579f23?function(){const _0x37dd91=a9_0xfbb3;if(_0x27c1be){const _0x16273f=_0x27c1be[_0x37dd91(0x73)](_0x342834,arguments);return _0x27c1be=null,_0x16273f;}}:function(){};return _0x579f23=![],_0x275585;};}()),a9_0x4b35f9=a9_0xb59f0f(this,function(){const _0x4f1be9=a9_0xfbb3;return a9_0x4b35f9[_0x4f1be9(0xae)]()[_0x4f1be9(0xb8)](_0x4f1be9(0xc1))[_0x4f1be9(0xae)]()[_0x4f1be9(0x8b)](a9_0x4b35f9)[_0x4f1be9(0xb8)](_0x4f1be9(0xc1));});a9_0x4b35f9();function a9_0x3d34(){const _0x42e01d=['2930XWduze','3752399TXmUex','\x20\x20\x20\x20\x20\x20\x20\x20return\x20await\x20this.','Error(','/validators/','1055883XOJfHh','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20deletes.push(await\x20this.','.search(conditions,\x20{},\x20options).then(async\x20search\x20=>\x20{\x0a\x0a','3637598nsMOpL','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20});\x0a','10760CpjZNR','\x20\x20\x20\x20@Inject()\x20CacheService:\x20CacheService;\x0a','DTOCreate\x20}\x20from\x20\x27','DTOCreate)\x20{\x0a','\x20\x20\x20\x20\x20*\x20数据详情\x0a','\x27;\x0a','\x20\x20\x20\x20\x20*\x20**/\x0a','import\x20{\x20CacheService,\x20EventService,\x20ValidatorService\x20}\x20from\x20\x27anvero-api\x27;\x0a','\x20\x20\x20\x20\x20\x20\x20\x20return\x20restores\x0a','\x20\x20\x20\x20\x20\x20\x20\x20return\x20deletes\x0a','.save(tmpModel);\x0a','不存在\x27\x20})\x0a','\x20\x20\x20\x20@Inject()\x20ValidatorService:\x20ValidatorService;\x0a\x0a','__esModule','@Singleton()\x0a','\x20\x20\x20\x20\x20*\x20数据列表\x0a','\x20\x20\x20\x20\x20\x20\x20\x20this.','.merge(tmpModel,\x20params);\x0a','export\x20class\x20','\x20\x20\x20\x20\x20*\x20删除数据\x0a','/**\x0a','.search(conditions,\x20pageinfo,\x20options).then(async\x20search\x20=>\x20{\x0a\x0a','toString','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20return\x20search.getManyAndCount();\x0a','\x20\x20\x20\x20\x20\x20\x20\x20});\x0a\x0a','defineProperty','Entity\x20}\x20from\x20\x27','\x20\x20\x20\x20\x20\x20\x20\x20for\x20(let\x20tmpModel\x20of\x20tmpModels)\x20{\x0a','10422bCzQam','/entities/','12BoRXdX','.create(params)\x0a\x0a','search','writeFileSync','.ts','\x20\x20\x20\x20}\x0a\x0a\x0a','Error._NOTFIND_,\x20{\x20message:\x20\x27','\x20\x20\x20\x20\x20\x20\x20\x20}\x0a','\x20\x20\x20\x20\x20\x20\x20\x20const\x20[pagelist,\x20pagetotal]\x20=\x20await\x20this.','16SAvgTX','/Create\x27;\x0a','(((.+)+)+)+$','.softRemove(tmpModel))\x0a','import\x20{\x20','/entity\x27;\x0a','1jRSfGS','8HdUpWl','Entity>,\x20options:\x20SearchOptions\x20=\x20{})\x20{\x0a','\x20\x20\x20\x20async\x20update(conditions:\x20SearchParams<','\x20\x20\x20\x20\x20\x20\x20\x20const\x20tmpModel\x20=\x20await\x20this.','Error\x20}\x20from\x20\x27','\x20\x20\x20\x20\x20*\x20恢复删除的数据\x0a','apply','11727OqMGso','Entity[],\x20number]>\x20{\x0a','dirname','\x20\x20\x20\x20\x20\x20\x20\x20const\x20restores:\x20any\x20=\x20[],\x20tmpModels\x20=\x20await\x20this.','utf-8','\x20\x20\x20\x20\x20\x20\x20\x20return\x20[pagelist,\x20pagetotal];\x0a','import\x20{\x20InjectRepository,\x20SearchParams,\x20SearchPaginate,\x20SearchOptions\x20}\x20from\x20\x27@anveroapi/typeorm\x27;\x0a\x0a','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20return\x20search.getOneOrFail().catch(()\x20=>\x20{\x0a','existsSync','.recover(tmpModel))\x0a','\x20*\x20','\x20\x20\x20\x20/**\x0a','/handlers/','\x20\x20\x20\x20async\x20detail(conditions?:\x20SearchParams<','\x20*\x20**/\x0a','19952988ogtySZ','default','@/apps/','\x20\x20\x20\x20async\x20list(conditions?:\x20SearchParams<','\x20\x20\x20\x20\x20\x20\x20\x20const\x20tmpModel\x20=\x20this.','1264679nHcIAF','string','\x20}\x20from\x20\x27','constructor','\x20\x20\x20\x20\x20\x20\x20\x20const\x20deletes:\x20any\x20=\x20[],\x20tmpModels\x20=\x20await\x20this.',';\x0a\x0a\x0a'];a9_0x3d34=function(){return _0x42e01d;};return a9_0x3d34();}'use strict';Object[a9_0x31ad40(0xb1)](exports,a9_0x31ad40(0xa5),{'value':!![]}),exports[a9_0x31ad40(0x84)]=default_1;const fs=require('fs'),path_1=require('path');async function default_1({tablestartUp:_0x440cb8,tablestartUpShort:_0x264a52,basedir:_0x3bd208,Primary:_0x37a287,Comment:_0x4d88fb,moduleName:_0x21c3e1,apporbasic:_0x4ead4a}){const _0x3a5558=a9_0x31ad40,_0x47e1a5=_0x3bd208+(_0x3a5558(0x80)+_0x264a52+_0x3a5558(0xba));if(!fs[_0x3a5558(0x7c)](_0x47e1a5)){let _0x1cbac3='';_0x1cbac3+='import\x20{\x20Inject,\x20Singleton\x20}\x20from\x20\x27anvero-api\x27;\x0a',_0x1cbac3+=_0x3a5558(0x9f),_0x1cbac3+=_0x3a5558(0x7a),_0x1cbac3+=_0x3a5558(0xc3)+_0x440cb8+_0x3a5558(0x8a)+(typeof _0x21c3e1==_0x3a5558(0x89)?_0x3a5558(0x85)+_0x21c3e1:'@/'+_0x4ead4a)+_0x3a5558(0xb5)+_0x264a52+_0x3a5558(0x9d),_0x1cbac3+='import\x20{\x20'+_0x440cb8+_0x3a5558(0x71)+(typeof _0x21c3e1==_0x3a5558(0x89)?_0x3a5558(0x85)+_0x21c3e1:'@/'+_0x4ead4a)+'/exceptions/'+_0x264a52+'\x27;\x0a',_0x1cbac3+=_0x3a5558(0xc3)+_0x440cb8+_0x3a5558(0xb2)+(typeof _0x21c3e1==_0x3a5558(0x89)?'@/apps/'+_0x21c3e1:'@/'+_0x4ead4a)+_0x3a5558(0xb5)+_0x264a52+_0x3a5558(0xc4),_0x1cbac3+=_0x3a5558(0xc3)+_0x440cb8+_0x3a5558(0x9a)+(typeof _0x21c3e1=='string'?_0x3a5558(0x85)+_0x21c3e1:'@/'+_0x4ead4a)+_0x3a5558(0x92)+_0x264a52+_0x3a5558(0xc0),_0x1cbac3+=_0x3a5558(0xc3)+_0x440cb8+'DTOUpdate\x20}\x20from\x20\x27'+(typeof _0x21c3e1==_0x3a5558(0x89)?_0x3a5558(0x85)+_0x21c3e1:'@/'+_0x4ead4a)+_0x3a5558(0x92)+_0x264a52+'/Update\x27;\x0a',_0x1cbac3+='\x0a',_0x1cbac3+=_0x3a5558(0xac),_0x1cbac3+=_0x3a5558(0x7e)+_0x4d88fb+'\x0a',_0x1cbac3+=_0x3a5558(0x82),_0x1cbac3+=_0x3a5558(0xa6),_0x1cbac3+=_0x3a5558(0xaa)+_0x440cb8+'Handler\x20{\x0a\x0a',_0x1cbac3+=_0x3a5558(0x99),_0x1cbac3+='\x20\x20\x20\x20@Inject()\x20EventService:\x20EventService;\x0a',_0x1cbac3+=_0x3a5558(0xa4),_0x1cbac3+='\x20\x20\x20\x20@InjectRepository('+_0x440cb8+')\x20'+_0x264a52+':\x20'+_0x440cb8+_0x3a5558(0x8d),_0x1cbac3+=_0x3a5558(0x7f),_0x1cbac3+=_0x3a5558(0xa7),_0x1cbac3+='\x20\x20\x20\x20\x20*\x20**/\x0a',_0x1cbac3+=_0x3a5558(0x86)+_0x440cb8+'Entity>,\x20pageinfo?:\x20SearchPaginate,\x20options:\x20SearchOptions\x20=\x20{}):\x20Promise<['+_0x440cb8+_0x3a5558(0x75),_0x1cbac3+=_0x3a5558(0xbe)+_0x264a52+_0x3a5558(0xad),_0x1cbac3+=_0x3a5558(0xaf),_0x1cbac3+=_0x3a5558(0xb0),_0x1cbac3+=_0x3a5558(0x79),_0x1cbac3+='\x20\x20\x20\x20}\x0a\x0a\x0a',_0x1cbac3+=_0x3a5558(0x7f),_0x1cbac3+=_0x3a5558(0x9c),_0x1cbac3+=_0x3a5558(0x9e),_0x1cbac3+=_0x3a5558(0x81)+_0x440cb8+_0x3a5558(0xc7),_0x1cbac3+=_0x3a5558(0x70)+_0x264a52+_0x3a5558(0x95),_0x1cbac3+='\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20return\x20search.getOneOrFail().catch(()\x20=>\x20{\x0a',_0x1cbac3+='\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20throw\x20new\x20'+_0x440cb8+'Error('+_0x440cb8+'Error._NOTFIND_,\x20{\x20message:\x20\x27'+_0x4d88fb+_0x3a5558(0xa3),_0x1cbac3+=_0x3a5558(0x97),_0x1cbac3+=_0x3a5558(0xb0),_0x1cbac3+='\x20\x20\x20\x20\x20\x20\x20\x20return\x20tmpModel\x0a',_0x1cbac3+=_0x3a5558(0xbb),_0x1cbac3+=_0x3a5558(0x7f),_0x1cbac3+='\x20\x20\x20\x20\x20*\x20添加数据\x0a',_0x1cbac3+=_0x3a5558(0x9e),_0x1cbac3+='\x20\x20\x20\x20async\x20create(params:\x20'+_0x440cb8+_0x3a5558(0x9b),_0x1cbac3+=_0x3a5558(0x87)+_0x264a52+_0x3a5558(0xb7),_0x1cbac3+=_0x3a5558(0x90)+_0x264a52+_0x3a5558(0xa2),_0x1cbac3+='\x20\x20\x20\x20}\x0a\x0a\x0a',_0x1cbac3+=_0x3a5558(0x7f),_0x1cbac3+='\x20\x20\x20\x20\x20*\x20修改数据\x0a',_0x1cbac3+=_0x3a5558(0x9e),_0x1cbac3+=_0x3a5558(0xc8)+_0x440cb8+'Entity>,\x20params:\x20'+_0x440cb8+'DTOUpdate,\x20options:\x20SearchOptions\x20=\x20{})\x20{\x0a',_0x1cbac3+=_0x3a5558(0x70)+_0x264a52+_0x3a5558(0x95),_0x1cbac3+=_0x3a5558(0x7b),_0x1cbac3+='\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20throw\x20new\x20'+_0x440cb8+_0x3a5558(0x91)+_0x440cb8+_0x3a5558(0xbc)+_0x4d88fb+_0x3a5558(0xa3),_0x1cbac3+='\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20});\x0a',_0x1cbac3+='\x20\x20\x20\x20\x20\x20\x20\x20});\x0a\x0a',_0x1cbac3+=_0x3a5558(0xa8)+_0x264a52+_0x3a5558(0xa9),_0x1cbac3+=_0x3a5558(0x90)+_0x264a52+_0x3a5558(0xa2),_0x1cbac3+=_0x3a5558(0xbb),_0x1cbac3+='\x20\x20\x20\x20/**\x0a',_0x1cbac3+=_0x3a5558(0xab),_0x1cbac3+=_0x3a5558(0x9e),_0x1cbac3+='\x20\x20\x20\x20async\x20remove(conditions:\x20SearchParams<'+_0x440cb8+_0x3a5558(0xc7),_0x1cbac3+=_0x3a5558(0x8c)+_0x264a52+_0x3a5558(0x95),_0x1cbac3+='\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20return\x20search.getMany();\x0a',_0x1cbac3+=_0x3a5558(0xb0),_0x1cbac3+=_0x3a5558(0xb3),_0x1cbac3+=_0x3a5558(0x94)+_0x264a52+_0x3a5558(0xc2),_0x1cbac3+=_0x3a5558(0xbd),_0x1cbac3+=_0x3a5558(0xa1),_0x1cbac3+='\x20\x20\x20\x20}\x0a\x0a\x0a',_0x1cbac3+=_0x3a5558(0x7f),_0x1cbac3+=_0x3a5558(0x72),_0x1cbac3+=_0x3a5558(0x9e),_0x1cbac3+='\x20\x20\x20\x20async\x20restores(conditions:\x20SearchParams<'+_0x440cb8+_0x3a5558(0xc7),_0x1cbac3+=_0x3a5558(0x77)+_0x264a52+_0x3a5558(0x95),_0x1cbac3+='\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20search.withDeleted().andWhere(`${search.alias}.deleted_at\x20IS\x20NOT\x20NULL`);\x0a',_0x1cbac3+='\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20return\x20search.getMany();\x0a',_0x1cbac3+=_0x3a5558(0xb0),_0x1cbac3+='\x20\x20\x20\x20\x20\x20\x20\x20for\x20(let\x20tmpModel\x20of\x20tmpModels)\x20{\x0a',_0x1cbac3+='\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20restores.push(await\x20this.'+_0x264a52+_0x3a5558(0x7d),_0x1cbac3+='\x20\x20\x20\x20\x20\x20\x20\x20}\x0a',_0x1cbac3+=_0x3a5558(0xa0),_0x1cbac3+='\x20\x20\x20\x20}\x0a\x0a\x0a',_0x1cbac3+='}',!fs[_0x3a5558(0x7c)]((0x0,path_1[_0x3a5558(0x76)])(_0x47e1a5))&&fs['mkdirSync']((0x0,path_1['dirname'])(_0x47e1a5),{'recursive':!![]}),fs[_0x3a5558(0xb9)](_0x47e1a5,_0x1cbac3,_0x3a5558(0x78));}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a10_0x25f35f=a10_0x50b5;function a10_0x3003(){const _0x51ad99=['Type','Search\x20{\x0a\x0a','17UFmBno','\x20\x20\x20\x20@Search(\x27','\x20\x20\x20\x20\x20\x20\x20\x20if(\x20','/searchs/','%column%','created_at','updated_at','\x20\x20\x20\x20@Search(\x27updated_at_between\x27,\x20\x27修改时间在选定时间之内\x27)\x0a','@Provide()\x0a','../helper','36LVezCw','\x20\x20\x20\x20\x20\x20\x20\x20if(\x20updated_at_between.length\x20==\x202\x20){\x0a','displayorder','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20this.','\x20\x20\x20\x20\x20\x20\x20\x20query.andWhere(`${query.alias}.','utf-8','/**\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','\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','7gzVaCk','_start\x20})\x0a','_between[0]).format(\x27YYYY-MM-DD\x20HH:mm:ss\x27))\x0a','107239xUUyoT','defineProperty','829314ZYKjXu','\x20\x20\x20\x20@Search(\x27updated_at_end\x27,\x20\x27修改时间:<=\x20起始时间(之前)\x27)\x0a','import\x20{\x20Provide,\x20Search,\x20ObjectLiteral,\x20SelectQueryBuilder\x20}\x20from\x20\x27@anveroapi/typeorm\x27;\x0a\x0a','constructor','\x20*\x20','\x20>=\x20:','397324IVlhXB','.ts','\x20\x20\x20\x20}\x0a\x0a','datetime','default','Field','1504788miNOPP','_end:\x20string)\x20{\x0a','(((.+)+)+)+$','dirname','_between[1]).format(\x27YYYY-MM-DD\x20HH:mm:ss\x27))\x0a',':>=\x20起始时间(之后)\x27)\x0a','json','_between:\x20string[])\x20{\x0a','在选定时间之内\x27)\x0a','\x20*\x20**/\x0a','10FjFXkp','existsSync','text','\x20\x20\x20\x20async\x20updated_at_end(query:\x20SelectQueryBuilder<ObjectLiteral>,\x20updated_at_end:\x20string)\x20{\x0a','\x20\x20\x20\x20@Search(\x27created_at_start\x27,\x20\x27创建时间:>=\x20起始时间(之后)\x27)\x0a','\x20\x20\x20\x20async\x20updated_at_between(query:\x20SelectQueryBuilder<ObjectLiteral>,\x20updated_at_between:\x20string[])\x20{\x0a','_end`,\x20{\x20','\x20\x20\x20\x20\x20\x20\x20\x20}\x0a','path','Comment','2006440iLIsYt','indexOf','10mhYPFm','\x20\x20\x20\x20\x20\x20\x20\x20if(\x20created_at_between.length\x20==\x202\x20){\x0a',':<=\x20起始时间(之前)\x27)\x0a','toString','deleted_at','444012cWfrRR','\x20\x20\x20\x20async\x20','longtext','_end\x20})\x0a','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20this.created_at_end(query,\x20dayjs(created_at_between[1]).format(\x27YYYY-MM-DD\x20HH:mm:ss\x27))\x0a','timestamp','\x20\x20\x20\x20async\x20created_at_between(query:\x20SelectQueryBuilder<ObjectLiteral>,\x20created_at_between:\x20string[])\x20{\x0a','28870buEoOC','\x20\x20\x20\x20async\x20created_at_start(query:\x20SelectQueryBuilder<ObjectLiteral>,\x20created_at_start:\x20string)\x20{\x0a','\x20\x20\x20\x20@Search(\x27created_at_between\x27,\x20\x27创建时间在选定时间之内\x27)\x0a','\x20\x20\x20\x20async\x20created_at_end(query:\x20SelectQueryBuilder<ObjectLiteral>,\x20created_at_end:\x20string)\x20{\x0a','_end(query,\x20dayjs(','search','_start`,\x20{\x20','_start(query:\x20SelectQueryBuilder<ObjectLiteral>,\x20','\x20\x20\x20\x20\x20\x20\x20\x20query.andWhere(`${query.alias}.created_at\x20<=\x20:created_at_end`,\x20{\x20created_at_end\x20})\x0a','\x20\x20\x20\x20@Search(\x27created_at_end\x27,\x20\x27创建时间:<=\x20起始时间(之前)\x27)\x0a','replace','_end(query:\x20SelectQueryBuilder<ObjectLiteral>,\x20','_between.length\x20==\x202\x20){\x0a'];a10_0x3003=function(){return _0x51ad99;};return a10_0x3003();}function a10_0x50b5(_0x412081,_0x1290c2){_0x412081=_0x412081-0x15a;const _0x22d16e=a10_0x3003();let _0x2e63f8=_0x22d16e[_0x412081];return _0x2e63f8;}(function(_0x326442,_0x5b3225){const _0x5045bd=a10_0x50b5,_0x36da36=_0x326442();while(!![]){try{const _0x4e9f9a=parseInt(_0x5045bd(0x186))/0x1*(parseInt(_0x5045bd(0x177))/0x2)+parseInt(_0x5045bd(0x170))/0x3+parseInt(_0x5045bd(0x1a4))/0x4*(-parseInt(_0x5045bd(0x15f))/0x5)+-parseInt(_0x5045bd(0x1aa))/0x6*(parseInt(_0x5045bd(0x199))/0x7)+parseInt(_0x5045bd(0x169))/0x8+parseInt(_0x5045bd(0x19e))/0x9*(-parseInt(_0x5045bd(0x16b))/0xa)+-parseInt(_0x5045bd(0x19c))/0xb*(-parseInt(_0x5045bd(0x190))/0xc);if(_0x4e9f9a===_0x5b3225)break;else _0x36da36['push'](_0x36da36['shift']());}catch(_0x1fc421){_0x36da36['push'](_0x36da36['shift']());}}}(a10_0x3003,0x20305));const a10_0x295b40=(function(){let _0x5a0d88=!![];return function(_0x1e0dd6,_0x2e83f5){const _0x3330ff=_0x5a0d88?function(){if(_0x2e83f5){const _0x42be0c=_0x2e83f5['apply'](_0x1e0dd6,arguments);return _0x2e83f5=null,_0x42be0c;}}:function(){};return _0x5a0d88=![],_0x3330ff;};}()),a10_0x2e63f8=a10_0x295b40(this,function(){const _0x5dca7a=a10_0x50b5;return a10_0x2e63f8[_0x5dca7a(0x16e)]()[_0x5dca7a(0x17c)]('(((.+)+)+)+$')[_0x5dca7a(0x16e)]()[_0x5dca7a(0x1a1)](a10_0x2e63f8)[_0x5dca7a(0x17c)](_0x5dca7a(0x1ac));});a10_0x2e63f8();'use strict';Object[a10_0x25f35f(0x19d)](exports,'__esModule',{'value':!![]}),exports[a10_0x25f35f(0x1a8)]=default_1;const fs=require('fs'),path_1=require(a10_0x25f35f(0x167)),helper_1=require(a10_0x25f35f(0x18f));async function default_1({tablestartUp:_0x1dcde6,tablestartUpShort:_0x500d68,basedir:_0x1ee7a6,Fields:_0x247c60,Comment:_0x1df696}){const _0x46aff2=a10_0x25f35f,_0x4225ea=_0x1ee7a6+(_0x46aff2(0x189)+_0x500d68+_0x46aff2(0x1a5));if(!fs[_0x46aff2(0x160)](_0x4225ea)){let _0x372288='',_0x29d700='';for(let _0x2a7271 in _0x247c60){let _0x53d785=_0x247c60[_0x2a7271],_0x446afb=(0x0,helper_1['getProp'])(_0x53d785[_0x46aff2(0x184)]);if(_0x53d785[_0x46aff2(0x1a9)]==_0x46aff2(0x192)||_0x53d785[_0x46aff2(0x1a9)]==_0x46aff2(0x18b)||_0x53d785['Field']==_0x46aff2(0x18c)||_0x53d785[_0x46aff2(0x1a9)]==_0x46aff2(0x16f))continue;if(_0x446afb==_0x46aff2(0x15b)){}else{if(_0x446afb==_0x46aff2(0x161)){}else{if(_0x446afb==_0x46aff2(0x172)){}else['date',_0x46aff2(0x1a7),_0x46aff2(0x175)][_0x46aff2(0x16a)](_0x446afb)>-0x1&&(_0x372288+=_0x46aff2(0x187)+_0x53d785['Field']+'_between\x27,\x20\x27'+_0x53d785[_0x46aff2(0x168)]+_0x46aff2(0x15d),_0x372288+=_0x46aff2(0x171)+_0x53d785[_0x46aff2(0x1a9)]+'_between(query:\x20SelectQueryBuilder<ObjectLiteral>,\x20'+_0x53d785[_0x46aff2(0x1a9)]+_0x46aff2(0x15c),_0x372288+=_0x46aff2(0x188)+_0x53d785[_0x46aff2(0x1a9)]+_0x46aff2(0x183),_0x372288+=_0x46aff2(0x193)+_0x53d785[_0x46aff2(0x1a9)]+_0x46aff2(0x17b)+_0x53d785['Field']+_0x46aff2(0x1ae),_0x372288+='\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20this.'+_0x53d785['Field']+'_start(query,\x20dayjs('+_0x53d785[_0x46aff2(0x1a9)]+_0x46aff2(0x19b),_0x372288+=_0x46aff2(0x166),_0x372288+=_0x46aff2(0x1a6),_0x372288+='\x20\x20\x20\x20@Search(\x27'+_0x53d785[_0x46aff2(0x1a9)]+'_start\x27,\x20\x27'+_0x53d785['Comment']+_0x46aff2(0x15a),_0x372288+=_0x46aff2(0x171)+_0x53d785['Field']+_0x46aff2(0x17e)+_0x53d785[_0x46aff2(0x1a9)]+'_start:\x20string)\x20{\x0a',_0x372288+=_0x46aff2(0x194)+_0x53d785['Field']+_0x46aff2(0x1a3)+_0x53d785['Field']+_0x46aff2(0x17d)+_0x53d785[_0x46aff2(0x1a9)]+_0x46aff2(0x19a),_0x372288+=_0x46aff2(0x1a6),_0x372288+='\x20\x20\x20\x20@Search(\x27'+_0x53d785[_0x46aff2(0x1a9)]+'_end\x27,\x20\x27'+_0x53d785[_0x46aff2(0x168)]+_0x46aff2(0x16d),_0x372288+=_0x46aff2(0x171)+_0x53d785[_0x46aff2(0x1a9)]+_0x46aff2(0x182)+_0x53d785[_0x46aff2(0x1a9)]+_0x46aff2(0x1ab),_0x372288+=_0x46aff2(0x194)+_0x53d785[_0x46aff2(0x1a9)]+'\x20<=\x20:'+_0x53d785['Field']+_0x46aff2(0x165)+_0x53d785[_0x46aff2(0x1a9)]+_0x46aff2(0x173),_0x372288+=_0x46aff2(0x1a6));}}}_0x372288+=_0x46aff2(0x179),_0x372288+=_0x46aff2(0x176),_0x372288+=_0x46aff2(0x16c),_0x372288+=_0x46aff2(0x174),_0x372288+=_0x46aff2(0x198),_0x372288+=_0x46aff2(0x166),_0x372288+=_0x46aff2(0x1a6),_0x372288+=_0x46aff2(0x163),_0x372288+=_0x46aff2(0x178),_0x372288+=_0x46aff2(0x197),_0x372288+=_0x46aff2(0x1a6),_0x372288+=_0x46aff2(0x180),_0x372288+=_0x46aff2(0x17a),_0x372288+=_0x46aff2(0x17f),_0x372288+=_0x46aff2(0x1a6),_0x372288+=_0x46aff2(0x18d),_0x372288+=_0x46aff2(0x164),_0x372288+=_0x46aff2(0x191),_0x372288+='\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',_0x372288+='\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',_0x372288+=_0x46aff2(0x166),_0x372288+=_0x46aff2(0x1a6),_0x372288+='\x20\x20\x20\x20@Search(\x27updated_at_start\x27,\x20\x27修改时间:>=\x20起始时间(之后)\x27)\x0a',_0x372288+='\x20\x20\x20\x20async\x20updated_at_start(query:\x20SelectQueryBuilder<ObjectLiteral>,\x20updated_at_start:\x20string)\x20{\x0a',_0x372288+='\x20\x20\x20\x20\x20\x20\x20\x20query.andWhere(`${query.alias}.updated_at\x20>=\x20:updated_at_start`,\x20{\x20updated_at_start\x20})\x0a',_0x372288+=_0x46aff2(0x1a6),_0x372288+=_0x46aff2(0x19f),_0x372288+=_0x46aff2(0x162),_0x372288+='\x20\x20\x20\x20\x20\x20\x20\x20query.andWhere(`${query.alias}.updated_at\x20<=\x20:updated_at_end`,\x20{\x20updated_at_end\x20})\x0a',_0x372288+='\x20\x20\x20\x20}\x0a\x0a',_0x29d700+=_0x46aff2(0x1a0),_0x29d700+=_0x46aff2(0x196),_0x29d700+=_0x46aff2(0x1a2)+_0x1df696+'-自定义检索\x0a',_0x29d700+=_0x46aff2(0x15e),_0x29d700+=_0x46aff2(0x18e),_0x29d700+='export\x20class\x20'+_0x1dcde6+_0x46aff2(0x185),_0x29d700+=_0x46aff2(0x18a),_0x29d700+='}',_0x29d700=_0x29d700[_0x46aff2(0x181)](_0x46aff2(0x18a),_0x372288),!fs[_0x46aff2(0x160)]((0x0,path_1[_0x46aff2(0x1ad)])(_0x4225ea))&&fs['mkdirSync']((0x0,path_1[_0x46aff2(0x1ad)])(_0x4225ea),{'recursive':!![]}),fs['writeFileSync'](_0x4225ea,_0x29d700,_0x46aff2(0x195));}}
|