anvero-apihelper 3.0.0 → 3.0.1
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 +29 -29
|
@@ -1 +1 @@
|
|
|
1
|
-
const a0_0x281447=a0_0x1bd7;(function(_0x52a8c4,_0x1be094){const _0x4e278b=a0_0x1bd7,_0x461457=_0x52a8c4();while(!![]){try{const _0x127a88=-parseInt(_0x4e278b(0x120))/0x1+-parseInt(_0x4e278b(0x12b))/0x2+parseInt(_0x4e278b(0x133))/0x3*(parseInt(_0x4e278b(0x154))/0x4)+-parseInt(_0x4e278b(0x105))/0x5*(-parseInt(_0x4e278b(0x146))/0x6)+parseInt(_0x4e278b(0x152))/0x7+parseInt(_0x4e278b(0x11a))/0x8*(parseInt(_0x4e278b(0x12e))/0x9)+parseInt(_0x4e278b(0x128))/0xa*(parseInt(_0x4e278b(0x151))/0xb);if(_0x127a88===_0x1be094)break;else _0x461457['push'](_0x461457['shift']());}catch(_0x1dc21c){_0x461457['push'](_0x461457['shift']());}}}(a0_0x4f2f,0x8acef));function a0_0x4f2f(){const _0x578fcc=['controller','生成模式\x20app|basic|plugin,默认\x20app(产物依次为\x20src/app、src/basic、src/apps/<模块>)','parseTableprefix','按数据库表生成分层\x20API\x20代码(--mode\x20app|basic|plugin,默认\x20app:表前缀\x20app_,控制器\x20admin,输出\x20src/app)','createPlugin','toString','design:returntype','5gBkYTo','trim','-m,\x20--mode\x20[mode]','__esModule','parseTables','parseSubstr','app','tableprefix','src/apps/<模块>','--vuedialog','exit','前端全局\x20api\x20前缀(配合\x20--hasvue,如\x20$api):设置时不生成独立\x20api\x20文件,页面直接调\x20${前缀}.${模块}${表Pascal}.${方法}($api.Order.List\x20/\x20$api.helloincshOrders.List)适配\x20alova;缺省按原规则生成\x20vue/apis\x20独立\x20api\x20文件','parseHasvue','anveroGenCommand','mode','design:paramtypes','生成前端代码到\x20./vue;不带此参数不生成前端','[gen:api]\x20未知模式\x20','parseMode','vueapiprefix','includes','104IcBHkG','--vueapiprefix\x20[vueapiprefix]','decorate','basic_','length','parseVuedialog','667242fuqEZJ','控制器目录名,逗号分隔多个,默认\x20admin;裸\x20flag\x20落\x20app/basic\x20根目录;空串只生成基础分层','basic','prototype','defineProperty','tables','function','isFinite','7006660vWGPpY','hasvue','表名截断长度,默认\x20app\x20模式\x204(去\x20app_)、basic\x20模式\x206(去\x20basic_)、plugin\x20模式\x200','2092274IuunhJ','typeorm\x20数据源名,默认\x20default','ApicreateService','257697mohRnU','string','log','constructor','error','27582JMUAAk','split','parseController','substr','@midwayjs/core','metadata','plugin','-t,\x20--tables\x20[tables]','createBasic','__decorate','\x20全量匹配','apply','filter','map','__metadata','src/','--hasvue','vuedialog','parseConnection','3469026WbhXtQ','default','design:type','object','-c,\x20--controller\x20[controller]','app_','createApp','按前缀\x20','search','admin','../service/ApicreateService','11MwQErh','3128944YtabqD','@midwayjs/commander','80nObzXC',',可选\x20app\x20|\x20basic\x20|\x20plugin','Option','--connection\x20[connection]','parseVueapiprefix','前端生成弹窗形态标记(配合\x20--hasvue)','(((.+)+)+)+$','-s,\x20--substr\x20[substr]','run','connection'];a0_0x4f2f=function(){return _0x578fcc;};return a0_0x4f2f();}function a0_0x1bd7(_0x334509,_0x5a147c){_0x334509=_0x334509-0x105;const _0x2d2892=a0_0x4f2f();let _0xa828c8=_0x2d2892[_0x334509];return _0xa828c8;}const a0_0x473a7e=(function(){let _0x350d7=!![];return function(_0x1b4512,_0x4700e9){const _0x163560=_0x350d7?function(){const _0x586571=a0_0x1bd7;if(_0x4700e9){const _0x23e620=_0x4700e9[_0x586571(0x13e)](_0x1b4512,arguments);return _0x4700e9=null,_0x23e620;}}:function(){};return _0x350d7=![],_0x163560;};}()),a0_0xa828c8=a0_0x473a7e(this,function(){const _0x40305a=a0_0x1bd7;return a0_0xa828c8[_0x40305a(0x163)]()[_0x40305a(0x14e)](_0x40305a(0x15a))[_0x40305a(0x163)]()[_0x40305a(0x131)](a0_0xa828c8)[_0x40305a(0x14e)](_0x40305a(0x15a));});a0_0xa828c8();'use strict';var __decorate=this&&this[a0_0x281447(0x13c)]||function(_0x117b66,_0x33dbf9,_0x270753,_0x217a24){const _0x3a676a=a0_0x281447;var _0x2b3bdd=arguments['length'],_0x5e4351=_0x2b3bdd<0x3?_0x33dbf9:_0x217a24===null?_0x217a24=Object['getOwnPropertyDescriptor'](_0x33dbf9,_0x270753):_0x217a24,_0xa657ce;if(typeof Reflect==='object'&&typeof Reflect['decorate']===_0x3a676a(0x126))_0x5e4351=Reflect[_0x3a676a(0x11c)](_0x117b66,_0x33dbf9,_0x270753,_0x217a24);else{for(var _0x3dba38=_0x117b66['length']-0x1;_0x3dba38>=0x0;_0x3dba38--)if(_0xa657ce=_0x117b66[_0x3dba38])_0x5e4351=(_0x2b3bdd<0x3?_0xa657ce(_0x5e4351):_0x2b3bdd>0x3?_0xa657ce(_0x33dbf9,_0x270753,_0x5e4351):_0xa657ce(_0x33dbf9,_0x270753))||_0x5e4351;}return _0x2b3bdd>0x3&&_0x5e4351&&Object[_0x3a676a(0x124)](_0x33dbf9,_0x270753,_0x5e4351),_0x5e4351;},__metadata=this&&this[a0_0x281447(0x141)]||function(_0x253b29,_0x4edc2c){const _0x29e54e=a0_0x281447;if(typeof Reflect===_0x29e54e(0x149)&&typeof Reflect[_0x29e54e(0x138)]===_0x29e54e(0x126))return Reflect[_0x29e54e(0x138)](_0x253b29,_0x4edc2c);};Object[a0_0x281447(0x124)](exports,a0_0x281447(0x108),{'value':!![]}),exports[a0_0x281447(0x112)]=void 0x0;const core_1=require(a0_0x281447(0x137)),commander_1=require(a0_0x281447(0x153)),ApicreateService_1=require(a0_0x281447(0x150));let anveroGenCommand=class anveroGenCommand{[a0_0x281447(0x117)](_0x1cc837){return _0x1cc837;}[a0_0x281447(0x109)](_0x2e086f){const _0x99510=a0_0x281447;return(_0x2e086f||'')['split'](',')[_0x99510(0x140)](_0x7f6b4c=>_0x7f6b4c[_0x99510(0x106)]())['filter'](Boolean);}[a0_0x281447(0x160)](_0x2111b5){const _0x11a5d6=a0_0x281447;return typeof _0x2111b5===_0x11a5d6(0x12f)?_0x2111b5:undefined;}[a0_0x281447(0x10a)](_0x421026){const _0x25ebd5=a0_0x281447;return typeof _0x421026===_0x25ebd5(0x12f)&&_0x421026!==''&&Number[_0x25ebd5(0x127)](Number(_0x421026))?Number(_0x421026):undefined;}[a0_0x281447(0x135)](_0x27f218){const _0x38998d=a0_0x281447;if(_0x27f218===undefined)return!![];return(_0x27f218||'')[_0x38998d(0x134)](',')[_0x38998d(0x140)](_0x26a609=>_0x26a609['trim']())[_0x38998d(0x13f)](Boolean);}[a0_0x281447(0x111)](){return!![];}['parseVuedialog'](){return!![];}['parseVueapiprefix'](_0x5dd596){const _0x387f46=a0_0x281447;return typeof _0x5dd596===_0x387f46(0x12f)&&_0x5dd596?_0x5dd596:undefined;}[a0_0x281447(0x145)](_0x4ca996){return typeof _0x4ca996==='string'&&_0x4ca996?_0x4ca996:undefined;}async[a0_0x281447(0x15c)](_0x4a70a8,_0x1b7ad6){const _0x4da50c=a0_0x281447,_0x36d3a1=_0x1b7ad6[_0x4da50c(0x113)]||_0x4da50c(0x10b);![_0x4da50c(0x10b),_0x4da50c(0x122),_0x4da50c(0x139)][_0x4da50c(0x119)](_0x36d3a1)&&(console[_0x4da50c(0x132)](_0x4da50c(0x116)+_0x36d3a1+_0x4da50c(0x155)),process[_0x4da50c(0x10f)](0x1));const _0x1de14b={'app':{'tableprefix':_0x4da50c(0x14b),'substr':0x4},'basic':{'tableprefix':_0x4da50c(0x11d),'substr':0x6},'plugin':{'tableprefix':'','substr':0x0}},_0x5685a5=typeof _0x1b7ad6[_0x4da50c(0x10c)]===_0x4da50c(0x12f)?_0x1b7ad6['tableprefix']:_0x1de14b[_0x36d3a1][_0x4da50c(0x10c)],_0x3a62d0=Number[_0x4da50c(0x127)](_0x1b7ad6[_0x4da50c(0x136)])?_0x1b7ad6[_0x4da50c(0x136)]:_0x1de14b[_0x36d3a1][_0x4da50c(0x136)],_0x5ab380=_0x1b7ad6[_0x4da50c(0x15e)]===undefined?[_0x4da50c(0x14f)]:_0x1b7ad6[_0x4da50c(0x15e)],_0x187607=typeof _0x1b7ad6[_0x4da50c(0x15d)]===_0x4da50c(0x12f)?_0x1b7ad6[_0x4da50c(0x15d)]:_0x4da50c(0x147),_0x16ab6b={'substr':_0x3a62d0,'tableprefix':_0x5685a5,'controller':_0x5ab380,'connection':_0x187607,'hasvue':_0x1b7ad6[_0x4da50c(0x129)],'vuedialog':!!_0x1b7ad6[_0x4da50c(0x144)],'vueapiprefix':_0x1b7ad6[_0x4da50c(0x118)]},_0x365267=_0x1b7ad6[_0x4da50c(0x125)]||[],_0x367009=_0x365267[_0x4da50c(0x11e)]?_0x365267:[''];for(const _0x24af3d of _0x367009){const _0x5a5394={..._0x16ab6b,..._0x24af3d?{'table':_0x24af3d}:{}};if(_0x36d3a1===_0x4da50c(0x122))await this[_0x4da50c(0x12d)][_0x4da50c(0x13b)](_0x5a5394);else _0x36d3a1===_0x4da50c(0x139)?await this[_0x4da50c(0x12d)][_0x4da50c(0x162)](_0x5a5394):await this[_0x4da50c(0x12d)][_0x4da50c(0x14c)](_0x5a5394);console[_0x4da50c(0x130)]('[gen:api]\x20完成:'+(_0x24af3d||_0x4da50c(0x14d)+(_0x5685a5||'*')+_0x4da50c(0x13d)));}console['log']('[gen:api]\x20产物目录:'+(_0x36d3a1==='plugin'?_0x4da50c(0x10d):_0x4da50c(0x142)+_0x36d3a1)),process[_0x4da50c(0x10f)](0x0);}};exports[a0_0x281447(0x112)]=anveroGenCommand,__decorate([(0x0,core_1['Inject'])(),__metadata(a0_0x281447(0x148),ApicreateService_1[a0_0x281447(0x12d)])],anveroGenCommand[a0_0x281447(0x123)],a0_0x281447(0x12d),void 0x0),__decorate([(0x0,commander_1['Option'])({'flags':a0_0x281447(0x107),'description':a0_0x281447(0x15f)}),__metadata(a0_0x281447(0x148),Function),__metadata(a0_0x281447(0x114),[String]),__metadata(a0_0x281447(0x164),void 0x0)],anveroGenCommand['prototype'],'parseMode',null),__decorate([(0x0,commander_1[a0_0x281447(0x156)])({'flags':a0_0x281447(0x13a),'description':'精确表名,逗号分隔多个;缺省按\x20tableprefix\x20全量匹配'}),__metadata(a0_0x281447(0x148),Function),__metadata('design:paramtypes',[String]),__metadata(a0_0x281447(0x164),void 0x0)],anveroGenCommand[a0_0x281447(0x123)],a0_0x281447(0x109),null),__decorate([(0x0,commander_1[a0_0x281447(0x156)])({'flags':'-p,\x20--tableprefix\x20[tableprefix]','description':'表前缀过滤,默认\x20app\x20模式\x20\x27app_\x27、basic\x20模式\x20\x27basic_\x27、plugin\x20模式\x20\x27\x27(全表)'}),__metadata(a0_0x281447(0x148),Function),__metadata(a0_0x281447(0x114),[String]),__metadata('design:returntype',void 0x0)],anveroGenCommand[a0_0x281447(0x123)],'parseTableprefix',null),__decorate([(0x0,commander_1[a0_0x281447(0x156)])({'flags':a0_0x281447(0x15b),'description':a0_0x281447(0x12a)}),__metadata(a0_0x281447(0x148),Function),__metadata(a0_0x281447(0x114),[String]),__metadata(a0_0x281447(0x164),void 0x0)],anveroGenCommand[a0_0x281447(0x123)],a0_0x281447(0x10a),null),__decorate([(0x0,commander_1['Option'])({'flags':a0_0x281447(0x14a),'description':a0_0x281447(0x121)}),__metadata('design:type',Function),__metadata(a0_0x281447(0x114),[String]),__metadata('design:returntype',void 0x0)],anveroGenCommand[a0_0x281447(0x123)],a0_0x281447(0x135),null),__decorate([(0x0,commander_1[a0_0x281447(0x156)])({'flags':a0_0x281447(0x143),'description':a0_0x281447(0x115)}),__metadata(a0_0x281447(0x148),Function),__metadata(a0_0x281447(0x114),[]),__metadata('design:returntype',void 0x0)],anveroGenCommand[a0_0x281447(0x123)],a0_0x281447(0x111),null),__decorate([(0x0,commander_1[a0_0x281447(0x156)])({'flags':a0_0x281447(0x10e),'description':a0_0x281447(0x159)}),__metadata('design:type',Function),__metadata(a0_0x281447(0x114),[]),__metadata('design:returntype',void 0x0)],anveroGenCommand[a0_0x281447(0x123)],a0_0x281447(0x11f),null),__decorate([(0x0,commander_1['Option'])({'flags':a0_0x281447(0x11b),'description':a0_0x281447(0x110)}),__metadata(a0_0x281447(0x148),Function),__metadata(a0_0x281447(0x114),[String]),__metadata(a0_0x281447(0x164),void 0x0)],anveroGenCommand[a0_0x281447(0x123)],a0_0x281447(0x158),null),__decorate([(0x0,commander_1['Option'])({'flags':a0_0x281447(0x157),'description':a0_0x281447(0x12c)}),__metadata('design:type',Function),__metadata(a0_0x281447(0x114),[String]),__metadata(a0_0x281447(0x164),void 0x0)],anveroGenCommand[a0_0x281447(0x123)],a0_0x281447(0x145),null),exports[a0_0x281447(0x112)]=anveroGenCommand=__decorate([(0x0,commander_1['Command'])({'name':'anvero:gen','description':a0_0x281447(0x161)})],anveroGenCommand);
|
|
1
|
+
const a0_0x5c99eb=a0_0x35d7;(function(_0x237fea,_0x39e362){const _0x2f934c=a0_0x35d7,_0x49454f=_0x237fea();while(!![]){try{const _0x39e274=-parseInt(_0x2f934c(0x108))/0x1*(parseInt(_0x2f934c(0xef))/0x2)+-parseInt(_0x2f934c(0xfa))/0x3*(-parseInt(_0x2f934c(0xdb))/0x4)+parseInt(_0x2f934c(0xe3))/0x5+parseInt(_0x2f934c(0xcc))/0x6+parseInt(_0x2f934c(0x100))/0x7*(parseInt(_0x2f934c(0xde))/0x8)+parseInt(_0x2f934c(0xf9))/0x9+-parseInt(_0x2f934c(0xf0))/0xa;if(_0x39e274===_0x39e362)break;else _0x49454f['push'](_0x49454f['shift']());}catch(_0x41583c){_0x49454f['push'](_0x49454f['shift']());}}}(a0_0x175c,0xd9175));const a0_0x46aa74=(function(){let _0x3b9f40=!![];return function(_0x127d96,_0x4587b9){const _0x388929=_0x3b9f40?function(){const _0x2abcdf=a0_0x35d7;if(_0x4587b9){const _0x5d6b2d=_0x4587b9[_0x2abcdf(0xee)](_0x127d96,arguments);return _0x4587b9=null,_0x5d6b2d;}}:function(){};return _0x3b9f40=![],_0x388929;};}()),a0_0x58c63a=a0_0x46aa74(this,function(){const _0x41ca41=a0_0x35d7;return a0_0x58c63a[_0x41ca41(0xe2)]()[_0x41ca41(0xd0)](_0x41ca41(0xc5))[_0x41ca41(0xe2)]()[_0x41ca41(0xc6)](a0_0x58c63a)['search']('(((.+)+)+)+$');});a0_0x58c63a();function a0_0x35d7(_0x4e3522,_0x4313be){_0x4e3522=_0x4e3522-0xba;const _0x19d788=a0_0x175c();let _0x58c63a=_0x19d788[_0x4e3522];return _0x58c63a;}'use strict';var __decorate=this&&this[a0_0x5c99eb(0xd5)]||function(_0x46b201,_0x266a86,_0x2124b0,_0x28e9f9){const _0x11c680=a0_0x5c99eb;var _0x536d39=arguments['length'],_0x1a3b64=_0x536d39<0x3?_0x266a86:_0x28e9f9===null?_0x28e9f9=Object[_0x11c680(0xcf)](_0x266a86,_0x2124b0):_0x28e9f9,_0x5acca7;if(typeof Reflect===_0x11c680(0xd7)&&typeof Reflect[_0x11c680(0x107)]===_0x11c680(0xba))_0x1a3b64=Reflect['decorate'](_0x46b201,_0x266a86,_0x2124b0,_0x28e9f9);else{for(var _0x3af6a4=_0x46b201[_0x11c680(0xc0)]-0x1;_0x3af6a4>=0x0;_0x3af6a4--)if(_0x5acca7=_0x46b201[_0x3af6a4])_0x1a3b64=(_0x536d39<0x3?_0x5acca7(_0x1a3b64):_0x536d39>0x3?_0x5acca7(_0x266a86,_0x2124b0,_0x1a3b64):_0x5acca7(_0x266a86,_0x2124b0))||_0x1a3b64;}return _0x536d39>0x3&&_0x1a3b64&&Object[_0x11c680(0x109)](_0x266a86,_0x2124b0,_0x1a3b64),_0x1a3b64;},__metadata=this&&this['__metadata']||function(_0x4679ab,_0x36cd5a){if(typeof Reflect==='object'&&typeof Reflect['metadata']==='function')return Reflect['metadata'](_0x4679ab,_0x36cd5a);};Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports['anveroGenCommand']=void 0x0;const core_1=require(a0_0x5c99eb(0xf5)),commander_1=require(a0_0x5c99eb(0xf1)),ApicreateService_1=require(a0_0x5c99eb(0xcd));let anveroGenCommand=class anveroGenCommand{['parseMode'](_0x38b469){return _0x38b469;}['parseTables'](_0x1c8d1e){const _0x502c09=a0_0x5c99eb;return(_0x1c8d1e||'')[_0x502c09(0xbf)](',')[_0x502c09(0x104)](_0x592b20=>_0x592b20[_0x502c09(0xfc)]())[_0x502c09(0xc7)](Boolean);}[a0_0x5c99eb(0xf3)](_0x5a5c77){const _0xbb87e0=a0_0x5c99eb;return typeof _0x5a5c77===_0xbb87e0(0xe4)?_0x5a5c77:undefined;}['parseSubstr'](_0x1568b3){const _0x26cb50=a0_0x5c99eb;return typeof _0x1568b3===_0x26cb50(0xe4)&&_0x1568b3!==''&&Number[_0x26cb50(0xfd)](Number(_0x1568b3))?Number(_0x1568b3):undefined;}[a0_0x5c99eb(0xbe)](_0x319dff){const _0x245251=a0_0x5c99eb;if(_0x319dff===undefined)return!![];return(_0x319dff||'')[_0x245251(0xbf)](',')[_0x245251(0x104)](_0x226117=>_0x226117['trim']())['filter'](Boolean);}[a0_0x5c99eb(0xd1)](){return!![];}[a0_0x5c99eb(0xc8)](){return!![];}['parseVueapiprefix'](_0x18893b){return typeof _0x18893b==='string'&&_0x18893b?_0x18893b:undefined;}[a0_0x5c99eb(0xe9)](_0x4b5596){const _0x3e5936=a0_0x5c99eb;return typeof _0x4b5596===_0x3e5936(0xe4)&&_0x4b5596?_0x4b5596:undefined;}async['run'](_0x562e50,_0x3f4e4f){const _0x32d385=a0_0x5c99eb,_0x2d157a=_0x3f4e4f['mode']||_0x32d385(0xf6);![_0x32d385(0xf6),'basic',_0x32d385(0x101)][_0x32d385(0xed)](_0x2d157a)&&(console[_0x32d385(0xe0)]('[gen:api]\x20未知模式\x20'+_0x2d157a+',可选\x20app\x20|\x20basic\x20|\x20plugin'),process[_0x32d385(0xcb)](0x1));const _0x2e8b35={'app':{'tableprefix':_0x32d385(0xda),'substr':0x4},'basic':{'tableprefix':'basic_','substr':0x6},'plugin':{'tableprefix':'','substr':0x0}},_0x4310c0=typeof _0x3f4e4f[_0x32d385(0xdf)]===_0x32d385(0xe4)?_0x3f4e4f[_0x32d385(0xdf)]:_0x2e8b35[_0x2d157a][_0x32d385(0xdf)],_0x3ee5ae=Number[_0x32d385(0xfd)](_0x3f4e4f[_0x32d385(0xff)])?_0x3f4e4f[_0x32d385(0xff)]:_0x2e8b35[_0x2d157a][_0x32d385(0xff)],_0x1a75fa=_0x3f4e4f[_0x32d385(0x103)]===undefined?[_0x32d385(0xf4)]:_0x3f4e4f[_0x32d385(0x103)],_0x236c6b=typeof _0x3f4e4f[_0x32d385(0xd9)]==='string'?_0x3f4e4f[_0x32d385(0xd9)]:_0x32d385(0xd6),_0x49bc72={'substr':_0x3ee5ae,'tableprefix':_0x4310c0,'controller':_0x1a75fa,'connection':_0x236c6b,'hasvue':_0x3f4e4f[_0x32d385(0xf7)],'vuedialog':!!_0x3f4e4f['vuedialog'],'vueapiprefix':_0x3f4e4f['vueapiprefix']},_0xc2f0f5=_0x3f4e4f['tables']||[],_0x514674=_0xc2f0f5[_0x32d385(0xc0)]?_0xc2f0f5:[''];for(const _0x2569a5 of _0x514674){const _0x5bedc9={..._0x49bc72,..._0x2569a5?{'table':_0x2569a5}:{}};if(_0x2d157a==='basic')await this[_0x32d385(0xd4)][_0x32d385(0xd3)](_0x5bedc9);else _0x2d157a===_0x32d385(0x101)?await this[_0x32d385(0xd4)]['createPlugin'](_0x5bedc9):await this[_0x32d385(0xd4)][_0x32d385(0x102)](_0x5bedc9);console[_0x32d385(0xc4)]('[gen:api]\x20完成:'+(_0x2569a5||_0x32d385(0xe1)+(_0x4310c0||'*')+'\x20全量匹配'));}console[_0x32d385(0xc4)](_0x32d385(0x106)+(_0x2d157a==='plugin'?_0x32d385(0xfb):'src/'+_0x2d157a)),process[_0x32d385(0xcb)](0x0);}};function a0_0x175c(){const _0x388bec=['10522722elRBjr','../service/ApicreateService','design:returntype','getOwnPropertyDescriptor','search','parseHasvue','Option','createBasic','ApicreateService','__decorate','default','object','-s,\x20--substr\x20[substr]','connection','app_','3436rcxDKy','表前缀过滤,默认\x20app\x20模式\x20\x27app_\x27、basic\x20模式\x20\x27basic_\x27、plugin\x20模式\x20\x27\x27(全表)','按数据库表生成分层\x20API\x20代码(--mode\x20app|basic|plugin,默认\x20app:表前缀\x20app_,控制器\x20admin,输出\x20src/app)','19056OcxLEa','tableprefix','error','按前缀\x20','toString','2242550PuTtUb','string','--vueapiprefix\x20[vueapiprefix]','-p,\x20--tableprefix\x20[tableprefix]','生成前端代码到\x20./vue;不带此参数不生成前端','anvero:gen','parseConnection','前端生成弹窗形态标记(配合\x20--hasvue)','design:type','-c,\x20--controller\x20[controller]','includes','apply','2iIzZKh','12629290qFIgaJ','@midwayjs/commander','parseSubstr','parseTableprefix','admin','@midwayjs/core','app','hasvue','parseVueapiprefix','4766742CJOiuu','2334iKmapB','src/apps/<模块>','trim','isFinite','--vuedialog','substr','1078jVaJkG','plugin','createApp','controller','map','prototype','[gen:api]\x20产物目录:','decorate','1614931Kwbkdg','defineProperty','--hasvue','parseMode','function','parseTables','Inject','生成模式\x20app|basic|plugin,默认\x20app(产物依次为\x20src/app、src/basic、src/apps/<模块>)','parseController','split','length','anveroGenCommand','-m,\x20--mode\x20[mode]','控制器目录名,逗号分隔多个,默认\x20admin;裸\x20flag\x20落\x20app/basic\x20根目录;空串只生成基础分层','log','(((.+)+)+)+$','constructor','filter','parseVuedialog','--connection\x20[connection]','design:paramtypes','exit'];a0_0x175c=function(){return _0x388bec;};return a0_0x175c();}exports[a0_0x5c99eb(0xc1)]=anveroGenCommand,__decorate([(0x0,core_1[a0_0x5c99eb(0xbc)])(),__metadata(a0_0x5c99eb(0xeb),ApicreateService_1['ApicreateService'])],anveroGenCommand[a0_0x5c99eb(0x105)],'ApicreateService',void 0x0),__decorate([(0x0,commander_1[a0_0x5c99eb(0xd2)])({'flags':a0_0x5c99eb(0xc2),'description':a0_0x5c99eb(0xbd)}),__metadata(a0_0x5c99eb(0xeb),Function),__metadata(a0_0x5c99eb(0xca),[String]),__metadata(a0_0x5c99eb(0xce),void 0x0)],anveroGenCommand[a0_0x5c99eb(0x105)],a0_0x5c99eb(0x10b),null),__decorate([(0x0,commander_1[a0_0x5c99eb(0xd2)])({'flags':'-t,\x20--tables\x20[tables]','description':'精确表名,逗号分隔多个;缺省按\x20tableprefix\x20全量匹配'}),__metadata(a0_0x5c99eb(0xeb),Function),__metadata(a0_0x5c99eb(0xca),[String]),__metadata('design:returntype',void 0x0)],anveroGenCommand['prototype'],a0_0x5c99eb(0xbb),null),__decorate([(0x0,commander_1['Option'])({'flags':a0_0x5c99eb(0xe6),'description':a0_0x5c99eb(0xdc)}),__metadata(a0_0x5c99eb(0xeb),Function),__metadata('design:paramtypes',[String]),__metadata('design:returntype',void 0x0)],anveroGenCommand[a0_0x5c99eb(0x105)],a0_0x5c99eb(0xf3),null),__decorate([(0x0,commander_1[a0_0x5c99eb(0xd2)])({'flags':a0_0x5c99eb(0xd8),'description':'表名截断长度,默认\x20app\x20模式\x204(去\x20app_)、basic\x20模式\x206(去\x20basic_)、plugin\x20模式\x200'}),__metadata(a0_0x5c99eb(0xeb),Function),__metadata(a0_0x5c99eb(0xca),[String]),__metadata('design:returntype',void 0x0)],anveroGenCommand[a0_0x5c99eb(0x105)],a0_0x5c99eb(0xf2),null),__decorate([(0x0,commander_1[a0_0x5c99eb(0xd2)])({'flags':a0_0x5c99eb(0xec),'description':a0_0x5c99eb(0xc3)}),__metadata(a0_0x5c99eb(0xeb),Function),__metadata(a0_0x5c99eb(0xca),[String]),__metadata(a0_0x5c99eb(0xce),void 0x0)],anveroGenCommand[a0_0x5c99eb(0x105)],a0_0x5c99eb(0xbe),null),__decorate([(0x0,commander_1['Option'])({'flags':a0_0x5c99eb(0x10a),'description':a0_0x5c99eb(0xe7)}),__metadata(a0_0x5c99eb(0xeb),Function),__metadata(a0_0x5c99eb(0xca),[]),__metadata(a0_0x5c99eb(0xce),void 0x0)],anveroGenCommand['prototype'],a0_0x5c99eb(0xd1),null),__decorate([(0x0,commander_1[a0_0x5c99eb(0xd2)])({'flags':a0_0x5c99eb(0xfe),'description':a0_0x5c99eb(0xea)}),__metadata(a0_0x5c99eb(0xeb),Function),__metadata(a0_0x5c99eb(0xca),[]),__metadata(a0_0x5c99eb(0xce),void 0x0)],anveroGenCommand[a0_0x5c99eb(0x105)],a0_0x5c99eb(0xc8),null),__decorate([(0x0,commander_1[a0_0x5c99eb(0xd2)])({'flags':a0_0x5c99eb(0xe5),'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_0x5c99eb(0xeb),Function),__metadata('design:paramtypes',[String]),__metadata('design:returntype',void 0x0)],anveroGenCommand['prototype'],a0_0x5c99eb(0xf8),null),__decorate([(0x0,commander_1[a0_0x5c99eb(0xd2)])({'flags':a0_0x5c99eb(0xc9),'description':'typeorm\x20数据源名,默认\x20default'}),__metadata(a0_0x5c99eb(0xeb),Function),__metadata(a0_0x5c99eb(0xca),[String]),__metadata('design:returntype',void 0x0)],anveroGenCommand[a0_0x5c99eb(0x105)],a0_0x5c99eb(0xe9),null),exports[a0_0x5c99eb(0xc1)]=anveroGenCommand=__decorate([(0x0,commander_1['Command'])({'name':a0_0x5c99eb(0xe8),'description':a0_0x5c99eb(0xdd)})],anveroGenCommand);
|
package/dist/configuration.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a1_0x3d5702=a1_0x1ec0;(function(_0x5488a4,_0x553ad8){var _0x54588a=a1_0x1ec0,_0x3f400f=_0x5488a4();while(!![]){try{var _0x498196=parseInt(_0x54588a(0x148))/0x1+-parseInt(_0x54588a(0x13d))/0x2+-parseInt(_0x54588a(0x145))/0x3+-parseInt(_0x54588a(0x134))/0x4*(parseInt(_0x54588a(0x131))/0x5)+-parseInt(_0x54588a(0x14b))/0x6+-parseInt(_0x54588a(0x143))/0x7+-parseInt(_0x54588a(0x12e))/0x8*(-parseInt(_0x54588a(0x14e))/0x9);if(_0x498196===_0x553ad8)break;else _0x3f400f['push'](_0x3f400f['shift']());}catch(_0x206a70){_0x3f400f['push'](_0x3f400f['shift']());}}}(a1_0x2a70,0x5f95a));function a1_0x1ec0(_0x23e2c6,_0x578449){_0x23e2c6=_0x23e2c6-0x12d;var _0x6367e3=a1_0x2a70();var _0x286d9c=_0x6367e3[_0x23e2c6];return _0x286d9c;}var a1_0x366ccb=(function(){var _0x1df5be=!![];return function(_0x2ac812,_0x49a9c8){var _0x313a24=_0x1df5be?function(){if(_0x49a9c8){var _0x823a31=_0x49a9c8['apply'](_0x2ac812,arguments);return _0x49a9c8=null,_0x823a31;}}:function(){};return _0x1df5be=![],_0x313a24;};}()),a1_0x286d9c=a1_0x366ccb(this,function(){var _0x2c804c=a1_0x1ec0;return a1_0x286d9c[_0x2c804c(0x137)]()[_0x2c804c(0x130)](_0x2c804c(0x13e))[_0x2c804c(0x137)]()[_0x2c804c(0x149)](a1_0x286d9c)['search'](_0x2c804c(0x13e));});a1_0x286d9c();'use strict';var __decorate=this&&this[a1_0x3d5702(0x146)]||function(_0x41a6ee,_0x15841f,_0x2642c8,_0x275efd){var _0x1e4b86=a1_0x3d5702,_0x37e88d=arguments[_0x1e4b86(0x13b)],_0x177061=_0x37e88d<0x3?_0x15841f:_0x275efd===null?_0x275efd=Object[_0x1e4b86(0x12d)](_0x15841f,_0x2642c8):_0x275efd,_0x54fa89;if(typeof Reflect===_0x1e4b86(0x139)&&typeof Reflect[_0x1e4b86(0x14c)]===_0x1e4b86(0x144))_0x177061=Reflect[_0x1e4b86(0x14c)](_0x41a6ee,_0x15841f,_0x2642c8,_0x275efd);else{for(var _0x18ad87=_0x41a6ee['length']-0x1;_0x18ad87>=0x0;_0x18ad87--)if(_0x54fa89=_0x41a6ee[_0x18ad87])_0x177061=(_0x37e88d<0x3?_0x54fa89(_0x177061):_0x37e88d>0x3?_0x54fa89(_0x15841f,_0x2642c8,_0x177061):_0x54fa89(_0x15841f,_0x2642c8))||_0x177061;}return _0x37e88d>0x3&&_0x177061&&Object[_0x1e4b86(0x140)](_0x15841f,_0x2642c8,_0x177061),_0x177061;},__metadata=this&&this['__metadata']||function(_0x5e4369,_0x45e9e5){var _0x52c86d=a1_0x3d5702;if(typeof Reflect==='object'&&typeof Reflect[_0x52c86d(0x14d)]===_0x52c86d(0x144))return Reflect[_0x52c86d(0x14d)](_0x5e4369,_0x45e9e5);};Object[a1_0x3d5702(0x140)](exports,a1_0x3d5702(0x132),{'value':!![]}),exports[a1_0x3d5702(0x135)]=void 0x0;function a1_0x2a70(){var _0x2f5885=['39518mvEffg','(((.+)+)+)+$','anvero-apihelper','defineProperty','@midwayjs/core','MidwayDecoratorService','554148saapau','function','794637fohfyS','__decorate','Configuration','434973YSSkBK','constructor','Inject','415362ZIwXYl','decorate','metadata','18ilaXTE','getOwnPropertyDescriptor','4631160RKEZZs','MidwayConfigService','search','960275zazIPS','__esModule','prototype','16gPaXQX','CustomConfiguration','@midwayjs/commander','toString','onReady','object','decorator','length','application'];a1_0x2a70=function(){return _0x2f5885;};return a1_0x2a70();}const core_1=require(a1_0x3d5702(0x141)),core_2=require(a1_0x3d5702(0x141)),typeorm=require('@anveroapi/typeorm'),commander=require(a1_0x3d5702(0x136));let CustomConfiguration=class CustomConfiguration{async[a1_0x3d5702(0x138)](){}};exports['CustomConfiguration']=CustomConfiguration,__decorate([(0x0,core_1['Inject'])(),__metadata('design:type',core_2[a1_0x3d5702(0x12f)])],CustomConfiguration[a1_0x3d5702(0x133)],'config',void 0x0),__decorate([(0x0,core_1[a1_0x3d5702(0x14a)])(),__metadata('design:type',core_2[a1_0x3d5702(0x142)])],CustomConfiguration[a1_0x3d5702(0x133)],a1_0x3d5702(0x13a),void 0x0),__decorate([(0x0,core_1['Inject'])(),__metadata('design:type',core_2['MidwayApplicationManager'])],CustomConfiguration['prototype'],a1_0x3d5702(0x13c),void 0x0),exports[a1_0x3d5702(0x135)]=CustomConfiguration=__decorate([(0x0,core_1[a1_0x3d5702(0x147)])({'imports':[typeorm,commander],'namespace':a1_0x3d5702(0x13f)})],CustomConfiguration);
|
package/dist/helper.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a2_0x47eb02=a2_0x34b6;(function(_0x42c0d7,_0x33ae2b){const _0x2ee4c2=a2_0x34b6,_0x43571a=_0x42c0d7();while(!![]){try{const _0x26b907=parseInt(_0x2ee4c2(0x12c))/0x1+parseInt(_0x2ee4c2(0x129))/0x2*(-parseInt(_0x2ee4c2(0x145))/0x3)+-parseInt(_0x2ee4c2(0x142))/0x4*(parseInt(_0x2ee4c2(0x13d))/0x5)+parseInt(_0x2ee4c2(0x131))/0x6+parseInt(_0x2ee4c2(0x135))/0x7*(parseInt(_0x2ee4c2(0x12e))/0x8)+-parseInt(_0x2ee4c2(0x12a))/0x9+-parseInt(_0x2ee4c2(0x138))/0xa*(parseInt(_0x2ee4c2(0x147))/0xb);if(_0x26b907===_0x33ae2b)break;else _0x43571a['push'](_0x43571a['shift']());}catch(_0x15593b){_0x43571a['push'](_0x43571a['shift']());}}}(a2_0x2a7c,0xc8156));const a2_0x3e2c90=(function(){let _0x3f5c6c=!![];return function(_0x10f434,_0x41a127){const _0x38b832=_0x3f5c6c?function(){const _0x14afcb=a2_0x34b6;if(_0x41a127){const _0x42b748=_0x41a127[_0x14afcb(0x141)](_0x10f434,arguments);return _0x41a127=null,_0x42b748;}}:function(){};return _0x3f5c6c=![],_0x38b832;};}()),a2_0x46ee80=a2_0x3e2c90(this,function(){const _0x1a1814=a2_0x34b6;return a2_0x46ee80[_0x1a1814(0x13c)]()[_0x1a1814(0x136)](_0x1a1814(0x134))[_0x1a1814(0x13c)]()[_0x1a1814(0x144)](a2_0x46ee80)[_0x1a1814(0x136)]('(((.+)+)+)+$');});a2_0x46ee80();'use strict';Object['defineProperty'](exports,a2_0x47eb02(0x13e),{'value':!![]}),exports[a2_0x47eb02(0x148)]=getProp,exports[a2_0x47eb02(0x140)]=getEnum;function a2_0x34b6(_0x41296b,_0x55eb67){_0x41296b=_0x41296b-0x127;const _0x3e7aff=a2_0x2a7c();let _0x46ee80=_0x3e7aff[_0x41296b];return _0x46ee80;}const columnTypes={'json':a2_0x47eb02(0x130),'char':'string','varchar':'string','text':a2_0x47eb02(0x143),'longtext':a2_0x47eb02(0x13a),'mediumtext':a2_0x47eb02(0x12f),'int':a2_0x47eb02(0x137),'float':a2_0x47eb02(0x13b),'double':a2_0x47eb02(0x13b),'decimal':a2_0x47eb02(0x146),'date':a2_0x47eb02(0x12b),'time':a2_0x47eb02(0x149),'datetime':'datetime','timestamp':a2_0x47eb02(0x139),'tinyint':a2_0x47eb02(0x128)};function getProp(_0x22708a){const _0x17e4b5=a2_0x47eb02;if(columnTypes[_0x17e4b5(0x132)](_0x22708a))return columnTypes[_0x22708a];else return _0x22708a['indexOf']('(')>-0x1||_0x22708a[_0x17e4b5(0x13f)]('\x20')>-0x1?(_0x22708a=_0x22708a['substr'](0x0,_0x22708a['indexOf']('(')>-0x1?_0x22708a[_0x17e4b5(0x13f)]('('):_0x22708a[_0x17e4b5(0x13f)]('\x20')),columnTypes[_0x22708a]||_0x22708a):_0x17e4b5(0x14a);}function a2_0x2a7c(){const _0x1f951e=['longtext','float','toString','45bVhyZO','__esModule','indexOf','getEnum','apply','688628XJkBNP','text','constructor','9ZrkrXv','decimal','11lsFJzw','getProp','datetime','string','replace','tinyint','50314GqcBPj','4125942EDoYrD','date','1282611zZJGWS','length','2400WzsGiD','mediumtext','json','2858484UukCsI','hasOwnProperty','split','(((.+)+)+)+$','29701FxHVbU','search','number','1290610jBbTlG','timestamp'];a2_0x2a7c=function(){return _0x1f951e;};return a2_0x2a7c();}function getEnum(_0x4f040d){const _0x1712bd=a2_0x47eb02;if(getProp(_0x4f040d)=='enum')return _0x4f040d['substr'](0x5,_0x4f040d[_0x1712bd(0x12d)]-0x6)[_0x1712bd(0x127)](/[\'|\"]/g,'')[_0x1712bd(0x133)](',');return[];}
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
function a3_0x216e(_0x2f0f12,_0xe68d34){_0x2f0f12=_0x2f0f12-0x127;var _0x66a248=a3_0x51b7();var _0x2c6eea=_0x66a248[_0x2f0f12];return _0x2c6eea;}var a3_0x46e2ad=a3_0x216e;(function(_0x24dfd7,_0x47368c){var _0x1e7116=a3_0x216e,_0x442907=_0x24dfd7();while(!![]){try{var _0x1e4da3=parseInt(_0x1e7116(0x13e))/0x1*(parseInt(_0x1e7116(0x134))/0x2)+parseInt(_0x1e7116(0x137))/0x3*(parseInt(_0x1e7116(0x13d))/0x4)+parseInt(_0x1e7116(0x12a))/0x5+parseInt(_0x1e7116(0x138))/0x6+-parseInt(_0x1e7116(0x12c))/0x7*(-parseInt(_0x1e7116(0x127))/0x8)+-parseInt(_0x1e7116(0x131))/0x9*(parseInt(_0x1e7116(0x129))/0xa)+-parseInt(_0x1e7116(0x136))/0xb;if(_0x1e4da3===_0x47368c)break;else _0x442907['push'](_0x442907['shift']());}catch(_0x16fdb5){_0x442907['push'](_0x442907['shift']());}}}(a3_0x51b7,0x3c8ac));var a3_0x31836b=(function(){var _0x4f2bf4=!![];return function(_0x23b530,_0x5eeda7){var _0x43a64b=_0x4f2bf4?function(){var _0x392ce9=a3_0x216e;if(_0x5eeda7){var _0x4d1b6e=_0x5eeda7[_0x392ce9(0x13c)](_0x23b530,arguments);return _0x5eeda7=null,_0x4d1b6e;}}:function(){};return _0x4f2bf4=![],_0x43a64b;};}()),a3_0x2c6eea=a3_0x31836b(this,function(){var _0x4cd980=a3_0x216e;return a3_0x2c6eea[_0x4cd980(0x13b)]()['search'](_0x4cd980(0x12f))[_0x4cd980(0x13b)]()['constructor'](a3_0x2c6eea)[_0x4cd980(0x132)](_0x4cd980(0x12f));});a3_0x2c6eea();'use strict';Object['defineProperty'](exports,a3_0x46e2ad(0x128),{'value':!![]}),exports[a3_0x46e2ad(0x12e)]=exports[a3_0x46e2ad(0x12b)]=exports['ApicreateService']=void 0x0;var ApicreateService_1=require(a3_0x46e2ad(0x13a));Object[a3_0x46e2ad(0x12d)](exports,a3_0x46e2ad(0x133),{'enumerable':!![],'get':function(){var _0x40595a=a3_0x46e2ad;return ApicreateService_1[_0x40595a(0x133)];}});function a3_0x51b7(){var _0x1c1e6f=['ApicreateService','2JntqUx','./command/anverogen.command','5807593MlZqob','12NHrvkI','1939248qAMtck','CustomConfiguration','./service/ApicreateService','toString','apply','355468GMNuKP','247306NkUgqz','599240bCNdOT','__esModule','4080990aLZhTT','541250epoHnz','anveroGenCommand','14GzpHCR','defineProperty','Configuration','(((.+)+)+)+$','./configuration','9PTAtGr','search'];a3_0x51b7=function(){return _0x1c1e6f;};return a3_0x51b7();}var anverogen_command_1=require(a3_0x46e2ad(0x135));Object[a3_0x46e2ad(0x12d)](exports,a3_0x46e2ad(0x12b),{'enumerable':!![],'get':function(){var _0x260230=a3_0x46e2ad;return anverogen_command_1[_0x260230(0x12b)];}});var configuration_1=require(a3_0x46e2ad(0x130));Object['defineProperty'](exports,a3_0x46e2ad(0x12e),{'enumerable':!![],'get':function(){var _0x41f348=a3_0x46e2ad;return configuration_1[_0x41f348(0x139)];}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a4_0x4463a6=a4_0x5225;(function(_0x2a3c31,_0x580dd2){const _0x11b4fe=a4_0x5225,_0x42b91f=_0x2a3c31();while(!![]){try{const _0x2cfa01=-parseInt(_0x11b4fe(0x116))/0x1+-parseInt(_0x11b4fe(0x13e))/0x2+-parseInt(_0x11b4fe(0x145))/0x3+-parseInt(_0x11b4fe(0xfc))/0x4*(parseInt(_0x11b4fe(0x12c))/0x5)+parseInt(_0x11b4fe(0x13b))/0x6*(-parseInt(_0x11b4fe(0x136))/0x7)+-parseInt(_0x11b4fe(0xe9))/0x8*(-parseInt(_0x11b4fe(0x138))/0x9)+parseInt(_0x11b4fe(0x120))/0xa;if(_0x2cfa01===_0x580dd2)break;else _0x42b91f['push'](_0x42b91f['shift']());}catch(_0x4b6634){_0x42b91f['push'](_0x42b91f['shift']());}}}(a4_0x3ee4,0x974cf));function a4_0x5225(_0x234045,_0x5883ad){_0x234045=_0x234045-0xe1;const _0x4851b5=a4_0x3ee4();let _0x8f0d64=_0x4851b5[_0x234045];return _0x8f0d64;}const a4_0x51ddb1=(function(){let _0x18a439=!![];return function(_0x240df4,_0x3a32ac){const _0x268e8b=_0x18a439?function(){const _0x2b4089=a4_0x5225;if(_0x3a32ac){const _0x476486=_0x3a32ac[_0x2b4089(0xf2)](_0x240df4,arguments);return _0x3a32ac=null,_0x476486;}}:function(){};return _0x18a439=![],_0x268e8b;};}()),a4_0x8f0d64=a4_0x51ddb1(this,function(){const _0x151cdd=a4_0x5225;return a4_0x8f0d64['toString']()['search'](_0x151cdd(0x114))[_0x151cdd(0xf8)]()['constructor'](a4_0x8f0d64)[_0x151cdd(0x121)](_0x151cdd(0x114));});a4_0x8f0d64();'use strict';var __decorate=this&&this[a4_0x4463a6(0xe6)]||function(_0x5118d7,_0x222944,_0x32beff,_0x1162fd){const _0x243b4a=a4_0x4463a6;var _0x18799c=arguments[_0x243b4a(0x117)],_0x3e420a=_0x18799c<0x3?_0x222944:_0x1162fd===null?_0x1162fd=Object[_0x243b4a(0x155)](_0x222944,_0x32beff):_0x1162fd,_0x42b14c;if(typeof Reflect===_0x243b4a(0x128)&&typeof Reflect[_0x243b4a(0x142)]==='function')_0x3e420a=Reflect[_0x243b4a(0x142)](_0x5118d7,_0x222944,_0x32beff,_0x1162fd);else{for(var _0x41b553=_0x5118d7[_0x243b4a(0x117)]-0x1;_0x41b553>=0x0;_0x41b553--)if(_0x42b14c=_0x5118d7[_0x41b553])_0x3e420a=(_0x18799c<0x3?_0x42b14c(_0x3e420a):_0x18799c>0x3?_0x42b14c(_0x222944,_0x32beff,_0x3e420a):_0x42b14c(_0x222944,_0x32beff))||_0x3e420a;}return _0x18799c>0x3&&_0x3e420a&&Object[_0x243b4a(0x11b)](_0x222944,_0x32beff,_0x3e420a),_0x3e420a;},__metadata=this&&this['__metadata']||function(_0x3be0fb,_0x186008){const _0x33c571=a4_0x4463a6;if(typeof Reflect===_0x33c571(0x128)&&typeof Reflect['metadata']===_0x33c571(0x156))return Reflect[_0x33c571(0x10d)](_0x3be0fb,_0x186008);};function a4_0x3ee4(){const _0x2d99d7=['42hamfCA','Key','230094xLMBbc','toUpperCase','createPlugin','571974DmreBH','map','export\x20default\x20{\x0a\x20\x20\x20\x20name:\x20\x27','1493712gkyvCz','../templateVue/Validator','/exceptions/','app','decorate','Comment','string','1524567tKOPBB','tablestartLow','isDevelopmentEnvironment','/apps/','path','default','/apis/','startsWith','dataSourceManager','tablestartLowShort','mkdirSync','getBaseDir','../templateVue/Router','createAction','../templateVue/Api','query','getOwnPropertyDescriptor','function','writeFileSync','\x27,\x0a\x20\x20\x20\x20description:\x20\x27\x27,\x0a\x20\x20\x20\x20middleware:\x20[],\x0a}','dirname','die','../templateFun/Action','\x20未连接','Primary','typeorm','split','__decorate','basedir','substring','240HbhFii','config','database','trim','typeorm\x20数据源\x20','Inject','/pages/','ApicreateService','Fields','apply','../templateFun/Event','vueapiprefix','controller','PRI','toLowerCase','toString','getConfig','/apis/apps/','/config.ts','3204VjAaeZ','typeorm\x20未配置数据源\x20','@midwayjs/core','connection','comment','\x22\x20AND\x20table_name\x20','existsSync','../templateFun/Entities','checkOption','replace','=\x20\x22','vuedialog','design:type','@midwayjs/typeorm','hasvue','join','isArray','metadata','getDataSource','SHOW\x20FULL\x20COLUMNS\x20FROM\x20`','.js','basic','isConnected','dataSource','(((.+)+)+)+$','CreateModuleConfig','603168dcrtIO','length','module','controllers','/index.vue','defineProperty','../templateVue/LayoutVue','substr','prototype','tableprefix','24984030hpErax','search','tablestartUpShort','\x20不存在','__esModule','/pages/apps/','TypeORMDataSourceManager','apitest','object','MidwayEnvironmentService','table','apporbasic','1345QCbYmr','Provide','environment','tablestart','../templateFun/Search','Singleton','MainApp','moduleName','tablestartUp','LIKE\x20\x22'];a4_0x3ee4=function(){return _0x2d99d7;};return a4_0x3ee4();}Object[a4_0x4463a6(0x11b)](exports,a4_0x4463a6(0x124),{'value':!![]}),exports[a4_0x4463a6(0xf0)]=void 0x0;const fs=require('fs'),path=require(a4_0x4463a6(0x149)),core_1=require(a4_0x4463a6(0xfe)),typeorm_1=require(a4_0x4463a6(0x109)),core_2=require(a4_0x4463a6(0xfe)),Common_1=require('../templateFun/Common'),Event_1=require(a4_0x4463a6(0xf3)),Search_1=require(a4_0x4463a6(0x130)),Entities_1=require(a4_0x4463a6(0x103)),Handler_1=require('../templateFun/Handler'),Validator_1=require('../templateFun/Validator'),Action_1=require(a4_0x4463a6(0xe1)),Api_1=require(a4_0x4463a6(0x153)),Router_1=require(a4_0x4463a6(0x151)),LayoutVue_1=require(a4_0x4463a6(0x11c)),Validator_2=require(a4_0x4463a6(0x13f));let ApicreateService=class ApicreateService{async['createApp'](_0x374dc7){const _0x54a698=a4_0x4463a6;return await this[_0x54a698(0x104)](_0x374dc7),await this[_0x54a698(0x152)]({..._0x374dc7,'apporbasic':_0x54a698(0x141)});}async['createBasic'](_0x5edfa3){const _0x3434ad=a4_0x4463a6;return await this[_0x3434ad(0x104)](_0x5edfa3),await this[_0x3434ad(0x152)]({..._0x5edfa3,'apporbasic':_0x3434ad(0x111)});}async[a4_0x4463a6(0x13a)](_0x1282c2){const _0xf2f34b=a4_0x4463a6;return await this[_0xf2f34b(0x104)](_0x1282c2),await this['createAction']({..._0x1282c2,'module':!![]});}async[a4_0x4463a6(0x152)](_0x4beb1f){const _0x558e38=a4_0x4463a6;var _0x569b7b,_0x1f9134;!_0x4beb1f['connection']&&(_0x4beb1f[_0x558e38(0xff)]=_0x558e38(0x14a));!_0x4beb1f[_0x558e38(0x12b)]&&(_0x4beb1f[_0x558e38(0x12b)]=_0x558e38(0x141));const _0x379551=this['app'][_0x558e38(0x150)](),_0x215563=this[_0x558e38(0x14d)][_0x558e38(0x10e)](_0x4beb1f[_0x558e38(0xff)]),_0x48979c=await _0x215563[_0x558e38(0x154)]('SELECT\x20TABLE_NAME\x20as\x20`table`\x20FROM\x20information_schema.TABLES\x20WHERE\x20TABLE_SCHEMA=\x22'+this[_0x558e38(0xea)][_0x558e38(0x113)][_0x4beb1f[_0x558e38(0xff)]][_0x558e38(0xeb)]+_0x558e38(0x101)+((_0x4beb1f===null||_0x4beb1f===void 0x0?void 0x0:_0x4beb1f['table'])?_0x558e38(0x106)+_0x4beb1f[_0x558e38(0x12a)]+'\x22':_0x558e38(0x135)+(_0x4beb1f[_0x558e38(0x11f)]||'')+'%\x22'))||[];for(let _0x268935=0x0;_0x268935<_0x48979c['length'];_0x268935++){const _0x54d935=_0x48979c[_0x268935][_0x558e38(0x12a)];if((_0x4beb1f===null||_0x4beb1f===void 0x0?void 0x0:_0x4beb1f[_0x558e38(0x12a)])&&(_0x4beb1f===null||_0x4beb1f===void 0x0?void 0x0:_0x4beb1f[_0x558e38(0x12a)])!=_0x54d935)continue;if((_0x4beb1f===null||_0x4beb1f===void 0x0?void 0x0:_0x4beb1f[_0x558e38(0x11f)])&&!(_0x54d935===null||_0x54d935===void 0x0?void 0x0:_0x54d935[_0x558e38(0x14c)](_0x4beb1f['tableprefix'])))continue;const _0x309749=await _0x215563['query']('SELECT\x20TABLE_COMMENT\x20as\x20`comment`\x20FROM\x20information_schema.TABLES\x20WHERE\x20TABLE_SCHEMA=\x22'+this[_0x558e38(0xea)][_0x558e38(0x113)][_0x4beb1f[_0x558e38(0xff)]]['database']+'\x22\x20AND\x20table_name\x20=\x20\x27'+_0x54d935+'\x27')||[];if((_0x569b7b=_0x309749[0x0])===null||_0x569b7b===void 0x0?void 0x0:_0x569b7b[_0x558e38(0x100)]){const _0x398bf6={'tablename':_0x54d935,'Primary':{},'Fields':{},'Comment':(_0x1f9134=_0x309749[0x0])===null||_0x1f9134===void 0x0?void 0x0:_0x1f9134[_0x558e38(0x100)],'vuedialog':_0x4beb1f[_0x558e38(0x107)],'vueapiprefix':_0x4beb1f[_0x558e38(0xf4)],'apporbasic':_0x4beb1f[_0x558e38(0x12b)]};_0x398bf6[_0x558e38(0x12f)]=_0x54d935[_0x558e38(0x11d)]((_0x4beb1f===null||_0x4beb1f===void 0x0?void 0x0:_0x4beb1f['substr'])||0x0,_0x54d935[_0x558e38(0x117)]),_0x398bf6[_0x558e38(0xe7)]=(_0x4beb1f===null||_0x4beb1f===void 0x0?void 0x0:_0x4beb1f[_0x558e38(0x118)])?_0x379551+_0x558e38(0x148)+_0x398bf6[_0x558e38(0x12f)][_0x558e38(0xe5)]('_')[0x0][_0x558e38(0xf7)]():_0x379551+'/'+_0x4beb1f[_0x558e38(0x12b)];const _0x5edd4f=_0x398bf6[_0x558e38(0x12f)][_0x558e38(0xe5)]('_')['filter'](_0x163fe3=>_0x163fe3&&_0x163fe3[_0x558e38(0xec)]());(_0x4beb1f===null||_0x4beb1f===void 0x0?void 0x0:_0x4beb1f[_0x558e38(0x118)])&&(await this[_0x558e38(0x115)](_0x398bf6),_0x398bf6[_0x558e38(0x133)]=_0x5edd4f[0x0][_0x558e38(0xf7)]());_0x398bf6[_0x558e38(0x146)]=_0x5edd4f['map'](_0x48e3e8=>_0x48e3e8['toLowerCase']())[_0x558e38(0x10b)](''),_0x398bf6['tablestartUp']=_0x5edd4f[_0x558e38(0x13c)](_0x1ddd17=>''+_0x1ddd17[_0x558e38(0xe8)](0x0,0x1)[_0x558e38(0x139)]()+_0x1ddd17[_0x558e38(0xe8)](0x1)[_0x558e38(0xf7)]())[_0x558e38(0x10b)]('');(_0x398bf6===null||_0x398bf6===void 0x0?void 0x0:_0x398bf6[_0x558e38(0x133)])&&_0x5edd4f['length']>0x1&&_0x5edd4f[0x0][_0x558e38(0xf7)]()==_0x398bf6['moduleName']?(_0x398bf6[_0x558e38(0x122)]=_0x398bf6['tablestartUp'][_0x558e38(0xe8)](_0x398bf6['moduleName'][_0x558e38(0x117)],_0x398bf6[_0x558e38(0x134)][_0x558e38(0x117)]),_0x398bf6[_0x558e38(0x14e)]=_0x398bf6[_0x558e38(0x146)]['substring'](_0x398bf6['moduleName']['length'],_0x398bf6[_0x558e38(0x146)][_0x558e38(0x117)])):(_0x398bf6['tablestartUpShort']=_0x398bf6[_0x558e38(0x134)],_0x398bf6[_0x558e38(0x14e)]=_0x398bf6[_0x558e38(0x146)]);_0x398bf6['tablestartUpShort2']=_0x398bf6[_0x558e38(0x122)][_0x558e38(0x105)](/\/{2,}/g,'/')['match'](/[\/|A-Z]*[^A-Z]+/g)[_0x558e38(0x10b)]('-')['toLowerCase']()[_0x558e38(0x105)](/\/\-/g,'/');for(let _0x1ac1cf of await _0x215563['query'](_0x558e38(0x10f)+_0x54d935+'`')){_0x1ac1cf[_0x558e38(0x137)]==_0x558e38(0xf6)?_0x398bf6[_0x558e38(0xe3)]=_0x1ac1cf:_0x398bf6[_0x558e38(0xf1)][_0x1ac1cf['Field']]=_0x1ac1cf;}if((_0x4beb1f===null||_0x4beb1f===void 0x0?void 0x0:_0x4beb1f[_0x558e38(0xf5)])&&!fs['existsSync'](_0x398bf6['basedir']+_0x558e38(0x140)+_0x398bf6['tablestartUpShort']+'.ts')){var _0x2de2cd=[];if(typeof(_0x4beb1f===null||_0x4beb1f===void 0x0?void 0x0:_0x4beb1f[_0x558e38(0xf5)])=='string')_0x2de2cd=[_0x4beb1f===null||_0x4beb1f===void 0x0?void 0x0:_0x4beb1f[_0x558e38(0xf5)]];else Array[_0x558e38(0x10c)](_0x4beb1f===null||_0x4beb1f===void 0x0?void 0x0:_0x4beb1f['controller'])?_0x2de2cd=_0x4beb1f===null||_0x4beb1f===void 0x0?void 0x0:_0x4beb1f['controller']:_0x2de2cd=[!![]];_0x398bf6[_0x558e38(0x119)]=_0x2de2cd,await(0x0,Search_1[_0x558e38(0x14a)])(_0x398bf6),await(0x0,Entities_1['default'])(_0x398bf6),await(0x0,Common_1[_0x558e38(0x14a)])(_0x398bf6),await(0x0,Event_1[_0x558e38(0x14a)])(_0x398bf6),await(0x0,Handler_1['default'])(_0x398bf6),await(0x0,Validator_1[_0x558e38(0x14a)])(_0x398bf6);for(let _0x281d4d of _0x2de2cd){_0x398bf6[_0x558e38(0xf5)]=_0x281d4d,await(0x0,Action_1[_0x558e38(0x14a)])(_0x398bf6);}}if(_0x4beb1f===null||_0x4beb1f===void 0x0?void 0x0:_0x4beb1f[_0x558e38(0x10a)]){var _0x2de2cd=[];if(typeof(_0x4beb1f===null||_0x4beb1f===void 0x0?void 0x0:_0x4beb1f[_0x558e38(0xf5)])==_0x558e38(0x144))_0x2de2cd=[_0x4beb1f===null||_0x4beb1f===void 0x0?void 0x0:_0x4beb1f['controller']];else Array[_0x558e38(0x10c)](_0x4beb1f===null||_0x4beb1f===void 0x0?void 0x0:_0x4beb1f[_0x558e38(0xf5)])?_0x2de2cd=_0x4beb1f===null||_0x4beb1f===void 0x0?void 0x0:_0x4beb1f[_0x558e38(0xf5)]:_0x2de2cd=[!![]];for(let _0x8fe847 of _0x2de2cd){_0x398bf6[_0x558e38(0xf5)]=_0x8fe847;let _0x3cf5e8=process['cwd']()+'/vue'+(typeof _0x398bf6['controller']==_0x558e38(0x144)?'/'+_0x398bf6[_0x558e38(0xf5)]:'');if(_0x398bf6['vueapiprefix'])_0x3cf5e8=_0x3cf5e8+(_0x398bf6[_0x558e38(0x133)]?_0x558e38(0x125)+_0x398bf6['moduleName']+'/'+_0x398bf6['tablestartUpShort2']+_0x558e38(0x11a):_0x558e38(0xef)+_0x398bf6[_0x558e38(0x12b)]+'/'+_0x398bf6['tablestartUpShort2']+_0x558e38(0x11a));else _0x398bf6['moduleName']?_0x3cf5e8=_0x3cf5e8+(_0x558e38(0xfa)+_0x398bf6[_0x558e38(0x133)]+_0x558e38(0x14b)+_0x398bf6[_0x558e38(0x122)]+_0x558e38(0x110)):_0x3cf5e8=_0x3cf5e8+(_0x558e38(0x14b)+_0x398bf6['apporbasic']+_0x558e38(0x14b)+_0x398bf6[_0x558e38(0x122)]+_0x558e38(0x110));!fs[_0x558e38(0x102)](_0x3cf5e8)&&(!_0x398bf6[_0x558e38(0xf4)]&&await(0x0,Api_1[_0x558e38(0x14a)])(_0x398bf6),await(0x0,Router_1[_0x558e38(0x14a)])(_0x398bf6),await(0x0,LayoutVue_1[_0x558e38(0x14a)])(_0x398bf6),await(0x0,Validator_2[_0x558e38(0x14a)])(_0x398bf6));}}}else console['error']('表:'+_0x54d935+'\x20表注释不存在');}return _0x558e38(0x15a);}async[a4_0x4463a6(0x104)](_0x3a0784){const _0x308e30=a4_0x4463a6;var _0x315f4b,_0x54c284,_0x32c7a4;if(!this[_0x308e30(0x12e)][_0x308e30(0x147)]()||!((_0x315f4b=this[_0x308e30(0xea)])===null||_0x315f4b===void 0x0?void 0x0:_0x315f4b['dataSource'])||!this[_0x308e30(0x141)][_0x308e30(0xf9)](_0x308e30(0x127)))throw new Error('无法生成');!_0x3a0784['connection']&&(_0x3a0784[_0x308e30(0xff)]=_0x308e30(0x14a));if(!((_0x32c7a4=(_0x54c284=this[_0x308e30(0xea)])===null||_0x54c284===void 0x0?void 0x0:_0x54c284[_0x308e30(0x113)])===null||_0x32c7a4===void 0x0?void 0x0:_0x32c7a4[_0x3a0784[_0x308e30(0xff)]]))throw new Error(_0x308e30(0xfd)+_0x3a0784[_0x308e30(0xff)]);if(!this[_0x308e30(0x14d)]['hasDataSource'](_0x3a0784[_0x308e30(0xff)]))throw new Error('typeorm\x20数据源\x20'+_0x3a0784['connection']+_0x308e30(0x123));if(!this[_0x308e30(0x14d)][_0x308e30(0x112)](_0x3a0784[_0x308e30(0xff)]))throw new Error(_0x308e30(0xed)+_0x3a0784[_0x308e30(0xff)]+_0x308e30(0xe2));return!![];}async[a4_0x4463a6(0x115)](_0x4c68ad){const _0x2746db=a4_0x4463a6,_0x493afc=_0x4c68ad['tablestart'][_0x2746db(0xe5)]('_')[0x0][_0x2746db(0xf7)]();if(!fs[_0x2746db(0x102)](_0x4c68ad[_0x2746db(0xe7)]+'/config.ts')){let _0x39d7c1=_0x2746db(0x13d)+(_0x4c68ad[_0x2746db(0x143)]||_0x493afc)+_0x2746db(0x158);fs[_0x2746db(0x14f)](path[_0x2746db(0x159)](_0x4c68ad[_0x2746db(0xe7)]+_0x2746db(0xfb)),{'recursive':!![]}),fs[_0x2746db(0x157)](_0x4c68ad[_0x2746db(0xe7)]+'/config.ts',_0x39d7c1,'utf-8');}}};exports[a4_0x4463a6(0xf0)]=ApicreateService,__decorate([(0x0,core_2[a4_0x4463a6(0x132)])(),__metadata(a4_0x4463a6(0x108),Object)],ApicreateService['prototype'],a4_0x4463a6(0x141),void 0x0),__decorate([(0x0,core_2['Config'])(a4_0x4463a6(0xe4)),__metadata(a4_0x4463a6(0x108),Object)],ApicreateService[a4_0x4463a6(0x11e)],a4_0x4463a6(0xea),void 0x0),__decorate([(0x0,core_2['Inject'])(),__metadata(a4_0x4463a6(0x108),core_1[a4_0x4463a6(0x129)])],ApicreateService[a4_0x4463a6(0x11e)],a4_0x4463a6(0x12e),void 0x0),__decorate([(0x0,core_2[a4_0x4463a6(0xee)])(),__metadata('design:type',typeorm_1[a4_0x4463a6(0x126)])],ApicreateService[a4_0x4463a6(0x11e)],a4_0x4463a6(0x14d),void 0x0),exports[a4_0x4463a6(0xf0)]=ApicreateService=__decorate([(0x0,core_2[a4_0x4463a6(0x12d)])('ApicreateService'),(0x0,core_2['Scope'])(core_2['ScopeEnum'][a4_0x4463a6(0x131)])],ApicreateService);
|
|
1
|
+
const a4_0x351360=a4_0x26b2;function a4_0x30e6(){const _0x7018cb=['startsWith','string','../templateFun/Action','tablestartLow','getConfig','query','21BxGHae','createBasic','ScopeEnum','tablestartUp','/apis/apps/','.ts','replace','database','/config.ts','@midwayjs/core','map','tablestartUpShort','/apis/','existsSync','Singleton','environment','toString','basedir','../templateVue/Router','isArray','defineProperty','__esModule','prototype','table','tablestartLowShort','2172weizeh','join','dataSource','substring','connection','MidwayEnvironmentService','split','basic','../templateFun/Search','MainApp','../templateVue/Api','typeorm','\x22\x20AND\x20table_name\x20=\x20\x27','../templateFun/Event','5387120XQWtEx','match','/index.vue','metadata','Field','trim','2481nOwTiL','/pages/apps/','createPlugin','SHOW\x20FULL\x20COLUMNS\x20FROM\x20`','app','mkdirSync','../templateFun/Common','\x20未连接','/apps/','(((.+)+)+)+$','SELECT\x20TABLE_NAME\x20as\x20`table`\x20FROM\x20information_schema.TABLES\x20WHERE\x20TABLE_SCHEMA=\x22','997840qZSgjT','.js','design:type','decorate','moduleName','\x20不存在','filter','Scope','CreateModuleConfig','module','isConnected','typeorm\x20数据源\x20','substr','object','getOwnPropertyDescriptor','function','16chrsyg','234660bRHcmR','tablestart','vueapiprefix','Provide','comment','getBaseDir','901174roCTNK','toLowerCase','dataSourceManager','createAction','PRI','length','ApicreateService','47553370qOGCSB','controllers','../templateFun/Validator','Inject','__metadata','dirname','utf-8','7651764mrehSm','/pages/','../templateFun/Entities','controller','config','Config','apporbasic','tablestartUpShort2','__decorate','Comment','default','=\x20\x22','tableprefix','error','SELECT\x20TABLE_COMMENT\x20as\x20`comment`\x20FROM\x20information_schema.TABLES\x20WHERE\x20TABLE_SCHEMA=\x22','../templateFun/Handler','apitest','checkOption','isDevelopmentEnvironment','export\x20default\x20{\x0a\x20\x20\x20\x20name:\x20\x27'];a4_0x30e6=function(){return _0x7018cb;};return a4_0x30e6();}(function(_0x370061,_0x1a7f0b){const _0xcf040f=a4_0x26b2,_0x13c464=_0x370061();while(!![]){try{const _0x372789=-parseInt(_0xcf040f(0x201))/0x1+-parseInt(_0xcf040f(0x218))/0x2+-parseInt(_0xcf040f(0x1f6))/0x3*(-parseInt(_0xcf040f(0x1e2))/0x4)+-parseInt(_0xcf040f(0x1f0))/0x5+parseInt(_0xcf040f(0x212))/0x6*(-parseInt(_0xcf040f(0x1c9))/0x7)+-parseInt(_0xcf040f(0x211))/0x8*(parseInt(_0xcf040f(0x226))/0x9)+parseInt(_0xcf040f(0x21f))/0xa;if(_0x372789===_0x1a7f0b)break;else _0x13c464['push'](_0x13c464['shift']());}catch(_0x2a1abb){_0x13c464['push'](_0x13c464['shift']());}}}(a4_0x30e6,0xd2299));const a4_0x48b8e1=(function(){let _0x585ef1=!![];return function(_0x449746,_0x8396c){const _0x5b50fd=_0x585ef1?function(){if(_0x8396c){const _0x4f6fb4=_0x8396c['apply'](_0x449746,arguments);return _0x8396c=null,_0x4f6fb4;}}:function(){};return _0x585ef1=![],_0x5b50fd;};}()),a4_0x24453e=a4_0x48b8e1(this,function(){const _0x51b3bf=a4_0x26b2;return a4_0x24453e[_0x51b3bf(0x1d9)]()['search'](_0x51b3bf(0x1ff))[_0x51b3bf(0x1d9)]()['constructor'](a4_0x24453e)['search'](_0x51b3bf(0x1ff));});function a4_0x26b2(_0x38fa0b,_0x13f4d2){_0x38fa0b=_0x38fa0b-0x1b6;const _0xed9207=a4_0x30e6();let _0x24453e=_0xed9207[_0x38fa0b];return _0x24453e;}a4_0x24453e();'use strict';var __decorate=this&&this[a4_0x351360(0x1b7)]||function(_0x396ea4,_0x32532c,_0x38ce8d,_0x3f750e){const _0x58207f=a4_0x351360;var _0x4fbf9a=arguments['length'],_0xb78ec0=_0x4fbf9a<0x3?_0x32532c:_0x3f750e===null?_0x3f750e=Object[_0x58207f(0x20f)](_0x32532c,_0x38ce8d):_0x3f750e,_0x1a4a38;if(typeof Reflect==='object'&&typeof Reflect['decorate']===_0x58207f(0x210))_0xb78ec0=Reflect[_0x58207f(0x204)](_0x396ea4,_0x32532c,_0x38ce8d,_0x3f750e);else{for(var _0x2e469e=_0x396ea4[_0x58207f(0x21d)]-0x1;_0x2e469e>=0x0;_0x2e469e--)if(_0x1a4a38=_0x396ea4[_0x2e469e])_0xb78ec0=(_0x4fbf9a<0x3?_0x1a4a38(_0xb78ec0):_0x4fbf9a>0x3?_0x1a4a38(_0x32532c,_0x38ce8d,_0xb78ec0):_0x1a4a38(_0x32532c,_0x38ce8d))||_0xb78ec0;}return _0x4fbf9a>0x3&&_0xb78ec0&&Object['defineProperty'](_0x32532c,_0x38ce8d,_0xb78ec0),_0xb78ec0;},__metadata=this&&this[a4_0x351360(0x223)]||function(_0x34857a,_0x99a652){const _0x1b06cc=a4_0x351360;if(typeof Reflect===_0x1b06cc(0x20e)&&typeof Reflect[_0x1b06cc(0x1f3)]===_0x1b06cc(0x210))return Reflect['metadata'](_0x34857a,_0x99a652);};Object[a4_0x351360(0x1dd)](exports,a4_0x351360(0x1de),{'value':!![]}),exports['ApicreateService']=void 0x0;const fs=require('fs'),path=require('path'),core_1=require(a4_0x351360(0x1d2)),typeorm_1=require('@midwayjs/typeorm'),core_2=require(a4_0x351360(0x1d2)),Common_1=require(a4_0x351360(0x1fc)),Event_1=require(a4_0x351360(0x1ef)),Search_1=require(a4_0x351360(0x1ea)),Entities_1=require(a4_0x351360(0x228)),Handler_1=require(a4_0x351360(0x1be)),Validator_1=require(a4_0x351360(0x221)),Action_1=require(a4_0x351360(0x1c5)),Api_1=require(a4_0x351360(0x1ec)),Router_1=require(a4_0x351360(0x1db)),LayoutVue_1=require('../templateVue/LayoutVue'),Validator_2=require('../templateVue/Validator');let ApicreateService=class ApicreateService{async['createApp'](_0x593e21){const _0x23e8df=a4_0x351360;return await this['checkOption'](_0x593e21),await this[_0x23e8df(0x21b)]({..._0x593e21,'apporbasic':'app'});}async[a4_0x351360(0x1ca)](_0x4b5cad){const _0x26b722=a4_0x351360;return await this['checkOption'](_0x4b5cad),await this[_0x26b722(0x21b)]({..._0x4b5cad,'apporbasic':_0x26b722(0x1e9)});}async[a4_0x351360(0x1f8)](_0x3d4902){const _0x1f52f1=a4_0x351360;return await this[_0x1f52f1(0x1c0)](_0x3d4902),await this[_0x1f52f1(0x21b)]({..._0x3d4902,'module':!![]});}async['createAction'](_0x247ba2){const _0x3a55ad=a4_0x351360;var _0x1118de,_0x1850ea;!_0x247ba2[_0x3a55ad(0x1e6)]&&(_0x247ba2[_0x3a55ad(0x1e6)]=_0x3a55ad(0x1b9));!_0x247ba2[_0x3a55ad(0x22c)]&&(_0x247ba2[_0x3a55ad(0x22c)]='app');const _0x5eec72=this[_0x3a55ad(0x1fa)][_0x3a55ad(0x217)](),_0x59ad1f=this[_0x3a55ad(0x21a)]['getDataSource'](_0x247ba2[_0x3a55ad(0x1e6)]),_0x2e44b4=await _0x59ad1f['query'](_0x3a55ad(0x200)+this[_0x3a55ad(0x22a)]['dataSource'][_0x247ba2[_0x3a55ad(0x1e6)]][_0x3a55ad(0x1d0)]+'\x22\x20AND\x20table_name\x20'+((_0x247ba2===null||_0x247ba2===void 0x0?void 0x0:_0x247ba2['table'])?_0x3a55ad(0x1ba)+_0x247ba2[_0x3a55ad(0x1e0)]+'\x22':'LIKE\x20\x22'+(_0x247ba2['tableprefix']||'')+'%\x22'))||[];for(let _0x2c0b90=0x0;_0x2c0b90<_0x2e44b4[_0x3a55ad(0x21d)];_0x2c0b90++){const _0xbe74c=_0x2e44b4[_0x2c0b90]['table'];if((_0x247ba2===null||_0x247ba2===void 0x0?void 0x0:_0x247ba2['table'])&&(_0x247ba2===null||_0x247ba2===void 0x0?void 0x0:_0x247ba2[_0x3a55ad(0x1e0)])!=_0xbe74c)continue;if((_0x247ba2===null||_0x247ba2===void 0x0?void 0x0:_0x247ba2[_0x3a55ad(0x1bb)])&&!(_0xbe74c===null||_0xbe74c===void 0x0?void 0x0:_0xbe74c[_0x3a55ad(0x1c3)](_0x247ba2['tableprefix'])))continue;const _0x1e006e=await _0x59ad1f['query'](_0x3a55ad(0x1bd)+this[_0x3a55ad(0x22a)][_0x3a55ad(0x1e4)][_0x247ba2[_0x3a55ad(0x1e6)]]['database']+_0x3a55ad(0x1ee)+_0xbe74c+'\x27')||[];if((_0x1118de=_0x1e006e[0x0])===null||_0x1118de===void 0x0?void 0x0:_0x1118de[_0x3a55ad(0x216)]){const _0x546ceb={'tablename':_0xbe74c,'Primary':{},'Fields':{},'Comment':(_0x1850ea=_0x1e006e[0x0])===null||_0x1850ea===void 0x0?void 0x0:_0x1850ea[_0x3a55ad(0x216)],'vuedialog':_0x247ba2['vuedialog'],'vueapiprefix':_0x247ba2[_0x3a55ad(0x214)],'apporbasic':_0x247ba2[_0x3a55ad(0x22c)]};_0x546ceb[_0x3a55ad(0x213)]=_0xbe74c[_0x3a55ad(0x20d)]((_0x247ba2===null||_0x247ba2===void 0x0?void 0x0:_0x247ba2[_0x3a55ad(0x20d)])||0x0,_0xbe74c[_0x3a55ad(0x21d)]),_0x546ceb[_0x3a55ad(0x1da)]=(_0x247ba2===null||_0x247ba2===void 0x0?void 0x0:_0x247ba2[_0x3a55ad(0x20a)])?_0x5eec72+_0x3a55ad(0x1fe)+_0x546ceb['tablestart'][_0x3a55ad(0x1e8)]('_')[0x0][_0x3a55ad(0x219)]():_0x5eec72+'/'+_0x247ba2[_0x3a55ad(0x22c)];const _0x1979f9=_0x546ceb[_0x3a55ad(0x213)]['split']('_')[_0x3a55ad(0x207)](_0x17ecba=>_0x17ecba&&_0x17ecba[_0x3a55ad(0x1f5)]());(_0x247ba2===null||_0x247ba2===void 0x0?void 0x0:_0x247ba2[_0x3a55ad(0x20a)])&&(await this[_0x3a55ad(0x209)](_0x546ceb),_0x546ceb[_0x3a55ad(0x205)]=_0x1979f9[0x0][_0x3a55ad(0x219)]());_0x546ceb[_0x3a55ad(0x1c6)]=_0x1979f9[_0x3a55ad(0x1d3)](_0xf51a58=>_0xf51a58[_0x3a55ad(0x219)]())[_0x3a55ad(0x1e3)](''),_0x546ceb[_0x3a55ad(0x1cc)]=_0x1979f9[_0x3a55ad(0x1d3)](_0x244aff=>''+_0x244aff[_0x3a55ad(0x1e5)](0x0,0x1)['toUpperCase']()+_0x244aff[_0x3a55ad(0x1e5)](0x1)[_0x3a55ad(0x219)]())['join']('');(_0x546ceb===null||_0x546ceb===void 0x0?void 0x0:_0x546ceb[_0x3a55ad(0x205)])&&_0x1979f9[_0x3a55ad(0x21d)]>0x1&&_0x1979f9[0x0]['toLowerCase']()==_0x546ceb['moduleName']?(_0x546ceb[_0x3a55ad(0x1d4)]=_0x546ceb['tablestartUp']['substring'](_0x546ceb[_0x3a55ad(0x205)][_0x3a55ad(0x21d)],_0x546ceb['tablestartUp']['length']),_0x546ceb[_0x3a55ad(0x1e1)]=_0x546ceb[_0x3a55ad(0x1c6)][_0x3a55ad(0x1e5)](_0x546ceb[_0x3a55ad(0x205)][_0x3a55ad(0x21d)],_0x546ceb['tablestartLow'][_0x3a55ad(0x21d)])):(_0x546ceb[_0x3a55ad(0x1d4)]=_0x546ceb['tablestartUp'],_0x546ceb[_0x3a55ad(0x1e1)]=_0x546ceb['tablestartLow']);_0x546ceb[_0x3a55ad(0x1b6)]=_0x546ceb[_0x3a55ad(0x1d4)][_0x3a55ad(0x1cf)](/\/{2,}/g,'/')[_0x3a55ad(0x1f1)](/[\/|A-Z]*[^A-Z]+/g)['join']('-')['toLowerCase']()[_0x3a55ad(0x1cf)](/\/\-/g,'/');for(let _0x922234 of await _0x59ad1f[_0x3a55ad(0x1c8)](_0x3a55ad(0x1f9)+_0xbe74c+'`')){_0x922234['Key']==_0x3a55ad(0x21c)?_0x546ceb['Primary']=_0x922234:_0x546ceb['Fields'][_0x922234[_0x3a55ad(0x1f4)]]=_0x922234;}if((_0x247ba2===null||_0x247ba2===void 0x0?void 0x0:_0x247ba2[_0x3a55ad(0x229)])&&!fs['existsSync'](_0x546ceb['basedir']+'/exceptions/'+_0x546ceb[_0x3a55ad(0x1d4)]+_0x3a55ad(0x1ce))){var _0x110628=[];if(typeof(_0x247ba2===null||_0x247ba2===void 0x0?void 0x0:_0x247ba2[_0x3a55ad(0x229)])=='string')_0x110628=[_0x247ba2===null||_0x247ba2===void 0x0?void 0x0:_0x247ba2[_0x3a55ad(0x229)]];else Array[_0x3a55ad(0x1dc)](_0x247ba2===null||_0x247ba2===void 0x0?void 0x0:_0x247ba2[_0x3a55ad(0x229)])?_0x110628=_0x247ba2===null||_0x247ba2===void 0x0?void 0x0:_0x247ba2[_0x3a55ad(0x229)]:_0x110628=[!![]];_0x546ceb[_0x3a55ad(0x220)]=_0x110628,await(0x0,Search_1[_0x3a55ad(0x1b9)])(_0x546ceb),await(0x0,Entities_1[_0x3a55ad(0x1b9)])(_0x546ceb),await(0x0,Common_1[_0x3a55ad(0x1b9)])(_0x546ceb),await(0x0,Event_1[_0x3a55ad(0x1b9)])(_0x546ceb),await(0x0,Handler_1[_0x3a55ad(0x1b9)])(_0x546ceb),await(0x0,Validator_1['default'])(_0x546ceb);for(let _0xf1c070 of _0x110628){_0x546ceb['controller']=_0xf1c070,await(0x0,Action_1[_0x3a55ad(0x1b9)])(_0x546ceb);}}if(_0x247ba2===null||_0x247ba2===void 0x0?void 0x0:_0x247ba2['hasvue']){var _0x110628=[];if(typeof(_0x247ba2===null||_0x247ba2===void 0x0?void 0x0:_0x247ba2[_0x3a55ad(0x229)])==_0x3a55ad(0x1c4))_0x110628=[_0x247ba2===null||_0x247ba2===void 0x0?void 0x0:_0x247ba2[_0x3a55ad(0x229)]];else Array[_0x3a55ad(0x1dc)](_0x247ba2===null||_0x247ba2===void 0x0?void 0x0:_0x247ba2[_0x3a55ad(0x229)])?_0x110628=_0x247ba2===null||_0x247ba2===void 0x0?void 0x0:_0x247ba2[_0x3a55ad(0x229)]:_0x110628=[!![]];for(let _0x52af0d of _0x110628){_0x546ceb['controller']=_0x52af0d;let _0x1be50a=process['cwd']()+'/vue'+(typeof _0x546ceb[_0x3a55ad(0x229)]==_0x3a55ad(0x1c4)?'/'+_0x546ceb[_0x3a55ad(0x229)]:'');if(_0x546ceb['vueapiprefix'])_0x1be50a=_0x1be50a+(_0x546ceb[_0x3a55ad(0x205)]?_0x3a55ad(0x1f7)+_0x546ceb[_0x3a55ad(0x205)]+'/'+_0x546ceb[_0x3a55ad(0x1b6)]+_0x3a55ad(0x1f2):_0x3a55ad(0x227)+_0x546ceb[_0x3a55ad(0x22c)]+'/'+_0x546ceb[_0x3a55ad(0x1b6)]+'/index.vue');else _0x546ceb[_0x3a55ad(0x205)]?_0x1be50a=_0x1be50a+(_0x3a55ad(0x1cd)+_0x546ceb[_0x3a55ad(0x205)]+_0x3a55ad(0x1d5)+_0x546ceb[_0x3a55ad(0x1d4)]+_0x3a55ad(0x202)):_0x1be50a=_0x1be50a+(_0x3a55ad(0x1d5)+_0x546ceb['apporbasic']+_0x3a55ad(0x1d5)+_0x546ceb[_0x3a55ad(0x1d4)]+_0x3a55ad(0x202));!fs[_0x3a55ad(0x1d6)](_0x1be50a)&&(!_0x546ceb[_0x3a55ad(0x214)]&&await(0x0,Api_1[_0x3a55ad(0x1b9)])(_0x546ceb),await(0x0,Router_1[_0x3a55ad(0x1b9)])(_0x546ceb),await(0x0,LayoutVue_1[_0x3a55ad(0x1b9)])(_0x546ceb),await(0x0,Validator_2[_0x3a55ad(0x1b9)])(_0x546ceb));}}}else console[_0x3a55ad(0x1bc)]('表:'+_0xbe74c+'\x20表注释不存在');}return'die';}async['checkOption'](_0x1510db){const _0x420f1b=a4_0x351360;var _0x30bc76,_0x28864b,_0x1490e5;if(!this[_0x420f1b(0x1d8)][_0x420f1b(0x1c1)]()||!((_0x30bc76=this['config'])===null||_0x30bc76===void 0x0?void 0x0:_0x30bc76['dataSource'])||!this['app'][_0x420f1b(0x1c7)](_0x420f1b(0x1bf)))throw new Error('无法生成');!_0x1510db[_0x420f1b(0x1e6)]&&(_0x1510db[_0x420f1b(0x1e6)]=_0x420f1b(0x1b9));if(!((_0x1490e5=(_0x28864b=this['config'])===null||_0x28864b===void 0x0?void 0x0:_0x28864b[_0x420f1b(0x1e4)])===null||_0x1490e5===void 0x0?void 0x0:_0x1490e5[_0x1510db[_0x420f1b(0x1e6)]]))throw new Error('typeorm\x20未配置数据源\x20'+_0x1510db[_0x420f1b(0x1e6)]);if(!this[_0x420f1b(0x21a)]['hasDataSource'](_0x1510db[_0x420f1b(0x1e6)]))throw new Error('typeorm\x20数据源\x20'+_0x1510db[_0x420f1b(0x1e6)]+_0x420f1b(0x206));if(!this[_0x420f1b(0x21a)][_0x420f1b(0x20b)](_0x1510db['connection']))throw new Error(_0x420f1b(0x20c)+_0x1510db[_0x420f1b(0x1e6)]+_0x420f1b(0x1fd));return!![];}async[a4_0x351360(0x209)](_0x590997){const _0x39fce9=a4_0x351360,_0x315f4d=_0x590997['tablestart'][_0x39fce9(0x1e8)]('_')[0x0][_0x39fce9(0x219)]();if(!fs[_0x39fce9(0x1d6)](_0x590997[_0x39fce9(0x1da)]+_0x39fce9(0x1d1))){let _0x568826=_0x39fce9(0x1c2)+(_0x590997[_0x39fce9(0x1b8)]||_0x315f4d)+'\x27,\x0a\x20\x20\x20\x20description:\x20\x27\x27,\x0a\x20\x20\x20\x20middleware:\x20[],\x0a}';fs[_0x39fce9(0x1fb)](path[_0x39fce9(0x224)](_0x590997['basedir']+_0x39fce9(0x1d1)),{'recursive':!![]}),fs['writeFileSync'](_0x590997[_0x39fce9(0x1da)]+_0x39fce9(0x1d1),_0x568826,_0x39fce9(0x225));}}};exports[a4_0x351360(0x21e)]=ApicreateService,__decorate([(0x0,core_2[a4_0x351360(0x1eb)])(),__metadata(a4_0x351360(0x203),Object)],ApicreateService[a4_0x351360(0x1df)],a4_0x351360(0x1fa),void 0x0),__decorate([(0x0,core_2[a4_0x351360(0x22b)])(a4_0x351360(0x1ed)),__metadata(a4_0x351360(0x203),Object)],ApicreateService[a4_0x351360(0x1df)],a4_0x351360(0x22a),void 0x0),__decorate([(0x0,core_2[a4_0x351360(0x222)])(),__metadata(a4_0x351360(0x203),core_1[a4_0x351360(0x1e7)])],ApicreateService[a4_0x351360(0x1df)],a4_0x351360(0x1d8),void 0x0),__decorate([(0x0,core_2['Inject'])(),__metadata('design:type',typeorm_1['TypeORMDataSourceManager'])],ApicreateService[a4_0x351360(0x1df)],a4_0x351360(0x21a),void 0x0),exports['ApicreateService']=ApicreateService=__decorate([(0x0,core_2[a4_0x351360(0x215)])('ApicreateService'),(0x0,core_2[a4_0x351360(0x208)])(core_2[a4_0x351360(0x1cb)][a4_0x351360(0x1d7)])],ApicreateService);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a5_0x1758c3=a5_0x34f6;function a5_0x5a34(){const _0x3cfbd0=['Field','\x20\x20\x20\x20async\x20create(params:\x20','DTOCreate\x20}\x20from\x20\x27','\x20\x20\x20\x20@Inject()\x20protected\x20','\x20\x20\x20\x20\x20\x20\x20\x20const\x20[pagelist,\x20pagetotal]\x20=\x20await\x20this.','2389310SxyDTi','mediumtext','\x20\x20\x20\x20}\x0a\x0a\x0a','getProp','\x27;\x0a','substring','Type','number','existsSync','path','\x20\x20\x20\x20\x20\x20\x20\x20return\x20this.ctx.ok(pagelist,\x20{\x20pageinfo,\x20pagetotal\x20});\x0a','/Search\x27;\x0a','\x20\x20\x20\x20@Action.post(\x27修改\x27,\x20\x27edit/:','DTOUpdate)\x20{\x0a','text','\x20\x20\x20\x20\x20\x20\x20\x20const\x20conditions:\x20','\x20};\x0a\x0a','.ts','DTOSearch)\x20{\x0a\x0a','defineProperty','\x20\x20\x20\x20\x20\x20\x20\x20return\x20this.ctx.ok(tmpModel);\x0a','search','constructor','6lqApMc','\x20\x20\x20\x20@Action.get(\x27详情\x27,\x20\x27detail/:','/Create\x27;\x0a','string','mkdirSync','231427zFJZkE','\x20\x20\x20\x20async\x20update(','/controller/','Controller\x20{\x0a\x0a','@/apps/','import\x20{\x20','Handler.create(params);\x0a\x0a','/handlers/','/Update\x27;\x0a\x0a','DTOSearch\x20=\x20{\x20','Handler\x0a\x0a\x0a','Handler:\x20','DTOSearch,\x20pageinfo:\x20PageDTO)\x20{\x0a\x0a','export\x20class\x20','Handler.update(conditions,\x20params);\x0a\x0a','/validators/','../helper','5300526VngsBz','DTOSearch\x20}\x20from\x20\x27','toUpperCase','dirname','\x20\x20\x20\x20\x20\x20\x20\x20return\x20this.ctx.ok(removes);\x0a','toString',')\x20{\x0a','\x27)\x0a','365640zIRbIM','\x20\x20\x20\x20@Action.post(\x22删除\x22,\x20\x27remove\x27)\x0a','\x20\x20\x20\x20\x20\x20\x20\x20const\x20removes\x20=\x20await\x20this.','\x20\x20\x20\x20async\x20remove(conditions:\x20','\x20\x20\x20\x20\x20\x20\x20\x20const\x20tmpModel\x20=\x20await\x20this.','745YfmiuC','writeFileSync','63VBmVdQ','Handler.list(conditions,\x20pageinfo);\x0a\x0a','import\x20{\x20Context\x20}\x20from\x20\x27@midwayjs/koa\x27;\x0a','DTOCreate)\x20{\x0a\x0a','(((.+)+)+)+$','468417qsldIy','285274uAOxfg','12ZVXyDd','\x20\x20\x20\x20async\x20detail(','1204ViKxym'];a5_0x5a34=function(){return _0x3cfbd0;};return a5_0x5a34();}(function(_0x133510,_0x400eb2){const _0xe5ee4b=a5_0x34f6,_0x512bb1=_0x133510();while(!![]){try{const _0x7ca5e4=parseInt(_0xe5ee4b(0x187))/0x1+parseInt(_0xe5ee4b(0x188))/0x2*(-parseInt(_0xe5ee4b(0x1a8))/0x3)+-parseInt(_0xe5ee4b(0x18b))/0x4*(-parseInt(_0xe5ee4b(0x180))/0x5)+-parseInt(_0xe5ee4b(0x189))/0x6*(parseInt(_0xe5ee4b(0x1ad))/0x7)+-parseInt(_0xe5ee4b(0x17b))/0x8*(-parseInt(_0xe5ee4b(0x182))/0x9)+parseInt(_0xe5ee4b(0x191))/0xa+-parseInt(_0xe5ee4b(0x173))/0xb;if(_0x7ca5e4===_0x400eb2)break;else _0x512bb1['push'](_0x512bb1['shift']());}catch(_0x5218a0){_0x512bb1['push'](_0x512bb1['shift']());}}}(a5_0x5a34,0x3a516));const a5_0x5bbfb2=(function(){let _0x36b7ac=!![];return function(_0x35ec34,_0x27165a){const _0x2f31e9=_0x36b7ac?function(){if(_0x27165a){const _0x3fb767=_0x27165a['apply'](_0x35ec34,arguments);return _0x27165a=null,_0x3fb767;}}:function(){};return _0x36b7ac=![],_0x2f31e9;};}()),a5_0x351df4=a5_0x5bbfb2(this,function(){const _0x109bc3=a5_0x34f6;return a5_0x351df4[_0x109bc3(0x178)]()[_0x109bc3(0x1a6)](_0x109bc3(0x186))[_0x109bc3(0x178)]()[_0x109bc3(0x1a7)](a5_0x351df4)[_0x109bc3(0x1a6)](_0x109bc3(0x186));});a5_0x351df4();'use strict';Object[a5_0x1758c3(0x1a4)](exports,'__esModule',{'value':!![]}),exports['default']=default_1;const fs=require('fs'),path_1=require(a5_0x1758c3(0x19a)),helper_1=require(a5_0x1758c3(0x172));function a5_0x34f6(_0x26a62e,_0x3dba27){_0x26a62e=_0x26a62e-0x16c;const _0x11d7e4=a5_0x5a34();let _0x351df4=_0x11d7e4[_0x26a62e];return _0x351df4;}async function default_1({controller:_0x168e9d,tablestartUp:_0x4f4d27,tablestartUpShort:_0x325d31,basedir:_0xd6dee0,Primary:_0x19d3f9,Comment:_0x26b456,moduleName:_0x2d1836,apporbasic:_0x3bee7b}){const _0x3408eb=a5_0x1758c3;if(_0x168e9d){const _0x134128=_0xd6dee0+(typeof _0x168e9d==_0x3408eb(0x1ab)?'/controller/'+_0x168e9d+'/'+_0x325d31+_0x3408eb(0x1a2):_0x3408eb(0x1af)+_0x325d31+_0x3408eb(0x1a2));if(!fs[_0x3408eb(0x199)](_0x134128)){let _0x58c3ae='',_0x4c4ed4=[_0x3408eb(0x19f),_0x3408eb(0x192),'string']['indexOf']((0x0,helper_1[_0x3408eb(0x194)])(_0x19d3f9[_0x3408eb(0x197)]))==-0x1;_0x58c3ae+=_0x3408eb(0x184),_0x58c3ae+='import\x20{\x20Inject,\x20Action,\x20PageDTO\x20}\x20from\x20\x27anvero-api\x27;\x0a\x0a',_0x58c3ae+=_0x3408eb(0x1b2)+_0x4f4d27+'Handler\x20}\x20from\x20\x27'+(typeof _0x2d1836==_0x3408eb(0x1ab)?_0x3408eb(0x1b1)+_0x2d1836:'@/'+_0x3bee7b)+_0x3408eb(0x1b4)+_0x325d31+_0x3408eb(0x195),_0x58c3ae+=_0x3408eb(0x1b2)+_0x4f4d27+_0x3408eb(0x174)+(typeof _0x2d1836=='string'?_0x3408eb(0x1b1)+_0x2d1836:'@/'+_0x3bee7b)+_0x3408eb(0x171)+_0x325d31+_0x3408eb(0x19c),_0x58c3ae+=_0x3408eb(0x1b2)+_0x4f4d27+_0x3408eb(0x18e)+(typeof _0x2d1836==_0x3408eb(0x1ab)?'@/apps/'+_0x2d1836:'@/'+_0x3bee7b)+_0x3408eb(0x171)+_0x325d31+_0x3408eb(0x1aa),_0x58c3ae+='import\x20{\x20'+_0x4f4d27+'DTOUpdate\x20}\x20from\x20\x27'+(typeof _0x2d1836==_0x3408eb(0x1ab)?'@/apps/'+_0x2d1836:'@/'+_0x3bee7b)+_0x3408eb(0x171)+_0x325d31+_0x3408eb(0x1b5),_0x58c3ae+='@Action(__filename,\x20\x27'+_0x26b456+_0x3408eb(0x17a),_0x58c3ae+=_0x3408eb(0x16f)+(typeof _0x168e9d==_0x3408eb(0x1ab)?_0x168e9d['substring'](0x0,0x1)[_0x3408eb(0x175)]()+_0x168e9d[_0x3408eb(0x196)](0x1):'')+_0x4f4d27+_0x3408eb(0x1b0),_0x58c3ae+='\x20\x20\x20\x20@Inject()\x20protected\x20ctx:\x20Context;\x0a\x0a',_0x58c3ae+=_0x3408eb(0x18f)+_0x4f4d27+_0x3408eb(0x16d)+_0x4f4d27+_0x3408eb(0x16c),_0x58c3ae+='\x20\x20\x20\x20@Action.get(\x27列表\x27,\x20\x27list\x27)\x0a',_0x58c3ae+='\x20\x20\x20\x20async\x20index(conditions:\x20'+_0x4f4d27+_0x3408eb(0x16e),_0x58c3ae+=_0x3408eb(0x190)+_0x4f4d27+_0x3408eb(0x183),_0x58c3ae+=_0x3408eb(0x19b),_0x58c3ae+=_0x3408eb(0x193),_0x58c3ae+=_0x3408eb(0x1a9)+_0x19d3f9[_0x3408eb(0x18c)]+_0x3408eb(0x17a),_0x58c3ae+=_0x3408eb(0x18a)+_0x19d3f9[_0x3408eb(0x18c)]+':\x20'+(_0x4c4ed4?_0x3408eb(0x198):_0x3408eb(0x1ab))+_0x3408eb(0x179),_0x58c3ae+=_0x3408eb(0x1a0)+_0x4f4d27+_0x3408eb(0x1b6)+_0x19d3f9[_0x3408eb(0x18c)]+_0x3408eb(0x1a1),_0x58c3ae+='\x20\x20\x20\x20\x20\x20\x20\x20const\x20tmpModel\x20=\x20await\x20this.'+_0x4f4d27+'Handler.detail(conditions);\x0a\x0a',_0x58c3ae+=_0x3408eb(0x1a5),_0x58c3ae+=_0x3408eb(0x193),_0x58c3ae+='\x20\x20\x20\x20@Action.post(\x27添加\x27,\x20\x27add\x27)\x0a',_0x58c3ae+=_0x3408eb(0x18d)+_0x4f4d27+_0x3408eb(0x185),_0x58c3ae+=_0x3408eb(0x17f)+_0x4f4d27+_0x3408eb(0x1b3),_0x58c3ae+=_0x3408eb(0x1a5),_0x58c3ae+=_0x3408eb(0x193),_0x58c3ae+=_0x3408eb(0x19d)+_0x19d3f9['Field']+'\x27)\x0a',_0x58c3ae+=_0x3408eb(0x1ae)+_0x19d3f9['Field']+':\x20'+(_0x4c4ed4?'number':_0x3408eb(0x1ab))+',\x20params:\x20'+_0x4f4d27+_0x3408eb(0x19e),_0x58c3ae+=_0x3408eb(0x1a0)+_0x4f4d27+'DTOSearch\x20=\x20{\x20'+_0x19d3f9[_0x3408eb(0x18c)]+_0x3408eb(0x1a1),_0x58c3ae+=_0x3408eb(0x17f)+_0x4f4d27+_0x3408eb(0x170),_0x58c3ae+=_0x3408eb(0x1a5),_0x58c3ae+=_0x3408eb(0x193),_0x58c3ae+=_0x3408eb(0x17c),_0x58c3ae+=_0x3408eb(0x17e)+_0x4f4d27+_0x3408eb(0x1a3),_0x58c3ae+=_0x3408eb(0x17d)+_0x4f4d27+'Handler.remove(conditions);\x0a\x0a',_0x58c3ae+=_0x3408eb(0x177),_0x58c3ae+=_0x3408eb(0x193),_0x58c3ae+='}',!fs[_0x3408eb(0x199)]((0x0,path_1[_0x3408eb(0x176)])(_0x134128))&&fs[_0x3408eb(0x1ac)]((0x0,path_1[_0x3408eb(0x176)])(_0x134128),{'recursive':!![]}),fs[_0x3408eb(0x181)](_0x134128,_0x58c3ae,'utf-8');}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a6_0x5141e0=a6_0x57bc;(function(_0x11b5e9,_0x3e9dc3){const _0x24784b=a6_0x57bc,_0x1a83f6=_0x11b5e9();while(!![]){try{const _0x36cc8c=parseInt(_0x24784b(0xfb))/0x1*(-parseInt(_0x24784b(0x10e))/0x2)+parseInt(_0x24784b(0x10b))/0x3*(parseInt(_0x24784b(0x112))/0x4)+parseInt(_0x24784b(0xfd))/0x5+parseInt(_0x24784b(0x100))/0x6+parseInt(_0x24784b(0xf0))/0x7*(-parseInt(_0x24784b(0xfa))/0x8)+-parseInt(_0x24784b(0x111))/0x9*(parseInt(_0x24784b(0xee))/0xa)+parseInt(_0x24784b(0x10c))/0xb*(parseInt(_0x24784b(0xf4))/0xc);if(_0x36cc8c===_0x3e9dc3)break;else _0x1a83f6['push'](_0x1a83f6['shift']());}catch(_0x4eac1b){_0x1a83f6['push'](_0x1a83f6['shift']());}}}(a6_0x5799,0x76cd1));const a6_0x545d0c=(function(){let _0x252c3b=!![];return function(_0x1ed0ff,_0x1c620c){const _0x1f2092=_0x252c3b?function(){if(_0x1c620c){const _0x7f9ba2=_0x1c620c['apply'](_0x1ed0ff,arguments);return _0x1c620c=null,_0x7f9ba2;}}:function(){};return _0x252c3b=![],_0x1f2092;};}()),a6_0x257c3e=a6_0x545d0c(this,function(){const _0xb57bcb=a6_0x57bc;return a6_0x257c3e['toString']()[_0xb57bcb(0x10f)]('(((.+)+)+)+$')[_0xb57bcb(0xeb)]()[_0xb57bcb(0xfe)](a6_0x257c3e)[_0xb57bcb(0x10f)]('(((.+)+)+)+$');});a6_0x257c3e();'use strict';function a6_0x57bc(_0x143d4a,_0xa5c447){_0x143d4a=_0x143d4a-0xe7;const _0x2e1b34=a6_0x5799();let _0x257c3e=_0x2e1b34[_0x143d4a];return _0x257c3e;}Object[a6_0x5141e0(0x115)](exports,a6_0x5141e0(0x102),{'value':!![]}),exports[a6_0x5141e0(0xe9)]=default_1;const fs=require('fs'),path=require(a6_0x5141e0(0xff)),helper_1=require(a6_0x5141e0(0x114));function a6_0x5799(){const _0x4adeb3=['\x27,\x20\x27关闭','toString','getProp','tinyint','30400stKcTe','Error\x20extends\x20AnnError\x20{\x0a\x0a','147VojniL','/**\x0a','Type','\x27)\x0a','5556TAOoSm','_OFF:\x20number\x20=\x200;\x0a\x0a\x0a','/exceptions/','-常量设置\x0a','writeFileSync','-错误信息设置\x0a','16912WEWpLc','794999GYqkWn','_ON:\x20number\x20=\x201;\x0a\x0a','3403945JFUkKv','constructor','path','1817988uovrvW','indexOf','__esModule','existsSync','\x20*\x20**/\x0a','\x20\x20\x20\x20static\x20readonly\x20','mkdirSync','.ts','export\x20class\x20','\x20*\x20','utf-8','2437431tEgAvZ','11506aFqlgQ','dirname','2EQLCfG','search','\x20\x20\x20\x20@AnnEnumMsg(\x27','2826DQLdWh','4nEHkvi','Comment','../helper','defineProperty','/enums/','toUpperCase','default'];a6_0x5799=function(){return _0x4adeb3;};return a6_0x5799();}async function default_1({tablestartUp:_0x27176d,tablestartUpShort:_0x391368,basedir:_0x24498a,Comment:_0x3390fe,Fields:_0x5a1fd5}){await entity_emum({'tablestartUp':_0x27176d,'tablestartUpShort':_0x391368,'basedir':_0x24498a,'Comment':_0x3390fe,'Fields':_0x5a1fd5}),await entity_exceptions({'tablestartUp':_0x27176d,'tablestartUpShort':_0x391368,'basedir':_0x24498a,'Comment':_0x3390fe});}async function entity_emum({tablestartUp:_0x48eb02,tablestartUpShort:_0x1870dc,basedir:_0x14e5f5,Comment:_0x3ced7d,Fields:_0x244aac}){const _0x29eb1a=a6_0x5141e0,_0x52f92c=_0x14e5f5+(_0x29eb1a(0xe7)+_0x1870dc+_0x29eb1a(0x107));if(!fs[_0x29eb1a(0x103)](_0x52f92c)){let _0x46c472='';_0x46c472+=_0x29eb1a(0xf1),_0x46c472+='\x20*\x20'+_0x3ced7d+_0x29eb1a(0xf7),_0x46c472+=_0x29eb1a(0x104),_0x46c472+=_0x29eb1a(0x108)+_0x48eb02+'Enum\x20{\x0a\x0a';for(let _0x5174c1 in _0x244aac){let _0x418e31=_0x244aac[_0x5174c1],_0x325fce=(0x0,helper_1[_0x29eb1a(0xec)])(_0x418e31[_0x29eb1a(0xf2)]);[_0x29eb1a(0xed)][_0x29eb1a(0x101)](_0x325fce)!=-0x1&&(_0x46c472+=_0x29eb1a(0x110)+_0x5174c1+'\x27,\x20\x27开启'+_0x418e31[_0x29eb1a(0x113)]+_0x29eb1a(0xf3),_0x46c472+='\x20\x20\x20\x20static\x20readonly\x20'+_0x5174c1[_0x29eb1a(0xe8)]()+_0x29eb1a(0xfc),_0x46c472+=_0x29eb1a(0x110)+_0x5174c1+_0x29eb1a(0xea)+_0x418e31[_0x29eb1a(0x113)]+_0x29eb1a(0xf3),_0x46c472+=_0x29eb1a(0x105)+_0x5174c1[_0x29eb1a(0xe8)]()+_0x29eb1a(0xf5));}_0x46c472+='}',!fs['existsSync'](path[_0x29eb1a(0x10d)](_0x52f92c))&&fs['mkdirSync'](path[_0x29eb1a(0x10d)](_0x52f92c),{'recursive':!![]}),fs['writeFileSync'](_0x52f92c,_0x46c472,_0x29eb1a(0x10a));}}async function entity_exceptions({tablestartUp:_0x4e8b75,tablestartUpShort:_0x55c21e,basedir:_0x3b9bd0,Comment:_0x5d15ea}){const _0x4b467d=a6_0x5141e0,_0x3541c5=_0x3b9bd0+(_0x4b467d(0xf6)+_0x55c21e+_0x4b467d(0x107));if(!fs[_0x4b467d(0x103)](_0x3541c5)){let _0x14d0ab='';_0x14d0ab+=_0x4b467d(0xf1),_0x14d0ab+=_0x4b467d(0x109)+_0x5d15ea+_0x4b467d(0xf9),_0x14d0ab+=_0x4b467d(0x104),_0x14d0ab+=_0x4b467d(0x108)+_0x4e8b75+_0x4b467d(0xef),_0x14d0ab+='}',!fs[_0x4b467d(0x103)](path['dirname'](_0x3541c5))&&fs[_0x4b467d(0x106)](path['dirname'](_0x3541c5),{'recursive':!![]}),fs[_0x4b467d(0xf8)](_0x3541c5,_0x14d0ab,_0x4b467d(0x10a));}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a7_0x233c(_0x1a74ff,_0x154368){_0x1a74ff=_0x1a74ff-0x8b;const _0x3566f8=a7_0x5319();let _0x3e0029=_0x3566f8[_0x1a74ff];return _0x3e0029;}const a7_0x509522=a7_0x233c;(function(_0x3631b9,_0x43be4a){const _0x2999f3=a7_0x233c,_0x1e30e5=_0x3631b9();while(!![]){try{const _0x7ee016=-parseInt(_0x2999f3(0xd6))/0x1+parseInt(_0x2999f3(0xe0))/0x2*(parseInt(_0x2999f3(0xc0))/0x3)+parseInt(_0x2999f3(0xba))/0x4+parseInt(_0x2999f3(0xb7))/0x5+-parseInt(_0x2999f3(0xbb))/0x6+-parseInt(_0x2999f3(0x98))/0x7*(-parseInt(_0x2999f3(0xc1))/0x8)+-parseInt(_0x2999f3(0xa1))/0x9;if(_0x7ee016===_0x43be4a)break;else _0x1e30e5['push'](_0x1e30e5['shift']());}catch(_0x30e811){_0x1e30e5['push'](_0x1e30e5['shift']());}}}(a7_0x5319,0x426c1));const a7_0x531646=(function(){let _0x2fecb2=!![];return function(_0x2b16d5,_0x558417){const _0x1f7d2a=_0x2fecb2?function(){const _0x47b9a2=a7_0x233c;if(_0x558417){const _0x4a2820=_0x558417[_0x47b9a2(0x90)](_0x2b16d5,arguments);return _0x558417=null,_0x4a2820;}}:function(){};return _0x2fecb2=![],_0x1f7d2a;};}()),a7_0x3e0029=a7_0x531646(this,function(){const _0x523431=a7_0x233c;return a7_0x3e0029[_0x523431(0xf1)]()['search'](_0x523431(0xb6))[_0x523431(0xf1)]()[_0x523431(0x9c)](a7_0x3e0029)[_0x523431(0xcb)](_0x523431(0xb6));});a7_0x3e0029();'use strict';Object[a7_0x509522(0xf3)](exports,'__esModule',{'value':!![]}),exports['default']=default_1;function a7_0x5319(){const _0x5f35cc=['search','/entities/','\x20\x20\x20\x20@Column({\x20comment:\x20\x27','json','PrimaryGeneratedColumn','\x20*\x20','existsSync','\x27,\x20length:\x20188\x20})\x0a','true','\x20extends\x20Repository<','/entity\x27;\x0a\x0a','47550GEwGgS',':\x20string;\x0a\x0a','\x20\x20\x20\x20@DeleteDateColumn({\x20comment:\x20\x27删除时间\x27,\x20type:\x20\x27timestamp\x27,\x20select:\x20false\x20})\x0a','Entity>{\x0a\x0a','\x20\x20\x20\x20@Column(\x27timestamp\x27,\x20{\x20comment:\x20\x27','%column%','\x20\x20\x20\x20@UpdateDateColumn({\x20comment:\x20\x27修改时间\x27,\x20type:\x20\x27timestamp\x27\x20})\x0a','YES','getProp','Null','2gOuJZA','false','\x20*\x20**/\x0a','mkdirSync','\x20\x20\x20\x20@Column(\x27enum\x27,\x20{\x20comment:\x20\x27','-实体处理器\x0a','@ProvideEntity({\x20tableName:\x20\x27','\x20\x20\x20\x20deleted_at:\x20Date;\x0a\x0a','dirname','\x27,\x20precision:\x2010,\x20scale:\x202,\x20default:\x200.00,\x20nullable:\x20','\x20\x20\x20\x20@CreateDateColumn({\x20comment:\x20\x27创建时间\x27,\x20type:\x20\x27timestamp\x27\x20})\x0a','\x20\x20\x20\x20@PrimaryColumn({\x20comment:\x20\x27','tinyint','-实体\x0a','\x27;\x0a\x0a',',\x20unique:\x20false\x20})\x0a','\x27]\x20})\x0a','toString','number','defineProperty','\x27,\x20\x27','\x20\x20\x20\x20@PrimaryGeneratedColumn()\x0a','//\x20import\x20{\x20ManyToOne,\x20JoinColumn\x20}\x20from\x20\x27@anveroapi/typeorm\x27;\x0a','\x20\x20\x20\x20@Column(\x27mediumtext\x27,\x20{\x20comment:\x20\x27','timestamp','apply','/searchs/','Field','decimal','\x20\x20\x20\x20created_at:\x20Date;\x0a\x0a',':\x20\x27','longtext','\x27,\x20nullable:\x20','7091JWOQKN','indexOf','\x20\x20\x20\x20@Column(\x27longtext\x27,\x20{\x20comment:\x20\x27','@ProvideSearch(','constructor','\x20\x20\x20\x20@Column(\x27date\x27,\x20{\x20comment:\x20\x27','/entity.ts','utf-8','replace','2744199UxMeoN','displayorder','../helper','import\x20{\x20ProvideRepository,\x20Repository\x20}\x20from\x20\x27@anveroapi/typeorm\x27;\x0a','\x20})\x0a','\x27,\x20enum:\x20[\x27','\x20\x20\x20\x20@Column({\x20comment:\x20\x27默认显示排序\x27,\x20nullable:\x20true,\x20unique:\x20false\x20})\x0a','Type','writeFileSync','export\x20class\x20','Entity\x20}\x20from\x20\x27','\x27,\x20precision:\x2024,\x20scale:\x202,\x20default:\x200.00,\x20nullable:\x20','\x20\x20\x20\x20@Column(\x27text\x27,\x20{\x20comment:\x20\x27','\x27\x20},\x20{\x20orderBy:\x20{\x20displayorder:\x20\x27DESC\x27\x20}\x20})\x0a','string','Comment','getEnum','Search\x20}\x20from\x20\x27','path','float',':\x20number;\x0a\x0a','(((.+)+)+)+$','1150590rkKTPO','date','deleted_at','197600BSpevr','587868YUAOgW','\x20\x20\x20\x20@Column(\x27float\x27,\x20{\x20comment:\x20\x27','/**\x0a','@/apps/','import\x20{\x20','906537izSBRd','1112QOtYUi','text','\x20\x20\x20\x20@Column(\x27decimal\x27,\x20{\x20comment:\x20\x27','\x27\x20|\x20\x27','\x20\x20\x20\x20','datetime','/index.ts','\x20\x20\x20\x20@Column(\x27json\x27,\x20{\x20comment:\x20\x27','Entity)\x0a','mediumtext'];a7_0x5319=function(){return _0x5f35cc;};return a7_0x5319();}const fs=require('fs'),path_1=require(a7_0x509522(0xb3)),helper_1=require(a7_0x509522(0xa3));async function default_1({tablename:_0x1d4033,tablestartUp:_0x7fa76e,tablestartUpShort:_0x5c2d55,basedir:_0xd05971,Primary:_0x17c67e,Fields:_0x43edd8,Comment:_0x19cd5b,moduleName:_0x174715,apporbasic:_0x1491cb}){await entity({'tablename':_0x1d4033,'tablestartUp':_0x7fa76e,'tablestartUpShort':_0x5c2d55,'basedir':_0xd05971,'Primary':_0x17c67e,'Fields':_0x43edd8,'Comment':_0x19cd5b,'moduleName':_0x174715,'apporbasic':_0x1491cb}),await repository({'tablestartUp':_0x7fa76e,'tablestartUpShort':_0x5c2d55,'basedir':_0xd05971,'Comment':_0x19cd5b,'moduleName':_0x174715,'apporbasic':_0x1491cb});}async function entity({tablename:_0x2a1278,tablestartUp:_0x15eea9,tablestartUpShort:_0x4e9873,basedir:_0x530702,Primary:_0x2d175a,Fields:_0x545164,Comment:_0xe9635c,moduleName:_0x537a33,apporbasic:_0x3b98af}){const _0x314da7=a7_0x509522,_0x26ca2f=_0x530702+(_0x314da7(0xcc)+_0x4e9873+_0x314da7(0x9e));if(!fs[_0x314da7(0xd1)](_0x26ca2f)){let _0x4de009='',_0x4fbe2f='',_0x43031c=[_0x314da7(0xc2),'mediumtext',_0x314da7(0xaf)][_0x314da7(0x99)]((0x0,helper_1[_0x314da7(0xde)])(_0x2d175a[_0x314da7(0xa8)]))==-0x1;_0x43031c?(_0x4de009+=_0x314da7(0x8c),_0x4de009+=_0x314da7(0xc5)+_0x2d175a['Field']+_0x314da7(0xb5)):(_0x4de009+=_0x314da7(0xeb)+(_0x2d175a[_0x314da7(0xb0)]||'标识')+_0x314da7(0xd2),_0x4de009+=_0x314da7(0xc5)+_0x2d175a[_0x314da7(0x92)]+_0x314da7(0xd7));for(let _0x2040a3 in _0x545164){let _0x5be7ad=_0x545164[_0x2040a3],_0x27681a=(0x0,helper_1[_0x314da7(0xde)])(_0x5be7ad[_0x314da7(0xa8)]);if(_0x5be7ad[_0x314da7(0x92)]==_0x314da7(0xa2)||_0x5be7ad['Field']=='created_at'||_0x5be7ad['Field']=='updated_at'||_0x5be7ad[_0x314da7(0x92)]==_0x314da7(0xb9))continue;if(_0x27681a==_0x314da7(0xce))_0x4de009+=_0x314da7(0xc8)+_0x5be7ad['Comment']+_0x314da7(0x97)+(_0x5be7ad[_0x314da7(0xdf)]==_0x314da7(0xdd)?_0x314da7(0xd3):_0x314da7(0xe1))+',\x20unique:\x20false\x20})\x0a',_0x4de009+=_0x314da7(0xc5)+_0x5be7ad[_0x314da7(0x92)]+':\x20any\x20|\x20any[];\x0a\x0a';else{if(_0x27681a=='enum'){let _0x1ec099=(0x0,helper_1[_0x314da7(0xb1)])(_0x5be7ad['Type']);_0x4de009+=_0x314da7(0xe4)+_0x5be7ad[_0x314da7(0xb0)]+'\x27,\x20default:\x20\x27'+(_0x1ec099[0x0]||'')+_0x314da7(0xa6)+_0x1ec099['join'](_0x314da7(0x8b))+_0x314da7(0xf0),_0x4de009+=_0x314da7(0xc5)+_0x5be7ad[_0x314da7(0x92)]+_0x314da7(0x95)+_0x1ec099['join'](_0x314da7(0xc4))+'\x27;\x0a\x0a';}else{if(_0x27681a==_0x314da7(0xb4))_0x4de009+=_0x314da7(0xbc)+_0x5be7ad[_0x314da7(0xb0)]+_0x314da7(0xe9)+(_0x5be7ad[_0x314da7(0xdf)]==_0x314da7(0xdd)?_0x314da7(0xd3):_0x314da7(0xe1))+'\x20})\x0a',_0x4de009+=_0x314da7(0xc5)+_0x5be7ad['Field']+':\x20number;\x0a\x0a';else{if(_0x27681a=='double')_0x4de009+='\x20\x20\x20\x20@Column(\x27double\x27,\x20{\x20comment:\x20\x27'+_0x5be7ad['Comment']+'\x27,\x20precision:\x2010,\x20scale:\x202,\x20default:\x200.00,\x20nullable:\x20'+(_0x5be7ad['Null']==_0x314da7(0xdd)?_0x314da7(0xd3):_0x314da7(0xe1))+'\x20})\x0a',_0x4de009+='\x20\x20\x20\x20'+_0x5be7ad[_0x314da7(0x92)]+_0x314da7(0xb5);else{if(_0x27681a==_0x314da7(0x93))_0x4de009+=_0x314da7(0xc3)+_0x5be7ad[_0x314da7(0xb0)]+_0x314da7(0xac)+(_0x5be7ad[_0x314da7(0xdf)]==_0x314da7(0xdd)?_0x314da7(0xd3):_0x314da7(0xe1))+'\x20})\x0a',_0x4de009+='\x20\x20\x20\x20'+_0x5be7ad[_0x314da7(0x92)]+':\x20number;\x0a\x0a';else{if(_0x27681a==_0x314da7(0xf2))_0x4de009+=_0x314da7(0xcd)+_0x5be7ad['Comment']+'\x27,\x20nullable:\x20'+(_0x5be7ad['Null']==_0x314da7(0xdd)?'true':_0x314da7(0xe1))+',\x20unique:\x20false\x20})\x0a',_0x4de009+=_0x314da7(0xc5)+_0x5be7ad[_0x314da7(0x92)]+_0x314da7(0xb5);else{if(_0x27681a==_0x314da7(0xec))_0x4de009+='\x20\x20\x20\x20@Column(\x27tinyint\x27,\x20{\x20comment:\x20\x27'+_0x5be7ad['Comment']+'\x27,\x20nullable:\x20'+(_0x5be7ad[_0x314da7(0xdf)]=='YES'?'true':_0x314da7(0xe1))+_0x314da7(0xef),_0x4de009+=_0x314da7(0xc5)+_0x5be7ad['Field']+':\x20number;\x0a\x0a';else{if(_0x27681a==_0x314da7(0xb8))_0x4de009+=_0x314da7(0x9d)+_0x5be7ad['Comment']+_0x314da7(0x97)+(_0x5be7ad[_0x314da7(0xdf)]==_0x314da7(0xdd)?_0x314da7(0xd3):_0x314da7(0xe1))+'\x20})\x0a',_0x4de009+=_0x314da7(0xc5)+_0x5be7ad[_0x314da7(0x92)]+_0x314da7(0xd7);else{if(_0x27681a==_0x314da7(0xc6))_0x4de009+=_0x314da7(0xda)+_0x5be7ad['Comment']+_0x314da7(0x97)+(_0x5be7ad[_0x314da7(0xdf)]==_0x314da7(0xdd)?'true':_0x314da7(0xe1))+'\x20})\x0a',_0x4de009+=_0x314da7(0xc5)+_0x5be7ad[_0x314da7(0x92)]+_0x314da7(0xd7);else{if(_0x27681a==_0x314da7(0x8f))_0x4de009+=_0x314da7(0xda)+_0x5be7ad[_0x314da7(0xb0)]+_0x314da7(0x97)+(_0x5be7ad[_0x314da7(0xdf)]==_0x314da7(0xdd)?'true':_0x314da7(0xe1))+_0x314da7(0xa5),_0x4de009+='\x20\x20\x20\x20'+_0x5be7ad[_0x314da7(0x92)]+_0x314da7(0xd7);else{if(_0x27681a==_0x314da7(0xc2))_0x4de009+=_0x314da7(0xad)+_0x5be7ad[_0x314da7(0xb0)]+_0x314da7(0x97)+(_0x5be7ad[_0x314da7(0xdf)]==_0x314da7(0xdd)?_0x314da7(0xd3):_0x314da7(0xe1))+_0x314da7(0xef),_0x4de009+=_0x314da7(0xc5)+_0x5be7ad[_0x314da7(0x92)]+_0x314da7(0xd7);else{if(_0x27681a==_0x314da7(0x96))_0x4de009+=_0x314da7(0x9a)+_0x5be7ad[_0x314da7(0xb0)]+_0x314da7(0x97)+(_0x5be7ad[_0x314da7(0xdf)]==_0x314da7(0xdd)?'true':_0x314da7(0xe1))+_0x314da7(0xef),_0x4de009+=_0x314da7(0xc5)+_0x5be7ad['Field']+_0x314da7(0xd7);else _0x27681a==_0x314da7(0xca)?(_0x4de009+=_0x314da7(0x8e)+_0x5be7ad[_0x314da7(0xb0)]+'\x27,\x20nullable:\x20'+(_0x5be7ad[_0x314da7(0xdf)]==_0x314da7(0xdd)?_0x314da7(0xd3):_0x314da7(0xe1))+',\x20unique:\x20false\x20})\x0a',_0x4de009+=_0x314da7(0xc5)+_0x5be7ad[_0x314da7(0x92)]+_0x314da7(0xd7)):(_0x4de009+=_0x314da7(0xcd)+_0x5be7ad['Comment']+_0x314da7(0x97)+(_0x5be7ad['Null']==_0x314da7(0xdd)?_0x314da7(0xd3):_0x314da7(0xe1))+_0x314da7(0xef),_0x4de009+='\x20\x20\x20\x20'+_0x5be7ad[_0x314da7(0x92)]+_0x314da7(0xd7));}}}}}}}}}}}}_0x4fbe2f+=_0x314da7(0x8d),_0x4fbe2f+='import\x20{\x20CreateDateColumn,\x20UpdateDateColumn,\x20DeleteDateColumn\x20}\x20from\x20\x27@anveroapi/typeorm\x27;\x0a',_0x4fbe2f+='import\x20{\x20ProvideEntity,\x20ProvideSearch,\x20'+(_0x43031c?_0x314da7(0xcf):'PrimaryColumn')+',\x20Column\x20}\x20from\x20\x27@anveroapi/typeorm\x27;\x0a\x0a',_0x4fbe2f+=_0x314da7(0xbf)+_0x15eea9+_0x314da7(0xb2)+(typeof _0x537a33=='string'?_0x314da7(0xbe)+_0x537a33:'@/'+_0x3b98af)+_0x314da7(0x91)+_0x4e9873+_0x314da7(0xee),_0x4fbe2f+=_0x314da7(0xbd),_0x4fbe2f+=_0x314da7(0xd0)+_0xe9635c+_0x314da7(0xed),_0x4fbe2f+=_0x314da7(0xe2),_0x4fbe2f+=_0x314da7(0x9b)+_0x15eea9+'Search)\x0a',_0x4fbe2f+=_0x314da7(0xe6)+_0x2a1278+_0x314da7(0xae),_0x4fbe2f+='export\x20class\x20'+_0x15eea9+'Entity\x20{\x0a\x0a',_0x4fbe2f+=_0x314da7(0xdb),_0x4fbe2f+=_0x314da7(0xa7),_0x4fbe2f+='\x20\x20\x20\x20displayorder:\x20number;\x0a\x0a',_0x4fbe2f+=_0x314da7(0xea),_0x4fbe2f+=_0x314da7(0x94),_0x4fbe2f+=_0x314da7(0xdc),_0x4fbe2f+='\x20\x20\x20\x20updated_at:\x20Date;\x0a\x0a',_0x4fbe2f+=_0x314da7(0xd8),_0x4fbe2f+=_0x314da7(0xe7),_0x4fbe2f+='}',_0x4fbe2f=_0x4fbe2f[_0x314da7(0xa0)]('%column%',_0x4de009),!fs['existsSync']((0x0,path_1['dirname'])(_0x26ca2f))&&fs[_0x314da7(0xe3)]((0x0,path_1[_0x314da7(0xe8)])(_0x26ca2f),{'recursive':!![]}),fs[_0x314da7(0xa9)](_0x26ca2f,_0x4fbe2f,_0x314da7(0x9f));}}async function repository({tablestartUp:_0x59ef83,tablestartUpShort:_0x28490e,basedir:_0x3dc785,Comment:_0x372377,moduleName:_0x4592b4,apporbasic:_0x3787e1}){const _0x5760da=a7_0x509522,_0x562bf6=_0x3dc785+('/entities/'+_0x28490e+_0x5760da(0xc7));if(!fs[_0x5760da(0xd1)](_0x562bf6)){let _0x57527e='';_0x57527e+=_0x5760da(0xbd),_0x57527e+=_0x5760da(0xd0)+_0x372377+_0x5760da(0xe5),_0x57527e+='\x20*\x20**/\x0a',_0x57527e+=_0x5760da(0xa4),_0x57527e+='import\x20{\x20'+_0x59ef83+_0x5760da(0xab)+(typeof _0x4592b4==_0x5760da(0xaf)?_0x5760da(0xbe)+_0x4592b4:'@/'+_0x3787e1)+_0x5760da(0xcc)+_0x28490e+_0x5760da(0xd5),_0x57527e+='@ProvideRepository('+_0x59ef83+_0x5760da(0xc9),_0x57527e+=_0x5760da(0xaa)+_0x59ef83+_0x5760da(0xd4)+_0x59ef83+_0x5760da(0xd9),_0x57527e+='}',!fs[_0x5760da(0xd1)]((0x0,path_1[_0x5760da(0xe8)])(_0x562bf6))&&fs[_0x5760da(0xe3)]((0x0,path_1[_0x5760da(0xe8)])(_0x562bf6),{'recursive':!![]}),fs[_0x5760da(0xa9)](_0x562bf6,_0x57527e,'utf-8');}}
|
|
1
|
+
const a7_0x1dca85=a7_0x18b3;(function(_0x4c61a1,_0x353076){const _0x2e20a6=a7_0x18b3,_0x59ffa7=_0x4c61a1();while(!![]){try{const _0xc69cf8=-parseInt(_0x2e20a6(0x225))/0x1*(-parseInt(_0x2e20a6(0x202))/0x2)+parseInt(_0x2e20a6(0x211))/0x3+parseInt(_0x2e20a6(0x1e9))/0x4+parseInt(_0x2e20a6(0x219))/0x5+parseInt(_0x2e20a6(0x1df))/0x6*(parseInt(_0x2e20a6(0x1f1))/0x7)+-parseInt(_0x2e20a6(0x1cf))/0x8*(-parseInt(_0x2e20a6(0x1f2))/0x9)+-parseInt(_0x2e20a6(0x1e7))/0xa;if(_0xc69cf8===_0x353076)break;else _0x59ffa7['push'](_0x59ffa7['shift']());}catch(_0x4b805d){_0x59ffa7['push'](_0x59ffa7['shift']());}}}(a7_0x1010,0x33f4f));const a7_0x25b286=(function(){let _0xf42227=!![];return function(_0x5a3240,_0xc7d74b){const _0x5b5e70=_0xf42227?function(){const _0x49182b=a7_0x18b3;if(_0xc7d74b){const _0x598c77=_0xc7d74b[_0x49182b(0x22a)](_0x5a3240,arguments);return _0xc7d74b=null,_0x598c77;}}:function(){};return _0xf42227=![],_0x5b5e70;};}()),a7_0xa79fb2=a7_0x25b286(this,function(){const _0x3825ce=a7_0x18b3;return a7_0xa79fb2[_0x3825ce(0x1e4)]()[_0x3825ce(0x227)]('(((.+)+)+)+$')[_0x3825ce(0x1e4)]()[_0x3825ce(0x209)](a7_0xa79fb2)['search'](_0x3825ce(0x1db));});a7_0xa79fb2();'use strict';Object[a7_0x1dca85(0x234)](exports,a7_0x1dca85(0x1f4),{'value':!![]}),exports[a7_0x1dca85(0x1d0)]=default_1;const fs=require('fs'),path_1=require(a7_0x1dca85(0x1e3)),helper_1=require(a7_0x1dca85(0x222));async function default_1({tablename:_0xf981d0,tablestartUp:_0x57685b,tablestartUpShort:_0x23f1ed,basedir:_0x132f5f,Primary:_0x4e6f4e,Fields:_0x3d56f1,Comment:_0xf41a59,moduleName:_0x2393b9,apporbasic:_0x5cb749}){await entity({'tablename':_0xf981d0,'tablestartUp':_0x57685b,'tablestartUpShort':_0x23f1ed,'basedir':_0x132f5f,'Primary':_0x4e6f4e,'Fields':_0x3d56f1,'Comment':_0xf41a59,'moduleName':_0x2393b9,'apporbasic':_0x5cb749}),await repository({'tablestartUp':_0x57685b,'tablestartUpShort':_0x23f1ed,'basedir':_0x132f5f,'Comment':_0xf41a59,'moduleName':_0x2393b9,'apporbasic':_0x5cb749});}function a7_0x1010(){const _0x219e0f=['\x27,\x20precision:\x2010,\x20scale:\x202,\x20default:\x200.00,\x20nullable:\x20','\x20\x20\x20\x20@Column(\x27timestamp\x27,\x20{\x20comment:\x20\x27','getProp','-实体处理器\x0a','date','\x27\x20|\x20\x27','\x20\x20\x20\x20@Column(\x27text\x27,\x20{\x20comment:\x20\x27','existsSync','\x27,\x20enum:\x20[\x27','6dfXnMS','decimal','text','\x20\x20\x20\x20@PrimaryColumn({\x20comment:\x20\x27','\x20*\x20**/\x0a','Type','number','constructor','false','double','-实体\x0a','\x20\x20\x20\x20@CreateDateColumn({\x20comment:\x20\x27创建时间\x27,\x20type:\x20\x27timestamp\x27\x20})\x0a','mediumtext','datetime','\x27;\x0a\x0a','285132FfUzyK','\x20\x20\x20\x20@Column(\x27decimal\x27,\x20{\x20comment:\x20\x27','/entity.ts','\x20\x20\x20\x20@Column(\x27json\x27,\x20{\x20comment:\x20\x27','\x20})\x0a','writeFileSync','import\x20{\x20ProvideEntity,\x20ProvideSearch,\x20','@/apps/','1001495YcqNwp','/entities/','join','/searchs/','updated_at','\x20\x20\x20\x20@Column(\x27date\x27,\x20{\x20comment:\x20\x27','\x20extends\x20Repository<','\x20*\x20','string','../helper',':\x20number;\x0a\x0a','\x27\x20},\x20{\x20orderBy:\x20{\x20displayorder:\x20\x27DESC\x27\x20}\x20})\x0a','76805UFgANu','\x20\x20\x20\x20updated_at:\x20Date;\x0a\x0a','search','Null','tinyint','apply','@ProvideSearch(','\x20\x20\x20\x20','import\x20{\x20CreateDateColumn,\x20UpdateDateColumn,\x20DeleteDateColumn\x20}\x20from\x20\x27@anveroapi/typeorm\x27;\x0a','dirname','PrimaryGeneratedColumn','import\x20{\x20','\x20\x20\x20\x20@Column(\x27double\x27,\x20{\x20comment:\x20\x27','getEnum','%column%','defineProperty','\x20\x20\x20\x20@Column(\x27float\x27,\x20{\x20comment:\x20\x27','\x27]\x20})\x0a','enum',':\x20any\x20|\x20any[];\x0a\x0a','Search)\x0a','\x20\x20\x20\x20created_at:\x20Date;\x0a\x0a','YES','import\x20{\x20ProvideRepository,\x20Repository\x20}\x20from\x20\x27@anveroapi/typeorm\x27;\x0a','displayorder','export\x20class\x20','33408dFuiSe','default','\x27,\x20\x27','\x27,\x20nullable:\x20',',\x20unique:\x20false\x20})\x0a',',\x20Column\x20}\x20from\x20\x27@anveroapi/typeorm\x27;\x0a\x0a','/**\x0a','\x20\x20\x20\x20@PrimaryGeneratedColumn()\x0a','indexOf','//\x20import\x20{\x20ManyToOne,\x20JoinColumn\x20}\x20from\x20\x27@anveroapi/typeorm\x27;\x0a','true','deleted_at','(((.+)+)+)+$','/index.ts','\x20\x20\x20\x20@DeleteDateColumn({\x20comment:\x20\x27删除时间\x27,\x20type:\x20\x27timestamp\x27,\x20select:\x20false\x20})\x0a','Entity\x20}\x20from\x20\x27','4458OlRVzD','Entity)\x0a','Field','\x20\x20\x20\x20@Column({\x20comment:\x20\x27','path','toString','@ProvideEntity({\x20tableName:\x20\x27',':\x20string;\x0a\x0a','4074250FFFtTk','json','206788SiZuZy','\x20\x20\x20\x20@Column(\x27enum\x27,\x20{\x20comment:\x20\x27','/entity\x27;\x0a\x0a','created_at','Entity>{\x0a\x0a','PrimaryColumn','@ProvideRepository(','mkdirSync','49fdsCUh','81wbepvI','\x20\x20\x20\x20displayorder:\x20number;\x0a\x0a','__esModule','Comment','timestamp','utf-8','\x20\x20\x20\x20@Column({\x20comment:\x20\x27默认显示排序\x27,\x20nullable:\x20true,\x20unique:\x20false\x20})\x0a'];a7_0x1010=function(){return _0x219e0f;};return a7_0x1010();}function a7_0x18b3(_0x53cd9d,_0x7411fd){_0x53cd9d=_0x53cd9d-0x1c7;const _0x2d0733=a7_0x1010();let _0xa79fb2=_0x2d0733[_0x53cd9d];return _0xa79fb2;}async function entity({tablename:_0x2b30ab,tablestartUp:_0x239d8a,tablestartUpShort:_0x9ad81d,basedir:_0x438828,Primary:_0x2af537,Fields:_0x3b5a32,Comment:_0x22b9cc,moduleName:_0x31b595,apporbasic:_0x1ac118}){const _0x4296bc=a7_0x1dca85,_0x5193b4=_0x438828+(_0x4296bc(0x21a)+_0x9ad81d+_0x4296bc(0x213));if(!fs[_0x4296bc(0x200)](_0x5193b4)){let _0x1e07f9='',_0x95d36f='',_0x4d5093=[_0x4296bc(0x204),_0x4296bc(0x20e),_0x4296bc(0x221)][_0x4296bc(0x1d7)]((0x0,helper_1[_0x4296bc(0x1fb)])(_0x2af537[_0x4296bc(0x207)]))==-0x1;_0x4d5093?(_0x1e07f9+=_0x4296bc(0x1d6),_0x1e07f9+='\x20\x20\x20\x20'+_0x2af537[_0x4296bc(0x1e1)]+':\x20number;\x0a\x0a'):(_0x1e07f9+=_0x4296bc(0x205)+(_0x2af537[_0x4296bc(0x1f5)]||'标识')+'\x27,\x20length:\x20188\x20})\x0a',_0x1e07f9+=_0x4296bc(0x22c)+_0x2af537[_0x4296bc(0x1e1)]+':\x20string;\x0a\x0a');for(let _0x1cbce1 in _0x3b5a32){let _0x35fb62=_0x3b5a32[_0x1cbce1],_0x4e28bd=(0x0,helper_1[_0x4296bc(0x1fb)])(_0x35fb62[_0x4296bc(0x207)]);if(_0x35fb62['Field']==_0x4296bc(0x1cd)||_0x35fb62[_0x4296bc(0x1e1)]==_0x4296bc(0x1ec)||_0x35fb62['Field']==_0x4296bc(0x21d)||_0x35fb62['Field']==_0x4296bc(0x1da))continue;if(_0x4e28bd==_0x4296bc(0x1e8))_0x1e07f9+=_0x4296bc(0x214)+_0x35fb62[_0x4296bc(0x1f5)]+'\x27,\x20nullable:\x20'+(_0x35fb62[_0x4296bc(0x228)]==_0x4296bc(0x1cb)?_0x4296bc(0x1d9):_0x4296bc(0x20a))+_0x4296bc(0x1d3),_0x1e07f9+=_0x4296bc(0x22c)+_0x35fb62[_0x4296bc(0x1e1)]+_0x4296bc(0x1c8);else{if(_0x4e28bd==_0x4296bc(0x1c7)){let _0x4f24b3=(0x0,helper_1[_0x4296bc(0x232)])(_0x35fb62[_0x4296bc(0x207)]);_0x1e07f9+=_0x4296bc(0x1ea)+_0x35fb62[_0x4296bc(0x1f5)]+'\x27,\x20default:\x20\x27'+(_0x4f24b3[0x0]||'')+_0x4296bc(0x201)+_0x4f24b3[_0x4296bc(0x21b)](_0x4296bc(0x1d1))+_0x4296bc(0x236),_0x1e07f9+='\x20\x20\x20\x20'+_0x35fb62[_0x4296bc(0x1e1)]+':\x20\x27'+_0x4f24b3[_0x4296bc(0x21b)](_0x4296bc(0x1fe))+_0x4296bc(0x210);}else{if(_0x4e28bd=='float')_0x1e07f9+=_0x4296bc(0x235)+_0x35fb62[_0x4296bc(0x1f5)]+_0x4296bc(0x1f9)+(_0x35fb62[_0x4296bc(0x228)]==_0x4296bc(0x1cb)?_0x4296bc(0x1d9):'false')+'\x20})\x0a',_0x1e07f9+=_0x4296bc(0x22c)+_0x35fb62['Field']+':\x20number;\x0a\x0a';else{if(_0x4e28bd==_0x4296bc(0x20b))_0x1e07f9+=_0x4296bc(0x231)+_0x35fb62[_0x4296bc(0x1f5)]+'\x27,\x20precision:\x2010,\x20scale:\x202,\x20default:\x200.00,\x20nullable:\x20'+(_0x35fb62[_0x4296bc(0x228)]==_0x4296bc(0x1cb)?_0x4296bc(0x1d9):_0x4296bc(0x20a))+_0x4296bc(0x215),_0x1e07f9+=_0x4296bc(0x22c)+_0x35fb62[_0x4296bc(0x1e1)]+_0x4296bc(0x223);else{if(_0x4e28bd==_0x4296bc(0x203))_0x1e07f9+=_0x4296bc(0x212)+_0x35fb62[_0x4296bc(0x1f5)]+'\x27,\x20precision:\x2024,\x20scale:\x202,\x20default:\x200.00,\x20nullable:\x20'+(_0x35fb62[_0x4296bc(0x228)]==_0x4296bc(0x1cb)?_0x4296bc(0x1d9):'false')+'\x20})\x0a',_0x1e07f9+=_0x4296bc(0x22c)+_0x35fb62[_0x4296bc(0x1e1)]+_0x4296bc(0x223);else{if(_0x4e28bd==_0x4296bc(0x208))_0x1e07f9+=_0x4296bc(0x1e2)+_0x35fb62[_0x4296bc(0x1f5)]+'\x27,\x20nullable:\x20'+(_0x35fb62[_0x4296bc(0x228)]=='YES'?'true':_0x4296bc(0x20a))+_0x4296bc(0x1d3),_0x1e07f9+=_0x4296bc(0x22c)+_0x35fb62['Field']+_0x4296bc(0x223);else{if(_0x4e28bd==_0x4296bc(0x229))_0x1e07f9+='\x20\x20\x20\x20@Column(\x27tinyint\x27,\x20{\x20comment:\x20\x27'+_0x35fb62[_0x4296bc(0x1f5)]+_0x4296bc(0x1d2)+(_0x35fb62[_0x4296bc(0x228)]==_0x4296bc(0x1cb)?_0x4296bc(0x1d9):'false')+',\x20unique:\x20false\x20})\x0a',_0x1e07f9+=_0x4296bc(0x22c)+_0x35fb62[_0x4296bc(0x1e1)]+_0x4296bc(0x223);else{if(_0x4e28bd==_0x4296bc(0x1fd))_0x1e07f9+=_0x4296bc(0x21e)+_0x35fb62['Comment']+_0x4296bc(0x1d2)+(_0x35fb62[_0x4296bc(0x228)]==_0x4296bc(0x1cb)?'true':_0x4296bc(0x20a))+'\x20})\x0a',_0x1e07f9+=_0x4296bc(0x22c)+_0x35fb62[_0x4296bc(0x1e1)]+':\x20string;\x0a\x0a';else{if(_0x4e28bd==_0x4296bc(0x20f))_0x1e07f9+='\x20\x20\x20\x20@Column(\x27timestamp\x27,\x20{\x20comment:\x20\x27'+_0x35fb62[_0x4296bc(0x1f5)]+_0x4296bc(0x1d2)+(_0x35fb62[_0x4296bc(0x228)]=='YES'?_0x4296bc(0x1d9):'false')+'\x20})\x0a',_0x1e07f9+=_0x4296bc(0x22c)+_0x35fb62[_0x4296bc(0x1e1)]+':\x20string;\x0a\x0a';else{if(_0x4e28bd==_0x4296bc(0x1f6))_0x1e07f9+=_0x4296bc(0x1fa)+_0x35fb62[_0x4296bc(0x1f5)]+_0x4296bc(0x1d2)+(_0x35fb62[_0x4296bc(0x228)]==_0x4296bc(0x1cb)?_0x4296bc(0x1d9):_0x4296bc(0x20a))+_0x4296bc(0x215),_0x1e07f9+='\x20\x20\x20\x20'+_0x35fb62[_0x4296bc(0x1e1)]+_0x4296bc(0x1e6);else{if(_0x4e28bd==_0x4296bc(0x204))_0x1e07f9+=_0x4296bc(0x1ff)+_0x35fb62[_0x4296bc(0x1f5)]+_0x4296bc(0x1d2)+(_0x35fb62['Null']=='YES'?_0x4296bc(0x1d9):_0x4296bc(0x20a))+_0x4296bc(0x1d3),_0x1e07f9+=_0x4296bc(0x22c)+_0x35fb62[_0x4296bc(0x1e1)]+_0x4296bc(0x1e6);else{if(_0x4e28bd=='longtext')_0x1e07f9+='\x20\x20\x20\x20@Column(\x27longtext\x27,\x20{\x20comment:\x20\x27'+_0x35fb62['Comment']+_0x4296bc(0x1d2)+(_0x35fb62[_0x4296bc(0x228)]==_0x4296bc(0x1cb)?_0x4296bc(0x1d9):_0x4296bc(0x20a))+',\x20unique:\x20false\x20})\x0a',_0x1e07f9+=_0x4296bc(0x22c)+_0x35fb62[_0x4296bc(0x1e1)]+':\x20string;\x0a\x0a';else _0x4e28bd==_0x4296bc(0x20e)?(_0x1e07f9+='\x20\x20\x20\x20@Column(\x27mediumtext\x27,\x20{\x20comment:\x20\x27'+_0x35fb62['Comment']+_0x4296bc(0x1d2)+(_0x35fb62[_0x4296bc(0x228)]==_0x4296bc(0x1cb)?_0x4296bc(0x1d9):_0x4296bc(0x20a))+_0x4296bc(0x1d3),_0x1e07f9+=_0x4296bc(0x22c)+_0x35fb62['Field']+_0x4296bc(0x1e6)):(_0x1e07f9+=_0x4296bc(0x1e2)+_0x35fb62[_0x4296bc(0x1f5)]+_0x4296bc(0x1d2)+(_0x35fb62[_0x4296bc(0x228)]==_0x4296bc(0x1cb)?_0x4296bc(0x1d9):_0x4296bc(0x20a))+_0x4296bc(0x1d3),_0x1e07f9+=_0x4296bc(0x22c)+_0x35fb62[_0x4296bc(0x1e1)]+':\x20string;\x0a\x0a');}}}}}}}}}}}}_0x95d36f+=_0x4296bc(0x1d8),_0x95d36f+=_0x4296bc(0x22d),_0x95d36f+=_0x4296bc(0x217)+(_0x4d5093?_0x4296bc(0x22f):_0x4296bc(0x1ee))+_0x4296bc(0x1d4),_0x95d36f+=_0x4296bc(0x230)+_0x239d8a+'Search\x20}\x20from\x20\x27'+(typeof _0x31b595=='string'?'@/apps/'+_0x31b595:'@/'+_0x1ac118)+_0x4296bc(0x21c)+_0x9ad81d+_0x4296bc(0x210),_0x95d36f+=_0x4296bc(0x1d5),_0x95d36f+=_0x4296bc(0x220)+_0x22b9cc+_0x4296bc(0x20c),_0x95d36f+=_0x4296bc(0x206),_0x95d36f+=_0x4296bc(0x22b)+_0x239d8a+_0x4296bc(0x1c9),_0x95d36f+=_0x4296bc(0x1e5)+_0x2b30ab+_0x4296bc(0x224),_0x95d36f+=_0x4296bc(0x1ce)+_0x239d8a+'Entity\x20{\x0a\x0a',_0x95d36f+=_0x4296bc(0x233),_0x95d36f+=_0x4296bc(0x1f8),_0x95d36f+=_0x4296bc(0x1f3),_0x95d36f+=_0x4296bc(0x20d),_0x95d36f+=_0x4296bc(0x1ca),_0x95d36f+='\x20\x20\x20\x20@UpdateDateColumn({\x20comment:\x20\x27修改时间\x27,\x20type:\x20\x27timestamp\x27\x20})\x0a',_0x95d36f+=_0x4296bc(0x226),_0x95d36f+=_0x4296bc(0x1dd),_0x95d36f+='\x20\x20\x20\x20deleted_at:\x20Date;\x0a\x0a',_0x95d36f+='}',_0x95d36f=_0x95d36f['replace'](_0x4296bc(0x233),_0x1e07f9),!fs[_0x4296bc(0x200)]((0x0,path_1[_0x4296bc(0x22e)])(_0x5193b4))&&fs[_0x4296bc(0x1f0)]((0x0,path_1['dirname'])(_0x5193b4),{'recursive':!![]}),fs[_0x4296bc(0x216)](_0x5193b4,_0x95d36f,_0x4296bc(0x1f7));}}async function repository({tablestartUp:_0x4c5efa,tablestartUpShort:_0x52b0e5,basedir:_0x5c1aa1,Comment:_0x3376fe,moduleName:_0x28a76f,apporbasic:_0x192dc1}){const _0x4e365c=a7_0x1dca85,_0x72cd95=_0x5c1aa1+('/entities/'+_0x52b0e5+_0x4e365c(0x1dc));if(!fs[_0x4e365c(0x200)](_0x72cd95)){let _0x553db8='';_0x553db8+=_0x4e365c(0x1d5),_0x553db8+=_0x4e365c(0x220)+_0x3376fe+_0x4e365c(0x1fc),_0x553db8+='\x20*\x20**/\x0a',_0x553db8+=_0x4e365c(0x1cc),_0x553db8+=_0x4e365c(0x230)+_0x4c5efa+_0x4e365c(0x1de)+(typeof _0x28a76f==_0x4e365c(0x221)?_0x4e365c(0x218)+_0x28a76f:'@/'+_0x192dc1)+_0x4e365c(0x21a)+_0x52b0e5+_0x4e365c(0x1eb),_0x553db8+=_0x4e365c(0x1ef)+_0x4c5efa+_0x4e365c(0x1e0),_0x553db8+='export\x20class\x20'+_0x4c5efa+_0x4e365c(0x21f)+_0x4c5efa+_0x4e365c(0x1ed),_0x553db8+='}',!fs[_0x4e365c(0x200)]((0x0,path_1['dirname'])(_0x72cd95))&&fs[_0x4e365c(0x1f0)]((0x0,path_1[_0x4e365c(0x22e)])(_0x72cd95),{'recursive':!![]}),fs['writeFileSync'](_0x72cd95,_0x553db8,_0x4e365c(0x1f7));}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a8_0x2e0473=a8_0x600f;(function(_0x2680d8,_0x3c25db){const _0x1e8766=a8_0x600f,_0x700230=_0x2680d8();while(!![]){try{const _0x2e96d3=-parseInt(_0x1e8766(0x182))/0x1+-parseInt(_0x1e8766(0x18b))/0x2+-parseInt(_0x1e8766(0x189))/0x3+-parseInt(_0x1e8766(0x192))/0x4+parseInt(_0x1e8766(0x181))/0x5+-parseInt(_0x1e8766(0x193))/0x6+parseInt(_0x1e8766(0x184))/0x7;if(_0x2e96d3===_0x3c25db)break;else _0x700230['push'](_0x700230['shift']());}catch(_0x41a338){_0x700230['push'](_0x700230['shift']());}}}(a8_0x2b6e,0x6af67));const a8_0x3f1eaa=(function(){let _0x484f13=!![];return function(_0x334a4f,_0xa71ea6){const _0x2bf835=_0x484f13?function(){const _0x150284=a8_0x600f;if(_0xa71ea6){const _0x57cb9b=_0xa71ea6[_0x150284(0x17f)](_0x334a4f,arguments);return _0xa71ea6=null,_0x57cb9b;}}:function(){};return _0x484f13=![],_0x2bf835;};}()),a8_0xad6dcb=a8_0x3f1eaa(this,function(){const _0x50232c=a8_0x600f;return a8_0xad6dcb['toString']()[_0x50232c(0x18f)](_0x50232c(0x18d))[_0x50232c(0x185)]()[_0x50232c(0x18c)](a8_0xad6dcb)[_0x50232c(0x18f)]('(((.+)+)+)+$');});a8_0xad6dcb();function a8_0x2b6e(){const _0x337146=[';\x0a\x0a\x0a','@/apps/',')\x20protected\x20','import\x20{\x20Inject,\x20InjectRepository\x20}\x20from\x20\x27@anveroapi/typeorm\x27;\x0a\x0a','@Event()\x0a','import\x20{\x20Event,\x20EventService\x20}\x20from\x20\x27@anveroapi/event\x27;\x0a','defineProperty','\x20}\x20from\x20\x27','\x27;\x0a\x0a','import\x20{\x20','Event\x20{\x0a\x0a','apply','writeFileSync','698070nCLJSG','863580vRjREG','existsSync','22237061NpkWwW','toString','\x20\x20\x20\x20@Inject()\x20protected\x20EventService:\x20EventService;\x0a\x0a','/entities/','dirname','2284968caAwLD','__esModule','873170JXTfhk','constructor','(((.+)+)+)+$','mkdirSync','search','string','\x20\x20\x20\x20@InjectRepository(','875796hRziHk','3584688aLYzjP'];a8_0x2b6e=function(){return _0x337146;};return a8_0x2b6e();}'use strict';function a8_0x600f(_0x2ef5ae,_0xd55118){_0x2ef5ae=_0x2ef5ae-0x179;const _0x325d2d=a8_0x2b6e();let _0xad6dcb=_0x325d2d[_0x2ef5ae];return _0xad6dcb;}Object[a8_0x2e0473(0x17a)](exports,a8_0x2e0473(0x18a),{'value':!![]}),exports['default']=default_1;const fs=require('fs'),path_1=require('path');async function default_1({tablestartUp:_0x266ca5,tablestartUpShort:_0x238c76,basedir:_0x19fc48,moduleName:_0x13a10c,apporbasic:_0x36dbbd}){const _0x130b25=a8_0x2e0473,_0x344fec=_0x19fc48+('/listeners/'+_0x238c76+'.ts');if(!fs[_0x130b25(0x183)](_0x344fec)){let _0x4750c9='';_0x4750c9+=_0x130b25(0x179),_0x4750c9+=_0x130b25(0x197),_0x4750c9+=_0x130b25(0x17d)+_0x266ca5+_0x130b25(0x17b)+(typeof _0x13a10c==_0x130b25(0x190)?_0x130b25(0x195)+_0x13a10c:'@/'+_0x36dbbd)+_0x130b25(0x187)+_0x238c76+_0x130b25(0x17c),_0x4750c9+=_0x130b25(0x198),_0x4750c9+='export\x20class\x20'+_0x266ca5+_0x130b25(0x17e),_0x4750c9+=_0x130b25(0x186),_0x4750c9+=_0x130b25(0x191)+_0x266ca5+_0x130b25(0x196)+_0x266ca5+':\x20'+_0x266ca5+_0x130b25(0x194),_0x4750c9+='}',!fs[_0x130b25(0x183)]((0x0,path_1[_0x130b25(0x188)])(_0x344fec))&&fs[_0x130b25(0x18e)]((0x0,path_1[_0x130b25(0x188)])(_0x344fec),{'recursive':!![]}),fs[_0x130b25(0x180)](_0x344fec,_0x4750c9,'utf-8');}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a9_0x3559(_0x5d377b,_0x30907b){_0x5d377b=_0x5d377b-0x12e;const _0x9b5b5b=a9_0x225a();let _0x72745f=_0x9b5b5b[_0x5d377b];return _0x72745f;}const a9_0x314b66=a9_0x3559;(function(_0x35117c,_0x11c5ee){const _0x53eee5=a9_0x3559,_0x471110=_0x35117c();while(!![]){try{const _0x545fc4=-parseInt(_0x53eee5(0x169))/0x1+parseInt(_0x53eee5(0x13f))/0x2+parseInt(_0x53eee5(0x172))/0x3+-parseInt(_0x53eee5(0x176))/0x4*(parseInt(_0x53eee5(0x180))/0x5)+parseInt(_0x53eee5(0x152))/0x6+-parseInt(_0x53eee5(0x12f))/0x7*(-parseInt(_0x53eee5(0x150))/0x8)+-parseInt(_0x53eee5(0x16d))/0x9*(-parseInt(_0x53eee5(0x161))/0xa);if(_0x545fc4===_0x11c5ee)break;else _0x471110['push'](_0x471110['shift']());}catch(_0x326e8b){_0x471110['push'](_0x471110['shift']());}}}(a9_0x225a,0x3c6ea));function a9_0x225a(){const _0x83af7a=['\x20\x20\x20\x20@InjectRepository(','30mYdhAL','Error._NOTFIND_,\x20{\x20message:\x20\x27','/handlers/','\x20\x20\x20\x20\x20\x20\x20\x20}\x0a','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20});\x0a','\x20\x20\x20\x20\x20*\x20添加数据\x0a','\x20\x20\x20\x20\x20\x20\x20\x20return\x20await\x20this.','\x20\x20\x20\x20\x20*\x20恢复删除的数据\x0a','269508CdMZNV','\x20\x20\x20\x20\x20\x20\x20\x20this.','constructor','\x20\x20\x20\x20async\x20update(conditions:\x20SearchParams<','1107531owrfKs','\x20\x20\x20\x20/**\x0a','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20search.withDeleted().andWhere(`${search.alias}.deleted_at\x20IS\x20NOT\x20NULL`);\x0a','\x20\x20\x20\x20\x20\x20\x20\x20});\x0a\x0a','__esModule','322539XgzVRL','default','@Singleton()\x0a','import\x20{\x20','2936YShisk','toString','defineProperty','(((.+)+)+)+$','/entity\x27;\x0a','Error(','\x20\x20\x20\x20@Inject()\x20EventService:\x20EventService;\x0a','DTOCreate)\x20{\x0a','.search(conditions,\x20pageinfo,\x20options).then(async\x20search\x20=>\x20{\x0a\x0a','\x27;\x0a','2815lhEhQn','\x20\x20\x20\x20async\x20restores(conditions:\x20SearchParams<','path','/entities/','554449XTJLAL','\x20\x20\x20\x20async\x20detail(conditions?:\x20SearchParams<','Entity\x20}\x20from\x20\x27','Handler\x20{\x0a\x0a','/exceptions/','@/apps/','DTOUpdate\x20}\x20from\x20\x27','import\x20{\x20CacheService,\x20EventService,\x20ValidatorService\x20}\x20from\x20\x27anvero-api\x27;\x0a','\x20\x20\x20\x20\x20*\x20数据详情\x0a','\x20\x20\x20\x20}\x0a\x0a\x0a','/Update\x27;\x0a','\x20\x20\x20\x20\x20\x20\x20\x20const\x20restores:\x20any\x20=\x20[],\x20tmpModels\x20=\x20await\x20this.','\x20\x20\x20\x20\x20\x20\x20\x20for\x20(let\x20tmpModel\x20of\x20tmpModels)\x20{\x0a','.ts','\x20*\x20**/\x0a','Entity>,\x20options:\x20SearchOptions\x20=\x20{})\x20{\x0a','725582nLNwMw','\x20\x20\x20\x20\x20\x20\x20\x20return\x20deletes\x0a','\x20\x20\x20\x20\x20\x20\x20\x20const\x20deletes:\x20any\x20=\x20[],\x20tmpModels\x20=\x20await\x20this.','\x20*\x20','/validators/','.search(conditions,\x20{},\x20options).then(async\x20search\x20=>\x20{\x0a\x0a','/**\x0a','search','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20return\x20search.getOneOrFail().catch(()\x20=>\x20{\x0a','mkdirSync','\x20\x20\x20\x20\x20\x20\x20\x20const\x20tmpModel\x20=\x20this.','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20throw\x20new\x20','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20return\x20search.getMany();\x0a','.create(params)\x0a\x0a','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20restores.push(await\x20this.','\x20\x20\x20\x20\x20*\x20删除数据\x0a','Entity>,\x20pageinfo?:\x20SearchPaginate,\x20options:\x20SearchOptions\x20=\x20{}):\x20Promise<[','8XOMpSD','existsSync','69552neBZQm','\x20\x20\x20\x20\x20\x20\x20\x20const\x20tmpModel\x20=\x20await\x20this.','.recover(tmpModel))\x0a','import\x20{\x20InjectRepository,\x20SearchParams,\x20SearchPaginate,\x20SearchOptions\x20}\x20from\x20\x27@anveroapi/typeorm\x27;\x0a\x0a','不存在\x27\x20})\x0a','\x20\x20\x20\x20async\x20remove(conditions:\x20SearchParams<','DTOUpdate,\x20options:\x20SearchOptions\x20=\x20{})\x20{\x0a','dirname','string','\x20\x20\x20\x20@Inject()\x20ValidatorService:\x20ValidatorService;\x0a\x0a','\x20}\x20from\x20\x27','\x20\x20\x20\x20async\x20create(params:\x20','\x20\x20\x20\x20\x20*\x20**/\x0a','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20deletes.push(await\x20this.'];a9_0x225a=function(){return _0x83af7a;};return a9_0x225a();}const a9_0x16ae00=(function(){let _0x4d8982=!![];return function(_0x492193,_0x319332){const _0x2e858e=_0x4d8982?function(){if(_0x319332){const _0x5127c8=_0x319332['apply'](_0x492193,arguments);return _0x319332=null,_0x5127c8;}}:function(){};return _0x4d8982=![],_0x2e858e;};}()),a9_0x72745f=a9_0x16ae00(this,function(){const _0x16f308=a9_0x3559;return a9_0x72745f['toString']()[_0x16f308(0x146)](_0x16f308(0x179))[_0x16f308(0x177)]()[_0x16f308(0x16b)](a9_0x72745f)[_0x16f308(0x146)]('(((.+)+)+)+$');});a9_0x72745f();'use strict';Object[a9_0x314b66(0x178)](exports,a9_0x314b66(0x171),{'value':!![]}),exports[a9_0x314b66(0x173)]=default_1;const fs=require('fs'),path_1=require(a9_0x314b66(0x182));async function default_1({tablestartUp:_0x5f441e,tablestartUpShort:_0x4096e8,basedir:_0x1813a7,Primary:_0x4bd2a1,Comment:_0x1fda0d,moduleName:_0x3100c0,apporbasic:_0x11a6f4}){const _0x302f2f=a9_0x314b66,_0x59fbd5=_0x1813a7+(_0x302f2f(0x163)+_0x4096e8+_0x302f2f(0x13c));if(!fs[_0x302f2f(0x151)](_0x59fbd5)){let _0x55bf2b='';_0x55bf2b+='import\x20{\x20Inject,\x20Singleton\x20}\x20from\x20\x27anvero-api\x27;\x0a',_0x55bf2b+=_0x302f2f(0x136),_0x55bf2b+=_0x302f2f(0x155),_0x55bf2b+='import\x20{\x20'+_0x5f441e+_0x302f2f(0x15c)+(typeof _0x3100c0==_0x302f2f(0x15a)?_0x302f2f(0x134)+_0x3100c0:'@/'+_0x11a6f4)+'/entities/'+_0x4096e8+_0x302f2f(0x17f),_0x55bf2b+=_0x302f2f(0x175)+_0x5f441e+'Error\x20}\x20from\x20\x27'+(typeof _0x3100c0=='string'?_0x302f2f(0x134)+_0x3100c0:'@/'+_0x11a6f4)+_0x302f2f(0x133)+_0x4096e8+'\x27;\x0a',_0x55bf2b+=_0x302f2f(0x175)+_0x5f441e+_0x302f2f(0x131)+(typeof _0x3100c0==_0x302f2f(0x15a)?'@/apps/'+_0x3100c0:'@/'+_0x11a6f4)+_0x302f2f(0x12e)+_0x4096e8+_0x302f2f(0x17a),_0x55bf2b+=_0x302f2f(0x175)+_0x5f441e+'DTOCreate\x20}\x20from\x20\x27'+(typeof _0x3100c0=='string'?_0x302f2f(0x134)+_0x3100c0:'@/'+_0x11a6f4)+_0x302f2f(0x143)+_0x4096e8+'/Create\x27;\x0a',_0x55bf2b+='import\x20{\x20'+_0x5f441e+_0x302f2f(0x135)+(typeof _0x3100c0==_0x302f2f(0x15a)?'@/apps/'+_0x3100c0:'@/'+_0x11a6f4)+'/validators/'+_0x4096e8+_0x302f2f(0x139),_0x55bf2b+='\x0a',_0x55bf2b+=_0x302f2f(0x145),_0x55bf2b+=_0x302f2f(0x142)+_0x1fda0d+'\x0a',_0x55bf2b+=_0x302f2f(0x13d),_0x55bf2b+=_0x302f2f(0x174),_0x55bf2b+='export\x20class\x20'+_0x5f441e+_0x302f2f(0x132),_0x55bf2b+='\x20\x20\x20\x20@Inject()\x20CacheService:\x20CacheService;\x0a',_0x55bf2b+=_0x302f2f(0x17c),_0x55bf2b+=_0x302f2f(0x15b),_0x55bf2b+=_0x302f2f(0x160)+_0x5f441e+')\x20'+_0x4096e8+':\x20'+_0x5f441e+';\x0a\x0a\x0a',_0x55bf2b+=_0x302f2f(0x16e),_0x55bf2b+='\x20\x20\x20\x20\x20*\x20数据列表\x0a',_0x55bf2b+=_0x302f2f(0x15e),_0x55bf2b+='\x20\x20\x20\x20async\x20list(conditions?:\x20SearchParams<'+_0x5f441e+_0x302f2f(0x14f)+_0x5f441e+'Entity[],\x20number]>\x20{\x0a',_0x55bf2b+='\x20\x20\x20\x20\x20\x20\x20\x20const\x20[pagelist,\x20pagetotal]\x20=\x20await\x20this.'+_0x4096e8+_0x302f2f(0x17e),_0x55bf2b+='\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20return\x20search.getManyAndCount();\x0a',_0x55bf2b+=_0x302f2f(0x170),_0x55bf2b+='\x20\x20\x20\x20\x20\x20\x20\x20return\x20[pagelist,\x20pagetotal];\x0a',_0x55bf2b+=_0x302f2f(0x138),_0x55bf2b+=_0x302f2f(0x16e),_0x55bf2b+=_0x302f2f(0x137),_0x55bf2b+=_0x302f2f(0x15e),_0x55bf2b+=_0x302f2f(0x130)+_0x5f441e+_0x302f2f(0x13e),_0x55bf2b+='\x20\x20\x20\x20\x20\x20\x20\x20const\x20tmpModel\x20=\x20await\x20this.'+_0x4096e8+_0x302f2f(0x144),_0x55bf2b+='\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20return\x20search.getOneOrFail().catch(()\x20=>\x20{\x0a',_0x55bf2b+='\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20throw\x20new\x20'+_0x5f441e+_0x302f2f(0x17b)+_0x5f441e+_0x302f2f(0x162)+_0x1fda0d+_0x302f2f(0x156),_0x55bf2b+=_0x302f2f(0x165),_0x55bf2b+=_0x302f2f(0x170),_0x55bf2b+='\x20\x20\x20\x20\x20\x20\x20\x20return\x20tmpModel\x0a',_0x55bf2b+=_0x302f2f(0x138),_0x55bf2b+=_0x302f2f(0x16e),_0x55bf2b+=_0x302f2f(0x166),_0x55bf2b+='\x20\x20\x20\x20\x20*\x20**/\x0a',_0x55bf2b+=_0x302f2f(0x15d)+_0x5f441e+_0x302f2f(0x17d),_0x55bf2b+=_0x302f2f(0x149)+_0x4096e8+_0x302f2f(0x14c),_0x55bf2b+=_0x302f2f(0x167)+_0x4096e8+'.save(tmpModel);\x0a',_0x55bf2b+='\x20\x20\x20\x20}\x0a\x0a\x0a',_0x55bf2b+='\x20\x20\x20\x20/**\x0a',_0x55bf2b+='\x20\x20\x20\x20\x20*\x20修改数据\x0a',_0x55bf2b+=_0x302f2f(0x15e),_0x55bf2b+=_0x302f2f(0x16c)+_0x5f441e+'Entity>,\x20params:\x20'+_0x5f441e+_0x302f2f(0x158),_0x55bf2b+=_0x302f2f(0x153)+_0x4096e8+_0x302f2f(0x144),_0x55bf2b+=_0x302f2f(0x147),_0x55bf2b+=_0x302f2f(0x14a)+_0x5f441e+'Error('+_0x5f441e+_0x302f2f(0x162)+_0x1fda0d+_0x302f2f(0x156),_0x55bf2b+=_0x302f2f(0x165),_0x55bf2b+=_0x302f2f(0x170),_0x55bf2b+=_0x302f2f(0x16a)+_0x4096e8+'.merge(tmpModel,\x20params);\x0a',_0x55bf2b+=_0x302f2f(0x167)+_0x4096e8+'.save(tmpModel);\x0a',_0x55bf2b+=_0x302f2f(0x138),_0x55bf2b+=_0x302f2f(0x16e),_0x55bf2b+=_0x302f2f(0x14e),_0x55bf2b+='\x20\x20\x20\x20\x20*\x20**/\x0a',_0x55bf2b+=_0x302f2f(0x157)+_0x5f441e+_0x302f2f(0x13e),_0x55bf2b+=_0x302f2f(0x141)+_0x4096e8+_0x302f2f(0x144),_0x55bf2b+='\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20return\x20search.getMany();\x0a',_0x55bf2b+=_0x302f2f(0x170),_0x55bf2b+=_0x302f2f(0x13b),_0x55bf2b+=_0x302f2f(0x15f)+_0x4096e8+'.softRemove(tmpModel))\x0a',_0x55bf2b+=_0x302f2f(0x164),_0x55bf2b+=_0x302f2f(0x140),_0x55bf2b+=_0x302f2f(0x138),_0x55bf2b+='\x20\x20\x20\x20/**\x0a',_0x55bf2b+=_0x302f2f(0x168),_0x55bf2b+=_0x302f2f(0x15e),_0x55bf2b+=_0x302f2f(0x181)+_0x5f441e+_0x302f2f(0x13e),_0x55bf2b+=_0x302f2f(0x13a)+_0x4096e8+_0x302f2f(0x144),_0x55bf2b+=_0x302f2f(0x16f),_0x55bf2b+=_0x302f2f(0x14b),_0x55bf2b+=_0x302f2f(0x170),_0x55bf2b+=_0x302f2f(0x13b),_0x55bf2b+=_0x302f2f(0x14d)+_0x4096e8+_0x302f2f(0x154),_0x55bf2b+=_0x302f2f(0x164),_0x55bf2b+='\x20\x20\x20\x20\x20\x20\x20\x20return\x20restores\x0a',_0x55bf2b+=_0x302f2f(0x138),_0x55bf2b+='}',!fs[_0x302f2f(0x151)]((0x0,path_1[_0x302f2f(0x159)])(_0x59fbd5))&&fs[_0x302f2f(0x148)]((0x0,path_1[_0x302f2f(0x159)])(_0x59fbd5),{'recursive':!![]}),fs['writeFileSync'](_0x59fbd5,_0x55bf2b,'utf-8');}}
|
|
1
|
+
const a9_0x1c2678=a9_0x377e;(function(_0x4e53b7,_0x5cbbd2){const _0x4e8480=a9_0x377e,_0x281a34=_0x4e53b7();while(!![]){try{const _0x29f591=parseInt(_0x4e8480(0x1e9))/0x1+parseInt(_0x4e8480(0x1e5))/0x2+-parseInt(_0x4e8480(0x213))/0x3*(parseInt(_0x4e8480(0x209))/0x4)+-parseInt(_0x4e8480(0x1ff))/0x5*(-parseInt(_0x4e8480(0x1dc))/0x6)+-parseInt(_0x4e8480(0x221))/0x7+-parseInt(_0x4e8480(0x205))/0x8*(-parseInt(_0x4e8480(0x1f5))/0x9)+parseInt(_0x4e8480(0x1de))/0xa*(parseInt(_0x4e8480(0x21d))/0xb);if(_0x29f591===_0x5cbbd2)break;else _0x281a34['push'](_0x281a34['shift']());}catch(_0x3175e3){_0x281a34['push'](_0x281a34['shift']());}}}(a9_0x1fae,0xcb9bd));const a9_0xbd77c0=(function(){let _0x2cda35=!![];return function(_0x4cdeb8,_0x2e59f3){const _0x462d6e=_0x2cda35?function(){if(_0x2e59f3){const _0x38e7f0=_0x2e59f3['apply'](_0x4cdeb8,arguments);return _0x2e59f3=null,_0x38e7f0;}}:function(){};return _0x2cda35=![],_0x462d6e;};}()),a9_0x35f747=a9_0xbd77c0(this,function(){const _0x5dbea1=a9_0x377e;return a9_0x35f747[_0x5dbea1(0x217)]()[_0x5dbea1(0x228)](_0x5dbea1(0x22d))[_0x5dbea1(0x217)]()[_0x5dbea1(0x1df)](a9_0x35f747)[_0x5dbea1(0x228)](_0x5dbea1(0x22d));});a9_0x35f747();function a9_0x1fae(){const _0x391f27=['\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20search.withDeleted().andWhere(`${search.alias}.deleted_at\x20IS\x20NOT\x20NULL`);\x0a','\x20\x20\x20\x20\x20\x20\x20\x20const\x20[pagelist,\x20pagetotal]\x20=\x20await\x20this.','.save(tmpModel);\x0a','1577062qzHgUN',';\x0a\x0a\x0a','\x20\x20\x20\x20\x20\x20\x20\x20}\x0a','Error(','path','import\x20{\x20Inject,\x20Singleton\x20}\x20from\x20\x27anvero-api\x27;\x0a','Entity>,\x20pageinfo?:\x20SearchPaginate,\x20options:\x20SearchOptions\x20=\x20{}):\x20Promise<[','Entity[],\x20number]>\x20{\x0a','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20return\x20search.getOneOrFail().catch(()\x20=>\x20{\x0a','@/apps/','\x20\x20\x20\x20\x20\x20\x20\x20for\x20(let\x20tmpModel\x20of\x20tmpModels)\x20{\x0a','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20restores.push(await\x20this.','18fZMrdJ','import\x20{\x20InjectRepository,\x20SearchParams,\x20SearchPaginate,\x20SearchOptions\x20}\x20from\x20\x27@anveroapi/typeorm\x27;\x0a\x0a','\x20\x20\x20\x20\x20\x20\x20\x20return\x20await\x20this.','\x20\x20\x20\x20\x20*\x20**/\x0a','string','.softRemove(tmpModel))\x0a','DTOUpdate\x20}\x20from\x20\x27','.search(conditions,\x20pageinfo,\x20options).then(async\x20search\x20=>\x20{\x0a\x0a','@Singleton()\x0a','\x20\x20\x20\x20\x20\x20\x20\x20return\x20tmpModel\x0a','2290315dumryw','import\x20{\x20CacheService,\x20EventService,\x20ValidatorService\x20}\x20from\x20\x27anvero-api\x27;\x0a','dirname','Entity>,\x20options:\x20SearchOptions\x20=\x20{})\x20{\x0a','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20return\x20search.getManyAndCount();\x0a','\x20\x20\x20\x20/**\x0a','1093616zeyoZb','\x20\x20\x20\x20\x20\x20\x20\x20this.','\x20}\x20from\x20\x27','existsSync','8WySuhL','DTOCreate)\x20{\x0a','.search(conditions,\x20{},\x20options).then(async\x20search\x20=>\x20{\x0a\x0a','\x20\x20\x20\x20\x20*\x20数据列表\x0a','\x20\x20\x20\x20\x20\x20\x20\x20});\x0a\x0a','Error._NOTFIND_,\x20{\x20message:\x20\x27','\x20\x20\x20\x20\x20\x20\x20\x20const\x20restores:\x20any\x20=\x20[],\x20tmpModels\x20=\x20await\x20this.','mkdirSync','\x20\x20\x20\x20\x20*\x20添加数据\x0a','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20return\x20search.getMany();\x0a','1898439UhsgYj','\x20\x20\x20\x20async\x20restores(conditions:\x20SearchParams<','/entities/','\x20*\x20','toString','\x20\x20\x20\x20}\x0a\x0a\x0a','import\x20{\x20','/validators/','\x20\x20\x20\x20async\x20detail(conditions?:\x20SearchParams<','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20throw\x20new\x20','11KsMkKN','.merge(tmpModel,\x20params);\x0a','\x20\x20\x20\x20@Inject()\x20CacheService:\x20CacheService;\x0a','\x20\x20\x20\x20\x20\x20\x20\x20const\x20tmpModel\x20=\x20await\x20this.','10932712KUEcVO','\x20\x20\x20\x20\x20*\x20数据详情\x0a','Entity\x20}\x20from\x20\x27','\x20\x20\x20\x20\x20*\x20删除数据\x0a','\x20\x20\x20\x20@Inject()\x20EventService:\x20EventService;\x0a','.create(params)\x0a\x0a','Handler\x20{\x0a\x0a','search','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20});\x0a','/Update\x27;\x0a','\x20\x20\x20\x20@InjectRepository(','\x20\x20\x20\x20\x20\x20\x20\x20return\x20[pagelist,\x20pagetotal];\x0a','(((.+)+)+)+$','\x20*\x20**/\x0a','default','6xvKTkJ','\x20\x20\x20\x20async\x20update(conditions:\x20SearchParams<','1516090nMgpSu','constructor','不存在\x27\x20})\x0a','\x20\x20\x20\x20\x20*\x20修改数据\x0a','defineProperty','\x20\x20\x20\x20\x20\x20\x20\x20return\x20deletes\x0a','.ts','2402570wdhifN'];a9_0x1fae=function(){return _0x391f27;};return a9_0x1fae();}'use strict';Object[a9_0x1c2678(0x1e2)](exports,'__esModule',{'value':!![]}),exports[a9_0x1c2678(0x1db)]=default_1;function a9_0x377e(_0x4433c2,_0x34d707){_0x4433c2=_0x4433c2-0x1db;const _0x1684e5=a9_0x1fae();let _0x35f747=_0x1684e5[_0x4433c2];return _0x35f747;}const fs=require('fs'),path_1=require(a9_0x1c2678(0x1ed));async function default_1({tablestartUp:_0x48eaaf,tablestartUpShort:_0x12622e,basedir:_0x2c724c,Primary:_0x537fb1,Comment:_0x278202,moduleName:_0x54f6c3,apporbasic:_0x443829}){const _0x29dc4a=a9_0x1c2678,_0x4e51aa=_0x2c724c+('/handlers/'+_0x12622e+_0x29dc4a(0x1e4));if(!fs[_0x29dc4a(0x208)](_0x4e51aa)){let _0xc800b1='';_0xc800b1+=_0x29dc4a(0x1ee),_0xc800b1+=_0x29dc4a(0x200),_0xc800b1+=_0x29dc4a(0x1f6),_0xc800b1+=_0x29dc4a(0x219)+_0x48eaaf+_0x29dc4a(0x207)+(typeof _0x54f6c3==_0x29dc4a(0x1f9)?_0x29dc4a(0x1f2)+_0x54f6c3:'@/'+_0x443829)+_0x29dc4a(0x215)+_0x12622e+'\x27;\x0a',_0xc800b1+='import\x20{\x20'+_0x48eaaf+'Error\x20}\x20from\x20\x27'+(typeof _0x54f6c3=='string'?_0x29dc4a(0x1f2)+_0x54f6c3:'@/'+_0x443829)+'/exceptions/'+_0x12622e+'\x27;\x0a',_0xc800b1+='import\x20{\x20'+_0x48eaaf+_0x29dc4a(0x223)+(typeof _0x54f6c3==_0x29dc4a(0x1f9)?_0x29dc4a(0x1f2)+_0x54f6c3:'@/'+_0x443829)+'/entities/'+_0x12622e+'/entity\x27;\x0a',_0xc800b1+=_0x29dc4a(0x219)+_0x48eaaf+'DTOCreate\x20}\x20from\x20\x27'+(typeof _0x54f6c3==_0x29dc4a(0x1f9)?'@/apps/'+_0x54f6c3:'@/'+_0x443829)+'/validators/'+_0x12622e+'/Create\x27;\x0a',_0xc800b1+=_0x29dc4a(0x219)+_0x48eaaf+_0x29dc4a(0x1fb)+(typeof _0x54f6c3==_0x29dc4a(0x1f9)?_0x29dc4a(0x1f2)+_0x54f6c3:'@/'+_0x443829)+_0x29dc4a(0x21a)+_0x12622e+_0x29dc4a(0x22a),_0xc800b1+='\x0a',_0xc800b1+='/**\x0a',_0xc800b1+=_0x29dc4a(0x216)+_0x278202+'\x0a',_0xc800b1+=_0x29dc4a(0x22e),_0xc800b1+=_0x29dc4a(0x1fd),_0xc800b1+='export\x20class\x20'+_0x48eaaf+_0x29dc4a(0x227),_0xc800b1+=_0x29dc4a(0x21f),_0xc800b1+=_0x29dc4a(0x225),_0xc800b1+='\x20\x20\x20\x20@Inject()\x20ValidatorService:\x20ValidatorService;\x0a\x0a',_0xc800b1+=_0x29dc4a(0x22b)+_0x48eaaf+')\x20'+_0x12622e+':\x20'+_0x48eaaf+_0x29dc4a(0x1ea),_0xc800b1+=_0x29dc4a(0x204),_0xc800b1+=_0x29dc4a(0x20c),_0xc800b1+=_0x29dc4a(0x1f8),_0xc800b1+='\x20\x20\x20\x20async\x20list(conditions?:\x20SearchParams<'+_0x48eaaf+_0x29dc4a(0x1ef)+_0x48eaaf+_0x29dc4a(0x1f0),_0xc800b1+=_0x29dc4a(0x1e7)+_0x12622e+_0x29dc4a(0x1fc),_0xc800b1+=_0x29dc4a(0x203),_0xc800b1+=_0x29dc4a(0x20d),_0xc800b1+=_0x29dc4a(0x22c),_0xc800b1+=_0x29dc4a(0x218),_0xc800b1+=_0x29dc4a(0x204),_0xc800b1+=_0x29dc4a(0x222),_0xc800b1+=_0x29dc4a(0x1f8),_0xc800b1+=_0x29dc4a(0x21b)+_0x48eaaf+_0x29dc4a(0x202),_0xc800b1+='\x20\x20\x20\x20\x20\x20\x20\x20const\x20tmpModel\x20=\x20await\x20this.'+_0x12622e+_0x29dc4a(0x20b),_0xc800b1+=_0x29dc4a(0x1f1),_0xc800b1+=_0x29dc4a(0x21c)+_0x48eaaf+'Error('+_0x48eaaf+_0x29dc4a(0x20e)+_0x278202+_0x29dc4a(0x1e0),_0xc800b1+=_0x29dc4a(0x229),_0xc800b1+='\x20\x20\x20\x20\x20\x20\x20\x20});\x0a\x0a',_0xc800b1+=_0x29dc4a(0x1fe),_0xc800b1+=_0x29dc4a(0x218),_0xc800b1+=_0x29dc4a(0x204),_0xc800b1+=_0x29dc4a(0x211),_0xc800b1+=_0x29dc4a(0x1f8),_0xc800b1+='\x20\x20\x20\x20async\x20create(params:\x20'+_0x48eaaf+_0x29dc4a(0x20a),_0xc800b1+='\x20\x20\x20\x20\x20\x20\x20\x20const\x20tmpModel\x20=\x20this.'+_0x12622e+_0x29dc4a(0x226),_0xc800b1+=_0x29dc4a(0x1f7)+_0x12622e+'.save(tmpModel);\x0a',_0xc800b1+=_0x29dc4a(0x218),_0xc800b1+=_0x29dc4a(0x204),_0xc800b1+=_0x29dc4a(0x1e1),_0xc800b1+=_0x29dc4a(0x1f8),_0xc800b1+=_0x29dc4a(0x1dd)+_0x48eaaf+'Entity>,\x20params:\x20'+_0x48eaaf+'DTOUpdate,\x20options:\x20SearchOptions\x20=\x20{})\x20{\x0a',_0xc800b1+=_0x29dc4a(0x220)+_0x12622e+'.search(conditions,\x20{},\x20options).then(async\x20search\x20=>\x20{\x0a\x0a',_0xc800b1+='\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20return\x20search.getOneOrFail().catch(()\x20=>\x20{\x0a',_0xc800b1+='\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20throw\x20new\x20'+_0x48eaaf+_0x29dc4a(0x1ec)+_0x48eaaf+'Error._NOTFIND_,\x20{\x20message:\x20\x27'+_0x278202+_0x29dc4a(0x1e0),_0xc800b1+=_0x29dc4a(0x229),_0xc800b1+=_0x29dc4a(0x20d),_0xc800b1+=_0x29dc4a(0x206)+_0x12622e+_0x29dc4a(0x21e),_0xc800b1+=_0x29dc4a(0x1f7)+_0x12622e+_0x29dc4a(0x1e8),_0xc800b1+=_0x29dc4a(0x218),_0xc800b1+='\x20\x20\x20\x20/**\x0a',_0xc800b1+=_0x29dc4a(0x224),_0xc800b1+=_0x29dc4a(0x1f8),_0xc800b1+='\x20\x20\x20\x20async\x20remove(conditions:\x20SearchParams<'+_0x48eaaf+_0x29dc4a(0x202),_0xc800b1+='\x20\x20\x20\x20\x20\x20\x20\x20const\x20deletes:\x20any\x20=\x20[],\x20tmpModels\x20=\x20await\x20this.'+_0x12622e+_0x29dc4a(0x20b),_0xc800b1+=_0x29dc4a(0x212),_0xc800b1+=_0x29dc4a(0x20d),_0xc800b1+='\x20\x20\x20\x20\x20\x20\x20\x20for\x20(let\x20tmpModel\x20of\x20tmpModels)\x20{\x0a',_0xc800b1+='\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20deletes.push(await\x20this.'+_0x12622e+_0x29dc4a(0x1fa),_0xc800b1+=_0x29dc4a(0x1eb),_0xc800b1+=_0x29dc4a(0x1e3),_0xc800b1+='\x20\x20\x20\x20}\x0a\x0a\x0a',_0xc800b1+=_0x29dc4a(0x204),_0xc800b1+='\x20\x20\x20\x20\x20*\x20恢复删除的数据\x0a',_0xc800b1+=_0x29dc4a(0x1f8),_0xc800b1+=_0x29dc4a(0x214)+_0x48eaaf+'Entity>,\x20options:\x20SearchOptions\x20=\x20{})\x20{\x0a',_0xc800b1+=_0x29dc4a(0x20f)+_0x12622e+'.search(conditions,\x20{},\x20options).then(async\x20search\x20=>\x20{\x0a\x0a',_0xc800b1+=_0x29dc4a(0x1e6),_0xc800b1+='\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20return\x20search.getMany();\x0a',_0xc800b1+=_0x29dc4a(0x20d),_0xc800b1+=_0x29dc4a(0x1f3),_0xc800b1+=_0x29dc4a(0x1f4)+_0x12622e+'.recover(tmpModel))\x0a',_0xc800b1+=_0x29dc4a(0x1eb),_0xc800b1+='\x20\x20\x20\x20\x20\x20\x20\x20return\x20restores\x0a',_0xc800b1+=_0x29dc4a(0x218),_0xc800b1+='}',!fs[_0x29dc4a(0x208)]((0x0,path_1[_0x29dc4a(0x201)])(_0x4e51aa))&&fs[_0x29dc4a(0x210)]((0x0,path_1[_0x29dc4a(0x201)])(_0x4e51aa),{'recursive':!![]}),fs['writeFileSync'](_0x4e51aa,_0xc800b1,'utf-8');}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a10_0x43ee22=a10_0x8999;(function(_0xbac27,_0x5c2d31){const _0x27721e=a10_0x8999,_0x40bce1=_0xbac27();while(!![]){try{const _0xa9b106=-parseInt(_0x27721e(0x106))/0x1+-parseInt(_0x27721e(0xeb))/0x2+parseInt(_0x27721e(0xd2))/0x3*(parseInt(_0x27721e(0xc1))/0x4)+-parseInt(_0x27721e(0x101))/0x5+-parseInt(_0x27721e(0xe6))/0x6+parseInt(_0x27721e(0xcc))/0x7*(-parseInt(_0x27721e(0xe8))/0x8)+parseInt(_0x27721e(0xc8))/0x9;if(_0xa9b106===_0x5c2d31)break;else _0x40bce1['push'](_0x40bce1['shift']());}catch(_0x45cabf){_0x40bce1['push'](_0x40bce1['shift']());}}}(a10_0x5a66,0xca0ec));const a10_0x222557=(function(){let _0x308410=!![];return function(_0xab5008,_0x106974){const _0x668c58=_0x308410?function(){const _0x15a17d=a10_0x8999;if(_0x106974){const _0x17ee91=_0x106974[_0x15a17d(0xe5)](_0xab5008,arguments);return _0x106974=null,_0x17ee91;}}:function(){};return _0x308410=![],_0x668c58;};}()),a10_0x2cbe94=a10_0x222557(this,function(){const _0x318d68=a10_0x8999;return a10_0x2cbe94[_0x318d68(0xef)]()['search'](_0x318d68(0xc9))[_0x318d68(0xef)]()[_0x318d68(0xc2)](a10_0x2cbe94)[_0x318d68(0xfd)](_0x318d68(0xc9));});a10_0x2cbe94();'use strict';Object[a10_0x43ee22(0xca)](exports,a10_0x43ee22(0xc6),{'value':!![]}),exports[a10_0x43ee22(0xba)]=default_1;const fs=require('fs'),path_1=require(a10_0x43ee22(0xf8)),helper_1=require(a10_0x43ee22(0x100));function a10_0x5a66(){const _0x318938=['2595312NCfeuV','\x20\x20\x20\x20async\x20updated_at_start(query:\x20SelectQueryBuilder<ObjectLiteral>,\x20updated_at_start:\x20string)\x20{\x0a','8YsHxaM','existsSync','\x20\x20\x20\x20\x20\x20\x20\x20query.andWhere(`${query.alias}.created_at\x20>=\x20:created_at_start`,\x20{\x20created_at_start\x20})\x0a','1224664JPCrLn','\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','_end\x20})\x0a','\x20\x20\x20\x20}\x0a\x0a','toString','\x20\x20\x20\x20\x20\x20\x20\x20if(\x20','_end:\x20string)\x20{\x0a','mkdirSync','_end`,\x20{\x20','replace','_between:\x20string[])\x20{\x0a','writeFileSync','export\x20class\x20','path','text','updated_at','_start:\x20string)\x20{\x0a','_between[0]).format(\x27YYYY-MM-DD\x20HH:mm:ss\x27))\x0a','search','Search\x20{\x0a\x0a','utf-8','../helper','4954215juFzln','\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','deleted_at','\x20\x20\x20\x20@Search(\x27','_start(query:\x20SelectQueryBuilder<ObjectLiteral>,\x20','313226ADyUZe','\x20\x20\x20\x20async\x20','default','\x20*\x20','json','\x20*\x20**/\x0a','_start\x27,\x20\x27','/searchs/','\x20\x20\x20\x20@Search(\x27created_at_end\x27,\x20\x27创建时间:<=\x20起始时间(之前)\x27)\x0a','648456uwmpET','constructor','Field','\x20\x20\x20\x20@Search(\x27created_at_between\x27,\x20\x27创建时间在选定时间之内\x27)\x0a','-自定义检索\x0a','__esModule','@Provide()\x0a','32827032hJPKXx','(((.+)+)+)+$','defineProperty','dirname','7835261NOblLQ','\x20<=\x20:','\x20\x20\x20\x20async\x20created_at_end(query:\x20SelectQueryBuilder<ObjectLiteral>,\x20created_at_end:\x20string)\x20{\x0a','\x20\x20\x20\x20async\x20updated_at_end(query:\x20SelectQueryBuilder<ObjectLiteral>,\x20updated_at_end:\x20string)\x20{\x0a','_between.length\x20==\x202\x20){\x0a','_start`,\x20{\x20','12FZkjSV','timestamp','_between[1]).format(\x27YYYY-MM-DD\x20HH:mm:ss\x27))\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','\x20\x20\x20\x20@Search(\x27updated_at_between\x27,\x20\x27修改时间在选定时间之内\x27)\x0a','datetime','Comment','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20this.','_end(query:\x20SelectQueryBuilder<ObjectLiteral>,\x20','在选定时间之内\x27)\x0a','\x20\x20\x20\x20async\x20created_at_between(query:\x20SelectQueryBuilder<ObjectLiteral>,\x20created_at_between:\x20string[])\x20{\x0a',':<=\x20起始时间(之前)\x27)\x0a','displayorder','\x20\x20\x20\x20\x20\x20\x20\x20}\x0a','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20this.updated_at_end(query,\x20dayjs(updated_at_between[1]).format(\x27YYYY-MM-DD\x20HH:mm:ss\x27))\x0a','\x20\x20\x20\x20\x20\x20\x20\x20if(\x20updated_at_between.length\x20==\x202\x20){\x0a','date','\x20\x20\x20\x20\x20\x20\x20\x20query.andWhere(`${query.alias}.','%column%','apply'];a10_0x5a66=function(){return _0x318938;};return a10_0x5a66();}function a10_0x8999(_0x1e3f45,_0x45e032){_0x1e3f45=_0x1e3f45-0xba;const _0x413885=a10_0x5a66();let _0x2cbe94=_0x413885[_0x1e3f45];return _0x2cbe94;}async function default_1({tablestartUp:_0x548243,tablestartUpShort:_0x434b96,basedir:_0x48cb18,Fields:_0x1be2e4,Comment:_0x36b921}){const _0x2d5f43=a10_0x43ee22,_0x39740b=_0x48cb18+(_0x2d5f43(0xbf)+_0x434b96+'.ts');if(!fs[_0x2d5f43(0xe9)](_0x39740b)){let _0x2e879d='',_0x332f70='';for(let _0x55adc0 in _0x1be2e4){let _0x227849=_0x1be2e4[_0x55adc0],_0x1ec089=(0x0,helper_1['getProp'])(_0x227849['Type']);if(_0x227849[_0x2d5f43(0xc3)]==_0x2d5f43(0xde)||_0x227849['Field']=='created_at'||_0x227849[_0x2d5f43(0xc3)]==_0x2d5f43(0xfa)||_0x227849['Field']==_0x2d5f43(0x103))continue;if(_0x1ec089==_0x2d5f43(0xbc)){}else{if(_0x1ec089==_0x2d5f43(0xf9)){}else{if(_0x1ec089=='longtext'){}else[_0x2d5f43(0xe2),_0x2d5f43(0xd7),_0x2d5f43(0xd3)]['indexOf'](_0x1ec089)>-0x1&&(_0x2e879d+='\x20\x20\x20\x20@Search(\x27'+_0x227849[_0x2d5f43(0xc3)]+'_between\x27,\x20\x27'+_0x227849[_0x2d5f43(0xd8)]+_0x2d5f43(0xdb),_0x2e879d+=_0x2d5f43(0x107)+_0x227849[_0x2d5f43(0xc3)]+'_between(query:\x20SelectQueryBuilder<ObjectLiteral>,\x20'+_0x227849[_0x2d5f43(0xc3)]+_0x2d5f43(0xf5),_0x2e879d+=_0x2d5f43(0xf0)+_0x227849[_0x2d5f43(0xc3)]+_0x2d5f43(0xd0),_0x2e879d+='\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20this.'+_0x227849[_0x2d5f43(0xc3)]+'_end(query,\x20dayjs('+_0x227849['Field']+_0x2d5f43(0xd4),_0x2e879d+=_0x2d5f43(0xd9)+_0x227849[_0x2d5f43(0xc3)]+'_start(query,\x20dayjs('+_0x227849['Field']+_0x2d5f43(0xfc),_0x2e879d+='\x20\x20\x20\x20\x20\x20\x20\x20}\x0a',_0x2e879d+='\x20\x20\x20\x20}\x0a\x0a',_0x2e879d+='\x20\x20\x20\x20@Search(\x27'+_0x227849['Field']+_0x2d5f43(0xbe)+_0x227849[_0x2d5f43(0xd8)]+':>=\x20起始时间(之后)\x27)\x0a',_0x2e879d+='\x20\x20\x20\x20async\x20'+_0x227849[_0x2d5f43(0xc3)]+_0x2d5f43(0x105)+_0x227849['Field']+_0x2d5f43(0xfb),_0x2e879d+=_0x2d5f43(0xe3)+_0x227849[_0x2d5f43(0xc3)]+'\x20>=\x20:'+_0x227849[_0x2d5f43(0xc3)]+_0x2d5f43(0xd1)+_0x227849[_0x2d5f43(0xc3)]+'_start\x20})\x0a',_0x2e879d+=_0x2d5f43(0xee),_0x2e879d+=_0x2d5f43(0x104)+_0x227849[_0x2d5f43(0xc3)]+'_end\x27,\x20\x27'+_0x227849['Comment']+_0x2d5f43(0xdd),_0x2e879d+='\x20\x20\x20\x20async\x20'+_0x227849['Field']+_0x2d5f43(0xda)+_0x227849[_0x2d5f43(0xc3)]+_0x2d5f43(0xf1),_0x2e879d+='\x20\x20\x20\x20\x20\x20\x20\x20query.andWhere(`${query.alias}.'+_0x227849[_0x2d5f43(0xc3)]+_0x2d5f43(0xcd)+_0x227849['Field']+_0x2d5f43(0xf3)+_0x227849['Field']+_0x2d5f43(0xed),_0x2e879d+=_0x2d5f43(0xee));}}}_0x2e879d+=_0x2d5f43(0xc4),_0x2e879d+=_0x2d5f43(0xdc),_0x2e879d+='\x20\x20\x20\x20\x20\x20\x20\x20if(\x20created_at_between.length\x20==\x202\x20){\x0a',_0x2e879d+=_0x2d5f43(0x102),_0x2e879d+=_0x2d5f43(0xd5),_0x2e879d+=_0x2d5f43(0xdf),_0x2e879d+='\x20\x20\x20\x20}\x0a\x0a',_0x2e879d+='\x20\x20\x20\x20@Search(\x27created_at_start\x27,\x20\x27创建时间:>=\x20起始时间(之后)\x27)\x0a',_0x2e879d+='\x20\x20\x20\x20async\x20created_at_start(query:\x20SelectQueryBuilder<ObjectLiteral>,\x20created_at_start:\x20string)\x20{\x0a',_0x2e879d+=_0x2d5f43(0xea),_0x2e879d+='\x20\x20\x20\x20}\x0a\x0a',_0x2e879d+=_0x2d5f43(0xc0),_0x2e879d+=_0x2d5f43(0xce),_0x2e879d+='\x20\x20\x20\x20\x20\x20\x20\x20query.andWhere(`${query.alias}.created_at\x20<=\x20:created_at_end`,\x20{\x20created_at_end\x20})\x0a',_0x2e879d+=_0x2d5f43(0xee),_0x2e879d+=_0x2d5f43(0xd6),_0x2e879d+='\x20\x20\x20\x20async\x20updated_at_between(query:\x20SelectQueryBuilder<ObjectLiteral>,\x20updated_at_between:\x20string[])\x20{\x0a',_0x2e879d+=_0x2d5f43(0xe1),_0x2e879d+=_0x2d5f43(0xe0),_0x2e879d+=_0x2d5f43(0xec),_0x2e879d+=_0x2d5f43(0xdf),_0x2e879d+=_0x2d5f43(0xee),_0x2e879d+='\x20\x20\x20\x20@Search(\x27updated_at_start\x27,\x20\x27修改时间:>=\x20起始时间(之后)\x27)\x0a',_0x2e879d+=_0x2d5f43(0xe7),_0x2e879d+='\x20\x20\x20\x20\x20\x20\x20\x20query.andWhere(`${query.alias}.updated_at\x20>=\x20:updated_at_start`,\x20{\x20updated_at_start\x20})\x0a',_0x2e879d+=_0x2d5f43(0xee),_0x2e879d+='\x20\x20\x20\x20@Search(\x27updated_at_end\x27,\x20\x27修改时间:<=\x20起始时间(之前)\x27)\x0a',_0x2e879d+=_0x2d5f43(0xcf),_0x2e879d+='\x20\x20\x20\x20\x20\x20\x20\x20query.andWhere(`${query.alias}.updated_at\x20<=\x20:updated_at_end`,\x20{\x20updated_at_end\x20})\x0a',_0x2e879d+=_0x2d5f43(0xee),_0x332f70+='import\x20{\x20Provide,\x20Search,\x20ObjectLiteral,\x20SelectQueryBuilder\x20}\x20from\x20\x27@anveroapi/typeorm\x27;\x0a\x0a',_0x332f70+='/**\x0a',_0x332f70+=_0x2d5f43(0xbb)+_0x36b921+_0x2d5f43(0xc5),_0x332f70+=_0x2d5f43(0xbd),_0x332f70+=_0x2d5f43(0xc7),_0x332f70+=_0x2d5f43(0xf7)+_0x548243+_0x2d5f43(0xfe),_0x332f70+=_0x2d5f43(0xe4),_0x332f70+='}',_0x332f70=_0x332f70[_0x2d5f43(0xf4)]('%column%',_0x2e879d),!fs[_0x2d5f43(0xe9)]((0x0,path_1[_0x2d5f43(0xcb)])(_0x39740b))&&fs[_0x2d5f43(0xf2)]((0x0,path_1['dirname'])(_0x39740b),{'recursive':!![]}),fs[_0x2d5f43(0xf6)](_0x39740b,_0x332f70,_0x2d5f43(0xff));}}
|