anncic-apihelper 1.5.6 → 1.5.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/configuration.js +1 -1
- package/dist/helper.js +1 -1
- package/dist/index.js +1 -1
- package/dist/service/ApicreateService.js +1 -1
- package/dist/templateFun/Action.js +1 -1
- package/dist/templateFun/Common.js +1 -1
- package/dist/templateFun/Entities.js +1 -1
- package/dist/templateFun/Event.js +1 -1
- package/dist/templateFun/Handler.js +1 -1
- package/dist/templateFun/Search.js +1 -1
- package/dist/templateFun/Validator.js +1 -1
- package/dist/templateVue/Layout.js +1 -1
- package/dist/templateVue/LayoutVue.js +1 -1
- package/dist/templateVue/Router.js +1 -1
- package/dist/types/index.js +1 -1
- package/package.json +3 -3
package/dist/configuration.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
var a0_0x38578b=a0_0x5988;function a0_0x40b3(){var _0x3a4e80=['216sGwKUG','(((.+)+)+)+$','defineProperty','__metadata','prototype','1227576LncWrs','toString','apply','application','constructor','MidwayConfigService','3959305YEVoKx','Configuration','decorator','decorate','function','design:type','@anncic-api/typeorm','search','549093QjJfFI','object','7227136HTtlfL','Inject','anncic-apihelper','CustomConfiguration','8pHtKfo','length','846735SkDMJM','1646250jbqCBV','config'];a0_0x40b3=function(){return _0x3a4e80;};return a0_0x40b3();}(function(_0x5d0b25,_0x1beedc){var _0x4124c8=a0_0x5988,_0x530f84=_0x5d0b25();while(!![]){try{var _0x102e39=-parseInt(_0x4124c8(0x100))/0x1*(parseInt(_0x4124c8(0x105))/0x2)+-parseInt(_0x4124c8(0xfa))/0x3+-parseInt(_0x4124c8(0x10a))/0x4+parseInt(_0x4124c8(0x102))/0x5+parseInt(_0x4124c8(0x103))/0x6+-parseInt(_0x4124c8(0xf2))/0x7+parseInt(_0x4124c8(0xfc))/0x8;if(_0x102e39===_0x1beedc)break;else _0x530f84['push'](_0x530f84['shift']());}catch(_0x1cb667){_0x530f84['push'](_0x530f84['shift']());}}}(a0_0x40b3,0x46f96));var a0_0xe4e250=(function(){var _0x34930f=!![];return function(_0x1164aa,_0x4c99f4){var _0x94e680=_0x34930f?function(){var _0x11ed8a=a0_0x5988;if(_0x4c99f4){var _0x47efe3=_0x4c99f4[_0x11ed8a(0xee)](_0x1164aa,arguments);return _0x4c99f4=null,_0x47efe3;}}:function(){};return _0x34930f=![],_0x94e680;};}()),a0_0x5bec20=a0_0xe4e250(this,function(){var _0x128aee=a0_0x5988;return a0_0x5bec20[_0x128aee(0x10b)]()[_0x128aee(0xf9)](_0x128aee(0x106))['toString']()[_0x128aee(0xf0)](a0_0x5bec20)[_0x128aee(0xf9)](_0x128aee(0x106));});a0_0x5bec20();'use strict';var __decorate=this&&this['__decorate']||function(_0x334aca,_0x59040a,_0x34af9a,_0x48c3fb){var _0x9355a5=a0_0x5988,_0x7690ff=arguments[_0x9355a5(0x101)],_0x2464f3=_0x7690ff<0x3?_0x59040a:_0x48c3fb===null?_0x48c3fb=Object['getOwnPropertyDescriptor'](_0x59040a,_0x34af9a):_0x48c3fb,_0x322c00;if(typeof Reflect===_0x9355a5(0xfb)&&typeof Reflect[_0x9355a5(0xf5)]===_0x9355a5(0xf6))_0x2464f3=Reflect[_0x9355a5(0xf5)](_0x334aca,_0x59040a,_0x34af9a,_0x48c3fb);else{for(var _0x3a6794=_0x334aca[_0x9355a5(0x101)]-0x1;_0x3a6794>=0x0;_0x3a6794--)if(_0x322c00=_0x334aca[_0x3a6794])_0x2464f3=(_0x7690ff<0x3?_0x322c00(_0x2464f3):_0x7690ff>0x3?_0x322c00(_0x59040a,_0x34af9a,_0x2464f3):_0x322c00(_0x59040a,_0x34af9a))||_0x2464f3;}return _0x7690ff>0x3&&_0x2464f3&&Object[_0x9355a5(0x107)](_0x59040a,_0x34af9a,_0x2464f3),_0x2464f3;},__metadata=this&&this[a0_0x38578b(0x108)]||function(_0x585165,_0x4405a1){var _0x5bcd2a=a0_0x38578b;if(typeof Reflect===_0x5bcd2a(0xfb)&&typeof Reflect['metadata']===_0x5bcd2a(0xf6))return Reflect['metadata'](_0x585165,_0x4405a1);};function a0_0x5988(_0xc63531,_0x18841f){var _0xa0cce0=a0_0x40b3();return a0_0x5988=function(_0x5bec20,_0xe4e250){_0x5bec20=_0x5bec20-0xee;var _0x40b3ed=_0xa0cce0[_0x5bec20];return _0x40b3ed;},a0_0x5988(_0xc63531,_0x18841f);}Object[a0_0x38578b(0x107)](exports,'__esModule',{'value':!![]}),exports[a0_0x38578b(0xff)]=void 0x0;const core_1=require('@midwayjs/core'),core_2=require('@midwayjs/core'),typeorm=require(a0_0x38578b(0xf8));let CustomConfiguration=class CustomConfiguration{};__decorate([(0x0,core_1[a0_0x38578b(0xfd)])(),__metadata(a0_0x38578b(0xf7),core_2[a0_0x38578b(0xf1)])],CustomConfiguration[a0_0x38578b(0x109)],a0_0x38578b(0x104),void 0x0),__decorate([(0x0,core_1['Inject'])(),__metadata(a0_0x38578b(0xf7),core_2['MidwayDecoratorService'])],CustomConfiguration[a0_0x38578b(0x109)],a0_0x38578b(0xf4),void 0x0),__decorate([(0x0,core_1['Inject'])(),__metadata(a0_0x38578b(0xf7),core_2['MidwayApplicationManager'])],CustomConfiguration['prototype'],a0_0x38578b(0xef),void 0x0),CustomConfiguration=__decorate([(0x0,core_1[a0_0x38578b(0xf3)])({'conflictCheck':![],'imports':[typeorm],'namespace':a0_0x38578b(0xfe)})],CustomConfiguration),exports[a0_0x38578b(0xff)]=CustomConfiguration;
|
package/dist/helper.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a1_0x5a15c3=a1_0x4f3d;(function(_0x59be20,_0x314023){const _0x25b3d3=a1_0x4f3d,_0x1f0ee3=_0x59be20();while(!![]){try{const _0x44c711=parseInt(_0x25b3d3(0x18b))/0x1+-parseInt(_0x25b3d3(0x1a2))/0x2+-parseInt(_0x25b3d3(0x199))/0x3+parseInt(_0x25b3d3(0x190))/0x4+-parseInt(_0x25b3d3(0x18d))/0x5+parseInt(_0x25b3d3(0x19c))/0x6+parseInt(_0x25b3d3(0x19d))/0x7;if(_0x44c711===_0x314023)break;else _0x1f0ee3['push'](_0x1f0ee3['shift']());}catch(_0x4d8ef6){_0x1f0ee3['push'](_0x1f0ee3['shift']());}}}(a1_0x2799,0x9b2cf));function a1_0x2799(){const _0x5ebbf3=['17280CMWeeQ','__esModule','substr','hasOwnProperty','669490LSsApw','constructor','3309150eShGnL','enum','json','134208VrwJYZ','replace','longtext','toString','string','getProp','decimal','indexOf','float','1159944HGyUML','timestamp','date','165330XkyqCl','6734840tLttfY','datetime','text','defineProperty','getEnum'];a1_0x2799=function(){return _0x5ebbf3;};return a1_0x2799();}const a1_0x362653=(function(){let _0x384225=!![];return function(_0x49e8d9,_0x240bbe){const _0xef802f=_0x384225?function(){if(_0x240bbe){const _0x1ae748=_0x240bbe['apply'](_0x49e8d9,arguments);return _0x240bbe=null,_0x1ae748;}}:function(){};return _0x384225=![],_0xef802f;};}()),a1_0x3bb6b3=a1_0x362653(this,function(){const _0x2eae2d=a1_0x4f3d;return a1_0x3bb6b3[_0x2eae2d(0x193)]()['search']('(((.+)+)+)+$')['toString']()[_0x2eae2d(0x18c)](a1_0x3bb6b3)['search']('(((.+)+)+)+$');});a1_0x3bb6b3();'use strict';Object[a1_0x5a15c3(0x1a0)](exports,a1_0x5a15c3(0x1a3),{'value':!![]}),exports[a1_0x5a15c3(0x1a1)]=exports[a1_0x5a15c3(0x195)]=void 0x0;const columnTypes={'json':a1_0x5a15c3(0x18f),'char':a1_0x5a15c3(0x194),'varchar':a1_0x5a15c3(0x194),'text':a1_0x5a15c3(0x19f),'longtext':a1_0x5a15c3(0x192),'mediumtext':'mediumtext','int':'number','float':a1_0x5a15c3(0x198),'double':'float','decimal':a1_0x5a15c3(0x196),'date':a1_0x5a15c3(0x19b),'time':a1_0x5a15c3(0x19e),'datetime':'datetime','timestamp':a1_0x5a15c3(0x19a),'tinyint':'tinyint'};function getProp(_0x44bccf){const _0x1c5e47=a1_0x5a15c3;if(columnTypes[_0x1c5e47(0x18a)](_0x44bccf))return columnTypes[_0x44bccf];else return _0x44bccf[_0x1c5e47(0x197)]('(')>-0x1||_0x44bccf['indexOf']('\x20')>-0x1?(_0x44bccf=_0x44bccf[_0x1c5e47(0x189)](0x0,_0x44bccf[_0x1c5e47(0x197)]('(')>-0x1?_0x44bccf[_0x1c5e47(0x197)]('('):_0x44bccf[_0x1c5e47(0x197)]('\x20')),columnTypes[_0x44bccf]||_0x44bccf):_0x1c5e47(0x194);}exports[a1_0x5a15c3(0x195)]=getProp;function getEnum(_0x30ab6f){const _0x2737f8=a1_0x5a15c3;if(getProp(_0x30ab6f)==_0x2737f8(0x18e))return _0x30ab6f[_0x2737f8(0x189)](0x5,_0x30ab6f['length']-0x6)[_0x2737f8(0x191)](/[\'|\"]/g,'')['split'](',');return[];}function a1_0x4f3d(_0xf9646c,_0x4fe7e4){const _0x436307=a1_0x2799();return a1_0x4f3d=function(_0x3bb6b3,_0x362653){_0x3bb6b3=_0x3bb6b3-0x189;let _0x27999f=_0x436307[_0x3bb6b3];return _0x27999f;},a1_0x4f3d(_0xf9646c,_0x4fe7e4);}exports[a1_0x5a15c3(0x1a1)]=getEnum;
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a2_0x294118=a2_0x89d6;(function(_0x5949ce,_0x5ebcfe){var _0x4475e5=a2_0x89d6,_0x36c121=_0x5949ce();while(!![]){try{var _0x203538=-parseInt(_0x4475e5(0x157))/0x1*(-parseInt(_0x4475e5(0x153))/0x2)+parseInt(_0x4475e5(0x161))/0x3*(-parseInt(_0x4475e5(0x151))/0x4)+parseInt(_0x4475e5(0x160))/0x5*(parseInt(_0x4475e5(0x15d))/0x6)+parseInt(_0x4475e5(0x15f))/0x7+-parseInt(_0x4475e5(0x154))/0x8+-parseInt(_0x4475e5(0x155))/0x9+parseInt(_0x4475e5(0x152))/0xa*(parseInt(_0x4475e5(0x150))/0xb);if(_0x203538===_0x5ebcfe)break;else _0x36c121['push'](_0x36c121['shift']());}catch(_0x4e6c57){_0x36c121['push'](_0x36c121['shift']());}}}(a2_0x1cc6,0x9cf71));var a2_0x135b0e=(function(){var _0x318626=!![];return function(_0x577e4e,_0x96e4b1){var _0x57b48d=_0x318626?function(){var _0x2ac796=a2_0x89d6;if(_0x96e4b1){var _0x1036f0=_0x96e4b1[_0x2ac796(0x156)](_0x577e4e,arguments);return _0x96e4b1=null,_0x1036f0;}}:function(){};return _0x318626=![],_0x57b48d;};}()),a2_0x474e9f=a2_0x135b0e(this,function(){var _0x448c86=a2_0x89d6;return a2_0x474e9f[_0x448c86(0x162)]()[_0x448c86(0x15a)](_0x448c86(0x165))[_0x448c86(0x162)]()[_0x448c86(0x164)](a2_0x474e9f)[_0x448c86(0x15a)](_0x448c86(0x165));});function a2_0x1cc6(){var _0x4ffb86=['518ByzJNY','./service/ApicreateService','Configuration','search','ApicreateService','./configuration','222336ZmIlFV','CustomConfiguration','5908959zCCCpr','95coJMQj','151311dIEHwF','toString','defineProperty','constructor','(((.+)+)+)+$','55WWAnmH','100JUuRfF','1988350FqxabW','982VhXXwo','1640840atUAFe','6189795jAAYUv','apply'];a2_0x1cc6=function(){return _0x4ffb86;};return a2_0x1cc6();}a2_0x474e9f();'use strict';Object[a2_0x294118(0x163)](exports,'__esModule',{'value':!![]}),exports[a2_0x294118(0x159)]=exports[a2_0x294118(0x15b)]=void 0x0;function a2_0x89d6(_0x2cba74,_0x592598){var _0x32b2ab=a2_0x1cc6();return a2_0x89d6=function(_0x474e9f,_0x135b0e){_0x474e9f=_0x474e9f-0x150;var _0x1cc676=_0x32b2ab[_0x474e9f];return _0x1cc676;},a2_0x89d6(_0x2cba74,_0x592598);}var ApicreateService_1=require(a2_0x294118(0x158));Object[a2_0x294118(0x163)](exports,a2_0x294118(0x15b),{'enumerable':!![],'get':function(){var _0x1f16e3=a2_0x294118;return ApicreateService_1[_0x1f16e3(0x15b)];}});var configuration_1=require(a2_0x294118(0x15c));Object['defineProperty'](exports,'Configuration',{'enumerable':!![],'get':function(){var _0x58f981=a2_0x294118;return configuration_1[_0x58f981(0x15e)];}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a3_0x402a46=a3_0x23d6;(function(_0x49c63a,_0x13af04){const _0x5bc24f=a3_0x23d6,_0x37b83e=_0x49c63a();while(!![]){try{const _0x556ac8=parseInt(_0x5bc24f(0x19e))/0x1*(-parseInt(_0x5bc24f(0x1a1))/0x2)+-parseInt(_0x5bc24f(0x180))/0x3+parseInt(_0x5bc24f(0x1c7))/0x4+parseInt(_0x5bc24f(0x18c))/0x5+parseInt(_0x5bc24f(0x1dc))/0x6+-parseInt(_0x5bc24f(0x192))/0x7*(-parseInt(_0x5bc24f(0x1c5))/0x8)+-parseInt(_0x5bc24f(0x186))/0x9;if(_0x556ac8===_0x13af04)break;else _0x37b83e['push'](_0x37b83e['shift']());}catch(_0x318481){_0x37b83e['push'](_0x37b83e['shift']());}}}(a3_0x2105,0x6d85c));const a3_0x5959ef=(function(){let _0x445e6e=!![];return function(_0x44e8ba,_0x43d054){const _0x1270cb=_0x445e6e?function(){const _0x3f8344=a3_0x23d6;if(_0x43d054){const _0x32f853=_0x43d054[_0x3f8344(0x19c)](_0x44e8ba,arguments);return _0x43d054=null,_0x32f853;}}:function(){};return _0x445e6e=![],_0x1270cb;};}()),a3_0x58ea1b=a3_0x5959ef(this,function(){const _0x2fb9a0=a3_0x23d6;return a3_0x58ea1b[_0x2fb9a0(0x1a9)]()[_0x2fb9a0(0x1e6)](_0x2fb9a0(0x1d2))[_0x2fb9a0(0x1a9)]()['constructor'](a3_0x58ea1b)[_0x2fb9a0(0x1e6)]('(((.+)+)+)+$');});a3_0x58ea1b();'use strict';function a3_0x23d6(_0x1dbcdb,_0x2b2029){const _0x3efde4=a3_0x2105();return a3_0x23d6=function(_0x58ea1b,_0x5959ef){_0x58ea1b=_0x58ea1b-0x175;let _0x21051a=_0x3efde4[_0x58ea1b];return _0x21051a;},a3_0x23d6(_0x1dbcdb,_0x2b2029);}var __decorate=this&&this[a3_0x402a46(0x1a5)]||function(_0x4cd9a9,_0x5a450b,_0x125c6c,_0x49d7d3){const _0x30ebdc=a3_0x402a46;var _0x462b4f=arguments[_0x30ebdc(0x189)],_0x1afdc4=_0x462b4f<0x3?_0x5a450b:_0x49d7d3===null?_0x49d7d3=Object[_0x30ebdc(0x1c6)](_0x5a450b,_0x125c6c):_0x49d7d3,_0x1287a9;if(typeof Reflect===_0x30ebdc(0x1b8)&&typeof Reflect[_0x30ebdc(0x17e)]===_0x30ebdc(0x1ac))_0x1afdc4=Reflect[_0x30ebdc(0x17e)](_0x4cd9a9,_0x5a450b,_0x125c6c,_0x49d7d3);else{for(var _0x1f1005=_0x4cd9a9[_0x30ebdc(0x189)]-0x1;_0x1f1005>=0x0;_0x1f1005--)if(_0x1287a9=_0x4cd9a9[_0x1f1005])_0x1afdc4=(_0x462b4f<0x3?_0x1287a9(_0x1afdc4):_0x462b4f>0x3?_0x1287a9(_0x5a450b,_0x125c6c,_0x1afdc4):_0x1287a9(_0x5a450b,_0x125c6c))||_0x1afdc4;}return _0x462b4f>0x3&&_0x1afdc4&&Object[_0x30ebdc(0x195)](_0x5a450b,_0x125c6c,_0x1afdc4),_0x1afdc4;},__metadata=this&&this[a3_0x402a46(0x1cd)]||function(_0x36a4f5,_0x2c7aae){const _0x4d5c6e=a3_0x402a46;if(typeof Reflect==='object'&&typeof Reflect['metadata']===_0x4d5c6e(0x1ac))return Reflect[_0x4d5c6e(0x1d8)](_0x36a4f5,_0x2c7aae);};function a3_0x2105(){const _0x16cca1=['\x20未连接','function','basedir','hasDataSource','/vue','dataSource','database','cwd','typeorm\x20数据源\x20','map','typeorm\x20未配置数据源\x20','onlyvue','app','object','Provide','Fields','comment','/config.ts','@midwayjs/typeorm','tablestartLowShort','SHOW\x20FULL\x20COLUMNS\x20FROM\x20`','=\x20\x22','module','match','isDevelopmentEnvironment','isConnected','808BtrUsV','getOwnPropertyDescriptor','3149496yGdbDO','../templateFun/Validator','dataSourceManager','tablestart','config','TypeORMDataSourceManager','__metadata','../templateFun/Action','replace','../templateVue/Router','trim','(((.+)+)+)+$','@midwayjs/core','existsSync','split','toLowerCase','\x22\x20AND\x20table_name\x20','metadata','PRI','SELECT\x20TABLE_NAME\x20as\x20`table`\x20FROM\x20information_schema.TABLES\x20WHERE\x20TABLE_SCHEMA=\x22','mkdirSync','4690230HsDiFY','join','substring','Comment','toUpperCase','LIKE\x20\x22','query','Config','tablestartLow','error','search','.ts','Scope','/apps/','tablestartUp','/pages/','string','filter','ApicreateService','substr','apitest','Field','../templateVue/LayoutVue','getBaseDir','\x20不存在','../templateFun/Event','decorate','getConfig','1307031wWXyZG','table','utf-8','getDataSource','prototype','tablestartUpShort','10345266dyJCVp','die','isArray','length','dirname','\x22\x20AND\x20table_name\x20=\x20\x27','3099975OntBLs','../templateFun/Common','/app','../templateFun/Handler','CreateModuleConfig','environment','11788yinsMh','design:type','../templateFun/Search','defineProperty','/index.vue','Primary','tablestartUpShort2','writeFileSync','Inject','controller','apply','moduleName','25031kLOjXn','tableprefix','\x27,\x0a\x20\x20\x20\x20description:\x20\x27\x27,\x0a\x20\x20\x20\x20middlewares:\x20[],\x0a}','26OAVfPe','/exceptions/','path','default','__decorate','SELECT\x20TABLE_COMMENT\x20as\x20`comment`\x20FROM\x20information_schema.TABLES\x20WHERE\x20TABLE_SCHEMA=\x22','connection','/module/','toString','App'];a3_0x2105=function(){return _0x16cca1;};return a3_0x2105();}Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[a3_0x402a46(0x176)]=void 0x0;const fs=require('fs'),path=require(a3_0x402a46(0x1a3)),core_1=require(a3_0x402a46(0x1d3)),typeorm_1=require(a3_0x402a46(0x1bd)),core_2=require(a3_0x402a46(0x1d3)),Common_1=require(a3_0x402a46(0x18d)),Event_1=require(a3_0x402a46(0x17d)),Search_1=require(a3_0x402a46(0x194)),Entities_1=require('../templateFun/Entities'),Handler_1=require(a3_0x402a46(0x18f)),Validator_1=require(a3_0x402a46(0x1c8)),Action_1=require(a3_0x402a46(0x1ce)),Router_1=require(a3_0x402a46(0x1d0)),Layout_1=require('../templateVue/Layout'),LayoutVue_1=require(a3_0x402a46(0x17a));let ApicreateService=class ApicreateService{async['create'](_0x2e082e){const _0x3bfe81=a3_0x402a46;var _0x1ff513,_0x5b5c6a,_0x452810,_0x4f8ec5,_0x46b65d;if(this[_0x3bfe81(0x191)][_0x3bfe81(0x1c3)]()&&((_0x1ff513=this[_0x3bfe81(0x1cb)])===null||_0x1ff513===void 0x0?void 0x0:_0x1ff513[_0x3bfe81(0x1b0)])&&this[_0x3bfe81(0x1b7)][_0x3bfe81(0x17f)](_0x3bfe81(0x178))){!_0x2e082e[_0x3bfe81(0x1a7)]&&(_0x2e082e[_0x3bfe81(0x1a7)]='default');if(!((_0x452810=(_0x5b5c6a=this[_0x3bfe81(0x1cb)])===null||_0x5b5c6a===void 0x0?void 0x0:_0x5b5c6a[_0x3bfe81(0x1b0)])===null||_0x452810===void 0x0?void 0x0:_0x452810[_0x2e082e[_0x3bfe81(0x1a7)]]))throw new Error(_0x3bfe81(0x1b5)+_0x2e082e[_0x3bfe81(0x1a7)]);if(!this[_0x3bfe81(0x1c9)][_0x3bfe81(0x1ae)](_0x2e082e[_0x3bfe81(0x1a7)]))throw new Error(_0x3bfe81(0x1b3)+_0x2e082e[_0x3bfe81(0x1a7)]+_0x3bfe81(0x17c));if(!this[_0x3bfe81(0x1c9)][_0x3bfe81(0x1c4)](_0x2e082e[_0x3bfe81(0x1a7)]))throw new Error(_0x3bfe81(0x1b3)+_0x2e082e['connection']+_0x3bfe81(0x1ab));const _0x46ae04=this[_0x3bfe81(0x1b7)][_0x3bfe81(0x17b)](),_0x1486f1=this['dataSourceManager'][_0x3bfe81(0x183)](_0x2e082e[_0x3bfe81(0x1a7)]),_0x1c4567=await _0x1486f1[_0x3bfe81(0x1e2)](_0x3bfe81(0x1da)+this['config'][_0x3bfe81(0x1b0)][_0x2e082e['connection']]['database']+_0x3bfe81(0x1d7)+((_0x2e082e===null||_0x2e082e===void 0x0?void 0x0:_0x2e082e[_0x3bfe81(0x181)])?_0x3bfe81(0x1c0)+_0x2e082e[_0x3bfe81(0x181)]+'\x22':_0x3bfe81(0x1e1)+(_0x2e082e[_0x3bfe81(0x19f)]||'')+'%\x22'))||[];for(let _0x5ea46b=0x0;_0x5ea46b<_0x1c4567['length'];_0x5ea46b++){const _0x37db7b=_0x1c4567[_0x5ea46b][_0x3bfe81(0x181)],_0x1ed805=await _0x1486f1[_0x3bfe81(0x1e2)](_0x3bfe81(0x1a6)+this[_0x3bfe81(0x1cb)]['dataSource'][_0x2e082e[_0x3bfe81(0x1a7)]][_0x3bfe81(0x1b1)]+_0x3bfe81(0x18b)+_0x37db7b+'\x27')||[];if((_0x4f8ec5=_0x1ed805[0x0])===null||_0x4f8ec5===void 0x0?void 0x0:_0x4f8ec5[_0x3bfe81(0x1bb)]){const _0x1180ce={'tablename':_0x37db7b,'Primary':{},'Fields':{},'Comment':(_0x46b65d=_0x1ed805[0x0])===null||_0x46b65d===void 0x0?void 0x0:_0x46b65d[_0x3bfe81(0x1bb)]};_0x1180ce['tablestart']=_0x37db7b['substr']((_0x2e082e===null||_0x2e082e===void 0x0?void 0x0:_0x2e082e[_0x3bfe81(0x177)])||0x0,_0x37db7b[_0x3bfe81(0x189)]),_0x1180ce[_0x3bfe81(0x1ad)]=(_0x2e082e===null||_0x2e082e===void 0x0?void 0x0:_0x2e082e[_0x3bfe81(0x1c1)])?_0x46ae04+_0x3bfe81(0x1e9)+_0x1180ce[_0x3bfe81(0x1ca)][_0x3bfe81(0x1d5)]('_')[0x0][_0x3bfe81(0x1d6)]():_0x46ae04+_0x3bfe81(0x18e);const _0x5b7c3b=_0x1180ce[_0x3bfe81(0x1ca)][_0x3bfe81(0x1d5)]('_')[_0x3bfe81(0x175)](_0x551133=>_0x551133&&_0x551133[_0x3bfe81(0x1d1)]());(_0x2e082e===null||_0x2e082e===void 0x0?void 0x0:_0x2e082e['module'])&&(await this[_0x3bfe81(0x190)](_0x1180ce),_0x1180ce['moduleName']=_0x5b7c3b[0x0][_0x3bfe81(0x1d6)]());_0x1180ce[_0x3bfe81(0x1e4)]=_0x5b7c3b['map'](_0x1ad8a0=>_0x1ad8a0[_0x3bfe81(0x1d6)]())[_0x3bfe81(0x1dd)](''),_0x1180ce[_0x3bfe81(0x1ea)]=_0x5b7c3b[_0x3bfe81(0x1b4)](_0x463759=>''+_0x463759[_0x3bfe81(0x1de)](0x0,0x1)[_0x3bfe81(0x1e0)]()+_0x463759[_0x3bfe81(0x1de)](0x1)[_0x3bfe81(0x1d6)]())[_0x3bfe81(0x1dd)]('');(_0x1180ce===null||_0x1180ce===void 0x0?void 0x0:_0x1180ce[_0x3bfe81(0x19d)])&&_0x5b7c3b[_0x3bfe81(0x189)]>0x1&&_0x5b7c3b[0x0]['toLowerCase']()==_0x1180ce['moduleName']?(_0x1180ce[_0x3bfe81(0x185)]=_0x1180ce[_0x3bfe81(0x1ea)][_0x3bfe81(0x1de)](_0x1180ce['moduleName'][_0x3bfe81(0x189)],_0x1180ce[_0x3bfe81(0x1ea)][_0x3bfe81(0x189)]),_0x1180ce[_0x3bfe81(0x1be)]=_0x1180ce[_0x3bfe81(0x1e4)][_0x3bfe81(0x1de)](_0x1180ce[_0x3bfe81(0x19d)]['length'],_0x1180ce[_0x3bfe81(0x1e4)][_0x3bfe81(0x189)])):(_0x1180ce[_0x3bfe81(0x185)]=_0x1180ce[_0x3bfe81(0x1ea)],_0x1180ce[_0x3bfe81(0x1be)]=_0x1180ce[_0x3bfe81(0x1e4)]);_0x1180ce[_0x3bfe81(0x198)]=_0x1180ce[_0x3bfe81(0x185)][_0x3bfe81(0x1cf)](/\/{2,}/g,'/')[_0x3bfe81(0x1c2)](/[\/|A-Z]*[^A-Z]+/g)[_0x3bfe81(0x1dd)]('-')[_0x3bfe81(0x1d6)]()[_0x3bfe81(0x1cf)](/\/\-/g,'/');for(let _0x5c0e1c of await _0x1486f1[_0x3bfe81(0x1e2)](_0x3bfe81(0x1bf)+_0x37db7b+'`')){_0x5c0e1c['Key']==_0x3bfe81(0x1d9)?_0x1180ce[_0x3bfe81(0x197)]=_0x5c0e1c:_0x1180ce[_0x3bfe81(0x1ba)][_0x5c0e1c[_0x3bfe81(0x179)]]=_0x5c0e1c;}(_0x2e082e===null||_0x2e082e===void 0x0?void 0x0:_0x2e082e[_0x3bfe81(0x19b)])&&(_0x1180ce[_0x3bfe81(0x19b)]=_0x2e082e===null||_0x2e082e===void 0x0?void 0x0:_0x2e082e['controller']);if(!(_0x2e082e===null||_0x2e082e===void 0x0?void 0x0:_0x2e082e[_0x3bfe81(0x1b6)])&&!fs[_0x3bfe81(0x1d4)](_0x1180ce[_0x3bfe81(0x1ad)]+_0x3bfe81(0x1a2)+_0x1180ce['tablestartUpShort']+_0x3bfe81(0x1e7))){var _0x510ded=[];if(typeof(_0x2e082e===null||_0x2e082e===void 0x0?void 0x0:_0x2e082e[_0x3bfe81(0x19b)])=='string')_0x510ded=[_0x2e082e===null||_0x2e082e===void 0x0?void 0x0:_0x2e082e[_0x3bfe81(0x19b)]];else Array['isArray'](_0x2e082e===null||_0x2e082e===void 0x0?void 0x0:_0x2e082e['controller'])?_0x510ded=_0x2e082e===null||_0x2e082e===void 0x0?void 0x0:_0x2e082e[_0x3bfe81(0x19b)]:_0x510ded=[!![]];_0x1180ce['controllers']=_0x510ded,await(0x0,Common_1[_0x3bfe81(0x1a4)])(_0x1180ce),await(0x0,Event_1[_0x3bfe81(0x1a4)])(_0x1180ce),await(0x0,Search_1[_0x3bfe81(0x1a4)])(_0x1180ce),await(0x0,Entities_1[_0x3bfe81(0x1a4)])(_0x1180ce),await(0x0,Handler_1[_0x3bfe81(0x1a4)])(_0x1180ce),await(0x0,Validator_1[_0x3bfe81(0x1a4)])(_0x1180ce);for(let _0x288612 of _0x510ded){_0x1180ce[_0x3bfe81(0x19b)]=_0x288612,await(0x0,Action_1['default'])(_0x1180ce);}}if((_0x2e082e===null||_0x2e082e===void 0x0?void 0x0:_0x2e082e['hasvue'])||(_0x2e082e===null||_0x2e082e===void 0x0?void 0x0:_0x2e082e[_0x3bfe81(0x1b6)])){var _0x510ded=[];if(typeof(_0x2e082e===null||_0x2e082e===void 0x0?void 0x0:_0x2e082e['controller'])==_0x3bfe81(0x1ec))_0x510ded=[_0x2e082e===null||_0x2e082e===void 0x0?void 0x0:_0x2e082e[_0x3bfe81(0x19b)]];else Array[_0x3bfe81(0x188)](_0x2e082e===null||_0x2e082e===void 0x0?void 0x0:_0x2e082e[_0x3bfe81(0x19b)])?_0x510ded=_0x2e082e===null||_0x2e082e===void 0x0?void 0x0:_0x2e082e['controller']:_0x510ded=[!![]];for(let _0x25e467 of _0x510ded){_0x1180ce[_0x3bfe81(0x19b)]=_0x25e467;let _0x2489f1=process[_0x3bfe81(0x1b2)]()+_0x3bfe81(0x1af)+(typeof _0x1180ce[_0x3bfe81(0x19b)]==_0x3bfe81(0x1ec)?'/'+_0x25e467:'');_0x1180ce[_0x3bfe81(0x19d)]?_0x2489f1=_0x2489f1+(_0x3bfe81(0x1a8)+_0x1180ce['moduleName']+'/'+_0x1180ce[_0x3bfe81(0x185)]+_0x3bfe81(0x196)):_0x2489f1=_0x2489f1+(_0x3bfe81(0x1eb)+_0x1180ce[_0x3bfe81(0x185)]+_0x3bfe81(0x196)),!fs[_0x3bfe81(0x1d4)](_0x2489f1)&&(await(0x0,Router_1[_0x3bfe81(0x1a4)])(_0x1180ce),await(0x0,Layout_1['default'])(_0x1180ce)),await(0x0,LayoutVue_1[_0x3bfe81(0x1a4)])(_0x1180ce);}}}else console[_0x3bfe81(0x1e5)]('表:'+_0x37db7b+'\x20表注释不存在');}}return _0x3bfe81(0x187);}async[a3_0x402a46(0x190)](_0x349fc5){const _0x446894=a3_0x402a46,_0x214b5e=_0x349fc5[_0x446894(0x1ca)][_0x446894(0x1d5)]('_')[0x0][_0x446894(0x1d6)]();if(!fs[_0x446894(0x1d4)](_0x349fc5[_0x446894(0x1ad)]+'/config.ts')){let _0x4dbc70='export\x20default\x20{\x0a\x20\x20\x20\x20name:\x20\x27'+(_0x349fc5[_0x446894(0x1df)]||_0x214b5e)+_0x446894(0x1a0);fs[_0x446894(0x1db)](path[_0x446894(0x18a)](_0x349fc5[_0x446894(0x1ad)]+_0x446894(0x1bc)),{'recursive':!![]}),fs[_0x446894(0x199)](_0x349fc5[_0x446894(0x1ad)]+_0x446894(0x1bc),_0x4dbc70,_0x446894(0x182));}}};__decorate([(0x0,core_2[a3_0x402a46(0x1aa)])(),__metadata(a3_0x402a46(0x193),Object)],ApicreateService['prototype'],'app',void 0x0),__decorate([(0x0,core_2[a3_0x402a46(0x1e3)])('typeorm'),__metadata(a3_0x402a46(0x193),Object)],ApicreateService['prototype'],a3_0x402a46(0x1cb),void 0x0),__decorate([(0x0,core_2[a3_0x402a46(0x19a)])(),__metadata(a3_0x402a46(0x193),core_1['MidwayEnvironmentService'])],ApicreateService['prototype'],a3_0x402a46(0x191),void 0x0),__decorate([(0x0,core_2['Inject'])(),__metadata(a3_0x402a46(0x193),typeorm_1[a3_0x402a46(0x1cc)])],ApicreateService[a3_0x402a46(0x184)],a3_0x402a46(0x1c9),void 0x0),ApicreateService=__decorate([(0x0,core_2[a3_0x402a46(0x1b9)])(a3_0x402a46(0x176)),(0x0,core_2[a3_0x402a46(0x1e8)])(core_2['ScopeEnum']['Singleton'])],ApicreateService),exports[a3_0x402a46(0x176)]=ApicreateService;
|
|
1
|
+
const a3_0x4b30ea=a3_0x4676;function a3_0x4676(_0x2ed470,_0x11863d){const _0x1dca0c=a3_0x3fd1();return a3_0x4676=function(_0x594763,_0x5ccd18){_0x594763=_0x594763-0x148;let _0x3fd133=_0x1dca0c[_0x594763];return _0x3fd133;},a3_0x4676(_0x2ed470,_0x11863d);}(function(_0x35bc05,_0x366ce1){const _0x31cb83=a3_0x4676,_0x51d066=_0x35bc05();while(!![]){try{const _0x5458ca=parseInt(_0x31cb83(0x180))/0x1*(parseInt(_0x31cb83(0x186))/0x2)+parseInt(_0x31cb83(0x1ab))/0x3*(parseInt(_0x31cb83(0x17a))/0x4)+parseInt(_0x31cb83(0x172))/0x5*(parseInt(_0x31cb83(0x16a))/0x6)+parseInt(_0x31cb83(0x1a0))/0x7*(-parseInt(_0x31cb83(0x16e))/0x8)+parseInt(_0x31cb83(0x161))/0x9*(-parseInt(_0x31cb83(0x18b))/0xa)+-parseInt(_0x31cb83(0x178))/0xb*(parseInt(_0x31cb83(0x150))/0xc)+-parseInt(_0x31cb83(0x194))/0xd;if(_0x5458ca===_0x366ce1)break;else _0x51d066['push'](_0x51d066['shift']());}catch(_0x58f165){_0x51d066['push'](_0x51d066['shift']());}}}(a3_0x3fd1,0xcb59b));const a3_0x5ccd18=(function(){let _0x394198=!![];return function(_0x3e5930,_0x4ee4c3){const _0x1910b2=_0x394198?function(){if(_0x4ee4c3){const _0x3052c2=_0x4ee4c3['apply'](_0x3e5930,arguments);return _0x4ee4c3=null,_0x3052c2;}}:function(){};return _0x394198=![],_0x1910b2;};}()),a3_0x594763=a3_0x5ccd18(this,function(){const _0x501ab1=a3_0x4676;return a3_0x594763[_0x501ab1(0x159)]()['search']('(((.+)+)+)+$')[_0x501ab1(0x159)]()['constructor'](a3_0x594763)[_0x501ab1(0x15b)](_0x501ab1(0x191));});a3_0x594763();'use strict';var __decorate=this&&this[a3_0x4b30ea(0x162)]||function(_0x351542,_0x380f0e,_0xff568c,_0xa4fead){const _0x59a388=a3_0x4b30ea;var _0x43a904=arguments[_0x59a388(0x185)],_0xb968e8=_0x43a904<0x3?_0x380f0e:_0xa4fead===null?_0xa4fead=Object[_0x59a388(0x168)](_0x380f0e,_0xff568c):_0xa4fead,_0xc304e6;if(typeof Reflect===_0x59a388(0x192)&&typeof Reflect[_0x59a388(0x15e)]===_0x59a388(0x196))_0xb968e8=Reflect[_0x59a388(0x15e)](_0x351542,_0x380f0e,_0xff568c,_0xa4fead);else{for(var _0x14087c=_0x351542[_0x59a388(0x185)]-0x1;_0x14087c>=0x0;_0x14087c--)if(_0xc304e6=_0x351542[_0x14087c])_0xb968e8=(_0x43a904<0x3?_0xc304e6(_0xb968e8):_0x43a904>0x3?_0xc304e6(_0x380f0e,_0xff568c,_0xb968e8):_0xc304e6(_0x380f0e,_0xff568c))||_0xb968e8;}return _0x43a904>0x3&&_0xb968e8&&Object['defineProperty'](_0x380f0e,_0xff568c,_0xb968e8),_0xb968e8;},__metadata=this&&this['__metadata']||function(_0x2166c5,_0x136a5e){const _0x32708c=a3_0x4b30ea;if(typeof Reflect==='object'&&typeof Reflect[_0x32708c(0x163)]===_0x32708c(0x196))return Reflect['metadata'](_0x2166c5,_0x136a5e);};Object['defineProperty'](exports,a3_0x4b30ea(0x1a6),{'value':!![]}),exports['ApicreateService']=void 0x0;const fs=require('fs'),path=require('path'),core_1=require('@midwayjs/core'),typeorm_1=require(a3_0x4b30ea(0x166)),core_2=require('@midwayjs/core'),Common_1=require(a3_0x4b30ea(0x155)),Event_1=require(a3_0x4b30ea(0x152)),Search_1=require('../templateFun/Search'),Entities_1=require(a3_0x4b30ea(0x157)),Handler_1=require('../templateFun/Handler'),Validator_1=require('../templateFun/Validator'),Action_1=require(a3_0x4b30ea(0x14f)),Router_1=require(a3_0x4b30ea(0x16b)),Layout_1=require('../templateVue/Layout'),LayoutVue_1=require(a3_0x4b30ea(0x156));let ApicreateService=class ApicreateService{async['create'](_0x1a8ffa){const _0x268d64=a3_0x4b30ea;var _0xa56542,_0x568d2c,_0x225b9a,_0x18ab4f,_0x4a24b5;if(this[_0x268d64(0x1aa)][_0x268d64(0x19f)]()&&((_0xa56542=this[_0x268d64(0x17b)])===null||_0xa56542===void 0x0?void 0x0:_0xa56542[_0x268d64(0x18a)])&&this[_0x268d64(0x19b)][_0x268d64(0x14c)](_0x268d64(0x171))){!_0x1a8ffa[_0x268d64(0x169)]&&(_0x1a8ffa[_0x268d64(0x169)]=_0x268d64(0x165));if(!((_0x225b9a=(_0x568d2c=this[_0x268d64(0x17b)])===null||_0x568d2c===void 0x0?void 0x0:_0x568d2c[_0x268d64(0x18a)])===null||_0x225b9a===void 0x0?void 0x0:_0x225b9a[_0x1a8ffa[_0x268d64(0x169)]]))throw new Error(_0x268d64(0x19e)+_0x1a8ffa[_0x268d64(0x169)]);if(!this[_0x268d64(0x188)]['hasDataSource'](_0x1a8ffa[_0x268d64(0x169)]))throw new Error('typeorm\x20数据源\x20'+_0x1a8ffa['connection']+'\x20不存在');if(!this[_0x268d64(0x188)][_0x268d64(0x167)](_0x1a8ffa[_0x268d64(0x169)]))throw new Error('typeorm\x20数据源\x20'+_0x1a8ffa[_0x268d64(0x169)]+'\x20未连接');const _0x409c6d=this[_0x268d64(0x19b)]['getBaseDir'](),_0xc68b4c=this['dataSourceManager']['getDataSource'](_0x1a8ffa[_0x268d64(0x169)]),_0x1f9f7f=await _0xc68b4c[_0x268d64(0x17f)]('SELECT\x20TABLE_NAME\x20as\x20`table`\x20FROM\x20information_schema.TABLES\x20WHERE\x20TABLE_SCHEMA=\x22'+this[_0x268d64(0x17b)][_0x268d64(0x18a)][_0x1a8ffa[_0x268d64(0x169)]]['database']+_0x268d64(0x197)+((_0x1a8ffa===null||_0x1a8ffa===void 0x0?void 0x0:_0x1a8ffa[_0x268d64(0x17d)])?'=\x20\x22'+_0x1a8ffa['table']+'\x22':_0x268d64(0x193)+(_0x1a8ffa['tableprefix']||'')+'%\x22'))||[];for(let _0x4dc5f6=0x0;_0x4dc5f6<_0x1f9f7f[_0x268d64(0x185)];_0x4dc5f6++){const _0x90e0ce=_0x1f9f7f[_0x4dc5f6][_0x268d64(0x17d)],_0x12ca27=await _0xc68b4c[_0x268d64(0x17f)](_0x268d64(0x1a8)+this[_0x268d64(0x17b)][_0x268d64(0x18a)][_0x1a8ffa[_0x268d64(0x169)]][_0x268d64(0x15f)]+_0x268d64(0x179)+_0x90e0ce+'\x27')||[];if((_0x18ab4f=_0x12ca27[0x0])===null||_0x18ab4f===void 0x0?void 0x0:_0x18ab4f['comment']){const _0x5758ca={'tablename':_0x90e0ce,'Primary':{},'Fields':{},'Comment':(_0x4a24b5=_0x12ca27[0x0])===null||_0x4a24b5===void 0x0?void 0x0:_0x4a24b5[_0x268d64(0x151)]};_0x5758ca[_0x268d64(0x1ad)]=_0x90e0ce[_0x268d64(0x1a4)]((_0x1a8ffa===null||_0x1a8ffa===void 0x0?void 0x0:_0x1a8ffa['substr'])||0x0,_0x90e0ce[_0x268d64(0x185)]),_0x5758ca['basedir']=(_0x1a8ffa===null||_0x1a8ffa===void 0x0?void 0x0:_0x1a8ffa[_0x268d64(0x17c)])?_0x409c6d+_0x268d64(0x181)+_0x5758ca[_0x268d64(0x1ad)][_0x268d64(0x1ae)]('_')[0x0]['toLowerCase']():_0x409c6d+'/app';const _0x11c9ae=_0x5758ca['tablestart'][_0x268d64(0x1ae)]('_')[_0x268d64(0x175)](_0x20087a=>_0x20087a&&_0x20087a[_0x268d64(0x187)]());(_0x1a8ffa===null||_0x1a8ffa===void 0x0?void 0x0:_0x1a8ffa[_0x268d64(0x17c)])&&(await this[_0x268d64(0x149)](_0x5758ca),_0x5758ca['moduleName']=_0x11c9ae[0x0][_0x268d64(0x18d)]());_0x5758ca[_0x268d64(0x1a5)]=_0x11c9ae[_0x268d64(0x190)](_0xfb435f=>_0xfb435f['toLowerCase']())['join'](''),_0x5758ca[_0x268d64(0x18f)]=_0x11c9ae[_0x268d64(0x190)](_0x1896d2=>''+_0x1896d2[_0x268d64(0x14a)](0x0,0x1)[_0x268d64(0x17e)]()+_0x1896d2[_0x268d64(0x14a)](0x1)[_0x268d64(0x18d)]())[_0x268d64(0x148)]('');(_0x5758ca===null||_0x5758ca===void 0x0?void 0x0:_0x5758ca[_0x268d64(0x195)])&&_0x11c9ae['length']>0x1&&_0x11c9ae[0x0][_0x268d64(0x18d)]()==_0x5758ca['moduleName']?(_0x5758ca[_0x268d64(0x182)]=_0x5758ca[_0x268d64(0x18f)][_0x268d64(0x14a)](_0x5758ca['moduleName'][_0x268d64(0x185)],_0x5758ca['tablestartUp'][_0x268d64(0x185)]),_0x5758ca[_0x268d64(0x1a2)]=_0x5758ca['tablestartLow'][_0x268d64(0x14a)](_0x5758ca['moduleName'][_0x268d64(0x185)],_0x5758ca[_0x268d64(0x1a5)][_0x268d64(0x185)])):(_0x5758ca[_0x268d64(0x182)]=_0x5758ca[_0x268d64(0x18f)],_0x5758ca[_0x268d64(0x1a2)]=_0x5758ca[_0x268d64(0x1a5)]);_0x5758ca['tablestartUpShort2']=_0x5758ca[_0x268d64(0x182)]['replace'](/\/{2,}/g,'/')[_0x268d64(0x1a7)](/[\/|A-Z]*[^A-Z]+/g)['join']('-')['toLowerCase']()[_0x268d64(0x173)](/\/\-/g,'/');for(let _0x17f022 of await _0xc68b4c[_0x268d64(0x17f)](_0x268d64(0x170)+_0x90e0ce+'`')){_0x17f022[_0x268d64(0x1a1)]=='PRI'?_0x5758ca[_0x268d64(0x189)]=_0x17f022:_0x5758ca[_0x268d64(0x14b)][_0x17f022[_0x268d64(0x19d)]]=_0x17f022;}(_0x1a8ffa===null||_0x1a8ffa===void 0x0?void 0x0:_0x1a8ffa['controller'])&&(_0x5758ca[_0x268d64(0x15c)]=_0x1a8ffa===null||_0x1a8ffa===void 0x0?void 0x0:_0x1a8ffa[_0x268d64(0x15c)]);if(!(_0x1a8ffa===null||_0x1a8ffa===void 0x0?void 0x0:_0x1a8ffa['onlyvue'])&&!fs[_0x268d64(0x177)](_0x5758ca[_0x268d64(0x160)]+_0x268d64(0x15d)+_0x5758ca[_0x268d64(0x182)]+_0x268d64(0x14e))){var _0x53d7f0=[];if(typeof(_0x1a8ffa===null||_0x1a8ffa===void 0x0?void 0x0:_0x1a8ffa['controller'])=='string')_0x53d7f0=[_0x1a8ffa===null||_0x1a8ffa===void 0x0?void 0x0:_0x1a8ffa[_0x268d64(0x15c)]];else Array['isArray'](_0x1a8ffa===null||_0x1a8ffa===void 0x0?void 0x0:_0x1a8ffa['controller'])?_0x53d7f0=_0x1a8ffa===null||_0x1a8ffa===void 0x0?void 0x0:_0x1a8ffa['controller']:_0x53d7f0=[!![]];_0x5758ca[_0x268d64(0x15a)]=_0x53d7f0,await(0x0,Common_1[_0x268d64(0x165)])(_0x5758ca),await(0x0,Event_1['default'])(_0x5758ca),await(0x0,Search_1[_0x268d64(0x165)])(_0x5758ca),await(0x0,Entities_1[_0x268d64(0x165)])(_0x5758ca),await(0x0,Handler_1[_0x268d64(0x165)])(_0x5758ca),await(0x0,Validator_1[_0x268d64(0x165)])(_0x5758ca);for(let _0x59c59f of _0x53d7f0){_0x5758ca[_0x268d64(0x15c)]=_0x59c59f,await(0x0,Action_1[_0x268d64(0x165)])(_0x5758ca);}}if((_0x1a8ffa===null||_0x1a8ffa===void 0x0?void 0x0:_0x1a8ffa[_0x268d64(0x16d)])||(_0x1a8ffa===null||_0x1a8ffa===void 0x0?void 0x0:_0x1a8ffa[_0x268d64(0x1af)])){var _0x53d7f0=[];if(typeof(_0x1a8ffa===null||_0x1a8ffa===void 0x0?void 0x0:_0x1a8ffa[_0x268d64(0x15c)])==_0x268d64(0x176))_0x53d7f0=[_0x1a8ffa===null||_0x1a8ffa===void 0x0?void 0x0:_0x1a8ffa[_0x268d64(0x15c)]];else Array[_0x268d64(0x1a9)](_0x1a8ffa===null||_0x1a8ffa===void 0x0?void 0x0:_0x1a8ffa['controller'])?_0x53d7f0=_0x1a8ffa===null||_0x1a8ffa===void 0x0?void 0x0:_0x1a8ffa['controller']:_0x53d7f0=[!![]];for(let _0x38076a of _0x53d7f0){_0x5758ca[_0x268d64(0x15c)]=_0x38076a;let _0x15249b=process['cwd']()+'/vue'+(typeof _0x5758ca['controller']=='string'?'/'+_0x38076a:'');_0x5758ca['moduleName']?_0x15249b=_0x15249b+('/module/'+_0x5758ca[_0x268d64(0x195)]+'/'+_0x5758ca['tablestartUpShort']+'/index.vue'):_0x15249b=_0x15249b+(_0x268d64(0x1ac)+_0x5758ca[_0x268d64(0x182)]+'/index.vue'),!fs[_0x268d64(0x177)](_0x15249b)&&(await(0x0,Router_1[_0x268d64(0x165)])(_0x5758ca),await(0x0,Layout_1[_0x268d64(0x165)])(_0x5758ca)),await(0x0,LayoutVue_1['default'])(_0x5758ca);}}}else console[_0x268d64(0x153)]('表:'+_0x90e0ce+_0x268d64(0x14d));}}return _0x268d64(0x19a);}async['CreateModuleConfig'](_0x10ff8f){const _0x45d040=a3_0x4b30ea,_0x24c801=_0x10ff8f[_0x45d040(0x1ad)][_0x45d040(0x1ae)]('_')[0x0]['toLowerCase']();if(!fs[_0x45d040(0x177)](_0x10ff8f[_0x45d040(0x160)]+_0x45d040(0x1a3))){let _0x2c7df9=_0x45d040(0x183)+(_0x10ff8f[_0x45d040(0x154)]||_0x24c801)+_0x45d040(0x18e);fs[_0x45d040(0x164)](path[_0x45d040(0x18c)](_0x10ff8f['basedir']+'/config.ts'),{'recursive':!![]}),fs['writeFileSync'](_0x10ff8f[_0x45d040(0x160)]+_0x45d040(0x1a3),_0x2c7df9,'utf-8');}}};function a3_0x3fd1(){const _0x1d949e=['environment','20613pbNbtp','/pages/','tablestart','split','onlyvue','join','CreateModuleConfig','substring','Fields','getConfig','\x20表注释不存在','.ts','../templateFun/Action','1031052mlOxum','comment','../templateFun/Event','error','Comment','../templateFun/Common','../templateVue/LayoutVue','../templateFun/Entities','design:type','toString','controllers','search','controller','/exceptions/','decorate','database','basedir','773442JtztfP','__decorate','metadata','mkdirSync','default','@midwayjs/typeorm','isConnected','getOwnPropertyDescriptor','connection','6GxwRlo','../templateVue/Router','typeorm','hasvue','22424nicowW','ApicreateService','SHOW\x20FULL\x20COLUMNS\x20FROM\x20`','apitest','4689595AOGzyU','replace','Scope','filter','string','existsSync','44THFpbu','\x22\x20AND\x20table_name\x20=\x20\x27','148ZXAoJF','config','module','table','toUpperCase','query','9401ntpzEN','/apps/','tablestartUpShort','export\x20default\x20{\x0a\x20\x20\x20\x20name:\x20\x27','prototype','length','262xTXHAx','trim','dataSourceManager','Primary','dataSource','10qvbqye','dirname','toLowerCase','\x27,\x0a\x20\x20\x20\x20description:\x20\x27\x27,\x0a\x20\x20\x20\x20middlewares:\x20[],\x0a}','tablestartUp','map','(((.+)+)+)+$','object','LIKE\x20\x22','1284335AZhqgX','moduleName','function','\x22\x20AND\x20table_name\x20','MidwayEnvironmentService','Inject','die','app','TypeORMDataSourceManager','Field','typeorm\x20未配置数据源\x20','isDevelopmentEnvironment','2653LuFWIt','Key','tablestartLowShort','/config.ts','substr','tablestartLow','__esModule','match','SELECT\x20TABLE_COMMENT\x20as\x20`comment`\x20FROM\x20information_schema.TABLES\x20WHERE\x20TABLE_SCHEMA=\x22','isArray'];a3_0x3fd1=function(){return _0x1d949e;};return a3_0x3fd1();}__decorate([(0x0,core_2['App'])(),__metadata(a3_0x4b30ea(0x158),Object)],ApicreateService[a3_0x4b30ea(0x184)],a3_0x4b30ea(0x19b),void 0x0),__decorate([(0x0,core_2['Config'])(a3_0x4b30ea(0x16c)),__metadata(a3_0x4b30ea(0x158),Object)],ApicreateService[a3_0x4b30ea(0x184)],a3_0x4b30ea(0x17b),void 0x0),__decorate([(0x0,core_2['Inject'])(),__metadata(a3_0x4b30ea(0x158),core_1[a3_0x4b30ea(0x198)])],ApicreateService[a3_0x4b30ea(0x184)],a3_0x4b30ea(0x1aa),void 0x0),__decorate([(0x0,core_2[a3_0x4b30ea(0x199)])(),__metadata(a3_0x4b30ea(0x158),typeorm_1[a3_0x4b30ea(0x19c)])],ApicreateService['prototype'],a3_0x4b30ea(0x188),void 0x0),ApicreateService=__decorate([(0x0,core_2['Provide'])(a3_0x4b30ea(0x16f)),(0x0,core_2[a3_0x4b30ea(0x174)])(core_2['ScopeEnum']['Singleton'])],ApicreateService),exports[a3_0x4b30ea(0x16f)]=ApicreateService;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a4_0xc0925a=a4_0x3332;function a4_0x3332(_0x21629a,_0x4d0f85){const _0x2456be=a4_0xc57e();return a4_0x3332=function(_0x35ec4b,_0x91a3a7){_0x35ec4b=_0x35ec4b-0x73;let _0xc57efd=_0x2456be[_0x35ec4b];return _0xc57efd;},a4_0x3332(_0x21629a,_0x4d0f85);}(function(_0x1dd8be,_0x392b56){const _0x2f8b74=a4_0x3332,_0x4e5058=_0x1dd8be();while(!![]){try{const _0x33140c=-parseInt(_0x2f8b74(0xa2))/0x1*(parseInt(_0x2f8b74(0xbc))/0x2)+parseInt(_0x2f8b74(0x80))/0x3*(parseInt(_0x2f8b74(0xbe))/0x4)+parseInt(_0x2f8b74(0x9f))/0x5*(-parseInt(_0x2f8b74(0x7e))/0x6)+-parseInt(_0x2f8b74(0x86))/0x7+parseInt(_0x2f8b74(0x77))/0x8+parseInt(_0x2f8b74(0xbf))/0x9+parseInt(_0x2f8b74(0xb7))/0xa;if(_0x33140c===_0x392b56)break;else _0x4e5058['push'](_0x4e5058['shift']());}catch(_0x2fb778){_0x4e5058['push'](_0x4e5058['shift']());}}}(a4_0xc57e,0xde392));const a4_0x91a3a7=(function(){let _0x31901b=!![];return function(_0xe752a6,_0x51b23b){const _0x575987=_0x31901b?function(){if(_0x51b23b){const _0x405cac=_0x51b23b['apply'](_0xe752a6,arguments);return _0x51b23b=null,_0x405cac;}}:function(){};return _0x31901b=![],_0x575987;};}()),a4_0x35ec4b=a4_0x91a3a7(this,function(){const _0x1af488=a4_0x3332;return a4_0x35ec4b['toString']()[_0x1af488(0xa5)](_0x1af488(0xa8))[_0x1af488(0xb2)]()[_0x1af488(0x7f)](a4_0x35ec4b)[_0x1af488(0xa5)](_0x1af488(0xa8));});a4_0x35ec4b();'use strict';Object[a4_0xc0925a(0x78)](exports,a4_0xc0925a(0xba),{'value':!![]});const fs=require('fs'),path_1=require(a4_0xc0925a(0xb6)),helper_1=require(a4_0xc0925a(0x8d));function a4_0xc57e(){const _0x45109b=['DTOCreate\x20}\x20from\x20\x27','string','1182498KGymLw','constructor','108fycyOu','/Search\x27;\x0a\x0a\x0a','\x20\x20\x20\x20async\x20update(','number','\x20\x20\x20\x20\x20\x20\x20\x20return\x20this.ctx.ok(pagelist,\x20{\x20pageinfo,\x20pagetotal\x20});\x0a','/handlers/','11729585iPlJTc','\x20\x20\x20\x20@Api(\x27查看\x27)\x0a','substring','Handler\x20}\x20from\x20\x27','Handler\x0a\x0a\x0a','DTOSearch\x20=\x20{\x20','\x20\x20\x20\x20@Api(\x27修改\x27,\x20\x27put\x27,\x20\x27/:','../helper','dirname','\x20\x20\x20\x20\x20\x20\x20\x20const\x20[pagelist,\x20pagetotal]\x20=\x20await\x20this.','\x20\x20\x20\x20}\x0a\x0a\x0a','\x20\x20\x20\x20@Api(\x22删除\x22,\x20\x27del\x27,\x20\x27/:','import\x20{\x20','Handler.list(conditions,\x20pageinfo);\x0a\x0a','\x20\x20\x20\x20\x20\x20\x20\x20const\x20deletes\x20=\x20await\x20this.','@Action(__filename,\x20\x27','\x20\x20\x20\x20async\x20index(conditions:\x20',')\x20{\x0a','@/apps/','\x20\x20\x20\x20\x20\x20\x20\x20const\x20tmpModel\x20=\x20await\x20this.','DTOSearch\x20}\x20from\x20\x27','\x27;\x0a','/validators/','@/app','\x20\x20\x20\x20\x20\x20\x20\x20return\x20this.ctx.ok(tmpModel);\x0a','5RklpND','export\x20class\x20','DTOSearch\x20=\x20{};\x0a\x0a','11Yvdazx','existsSync','Type','search','indexOf','/controller/','(((.+)+)+)+$','\x20\x20\x20\x20@Inject()\x20protected\x20','toLowerCase','\x20\x20\x20\x20\x20\x20\x20\x20const\x20conditions:\x20','Handler.create(params);\x0a\x0a','.ts','import\x20{\x20Context\x20}\x20from\x20\x27@midwayjs/koa\x27;\x0a','mediumtext','/Update\x27;\x0a','Field','toString','DTOSearch,\x20pageinfo:\x20PageDTO)\x20{\x0a\x0a','\x20\x20\x20\x20async\x20remove(','DTOUpdate)\x20{\x0a','path','10215540Yqgzkb','\x20\x20\x20\x20async\x20detail(','\x20\x20\x20\x20async\x20create(params:\x20','__esModule',':\x20string)\x20{\x0a','159398wTyNQz','DTOCreate)\x20{\x0a\x0a','187580ocVHmc','2890854rjkpDE','Handler.remove(','import\x20{\x20Inject,\x20Action,\x20Api,\x20PageDTO\x20}\x20from\x20\x27anncic-api\x27;\x0a\x0a','DTOUpdate\x20}\x20from\x20\x27','utf-8','\x20\x20\x20\x20\x20\x20\x20\x20return\x20this.ctx.ok(deletes);\x0a','Controller\x20{\x0a\x0a','/Create\x27;\x0a','toUpperCase','5029384HbyJbY','defineProperty','writeFileSync','Handler.update(conditions,\x20params);\x0a\x0a','\x27)\x0a'];a4_0xc57e=function(){return _0x45109b;};return a4_0xc57e();}async function default_1({controller:_0x465c47,tablestartUp:_0x5a3f8d,tablestartUpShort:_0x182102,basedir:_0x408a62,Primary:_0x2935c4,Comment:_0x5d2b85,moduleName:_0x12436c}){const _0xd1637f=a4_0xc0925a;if(_0x465c47){const _0x1ced5d=_0x408a62+(typeof _0x465c47==_0xd1637f(0x7d)?_0xd1637f(0xa7)+_0x465c47+'/'+_0x182102+'.ts':_0xd1637f(0xa7)+_0x182102+_0xd1637f(0xad));if(!fs[_0xd1637f(0xa3)](_0x1ced5d)){let _0xab1084='',_0x3dc7cd=['text',_0xd1637f(0xaf),_0xd1637f(0x7d)][_0xd1637f(0xa6)]((0x0,helper_1['getProp'])(_0x2935c4[_0xd1637f(0xa4)]))==-0x1;_0xab1084+=_0xd1637f(0xae),_0xab1084+=_0xd1637f(0xc1),_0xab1084+=_0xd1637f(0x92)+_0x5a3f8d+_0xd1637f(0x89)+(typeof _0x12436c==_0xd1637f(0x7d)?_0xd1637f(0x98)+_0x12436c:_0xd1637f(0x9d))+_0xd1637f(0x85)+_0x182102+_0xd1637f(0x9b),_0xab1084+=_0xd1637f(0x92)+(typeof _0x465c47==_0xd1637f(0x7d)?_0x465c47['substring'](0x0,0x1)[_0xd1637f(0x76)]()+_0x465c47[_0xd1637f(0x88)](0x1)['toLowerCase']():'')+_0x5a3f8d+_0xd1637f(0x7c)+(typeof _0x12436c==_0xd1637f(0x7d)?_0xd1637f(0x98)+_0x12436c:'@/app')+_0xd1637f(0x9c)+_0x182102+_0xd1637f(0x75),_0xab1084+=_0xd1637f(0x92)+(typeof _0x465c47==_0xd1637f(0x7d)?_0x465c47[_0xd1637f(0x88)](0x0,0x1)[_0xd1637f(0x76)]()+_0x465c47[_0xd1637f(0x88)](0x1)[_0xd1637f(0xaa)]():'')+_0x5a3f8d+_0xd1637f(0xc2)+(typeof _0x12436c==_0xd1637f(0x7d)?_0xd1637f(0x98)+_0x12436c:_0xd1637f(0x9d))+_0xd1637f(0x9c)+_0x182102+_0xd1637f(0xb0),_0xab1084+=_0xd1637f(0x92)+(typeof _0x465c47==_0xd1637f(0x7d)?_0x465c47[_0xd1637f(0x88)](0x0,0x1)[_0xd1637f(0x76)]()+_0x465c47[_0xd1637f(0x88)](0x1)[_0xd1637f(0xaa)]():'')+_0x5a3f8d+_0xd1637f(0x9a)+(typeof _0x12436c==_0xd1637f(0x7d)?'@/apps/'+_0x12436c:_0xd1637f(0x9d))+_0xd1637f(0x9c)+_0x182102+_0xd1637f(0x81),_0xab1084+=_0xd1637f(0x95)+_0x5d2b85+'\x27)\x0a',_0xab1084+=_0xd1637f(0xa0)+(typeof _0x465c47==_0xd1637f(0x7d)?_0x465c47[_0xd1637f(0x88)](0x0,0x1)[_0xd1637f(0x76)]()+_0x465c47['substring'](0x1):'')+_0x5a3f8d+_0xd1637f(0x74),_0xab1084+='\x20\x20\x20\x20@Inject()\x20protected\x20ctx:\x20Context;\x0a\x0a',_0xab1084+=_0xd1637f(0xa9)+_0x5a3f8d+'Handler:\x20'+_0x5a3f8d+_0xd1637f(0x8a),_0xab1084+='\x20\x20\x20\x20@Api(\x27添加\x27,\x20\x27post\x27)\x0a',_0xab1084+=_0xd1637f(0xb9)+(typeof _0x465c47==_0xd1637f(0x7d)?_0x465c47[_0xd1637f(0x88)](0x0,0x1)[_0xd1637f(0x76)]()+_0x465c47[_0xd1637f(0x88)](0x1)[_0xd1637f(0xaa)]():'')+_0x5a3f8d+_0xd1637f(0xbd),_0xab1084+='\x20\x20\x20\x20\x20\x20\x20\x20const\x20tmpModel\x20=\x20await\x20this.'+_0x5a3f8d+_0xd1637f(0xac),_0xab1084+='\x20\x20\x20\x20\x20\x20\x20\x20return\x20this.ctx.ok(tmpModel);\x0a',_0xab1084+='\x20\x20\x20\x20}\x0a\x0a\x0a',_0xab1084+=_0xd1637f(0x87),_0xab1084+=_0xd1637f(0x96)+(typeof _0x465c47==_0xd1637f(0x7d)?_0x465c47[_0xd1637f(0x88)](0x0,0x1)['toUpperCase']()+_0x465c47[_0xd1637f(0x88)](0x1)[_0xd1637f(0xaa)]():'')+_0x5a3f8d+_0xd1637f(0xb3),_0xab1084+=_0xd1637f(0x8f)+_0x5a3f8d+_0xd1637f(0x93),_0xab1084+=_0xd1637f(0x84),_0xab1084+=_0xd1637f(0x90),_0xab1084+='\x20\x20\x20\x20@Api(\x27详情\x27,\x20\x27get\x27,\x20\x27/:'+_0x2935c4['Field']+_0xd1637f(0x7b),_0xab1084+=_0xd1637f(0xb8)+_0x2935c4[_0xd1637f(0xb1)]+':\x20'+(_0x3dc7cd?_0xd1637f(0x83):_0xd1637f(0x7d))+_0xd1637f(0x97),_0xab1084+='\x20\x20\x20\x20\x20\x20\x20\x20const\x20conditions:\x20'+(typeof _0x465c47==_0xd1637f(0x7d)?_0x465c47[_0xd1637f(0x88)](0x0,0x1)[_0xd1637f(0x76)]()+_0x465c47[_0xd1637f(0x88)](0x1)[_0xd1637f(0xaa)]():'')+_0x5a3f8d+'DTOSearch\x20=\x20{\x20'+_0x2935c4[_0xd1637f(0xb1)]+'\x20};\x0a\x0a',_0xab1084+=_0xd1637f(0x99)+_0x5a3f8d+'Handler.detail(conditions);\x0a\x0a',_0xab1084+=_0xd1637f(0x9e),_0xab1084+=_0xd1637f(0x90),_0xab1084+=_0xd1637f(0x8c)+_0x2935c4[_0xd1637f(0xb1)]+_0xd1637f(0x7b),_0xab1084+=_0xd1637f(0x82)+_0x2935c4['Field']+':\x20'+(_0x3dc7cd?'number':_0xd1637f(0x7d))+',\x20params:\x20'+(typeof _0x465c47=='string'?_0x465c47[_0xd1637f(0x88)](0x0,0x1)[_0xd1637f(0x76)]()+_0x465c47['substring'](0x1)[_0xd1637f(0xaa)]():'')+_0x5a3f8d+_0xd1637f(0xb5),_0xab1084+=_0xd1637f(0xab)+(typeof _0x465c47==_0xd1637f(0x7d)?_0x465c47[_0xd1637f(0x88)](0x0,0x1)[_0xd1637f(0x76)]()+_0x465c47[_0xd1637f(0x88)](0x1)['toLowerCase']():'')+_0x5a3f8d+_0xd1637f(0x8b)+_0x2935c4[_0xd1637f(0xb1)]+'\x20};\x0a\x0a',_0xab1084+=_0xd1637f(0x99)+_0x5a3f8d+_0xd1637f(0x7a),_0xab1084+='\x20\x20\x20\x20\x20\x20\x20\x20return\x20this.ctx.ok(tmpModel);\x0a',_0xab1084+=_0xd1637f(0x90),_0xab1084+=_0xd1637f(0x91)+_0x2935c4['Field']+_0xd1637f(0x7b),_0xab1084+=_0xd1637f(0xb4)+_0x2935c4[_0xd1637f(0xb1)]+_0xd1637f(0xbb),_0xab1084+='\x20\x20\x20\x20\x20\x20\x20\x20const\x20conditions:\x20'+(typeof _0x465c47==_0xd1637f(0x7d)?_0x465c47[_0xd1637f(0x88)](0x0,0x1)[_0xd1637f(0x76)]()+_0x465c47[_0xd1637f(0x88)](0x1)[_0xd1637f(0xaa)]():'')+_0x5a3f8d+_0xd1637f(0xa1),_0xab1084+=_0xd1637f(0x94)+_0x5a3f8d+_0xd1637f(0xc0)+_0x2935c4[_0xd1637f(0xb1)]+',\x20conditions);\x0a\x0a',_0xab1084+=_0xd1637f(0x73),_0xab1084+='\x20\x20\x20\x20}\x0a\x0a\x0a',_0xab1084+='}',!fs[_0xd1637f(0xa3)]((0x0,path_1[_0xd1637f(0x8e)])(_0x1ced5d))&&fs['mkdirSync']((0x0,path_1[_0xd1637f(0x8e)])(_0x1ced5d),{'recursive':!![]}),fs[_0xd1637f(0x79)](_0x1ced5d,_0xab1084,_0xd1637f(0xc3));}}}exports['default']=default_1;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a5_0x558c1b=a5_0x443a;(function(_0x3d234c,_0xfe8f3d){const _0x511ff4=a5_0x443a,_0x41cbdb=_0x3d234c();while(!![]){try{const _0x18d727=-parseInt(_0x511ff4(0x1d5))/0x1+parseInt(_0x511ff4(0x1b6))/0x2*(-parseInt(_0x511ff4(0x1ce))/0x3)+-parseInt(_0x511ff4(0x1db))/0x4+-parseInt(_0x511ff4(0x1cb))/0x5*(parseInt(_0x511ff4(0x1b8))/0x6)+-parseInt(_0x511ff4(0x1c9))/0x7+parseInt(_0x511ff4(0x1d2))/0x8*(parseInt(_0x511ff4(0x1d3))/0x9)+parseInt(_0x511ff4(0x1bf))/0xa*(parseInt(_0x511ff4(0x1dd))/0xb);if(_0x18d727===_0xfe8f3d)break;else _0x41cbdb['push'](_0x41cbdb['shift']());}catch(_0x2825bd){_0x41cbdb['push'](_0x41cbdb['shift']());}}}(a5_0x50eb,0x53fe5));const a5_0x4b45f8=(function(){let _0x1f67b3=!![];return function(_0x22ca61,_0x5e804d){const _0x5ddfb3=_0x1f67b3?function(){const _0x2b7295=a5_0x443a;if(_0x5e804d){const _0xe2d655=_0x5e804d[_0x2b7295(0x1be)](_0x22ca61,arguments);return _0x5e804d=null,_0xe2d655;}}:function(){};return _0x1f67b3=![],_0x5ddfb3;};}()),a5_0x2288ec=a5_0x4b45f8(this,function(){const _0x3dd5d9=a5_0x443a;return a5_0x2288ec[_0x3dd5d9(0x1c1)]()[_0x3dd5d9(0x1da)](_0x3dd5d9(0x1c0))[_0x3dd5d9(0x1c1)]()[_0x3dd5d9(0x1d7)](a5_0x2288ec)[_0x3dd5d9(0x1da)]('(((.+)+)+)+$');});a5_0x2288ec();function a5_0x50eb(){const _0x157eaa=['298534KQKLuA','_ON:\x20number\x20=\x201;\x0a\x0a','330HycLBb','dirname','export\x20class\x20','toUpperCase','-常量设置\x0a','utf-8','apply','118010CtppFZ','(((.+)+)+)+$','toString','defineProperty','\x20*\x20**/\x0a','/enum.ts','/exceptions/','path','\x20\x20\x20\x20@AnnEnumMsg(\x27','Comment','3889844qKJXba','existsSync','61345zpBTrK','writeFileSync','Type','3NrEQGo','\x27)\x0a','\x20*\x20','indexOf','88504lykXbk','315glgBSb','Error\x20extends\x20AnnError\x20{\x0a\x0a','512381lEGJZz','/**\x0a','constructor','mkdirSync','_OFF:\x20number\x20=\x200;\x0a\x0a\x0a','search','770424xuhWPW','/entities/','1903KELbkA','\x20\x20\x20\x20static\x20readonly\x20','\x27,\x20\x27关闭','getProp','-错误信息设置\x0a','__esModule'];a5_0x50eb=function(){return _0x157eaa;};return a5_0x50eb();}'use strict';Object[a5_0x558c1b(0x1c2)](exports,a5_0x558c1b(0x1b5),{'value':!![]});const fs=require('fs'),path=require(a5_0x558c1b(0x1c6)),helper_1=require('../helper');async function default_1({tablestartUp:_0x4cc34f,tablestartUpShort:_0x49257b,basedir:_0xa689bd,Comment:_0x7e3151,Fields:_0x2a2dec}){await entity_emum({'tablestartUp':_0x4cc34f,'tablestartUpShort':_0x49257b,'basedir':_0xa689bd,'Comment':_0x7e3151,'Fields':_0x2a2dec}),await entity_exceptions({'tablestartUp':_0x4cc34f,'tablestartUpShort':_0x49257b,'basedir':_0xa689bd,'Comment':_0x7e3151});}function a5_0x443a(_0x2c31cf,_0x51026f){const _0x57645a=a5_0x50eb();return a5_0x443a=function(_0x2288ec,_0x4b45f8){_0x2288ec=_0x2288ec-0x1b3;let _0x50eb56=_0x57645a[_0x2288ec];return _0x50eb56;},a5_0x443a(_0x2c31cf,_0x51026f);}exports['default']=default_1;async function entity_emum({tablestartUp:_0x217cde,tablestartUpShort:_0x3a9b7f,basedir:_0x514bff,Comment:_0x35ec11,Fields:_0x2eefbc}){const _0x591120=a5_0x558c1b,_0x270126=_0x514bff+(_0x591120(0x1dc)+_0x3a9b7f+_0x591120(0x1c4));if(!fs['existsSync'](_0x270126)){let _0x478c74='';_0x478c74+=_0x591120(0x1d6),_0x478c74+=_0x591120(0x1d0)+_0x35ec11+_0x591120(0x1bc),_0x478c74+='\x20*\x20**/\x0a',_0x478c74+=_0x591120(0x1ba)+_0x217cde+'Enum\x20{\x0a\x0a';for(let _0x1c19c3 in _0x2eefbc){let _0x335a4b=_0x2eefbc[_0x1c19c3],_0x2a71a8=(0x0,helper_1[_0x591120(0x1b3)])(_0x335a4b[_0x591120(0x1cd)]);['tinyint'][_0x591120(0x1d1)](_0x2a71a8)!=-0x1&&(_0x478c74+=_0x591120(0x1c7)+_0x1c19c3+'\x27,\x20\x27开启'+_0x335a4b[_0x591120(0x1c8)]+'\x27)\x0a',_0x478c74+=_0x591120(0x1de)+_0x1c19c3[_0x591120(0x1bb)]()+_0x591120(0x1b7),_0x478c74+='\x20\x20\x20\x20@AnnEnumMsg(\x27'+_0x1c19c3+_0x591120(0x1df)+_0x335a4b[_0x591120(0x1c8)]+_0x591120(0x1cf),_0x478c74+=_0x591120(0x1de)+_0x1c19c3[_0x591120(0x1bb)]()+_0x591120(0x1d9));}_0x478c74+='}',!fs[_0x591120(0x1ca)](path[_0x591120(0x1b9)](_0x270126))&&fs[_0x591120(0x1d8)](path[_0x591120(0x1b9)](_0x270126),{'recursive':!![]}),fs[_0x591120(0x1cc)](_0x270126,_0x478c74,_0x591120(0x1bd));}}async function entity_exceptions({tablestartUp:_0x22c491,tablestartUpShort:_0x45c8a9,basedir:_0x59500f,Comment:_0x37efd6}){const _0x5d2c51=a5_0x558c1b,_0x2b0d93=_0x59500f+(_0x5d2c51(0x1c5)+_0x45c8a9+'.ts');if(!fs[_0x5d2c51(0x1ca)](_0x2b0d93)){let _0x1ace1d='';_0x1ace1d+=_0x5d2c51(0x1d6),_0x1ace1d+='\x20*\x20'+_0x37efd6+_0x5d2c51(0x1b4),_0x1ace1d+=_0x5d2c51(0x1c3),_0x1ace1d+=_0x5d2c51(0x1ba)+_0x22c491+_0x5d2c51(0x1d4),_0x1ace1d+='}',!fs[_0x5d2c51(0x1ca)](path[_0x5d2c51(0x1b9)](_0x2b0d93))&&fs[_0x5d2c51(0x1d8)](path[_0x5d2c51(0x1b9)](_0x2b0d93),{'recursive':!![]}),fs[_0x5d2c51(0x1cc)](_0x2b0d93,_0x1ace1d,'utf-8');}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a6_0x34f2(){const _0x562fa3=['5ErpjCa','\x20\x20\x20\x20@Column(\x27date\x27,\x20{\x20comment:\x20\x27','Search\x20}\x20from\x20\x27','\x20\x20\x20\x20@Column(\x27decimal\x27,\x20{\x20comment:\x20\x27','timestamp','mediumtext',',\x20unique:\x20false\x20})\x0a','@ProvideSearch(','string','defineProperty','path','Entity>{\x0a\x0a','\x20\x20\x20\x20@Column(\x27mediumtext\x27,\x20{\x20comment:\x20\x27','true','\x20\x20\x20\x20@Column(\x27json\x27,\x20{\x20comment:\x20\x27','\x27\x20|\x20\x27','../helper','longtext','writeFileSync','Enum\x20}\x20from\x20\x27','default','/index.ts','\x27\x20})\x0a','\x20})\x0a','/entity.ts','/**\x0a','mkdirSync','datetime','-实体\x0a','(((.+)+)+)+$','Comment','91513kdPDDY','\x20\x20\x20\x20@Column(\x27datetime\x27,\x20{\x20comment:\x20\x27','Entity\x20{\x0a\x0a','import\x20{\x20','Enum\x20}\x0a\x0a','indexOf','Entity,\x20','\x27,\x20precision:\x2024,\x20scale:\x202,\x20default:\x200.00,\x20nullable:\x20','\x20\x20\x20\x20deleted_at:\x20Date;\x0a\x0a','3467928IRFuXB','@/apps/','updated_at','decimal','\x20\x20\x20\x20','2905329iKwORV','\x20\x20\x20\x20@Column(\x27tinyint\x27,\x20{\x20comment:\x20\x27','\x20\x20\x20\x20@Column(\x27enum\x27,\x20{\x20comment:\x20\x27','search','\x20\x20\x20\x20@Column(\x27text\x27,\x20{\x20comment:\x20\x27','false','Type','//\x20import\x20{\x20ManyToOne,\x20JoinColumn\x20}\x20from\x20\x27@anncic-api/typeorm\x27;\x0a','toString','replace',':\x20any\x20|\x20any[];\x0a\x0a','import\x20{\x20ProvideRepository,\x20Repository\x20}\x20from\x20\x27@anncic-api/typeorm\x27;\x0a','PrimaryColumn','@/app','\x20\x20\x20\x20updated_at:\x20Date;\x0a\x0a','\x20\x20\x20\x20@PrimaryGeneratedColumn()\x0a','created_at','displayorder','/entities/','apply',':\x20number;\x0a\x0a','Field','\x27,\x20precision:\x2010,\x20scale:\x202,\x20default:\x200.00,\x20nullable:\x20','\x20\x20\x20\x20@Column(\x27float\x27,\x20{\x20comment:\x20\x27','458706NxdsMP','join','__esModule','\x20*\x20**/\x0a','\x27]\x20})\x0a',',\x20Column\x20}\x20from\x20\x27@anncic-api/typeorm\x27;\x0a\x0a','/search\x27;\x0a\x0a','export\x20class\x20','Entity\x20}\x20from\x20\x27','\x20\x20\x20\x20@Column(\x27timestamp\x27,\x20{\x20comment:\x20\x27','float','242294SSCDmi','2187820Ttipot','\x20\x20\x20\x20@UpdateDateColumn({\x20comment:\x20\x27修改时间\x27,\x20type:\x20\x27timestamp\x27\x20})\x0a','constructor','existsSync','\x27,\x20\x27','getProp','Null','\x20\x20\x20\x20@Column({\x20comment:\x20\x27','dirname','number','utf-8','\x20*\x20',':\x20Date;\x0a\x0a','double','\x27;\x0a\x0a',':\x20string;\x0a\x0a','\x20\x20\x20\x20@Column({\x20comment:\x20\x27默认显示排序\x27,\x20nullable:\x20true,\x20unique:\x20false\x20})\x0a','\x20\x20\x20\x20@CreateDateColumn({\x20comment:\x20\x27创建时间\x27,\x20type:\x20\x27timestamp\x27\x20})\x0a','%column%','Entity)\x0a','/entity\x27;\x0a','\x20\x20\x20\x20@Column(\x27double\x27,\x20{\x20comment:\x20\x27','export\x20{\x20','text','5651616WdNEnq','@ProvideRepository(','YES','-实体处理器\x0a','\x27,\x20nullable:\x20','\x20\x20\x20\x20created_at:\x20Date;\x0a\x0a','\x20\x20\x20\x20displayorder:\x20number;\x0a\x0a','PrimaryGeneratedColumn'];a6_0x34f2=function(){return _0x562fa3;};return a6_0x34f2();}const a6_0xaa61df=a6_0x253e;(function(_0x286a21,_0x1ab9fd){const _0x59bd17=a6_0x253e,_0xe5b3d6=_0x286a21();while(!![]){try{const _0x498268=parseInt(_0x59bd17(0x6f))/0x1+-parseInt(_0x59bd17(0xa0))/0x2+parseInt(_0x59bd17(0x95))/0x3+-parseInt(_0x59bd17(0xa1))/0x4*(-parseInt(_0x59bd17(0xc1))/0x5)+-parseInt(_0x59bd17(0x78))/0x6+-parseInt(_0x59bd17(0x7d))/0x7+parseInt(_0x59bd17(0xb9))/0x8;if(_0x498268===_0x1ab9fd)break;else _0xe5b3d6['push'](_0xe5b3d6['shift']());}catch(_0x27f1f9){_0xe5b3d6['push'](_0xe5b3d6['shift']());}}}(a6_0x34f2,0x5da98));const a6_0x83199f=(function(){let _0x4ad229=!![];return function(_0x1f46f5,_0x54a9fa){const _0x18b141=_0x4ad229?function(){const _0x1651ed=a6_0x253e;if(_0x54a9fa){const _0x19df1a=_0x54a9fa[_0x1651ed(0x90)](_0x1f46f5,arguments);return _0x54a9fa=null,_0x19df1a;}}:function(){};return _0x4ad229=![],_0x18b141;};}()),a6_0x3b48d9=a6_0x83199f(this,function(){const _0x279260=a6_0x253e;return a6_0x3b48d9['toString']()[_0x279260(0x80)](_0x279260(0xde))[_0x279260(0x85)]()[_0x279260(0xa3)](a6_0x3b48d9)['search'](_0x279260(0xde));});a6_0x3b48d9();'use strict';Object[a6_0xaa61df(0xca)](exports,a6_0xaa61df(0x97),{'value':!![]});function a6_0x253e(_0x48b137,_0x5455d0){const _0x1a2033=a6_0x34f2();return a6_0x253e=function(_0x3b48d9,_0x83199f){_0x3b48d9=_0x3b48d9-0x6e;let _0x34f2e2=_0x1a2033[_0x3b48d9];return _0x34f2e2;},a6_0x253e(_0x48b137,_0x5455d0);}const fs=require('fs'),path_1=require(a6_0xaa61df(0xcb)),helper_1=require(a6_0xaa61df(0xd1));async function default_1({tablename:_0x5ba928,tablestartUp:_0x520670,tablestartUpShort:_0x53e6e6,basedir:_0x28c3b7,Primary:_0x3189a,Fields:_0x399eb2,Comment:_0x568353,moduleName:_0x4fc078}){await entity({'tablename':_0x5ba928,'tablestartUp':_0x520670,'tablestartUpShort':_0x53e6e6,'basedir':_0x28c3b7,'Primary':_0x3189a,'Fields':_0x399eb2,'Comment':_0x568353,'moduleName':_0x4fc078}),await repository({'tablestartUp':_0x520670,'tablestartUpShort':_0x53e6e6,'basedir':_0x28c3b7,'Comment':_0x568353,'moduleName':_0x4fc078});}exports[a6_0xaa61df(0xd5)]=default_1;async function entity({tablename:_0x30a2d5,tablestartUp:_0x1f6a78,tablestartUpShort:_0x18ca98,basedir:_0x180d5c,Primary:_0x1615e2,Fields:_0x266cf0,Comment:_0x115104,moduleName:_0x36ed38}){const _0x4e96ab=a6_0xaa61df,_0x59639a=_0x180d5c+(_0x4e96ab(0x8f)+_0x18ca98+_0x4e96ab(0xd9));if(!fs[_0x4e96ab(0xa4)](_0x59639a)){let _0x1ba4c5='',_0x2cfcae='',_0x22d86f=[_0x4e96ab(0xb8),_0x4e96ab(0xc6),_0x4e96ab(0xc9)][_0x4e96ab(0x74)]((0x0,helper_1['getProp'])(_0x1615e2[_0x4e96ab(0x83)]))==-0x1;_0x22d86f?(_0x1ba4c5+=_0x4e96ab(0x8c),_0x1ba4c5+='\x20\x20\x20\x20'+_0x1615e2[_0x4e96ab(0x92)]+':\x20number;\x0a\x0a'):(_0x1ba4c5+='\x20\x20\x20\x20@PrimaryColumn({\x20comment:\x20\x27'+(_0x1615e2[_0x4e96ab(0x6e)]||'标识')+_0x4e96ab(0xd7),_0x1ba4c5+=_0x4e96ab(0x7c)+_0x1615e2[_0x4e96ab(0x92)]+':\x20string;\x0a\x0a');for(let _0xb8a5aa in _0x266cf0){let _0x3ee805=_0x266cf0[_0xb8a5aa],_0xd5cd28=(0x0,helper_1[_0x4e96ab(0xa6)])(_0x3ee805['Type']);if(_0x3ee805[_0x4e96ab(0x92)]==_0x4e96ab(0x8e)||_0x3ee805[_0x4e96ab(0x92)]==_0x4e96ab(0x8d)||_0x3ee805['Field']==_0x4e96ab(0x7a)||_0x3ee805[_0x4e96ab(0x92)]=='deleted_at')continue;if(_0xd5cd28=='json')_0x1ba4c5+=_0x4e96ab(0xcf)+_0x3ee805[_0x4e96ab(0x6e)]+_0x4e96ab(0xbd)+(_0x3ee805[_0x4e96ab(0xa7)]==_0x4e96ab(0xbb)?_0x4e96ab(0xce):_0x4e96ab(0x82))+_0x4e96ab(0xc7),_0x1ba4c5+=_0x4e96ab(0x7c)+_0x3ee805[_0x4e96ab(0x92)]+_0x4e96ab(0x87);else{if(_0xd5cd28=='enum'){let _0x1559e9=(0x0,helper_1['getEnum'])(_0x3ee805[_0x4e96ab(0x83)]);_0x1ba4c5+=_0x4e96ab(0x7f)+_0x3ee805[_0x4e96ab(0x6e)]+'\x27,\x20default:\x20\x27'+(_0x1559e9[0x0]||'')+'\x27,\x20enum:\x20[\x27'+_0x1559e9['join'](_0x4e96ab(0xa5))+_0x4e96ab(0x99),_0x1ba4c5+=_0x4e96ab(0x7c)+_0x3ee805[_0x4e96ab(0x92)]+':\x20\x27'+_0x1559e9[_0x4e96ab(0x96)](_0x4e96ab(0xd0))+_0x4e96ab(0xaf);}else{if(_0xd5cd28==_0x4e96ab(0x9f))_0x1ba4c5+=_0x4e96ab(0x94)+_0x3ee805[_0x4e96ab(0x6e)]+_0x4e96ab(0x93)+(_0x3ee805[_0x4e96ab(0xa7)]==_0x4e96ab(0xbb)?'true':_0x4e96ab(0x82))+_0x4e96ab(0xd8),_0x1ba4c5+=_0x4e96ab(0x7c)+_0x3ee805['Field']+_0x4e96ab(0x91);else{if(_0xd5cd28==_0x4e96ab(0xae))_0x1ba4c5+=_0x4e96ab(0xb6)+_0x3ee805[_0x4e96ab(0x6e)]+_0x4e96ab(0x93)+(_0x3ee805[_0x4e96ab(0xa7)]==_0x4e96ab(0xbb)?_0x4e96ab(0xce):_0x4e96ab(0x82))+'\x20})\x0a',_0x1ba4c5+='\x20\x20\x20\x20'+_0x3ee805[_0x4e96ab(0x92)]+_0x4e96ab(0x91);else{if(_0xd5cd28==_0x4e96ab(0x7b))_0x1ba4c5+=_0x4e96ab(0xc4)+_0x3ee805[_0x4e96ab(0x6e)]+_0x4e96ab(0x76)+(_0x3ee805['Null']==_0x4e96ab(0xbb)?_0x4e96ab(0xce):'false')+_0x4e96ab(0xd8),_0x1ba4c5+=_0x4e96ab(0x7c)+_0x3ee805[_0x4e96ab(0x92)]+':\x20number;\x0a\x0a';else{if(_0xd5cd28==_0x4e96ab(0xaa))_0x1ba4c5+=_0x4e96ab(0xa8)+_0x3ee805[_0x4e96ab(0x6e)]+_0x4e96ab(0xbd)+(_0x3ee805['Null']=='YES'?'true':_0x4e96ab(0x82))+_0x4e96ab(0xc7),_0x1ba4c5+='\x20\x20\x20\x20'+_0x3ee805[_0x4e96ab(0x92)]+_0x4e96ab(0x91);else{if(_0xd5cd28=='tinyint')_0x1ba4c5+=_0x4e96ab(0x7e)+_0x3ee805[_0x4e96ab(0x6e)]+_0x4e96ab(0xbd)+(_0x3ee805[_0x4e96ab(0xa7)]==_0x4e96ab(0xbb)?_0x4e96ab(0xce):'false')+_0x4e96ab(0xc7),_0x1ba4c5+=_0x4e96ab(0x7c)+_0x3ee805[_0x4e96ab(0x92)]+':\x20number;\x0a\x0a';else{if(_0xd5cd28=='date')_0x1ba4c5+=_0x4e96ab(0xc2)+_0x3ee805[_0x4e96ab(0x6e)]+_0x4e96ab(0xbd)+(_0x3ee805[_0x4e96ab(0xa7)]==_0x4e96ab(0xbb)?'true':'false')+_0x4e96ab(0xd8),_0x1ba4c5+=_0x4e96ab(0x7c)+_0x3ee805[_0x4e96ab(0x92)]+_0x4e96ab(0xad);else{if(_0xd5cd28==_0x4e96ab(0xdc))_0x1ba4c5+=_0x4e96ab(0x70)+_0x3ee805[_0x4e96ab(0x6e)]+_0x4e96ab(0xbd)+(_0x3ee805[_0x4e96ab(0xa7)]==_0x4e96ab(0xbb)?_0x4e96ab(0xce):_0x4e96ab(0x82))+'\x20})\x0a',_0x1ba4c5+=_0x4e96ab(0x7c)+_0x3ee805[_0x4e96ab(0x92)]+_0x4e96ab(0xad);else{if(_0xd5cd28==_0x4e96ab(0xc5))_0x1ba4c5+=_0x4e96ab(0x9e)+_0x3ee805[_0x4e96ab(0x6e)]+_0x4e96ab(0xbd)+(_0x3ee805[_0x4e96ab(0xa7)]=='YES'?_0x4e96ab(0xce):_0x4e96ab(0x82))+'\x20})\x0a',_0x1ba4c5+='\x20\x20\x20\x20'+_0x3ee805['Field']+_0x4e96ab(0xad);else{if(_0xd5cd28==_0x4e96ab(0xb8))_0x1ba4c5+=_0x4e96ab(0x81)+_0x3ee805[_0x4e96ab(0x6e)]+_0x4e96ab(0xbd)+(_0x3ee805[_0x4e96ab(0xa7)]==_0x4e96ab(0xbb)?_0x4e96ab(0xce):'false')+_0x4e96ab(0xc7),_0x1ba4c5+='\x20\x20\x20\x20'+_0x3ee805['Field']+_0x4e96ab(0xb0);else{if(_0xd5cd28==_0x4e96ab(0xd2))_0x1ba4c5+='\x20\x20\x20\x20@Column(\x27longtext\x27,\x20{\x20comment:\x20\x27'+_0x3ee805['Comment']+'\x27,\x20nullable:\x20'+(_0x3ee805['Null']=='YES'?_0x4e96ab(0xce):_0x4e96ab(0x82))+',\x20unique:\x20false\x20})\x0a',_0x1ba4c5+=_0x4e96ab(0x7c)+_0x3ee805[_0x4e96ab(0x92)]+':\x20string;\x0a\x0a';else _0xd5cd28==_0x4e96ab(0xc6)?(_0x1ba4c5+=_0x4e96ab(0xcd)+_0x3ee805[_0x4e96ab(0x6e)]+_0x4e96ab(0xbd)+(_0x3ee805[_0x4e96ab(0xa7)]==_0x4e96ab(0xbb)?_0x4e96ab(0xce):_0x4e96ab(0x82))+_0x4e96ab(0xc7),_0x1ba4c5+=_0x4e96ab(0x7c)+_0x3ee805[_0x4e96ab(0x92)]+':\x20string;\x0a\x0a'):(_0x1ba4c5+='\x20\x20\x20\x20@Column({\x20comment:\x20\x27'+_0x3ee805[_0x4e96ab(0x6e)]+_0x4e96ab(0xbd)+(_0x3ee805[_0x4e96ab(0xa7)]==_0x4e96ab(0xbb)?_0x4e96ab(0xce):'false')+_0x4e96ab(0xc7),_0x1ba4c5+=_0x4e96ab(0x7c)+_0x3ee805[_0x4e96ab(0x92)]+_0x4e96ab(0xb0));}}}}}}}}}}}}_0x2cfcae+=_0x4e96ab(0x84),_0x2cfcae+='import\x20{\x20CreateDateColumn,\x20UpdateDateColumn,\x20DeleteDateColumn\x20}\x20from\x20\x27@anncic-api/typeorm\x27;\x0a',_0x2cfcae+='import\x20{\x20ProvideEntity,\x20ProvideSearch,\x20'+(_0x22d86f?_0x4e96ab(0xc0):_0x4e96ab(0x89))+_0x4e96ab(0x9a),_0x2cfcae+=_0x4e96ab(0x72)+_0x1f6a78+_0x4e96ab(0xc3)+(typeof _0x36ed38==_0x4e96ab(0xc9)?_0x4e96ab(0x79)+_0x36ed38:_0x4e96ab(0x8a))+'/entities/'+_0x18ca98+_0x4e96ab(0x9b),_0x2cfcae+='/**\x0a',_0x2cfcae+=_0x4e96ab(0xac)+_0x115104+_0x4e96ab(0xdd),_0x2cfcae+='\x20*\x20**/\x0a',_0x2cfcae+=_0x4e96ab(0xc8)+_0x1f6a78+'Search)\x0a',_0x2cfcae+='@ProvideEntity({\x20tableName:\x20\x27'+_0x30a2d5+'\x27\x20},\x20{\x20orderBy:\x20{\x20displayorder:\x20\x27DESC\x27\x20}\x20})\x0a',_0x2cfcae+=_0x4e96ab(0x9c)+_0x1f6a78+_0x4e96ab(0x71),_0x2cfcae+=_0x4e96ab(0xb3),_0x2cfcae+=_0x4e96ab(0xb1),_0x2cfcae+=_0x4e96ab(0xbf),_0x2cfcae+=_0x4e96ab(0xb2),_0x2cfcae+=_0x4e96ab(0xbe),_0x2cfcae+=_0x4e96ab(0xa2),_0x2cfcae+=_0x4e96ab(0x8b),_0x2cfcae+='\x20\x20\x20\x20@DeleteDateColumn({\x20comment:\x20\x27删除时间\x27,\x20type:\x20\x27timestamp\x27,\x20select:\x20false\x20})\x0a',_0x2cfcae+=_0x4e96ab(0x77),_0x2cfcae+='}',_0x2cfcae=_0x2cfcae[_0x4e96ab(0x86)]('%column%',_0x1ba4c5),!fs[_0x4e96ab(0xa4)]((0x0,path_1[_0x4e96ab(0xa9)])(_0x59639a))&&fs[_0x4e96ab(0xdb)]((0x0,path_1['dirname'])(_0x59639a),{'recursive':!![]}),fs[_0x4e96ab(0xd3)](_0x59639a,_0x2cfcae,_0x4e96ab(0xab));}}async function repository({tablestartUp:_0x2b3080,tablestartUpShort:_0x38560a,basedir:_0x416e7b,Comment:_0x2c6963,moduleName:_0x3ce24d}){const _0xbea107=a6_0xaa61df,_0x4f09e8=_0x416e7b+('/entities/'+_0x38560a+_0xbea107(0xd6));if(!fs[_0xbea107(0xa4)](_0x4f09e8)){let _0x20b234='';_0x20b234+=_0xbea107(0xda),_0x20b234+=_0xbea107(0xac)+_0x2c6963+_0xbea107(0xbc),_0x20b234+=_0xbea107(0x98),_0x20b234+=_0xbea107(0x88),_0x20b234+='import\x20{\x20'+_0x2b3080+_0xbea107(0xd4)+(typeof _0x3ce24d=='string'?'@/apps/'+_0x3ce24d:_0xbea107(0x8a))+_0xbea107(0x8f)+_0x38560a+'/enum\x27;\x0a',_0x20b234+='import\x20{\x20'+_0x2b3080+_0xbea107(0x9d)+(typeof _0x3ce24d==_0xbea107(0xc9)?_0xbea107(0x79)+_0x3ce24d:_0xbea107(0x8a))+'/entities/'+_0x38560a+_0xbea107(0xb5),_0x20b234+=_0xbea107(0xb7)+_0x2b3080+_0xbea107(0x75)+_0x2b3080+_0xbea107(0x73),_0x20b234+=_0xbea107(0xba)+_0x2b3080+_0xbea107(0xb4),_0x20b234+='export\x20class\x20'+_0x2b3080+'\x20extends\x20Repository<'+_0x2b3080+_0xbea107(0xcc),_0x20b234+='}',!fs['existsSync']((0x0,path_1[_0xbea107(0xa9)])(_0x4f09e8))&&fs[_0xbea107(0xdb)]((0x0,path_1[_0xbea107(0xa9)])(_0x4f09e8),{'recursive':!![]}),fs[_0xbea107(0xd3)](_0x4f09e8,_0x20b234,'utf-8');}}
|
|
1
|
+
const a6_0x174a4a=a6_0x31d9;function a6_0x44e9(){const _0x2f599b=['\x20\x20\x20\x20@Column(\x27json\x27,\x20{\x20comment:\x20\x27','PrimaryColumn','false','630078mQvFfp','\x27;\x0a\x0a','\x27\x20})\x0a','replace','\x20\x20\x20\x20@DeleteDateColumn({\x20comment:\x20\x27删除时间\x27,\x20type:\x20\x27timestamp\x27,\x20select:\x20false\x20})\x0a','writeFileSync','\x27,\x20precision:\x2010,\x20scale:\x202,\x20default:\x200.00,\x20nullable:\x20','Field','\x20\x20\x20\x20@Column(\x27datetime\x27,\x20{\x20comment:\x20\x27','\x20})\x0a','\x27]\x20})\x0a','Search)\x0a','\x27,\x20enum:\x20[\x27','\x20\x20\x20\x20@PrimaryColumn({\x20comment:\x20\x27','11417xwaqCK','Entity,\x20','indexOf','Null','date','number',':\x20Date;\x0a\x0a','1895418MNluUp','/**\x0a','string','\x20*\x20**/\x0a','-实体\x0a','Search\x20}\x20from\x20\x27','\x20\x20\x20\x20@Column({\x20comment:\x20\x27','Entity\x20{\x0a\x0a','getEnum','\x27,\x20precision:\x2024,\x20scale:\x202,\x20default:\x200.00,\x20nullable:\x20','\x20\x20\x20\x20@Column(\x27double\x27,\x20{\x20comment:\x20\x27','/entity\x27;\x0a','\x20\x20\x20\x20@Column({\x20comment:\x20\x27默认显示排序\x27,\x20nullable:\x20true,\x20unique:\x20false\x20})\x0a','import\x20{\x20ProvideEntity,\x20ProvideSearch,\x20','import\x20{\x20','mediumtext',':\x20string;\x0a\x0a','datetime','decimal','__esModule','path','/index.ts','\x20\x20\x20\x20@Column(\x27timestamp\x27,\x20{\x20comment:\x20\x27','tinyint','//\x20import\x20{\x20ManyToOne,\x20JoinColumn\x20}\x20from\x20\x27@anncic-api/typeorm\x27;\x0a','text','apply','Entity)\x0a','getProp','Enum\x20}\x20from\x20\x27','@/apps/',',\x20unique:\x20false\x20})\x0a','(((.+)+)+)+$','import\x20{\x20CreateDateColumn,\x20UpdateDateColumn,\x20DeleteDateColumn\x20}\x20from\x20\x27@anncic-api/typeorm\x27;\x0a','\x20\x20\x20\x20@Column(\x27decimal\x27,\x20{\x20comment:\x20\x27','/search\x27;\x0a\x0a','true','665810OXJkjS','@/app','/entities/',':\x20number;\x0a\x0a','Entity>{\x0a\x0a','274148vIFVtx','\x20\x20\x20\x20updated_at:\x20Date;\x0a\x0a','float','\x20\x20\x20\x20@Column(\x27enum\x27,\x20{\x20comment:\x20\x27','export\x20{\x20','36660SNzDSx','export\x20class\x20',',\x20Column\x20}\x20from\x20\x27@anncic-api/typeorm\x27;\x0a\x0a','\x27\x20},\x20{\x20orderBy:\x20{\x20displayorder:\x20\x27DESC\x27\x20}\x20})\x0a','utf-8','displayorder','@ProvideEntity({\x20tableName:\x20\x27','defineProperty','\x27,\x20nullable:\x20','YES','\x20\x20\x20\x20@Column(\x27text\x27,\x20{\x20comment:\x20\x27','existsSync','created_at','deleted_at','dirname','223935PCIYzN','default','toString','longtext','152opFHst','\x20extends\x20Repository<','Comment','@ProvideSearch(','\x20\x20\x20\x20@UpdateDateColumn({\x20comment:\x20\x27修改时间\x27,\x20type:\x20\x27timestamp\x27\x20})\x0a',':\x20\x27','\x20\x20\x20\x20','\x27,\x20\x27','2XxryVq','Enum\x20}\x0a\x0a','\x20\x20\x20\x20created_at:\x20Date;\x0a\x0a','@ProvideRepository(','../helper','\x20*\x20','json','\x27,\x20default:\x20\x27','enum','search','import\x20{\x20ProvideRepository,\x20Repository\x20}\x20from\x20\x27@anncic-api/typeorm\x27;\x0a','Type','\x20\x20\x20\x20@Column(\x27float\x27,\x20{\x20comment:\x20\x27','%column%','updated_at','join'];a6_0x44e9=function(){return _0x2f599b;};return a6_0x44e9();}function a6_0x31d9(_0x5ef5df,_0x526ad4){const _0x491863=a6_0x44e9();return a6_0x31d9=function(_0x374bd9,_0x28b146){_0x374bd9=_0x374bd9-0x105;let _0x44e9fd=_0x491863[_0x374bd9];return _0x44e9fd;},a6_0x31d9(_0x5ef5df,_0x526ad4);}(function(_0x53a662,_0x554f24){const _0x38ffc6=a6_0x31d9,_0x4d941b=_0x53a662();while(!![]){try{const _0x277c1f=parseInt(_0x38ffc6(0x116))/0x1+parseInt(_0x38ffc6(0x136))/0x2*(-parseInt(_0x38ffc6(0x12a))/0x3)+parseInt(_0x38ffc6(0x11b))/0x4+-parseInt(_0x38ffc6(0x111))/0x5+-parseInt(_0x38ffc6(0x149))/0x6+parseInt(_0x38ffc6(0x157))/0x7*(-parseInt(_0x38ffc6(0x12e))/0x8)+parseInt(_0x38ffc6(0x15e))/0x9;if(_0x277c1f===_0x554f24)break;else _0x4d941b['push'](_0x4d941b['shift']());}catch(_0x3fc834){_0x4d941b['push'](_0x4d941b['shift']());}}}(a6_0x44e9,0x24a5a));const a6_0x28b146=(function(){let _0x39b21e=!![];return function(_0x2e9ce4,_0x403a93){const _0x2617c6=_0x39b21e?function(){const _0x5e06fa=a6_0x31d9;if(_0x403a93){const _0xaeb3a5=_0x403a93[_0x5e06fa(0x106)](_0x2e9ce4,arguments);return _0x403a93=null,_0xaeb3a5;}}:function(){};return _0x39b21e=![],_0x2617c6;};}()),a6_0x374bd9=a6_0x28b146(this,function(){const _0x1fc801=a6_0x31d9;return a6_0x374bd9[_0x1fc801(0x12c)]()[_0x1fc801(0x13f)](_0x1fc801(0x10c))['toString']()['constructor'](a6_0x374bd9)[_0x1fc801(0x13f)](_0x1fc801(0x10c));});a6_0x374bd9();'use strict';Object[a6_0x174a4a(0x122)](exports,a6_0x174a4a(0x171),{'value':!![]});const fs=require('fs'),path_1=require(a6_0x174a4a(0x172)),helper_1=require(a6_0x174a4a(0x13a));async function default_1({tablename:_0x45ab34,tablestartUp:_0x376269,tablestartUpShort:_0x31f9af,basedir:_0x36d9ab,Primary:_0x357a65,Fields:_0x5cbe5a,Comment:_0x29ebfd,moduleName:_0x40b345}){await entity({'tablename':_0x45ab34,'tablestartUp':_0x376269,'tablestartUpShort':_0x31f9af,'basedir':_0x36d9ab,'Primary':_0x357a65,'Fields':_0x5cbe5a,'Comment':_0x29ebfd,'moduleName':_0x40b345}),await repository({'tablestartUp':_0x376269,'tablestartUpShort':_0x31f9af,'basedir':_0x36d9ab,'Comment':_0x29ebfd,'moduleName':_0x40b345});}exports[a6_0x174a4a(0x12b)]=default_1;async function entity({tablename:_0x417ba0,tablestartUp:_0x2f4dbc,tablestartUpShort:_0xea81da,basedir:_0x113e20,Primary:_0x5b56fe,Fields:_0x58fd4d,Comment:_0x2690ea,moduleName:_0x1aa5da}){const _0x4054f9=a6_0x174a4a,_0x3b8b23=_0x113e20+(_0x4054f9(0x113)+_0xea81da+'/entity.ts');if(!fs[_0x4054f9(0x126)](_0x3b8b23)){let _0x4db6b4='',_0x35448e='',_0x56015c=[_0x4054f9(0x105),_0x4054f9(0x16d),_0x4054f9(0x160)][_0x4054f9(0x159)]((0x0,helper_1[_0x4054f9(0x108)])(_0x5b56fe[_0x4054f9(0x141)]))==-0x1;_0x56015c?(_0x4db6b4+='\x20\x20\x20\x20@PrimaryGeneratedColumn()\x0a',_0x4db6b4+=_0x4054f9(0x134)+_0x5b56fe[_0x4054f9(0x150)]+_0x4054f9(0x114)):(_0x4db6b4+=_0x4054f9(0x156)+(_0x5b56fe['Comment']||'标识')+_0x4054f9(0x14b),_0x4db6b4+=_0x4054f9(0x134)+_0x5b56fe[_0x4054f9(0x150)]+_0x4054f9(0x16e));for(let _0x17e74e in _0x58fd4d){let _0x28feb9=_0x58fd4d[_0x17e74e],_0x330079=(0x0,helper_1[_0x4054f9(0x108)])(_0x28feb9[_0x4054f9(0x141)]);if(_0x28feb9[_0x4054f9(0x150)]==_0x4054f9(0x120)||_0x28feb9[_0x4054f9(0x150)]==_0x4054f9(0x127)||_0x28feb9['Field']==_0x4054f9(0x144)||_0x28feb9[_0x4054f9(0x150)]==_0x4054f9(0x128))continue;if(_0x330079==_0x4054f9(0x13c))_0x4db6b4+=_0x4054f9(0x146)+_0x28feb9[_0x4054f9(0x130)]+_0x4054f9(0x123)+(_0x28feb9[_0x4054f9(0x15a)]=='YES'?_0x4054f9(0x110):_0x4054f9(0x148))+_0x4054f9(0x10b),_0x4db6b4+=_0x4054f9(0x134)+_0x28feb9[_0x4054f9(0x150)]+':\x20any\x20|\x20any[];\x0a\x0a';else{if(_0x330079==_0x4054f9(0x13e)){let _0x51bbb2=(0x0,helper_1[_0x4054f9(0x166)])(_0x28feb9['Type']);_0x4db6b4+=_0x4054f9(0x119)+_0x28feb9[_0x4054f9(0x130)]+_0x4054f9(0x13d)+(_0x51bbb2[0x0]||'')+_0x4054f9(0x155)+_0x51bbb2[_0x4054f9(0x145)](_0x4054f9(0x135))+_0x4054f9(0x153),_0x4db6b4+=_0x4054f9(0x134)+_0x28feb9['Field']+_0x4054f9(0x133)+_0x51bbb2[_0x4054f9(0x145)]('\x27\x20|\x20\x27')+_0x4054f9(0x14a);}else{if(_0x330079==_0x4054f9(0x118))_0x4db6b4+=_0x4054f9(0x142)+_0x28feb9[_0x4054f9(0x130)]+'\x27,\x20precision:\x2010,\x20scale:\x202,\x20default:\x200.00,\x20nullable:\x20'+(_0x28feb9[_0x4054f9(0x15a)]==_0x4054f9(0x124)?_0x4054f9(0x110):_0x4054f9(0x148))+'\x20})\x0a',_0x4db6b4+=_0x4054f9(0x134)+_0x28feb9[_0x4054f9(0x150)]+_0x4054f9(0x114);else{if(_0x330079=='double')_0x4db6b4+=_0x4054f9(0x168)+_0x28feb9[_0x4054f9(0x130)]+_0x4054f9(0x14f)+(_0x28feb9[_0x4054f9(0x15a)]=='YES'?_0x4054f9(0x110):_0x4054f9(0x148))+_0x4054f9(0x152),_0x4db6b4+=_0x4054f9(0x134)+_0x28feb9[_0x4054f9(0x150)]+':\x20number;\x0a\x0a';else{if(_0x330079==_0x4054f9(0x170))_0x4db6b4+=_0x4054f9(0x10e)+_0x28feb9[_0x4054f9(0x130)]+_0x4054f9(0x167)+(_0x28feb9[_0x4054f9(0x15a)]==_0x4054f9(0x124)?_0x4054f9(0x110):_0x4054f9(0x148))+_0x4054f9(0x152),_0x4db6b4+=_0x4054f9(0x134)+_0x28feb9[_0x4054f9(0x150)]+':\x20number;\x0a\x0a';else{if(_0x330079==_0x4054f9(0x15c))_0x4db6b4+=_0x4054f9(0x164)+_0x28feb9['Comment']+_0x4054f9(0x123)+(_0x28feb9[_0x4054f9(0x15a)]==_0x4054f9(0x124)?_0x4054f9(0x110):_0x4054f9(0x148))+_0x4054f9(0x10b),_0x4db6b4+=_0x4054f9(0x134)+_0x28feb9[_0x4054f9(0x150)]+':\x20number;\x0a\x0a';else{if(_0x330079==_0x4054f9(0x175))_0x4db6b4+='\x20\x20\x20\x20@Column(\x27tinyint\x27,\x20{\x20comment:\x20\x27'+_0x28feb9[_0x4054f9(0x130)]+_0x4054f9(0x123)+(_0x28feb9[_0x4054f9(0x15a)]==_0x4054f9(0x124)?_0x4054f9(0x110):_0x4054f9(0x148))+_0x4054f9(0x10b),_0x4db6b4+='\x20\x20\x20\x20'+_0x28feb9['Field']+_0x4054f9(0x114);else{if(_0x330079==_0x4054f9(0x15b))_0x4db6b4+='\x20\x20\x20\x20@Column(\x27date\x27,\x20{\x20comment:\x20\x27'+_0x28feb9[_0x4054f9(0x130)]+_0x4054f9(0x123)+(_0x28feb9[_0x4054f9(0x15a)]=='YES'?_0x4054f9(0x110):_0x4054f9(0x148))+_0x4054f9(0x152),_0x4db6b4+=_0x4054f9(0x134)+_0x28feb9[_0x4054f9(0x150)]+_0x4054f9(0x15d);else{if(_0x330079==_0x4054f9(0x16f))_0x4db6b4+=_0x4054f9(0x151)+_0x28feb9[_0x4054f9(0x130)]+'\x27,\x20nullable:\x20'+(_0x28feb9[_0x4054f9(0x15a)]==_0x4054f9(0x124)?_0x4054f9(0x110):_0x4054f9(0x148))+_0x4054f9(0x152),_0x4db6b4+='\x20\x20\x20\x20'+_0x28feb9[_0x4054f9(0x150)]+_0x4054f9(0x15d);else{if(_0x330079=='timestamp')_0x4db6b4+=_0x4054f9(0x174)+_0x28feb9['Comment']+_0x4054f9(0x123)+(_0x28feb9[_0x4054f9(0x15a)]==_0x4054f9(0x124)?'true':_0x4054f9(0x148))+_0x4054f9(0x152),_0x4db6b4+=_0x4054f9(0x134)+_0x28feb9['Field']+_0x4054f9(0x15d);else{if(_0x330079==_0x4054f9(0x105))_0x4db6b4+=_0x4054f9(0x125)+_0x28feb9[_0x4054f9(0x130)]+'\x27,\x20nullable:\x20'+(_0x28feb9[_0x4054f9(0x15a)]==_0x4054f9(0x124)?_0x4054f9(0x110):_0x4054f9(0x148))+_0x4054f9(0x10b),_0x4db6b4+=_0x4054f9(0x134)+_0x28feb9[_0x4054f9(0x150)]+_0x4054f9(0x16e);else{if(_0x330079==_0x4054f9(0x12d))_0x4db6b4+='\x20\x20\x20\x20@Column(\x27longtext\x27,\x20{\x20comment:\x20\x27'+_0x28feb9[_0x4054f9(0x130)]+_0x4054f9(0x123)+(_0x28feb9[_0x4054f9(0x15a)]==_0x4054f9(0x124)?'true':_0x4054f9(0x148))+_0x4054f9(0x10b),_0x4db6b4+='\x20\x20\x20\x20'+_0x28feb9[_0x4054f9(0x150)]+':\x20string;\x0a\x0a';else _0x330079==_0x4054f9(0x16d)?(_0x4db6b4+='\x20\x20\x20\x20@Column(\x27mediumtext\x27,\x20{\x20comment:\x20\x27'+_0x28feb9[_0x4054f9(0x130)]+'\x27,\x20nullable:\x20'+(_0x28feb9['Null']=='YES'?'true':_0x4054f9(0x148))+_0x4054f9(0x10b),_0x4db6b4+=_0x4054f9(0x134)+_0x28feb9[_0x4054f9(0x150)]+':\x20string;\x0a\x0a'):(_0x4db6b4+=_0x4054f9(0x164)+_0x28feb9[_0x4054f9(0x130)]+_0x4054f9(0x123)+(_0x28feb9[_0x4054f9(0x15a)]=='YES'?_0x4054f9(0x110):_0x4054f9(0x148))+_0x4054f9(0x10b),_0x4db6b4+=_0x4054f9(0x134)+_0x28feb9[_0x4054f9(0x150)]+':\x20string;\x0a\x0a');}}}}}}}}}}}}_0x35448e+=_0x4054f9(0x176),_0x35448e+=_0x4054f9(0x10d),_0x35448e+=_0x4054f9(0x16b)+(_0x56015c?'PrimaryGeneratedColumn':_0x4054f9(0x147))+_0x4054f9(0x11d),_0x35448e+=_0x4054f9(0x16c)+_0x2f4dbc+_0x4054f9(0x163)+(typeof _0x1aa5da=='string'?_0x4054f9(0x10a)+_0x1aa5da:'@/app')+_0x4054f9(0x113)+_0xea81da+_0x4054f9(0x10f),_0x35448e+=_0x4054f9(0x15f),_0x35448e+=_0x4054f9(0x13b)+_0x2690ea+_0x4054f9(0x162),_0x35448e+=_0x4054f9(0x161),_0x35448e+=_0x4054f9(0x131)+_0x2f4dbc+_0x4054f9(0x154),_0x35448e+=_0x4054f9(0x121)+_0x417ba0+_0x4054f9(0x11e),_0x35448e+=_0x4054f9(0x11c)+_0x2f4dbc+_0x4054f9(0x165),_0x35448e+=_0x4054f9(0x143),_0x35448e+=_0x4054f9(0x16a),_0x35448e+='\x20\x20\x20\x20displayorder:\x20number;\x0a\x0a',_0x35448e+='\x20\x20\x20\x20@CreateDateColumn({\x20comment:\x20\x27创建时间\x27,\x20type:\x20\x27timestamp\x27\x20})\x0a',_0x35448e+=_0x4054f9(0x138),_0x35448e+=_0x4054f9(0x132),_0x35448e+=_0x4054f9(0x117),_0x35448e+=_0x4054f9(0x14d),_0x35448e+='\x20\x20\x20\x20deleted_at:\x20Date;\x0a\x0a',_0x35448e+='}',_0x35448e=_0x35448e[_0x4054f9(0x14c)]('%column%',_0x4db6b4),!fs['existsSync']((0x0,path_1[_0x4054f9(0x129)])(_0x3b8b23))&&fs['mkdirSync']((0x0,path_1[_0x4054f9(0x129)])(_0x3b8b23),{'recursive':!![]}),fs[_0x4054f9(0x14e)](_0x3b8b23,_0x35448e,_0x4054f9(0x11f));}}async function repository({tablestartUp:_0x535775,tablestartUpShort:_0x2ea2da,basedir:_0x2cd06f,Comment:_0x33e8d9,moduleName:_0x22b5eb}){const _0x288771=a6_0x174a4a,_0xd07339=_0x2cd06f+(_0x288771(0x113)+_0x2ea2da+_0x288771(0x173));if(!fs[_0x288771(0x126)](_0xd07339)){let _0x267d1b='';_0x267d1b+=_0x288771(0x15f),_0x267d1b+=_0x288771(0x13b)+_0x33e8d9+'-实体处理器\x0a',_0x267d1b+='\x20*\x20**/\x0a',_0x267d1b+=_0x288771(0x140),_0x267d1b+='import\x20{\x20'+_0x535775+_0x288771(0x109)+(typeof _0x22b5eb==_0x288771(0x160)?_0x288771(0x10a)+_0x22b5eb:_0x288771(0x112))+'/entities/'+_0x2ea2da+'/enum\x27;\x0a',_0x267d1b+=_0x288771(0x16c)+_0x535775+'Entity\x20}\x20from\x20\x27'+(typeof _0x22b5eb==_0x288771(0x160)?_0x288771(0x10a)+_0x22b5eb:_0x288771(0x112))+_0x288771(0x113)+_0x2ea2da+_0x288771(0x169),_0x267d1b+=_0x288771(0x11a)+_0x535775+_0x288771(0x158)+_0x535775+_0x288771(0x137),_0x267d1b+=_0x288771(0x139)+_0x535775+_0x288771(0x107),_0x267d1b+='export\x20class\x20'+_0x535775+_0x288771(0x12f)+_0x535775+_0x288771(0x115),_0x267d1b+='}',!fs[_0x288771(0x126)]((0x0,path_1['dirname'])(_0xd07339))&&fs['mkdirSync']((0x0,path_1[_0x288771(0x129)])(_0xd07339),{'recursive':!![]}),fs[_0x288771(0x14e)](_0xd07339,_0x267d1b,'utf-8');}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a7_0x57c1(){const _0x319617=['\x20\x20\x20\x20@Inject()\x20protected\x20EventService:\x20EventService;\x0a\x0a',';\x0a\x0a\x0a','@Event()\x0a','search','import\x20{\x20','5195358VDguge','1152976SURyTP','defineProperty','8kuOMdD','default',')\x20protected\x20','(((.+)+)+)+$','3210683zMitfg','5ylUhmR','toString','export\x20class\x20','\x20\x20\x20\x20@InjectRepository(','existsSync','constructor','1403988QewDBj','2mUACCI','apply','dirname','__esModule','156aNhGEv','/entities/','3wKfTMw','@/apps/','path','912358TebOai','Event\x20{\x0a\x0a','\x27;\x0a\x0a','3766206MPqZUD','utf-8','2722530CmQIsa'];a7_0x57c1=function(){return _0x319617;};return a7_0x57c1();}const a7_0x10bbff=a7_0x21cd;(function(_0x26ee7d,_0x81a7cf){const _0x13e8fc=a7_0x21cd,_0x1ce973=_0x26ee7d();while(!![]){try{const _0x4972f2=parseInt(_0x13e8fc(0xde))/0x1*(parseInt(_0x13e8fc(0xd5))/0x2)+parseInt(_0x13e8fc(0xdb))/0x3*(-parseInt(_0x13e8fc(0xd4))/0x4)+parseInt(_0x13e8fc(0xce))/0x5*(parseInt(_0x13e8fc(0xe1))/0x6)+parseInt(_0x13e8fc(0xcd))/0x7+-parseInt(_0x13e8fc(0xec))/0x8*(-parseInt(_0x13e8fc(0xe9))/0x9)+-parseInt(_0x13e8fc(0xe3))/0xa+-parseInt(_0x13e8fc(0xea))/0xb*(parseInt(_0x13e8fc(0xd9))/0xc);if(_0x4972f2===_0x81a7cf)break;else _0x1ce973['push'](_0x1ce973['shift']());}catch(_0x36d058){_0x1ce973['push'](_0x1ce973['shift']());}}}(a7_0x57c1,0x90134));const a7_0x141058=(function(){let _0x289df2=!![];return function(_0x217b61,_0x9058e7){const _0x325e28=_0x289df2?function(){const _0x19ee13=a7_0x21cd;if(_0x9058e7){const _0x5ecdcc=_0x9058e7[_0x19ee13(0xd6)](_0x217b61,arguments);return _0x9058e7=null,_0x5ecdcc;}}:function(){};return _0x289df2=![],_0x325e28;};}()),a7_0x465cc7=a7_0x141058(this,function(){const _0x4b8ced=a7_0x21cd;return a7_0x465cc7['toString']()[_0x4b8ced(0xe7)](_0x4b8ced(0xef))[_0x4b8ced(0xcf)]()[_0x4b8ced(0xd3)](a7_0x465cc7)['search'](_0x4b8ced(0xef));});a7_0x465cc7();function a7_0x21cd(_0x41df34,_0x39c4ef){const _0x23fabf=a7_0x57c1();return a7_0x21cd=function(_0x465cc7,_0x141058){_0x465cc7=_0x465cc7-0xcd;let _0x57c1b1=_0x23fabf[_0x465cc7];return _0x57c1b1;},a7_0x21cd(_0x41df34,_0x39c4ef);}'use strict';Object[a7_0x10bbff(0xeb)](exports,a7_0x10bbff(0xd8),{'value':!![]});const fs=require('fs'),path_1=require(a7_0x10bbff(0xdd));async function default_1({tablestartUp:_0x52636c,tablestartUpShort:_0x269ebd,basedir:_0x2bcaec,moduleName:_0x40c1cd}){const _0x39bb10=a7_0x10bbff,_0x206fa7=_0x2bcaec+(_0x39bb10(0xda)+_0x269ebd+'/events.ts');if(!fs[_0x39bb10(0xd2)](_0x206fa7)){let _0x58c39e='';_0x58c39e+='import\x20{\x20Event,\x20EventService\x20}\x20from\x20\x27@anncic-api/event\x27;\x0a',_0x58c39e+='import\x20{\x20Inject,\x20InjectRepository\x20}\x20from\x20\x27@anncic-api/typeorm\x27;\x0a\x0a',_0x58c39e+=_0x39bb10(0xe8)+_0x52636c+'\x20}\x20from\x20\x27'+(typeof _0x40c1cd=='string'?_0x39bb10(0xdc)+_0x40c1cd:'@/app')+_0x39bb10(0xda)+_0x269ebd+_0x39bb10(0xe0),_0x58c39e+=_0x39bb10(0xe6),_0x58c39e+=_0x39bb10(0xd0)+_0x52636c+_0x39bb10(0xdf),_0x58c39e+=_0x39bb10(0xe4),_0x58c39e+=_0x39bb10(0xd1)+_0x52636c+_0x39bb10(0xee)+_0x52636c+':\x20'+_0x52636c+_0x39bb10(0xe5),_0x58c39e+='}',!fs[_0x39bb10(0xd2)]((0x0,path_1[_0x39bb10(0xd7)])(_0x206fa7))&&fs['mkdirSync']((0x0,path_1['dirname'])(_0x206fa7),{'recursive':!![]}),fs['writeFileSync'](_0x206fa7,_0x58c39e,_0x39bb10(0xe2));}}exports[a7_0x10bbff(0xed)]=default_1;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a8_0x54e7(){const _0x10b377=['6498HhtRcY','search','\x20\x20\x20\x20\x20\x20\x20\x20}\x0a','DTOUpdate,\x20options:\x20SearchOptions\x20=\x20{})\x20{\x0a','\x20\x20\x20\x20\x20\x20\x20\x20const\x20deletes:\x20any\x20=\x20[],\x20tmpModels\x20=\x20await\x20this.','7805833JNnpTz','\x20\x20\x20\x20/**\x0a','\x20\x20\x20\x20\x20\x20\x20\x20for\x20(let\x20tmpModel\x20of\x20tmpModels)\x20{\x0a','dirname','8vHfYzw','Entity[],\x20number]>\x20{\x0a','12nCiCqB','import\x20{\x20InjectRepository,\x20SearchParams,\x20SearchPaginate,\x20SearchOptions\x20}\x20from\x20\x27@anncic-api/typeorm\x27;\x0a\x0a','\x20\x20\x20\x20\x20\x20\x20\x20const\x20tmpModel\x20=\x20await\x20this.','\x20\x20\x20\x20}\x0a\x0a\x0a','path','.search(conditions,\x20{},\x20options).then(async\x20search\x20=>\x20{\x0a\x0a','string','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20return\x20search.getManyAndCount();\x0a','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20});\x0a','\x20\x20\x20\x20\x20*\x20数据详情\x0a','\x20\x20\x20\x20\x20\x20\x20\x20this.','Error.NOTFIND,\x20{\x20message:\x20\x27','1737186sTzIMa','\x20\x20\x20\x20\x20*\x20添加数据\x0a','\x20*\x20','/entities/','writeFileSync','constructor','\x20\x20\x20\x20\x20*\x20**/\x0a','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20return\x20search.getOneOrFail().catch(()\x20=>\x20{\x0a','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20throw\x20new\x20AnnError(','\x20\x20\x20\x20@Inject()\x20EventService:\x20EventService;\x0a','Entity>,\x20params:\x20','}`.split(\x27,\x27)).getMany();\x0a','/validators/','\x20\x20\x20\x20\x20*\x20修改数据\x0a','apply','toString','\x20\x20\x20\x20\x20\x20\x20\x20return\x20[pagelist,\x20pagetotal];\x0a','.create(params)\x0a\x0a','@/apps/','15310kHSmGv','\x20\x20\x20\x20async\x20list(conditions?:\x20SearchParams<','\x20\x20\x20\x20\x20\x20\x20\x20});\x0a\x0a','/**\x0a','import\x20{\x20CacheService,\x20EventService,\x20ValidatorService\x20}\x20from\x20\x27anncic-api\x27;\x0a','2350735CuDwpT','不存在\x27\x20})\x0a','\x20\x20\x20\x20@Inject()\x20ValidatorService:\x20ValidatorService;\x0a\x0a','DTOCreate\x20}\x20from\x20\x27','28928328DVHdJv','/Create\x27;\x0a','.softRemove(tmpModel))\x0a','@/app','\x20\x20\x20\x20\x20*\x20数据列表\x0a','(((.+)+)+)+$','/Update\x27;\x0a','\x20\x20\x20\x20\x20\x20\x20\x20return\x20await\x20this.','\x20\x20\x20\x20\x20*\x20删除数据\x0a',';\x0a\x0a\x0a','1381WOoIuG','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20deletes.push(await\x20this.','.ts','@Singleton()\x0a','import\x20{\x20','310QSghMh','defineProperty','\x20\x20\x20\x20@InjectRepository(','/exceptions/','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20return\x20search.andWhereInIds(`${','10813176aZEOrP','DTOUpdate\x20}\x20from\x20\x27','\x20\x20\x20\x20async\x20update(conditions:\x20SearchParams<','Field','export\x20class\x20','\x20*\x20**/\x0a','.merge(tmpModel,\x20params);\x0a','existsSync','\x20\x20\x20\x20\x20\x20\x20\x20const\x20tmpModel\x20=\x20this.','__esModule'];a8_0x54e7=function(){return _0x10b377;};return a8_0x54e7();}const a8_0x39ca69=a8_0x42a6;(function(_0x2e453e,_0xec141f){const _0x3fd0fb=a8_0x42a6,_0x305119=_0x2e453e();while(!![]){try{const _0x2bbafe=parseInt(_0x3fd0fb(0x185))/0x1*(-parseInt(_0x3fd0fb(0x18a))/0x2)+parseInt(_0x3fd0fb(0x15f))/0x3+parseInt(_0x3fd0fb(0x1a4))/0x4*(parseInt(_0x3fd0fb(0x177))/0x5)+parseInt(_0x3fd0fb(0x18f))/0x6+parseInt(_0x3fd0fb(0x19e))/0x7*(parseInt(_0x3fd0fb(0x1a2))/0x8)+-parseInt(_0x3fd0fb(0x199))/0x9*(parseInt(_0x3fd0fb(0x172))/0xa)+-parseInt(_0x3fd0fb(0x17b))/0xb;if(_0x2bbafe===_0xec141f)break;else _0x305119['push'](_0x305119['shift']());}catch(_0x10878a){_0x305119['push'](_0x305119['shift']());}}}(a8_0x54e7,0xe9c5d));function a8_0x42a6(_0x205437,_0x2d2b44){const _0x493247=a8_0x54e7();return a8_0x42a6=function(_0x1d1286,_0x175513){_0x1d1286=_0x1d1286-0x156;let _0x54e78d=_0x493247[_0x1d1286];return _0x54e78d;},a8_0x42a6(_0x205437,_0x2d2b44);}const a8_0x175513=(function(){let _0x280fc0=!![];return function(_0xda4ea1,_0x2b9d92){const _0x76646=_0x280fc0?function(){const _0x582477=a8_0x42a6;if(_0x2b9d92){const _0x17b644=_0x2b9d92[_0x582477(0x16d)](_0xda4ea1,arguments);return _0x2b9d92=null,_0x17b644;}}:function(){};return _0x280fc0=![],_0x76646;};}()),a8_0x1d1286=a8_0x175513(this,function(){const _0x1a8570=a8_0x42a6;return a8_0x1d1286[_0x1a8570(0x16e)]()['search'](_0x1a8570(0x180))[_0x1a8570(0x16e)]()[_0x1a8570(0x164)](a8_0x1d1286)[_0x1a8570(0x19a)](_0x1a8570(0x180));});a8_0x1d1286();'use strict';Object[a8_0x39ca69(0x18b)](exports,a8_0x39ca69(0x198),{'value':!![]});const fs=require('fs'),path_1=require(a8_0x39ca69(0x157));async function default_1({controller:_0x1d357a,tablestartUp:_0x4c0ac4,tablestartUpShort:_0x552f15,basedir:_0x3f7869,Primary:_0x5d99c0,Comment:_0x4e3704,moduleName:_0x16b501}){const _0x323796=a8_0x39ca69;if(_0x1d357a){const _0x18cbf3=_0x3f7869+('/handlers/'+_0x552f15+_0x323796(0x187));if(!fs[_0x323796(0x196)](_0x18cbf3)){let _0x4457d7='';_0x4457d7+='import\x20{\x20Inject,\x20Singleton\x20}\x20from\x20\x27anncic-api\x27;\x0a',_0x4457d7+=_0x323796(0x176),_0x4457d7+=_0x323796(0x1a5),_0x4457d7+=_0x323796(0x189)+_0x4c0ac4+'Error\x20}\x20from\x20\x27'+(typeof _0x16b501=='string'?_0x323796(0x171)+_0x16b501:_0x323796(0x17e))+_0x323796(0x18d)+_0x552f15+'\x27;\x0a',_0x4457d7+=_0x323796(0x189)+_0x4c0ac4+_0x323796(0x17a)+(typeof _0x16b501=='string'?'@/apps/'+_0x16b501:'@/app')+_0x323796(0x16b)+_0x552f15+_0x323796(0x17c),_0x4457d7+='import\x20{\x20'+_0x4c0ac4+_0x323796(0x190)+(typeof _0x16b501==_0x323796(0x159)?_0x323796(0x171)+_0x16b501:_0x323796(0x17e))+_0x323796(0x16b)+_0x552f15+_0x323796(0x181),_0x4457d7+=_0x323796(0x189)+_0x4c0ac4+',\x20'+_0x4c0ac4+'Entity\x20}\x20from\x20\x27'+(typeof _0x16b501==_0x323796(0x159)?_0x323796(0x171)+_0x16b501:_0x323796(0x17e))+_0x323796(0x162)+_0x552f15+'\x27;\x0a',_0x4457d7+='\x0a',_0x4457d7+=_0x323796(0x175),_0x4457d7+=_0x323796(0x161)+_0x4e3704+'\x0a',_0x4457d7+=_0x323796(0x194),_0x4457d7+=_0x323796(0x188),_0x4457d7+=_0x323796(0x193)+_0x4c0ac4+'Handler\x20{\x0a\x0a',_0x4457d7+='\x20\x20\x20\x20@Inject()\x20CacheService:\x20CacheService;\x0a',_0x4457d7+=_0x323796(0x168),_0x4457d7+=_0x323796(0x179),_0x4457d7+=_0x323796(0x18c)+_0x4c0ac4+')\x20'+_0x552f15+':\x20'+_0x4c0ac4+_0x323796(0x184),_0x4457d7+=_0x323796(0x19f),_0x4457d7+=_0x323796(0x17f),_0x4457d7+=_0x323796(0x165),_0x4457d7+=_0x323796(0x173)+_0x4c0ac4+'Entity>,\x20pageinfo?:\x20SearchPaginate,\x20options:\x20SearchOptions\x20=\x20{}):\x20Promise<['+_0x4c0ac4+_0x323796(0x1a3),_0x4457d7+='\x20\x20\x20\x20\x20\x20\x20\x20const\x20[pagelist,\x20pagetotal]\x20=\x20await\x20this.'+_0x552f15+'.search(conditions,\x20pageinfo,\x20options).then(async\x20search\x20=>\x20{\x0a\x0a',_0x4457d7+=_0x323796(0x15a),_0x4457d7+='\x20\x20\x20\x20\x20\x20\x20\x20});\x0a\x0a',_0x4457d7+=_0x323796(0x16f),_0x4457d7+=_0x323796(0x156),_0x4457d7+=_0x323796(0x19f),_0x4457d7+=_0x323796(0x15c),_0x4457d7+=_0x323796(0x165),_0x4457d7+='\x20\x20\x20\x20async\x20detail(conditions?:\x20SearchParams<'+_0x4c0ac4+'Entity>,\x20options:\x20SearchOptions\x20=\x20{})\x20{\x0a',_0x4457d7+=_0x323796(0x1a6)+_0x552f15+_0x323796(0x158),_0x4457d7+=_0x323796(0x166),_0x4457d7+=_0x323796(0x167)+_0x4c0ac4+_0x323796(0x15e)+_0x4e3704+_0x323796(0x178),_0x4457d7+=_0x323796(0x15b),_0x4457d7+=_0x323796(0x174),_0x4457d7+='\x20\x20\x20\x20\x20\x20\x20\x20return\x20tmpModel\x0a',_0x4457d7+=_0x323796(0x156),_0x4457d7+='\x20\x20\x20\x20/**\x0a',_0x4457d7+=_0x323796(0x160),_0x4457d7+='\x20\x20\x20\x20\x20*\x20**/\x0a',_0x4457d7+='\x20\x20\x20\x20async\x20create(params:\x20'+_0x4c0ac4+'DTOCreate)\x20{\x0a',_0x4457d7+=_0x323796(0x197)+_0x552f15+_0x323796(0x170),_0x4457d7+='\x20\x20\x20\x20\x20\x20\x20\x20return\x20await\x20this.'+_0x552f15+'.save(tmpModel);\x0a',_0x4457d7+=_0x323796(0x156),_0x4457d7+=_0x323796(0x19f),_0x4457d7+=_0x323796(0x16c),_0x4457d7+='\x20\x20\x20\x20\x20*\x20**/\x0a',_0x4457d7+=_0x323796(0x191)+_0x4c0ac4+_0x323796(0x169)+_0x4c0ac4+_0x323796(0x19c),_0x4457d7+=_0x323796(0x1a6)+_0x552f15+_0x323796(0x158),_0x4457d7+=_0x323796(0x166),_0x4457d7+=_0x323796(0x167)+_0x4c0ac4+_0x323796(0x15e)+_0x4e3704+'不存在\x27\x20})\x0a',_0x4457d7+=_0x323796(0x15b),_0x4457d7+=_0x323796(0x174),_0x4457d7+=_0x323796(0x15d)+_0x552f15+_0x323796(0x195),_0x4457d7+=_0x323796(0x182)+_0x552f15+'.save(tmpModel);\x0a',_0x4457d7+=_0x323796(0x156),_0x4457d7+=_0x323796(0x19f),_0x4457d7+=_0x323796(0x183),_0x4457d7+=_0x323796(0x165),_0x4457d7+='\x20\x20\x20\x20async\x20remove('+_0x5d99c0['Field']+':\x20string\x20|\x20number,\x20conditions?:\x20SearchParams<'+_0x4c0ac4+'Entity>,\x20options:\x20SearchOptions\x20=\x20{})\x20{\x0a',_0x4457d7+=_0x323796(0x19d)+_0x552f15+_0x323796(0x158),_0x4457d7+=_0x323796(0x18e)+_0x5d99c0[_0x323796(0x192)]+_0x323796(0x16a),_0x4457d7+=_0x323796(0x174),_0x4457d7+=_0x323796(0x1a0),_0x4457d7+=_0x323796(0x186)+_0x552f15+_0x323796(0x17d),_0x4457d7+=_0x323796(0x19b),_0x4457d7+='\x20\x20\x20\x20\x20\x20\x20\x20return\x20deletes\x0a',_0x4457d7+=_0x323796(0x156),_0x4457d7+='}',!fs[_0x323796(0x196)]((0x0,path_1[_0x323796(0x1a1)])(_0x18cbf3))&&fs['mkdirSync']((0x0,path_1[_0x323796(0x1a1)])(_0x18cbf3),{'recursive':!![]}),fs[_0x323796(0x163)](_0x18cbf3,_0x4457d7,'utf-8');}}}exports['default']=default_1;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a9_0x5200dc=a9_0x499c;(function(_0x2ef845,_0x4df7c5){const _0x38863=a9_0x499c,_0x5f3b37=_0x2ef845();while(!![]){try{const _0xf921b9=-parseInt(_0x38863(0x161))/0x1*(-parseInt(_0x38863(0x153))/0x2)+parseInt(_0x38863(0x176))/0x3*(-parseInt(_0x38863(0x15b))/0x4)+-parseInt(_0x38863(0x18f))/0x5*(-parseInt(_0x38863(0x18d))/0x6)+-parseInt(_0x38863(0x165))/0x7+-parseInt(_0x38863(0x16f))/0x8+-parseInt(_0x38863(0x17f))/0x9+parseInt(_0x38863(0x164))/0xa;if(_0xf921b9===_0x4df7c5)break;else _0x5f3b37['push'](_0x5f3b37['shift']());}catch(_0x18a79f){_0x5f3b37['push'](_0x5f3b37['shift']());}}}(a9_0x2ab4,0x68d01));const a9_0x35d5b2=(function(){let _0x367dba=!![];return function(_0x3d0b6b,_0x1a94dd){const _0x4d5e8a=_0x367dba?function(){const _0x53993c=a9_0x499c;if(_0x1a94dd){const _0x4325eb=_0x1a94dd[_0x53993c(0x155)](_0x3d0b6b,arguments);return _0x1a94dd=null,_0x4325eb;}}:function(){};return _0x367dba=![],_0x4d5e8a;};}()),a9_0x5e6245=a9_0x35d5b2(this,function(){const _0x9ce4c=a9_0x499c;return a9_0x5e6245[_0x9ce4c(0x159)]()[_0x9ce4c(0x16b)](_0x9ce4c(0x189))[_0x9ce4c(0x159)]()['constructor'](a9_0x5e6245)[_0x9ce4c(0x16b)](_0x9ce4c(0x189));});a9_0x5e6245();function a9_0x2ab4(){const _0x2b1833=['96nChWSY','\x20\x20\x20\x20}\x0a\x0a','\x20*\x20','13124130xeXGur','5659430aAWFVT','Field','\x20\x20\x20\x20async\x20updated_at_end(query:\x20SelectQueryBuilder<ObjectLiteral>,\x20updated_at_end:\x20string)\x20{\x0a','json','\x20<=\x20:','deleted_at','search','_start\x20})\x0a','_start`,\x20{\x20','__esModule','3837864kGvOPJ','\x20\x20\x20\x20\x20\x20\x20\x20query.andWhere(`${query.alias}.','_start(query:\x20SelectQueryBuilder<ObjectLiteral>,\x20','\x20\x20\x20\x20async\x20','longtext','text','getProp','24bRqMXr',':>=\x20起始时间(之后)\x27)\x0a','%column%','@Provide()\x0a','updated_at','utf-8','replace','indexOf','dirname','1359405XZoYnK','\x20\x20\x20\x20\x20\x20\x20\x20query.andWhere(`${query.alias}.created_at\x20<\x20:created_at_end`,\x20{\x20created_at_end\x20})\x0a','\x20\x20\x20\x20\x20\x20\x20\x20query.andWhere(`${query.alias}.created_at\x20>=\x20:created_at_start`,\x20{\x20created_at_start\x20})\x0a','/search.ts','Type','import\x20{\x20Provide,\x20Search,\x20ObjectLiteral,\x20SelectQueryBuilder\x20}\x20from\x20\x27@anncic-api/typeorm\x27;\x0a\x0a','Comment','writeFileSync','\x20\x20\x20\x20async\x20created_at_start(query:\x20SelectQueryBuilder<ObjectLiteral>,\x20created_at_start:\x20string)\x20{\x0a','\x20\x20\x20\x20@Search(\x27created_at_start\x27,\x20\x27创建时间:>=\x20起始时间(之后)\x27)\x0a','(((.+)+)+)+$','\x20\x20\x20\x20@Search(\x27updated_at_start\x27,\x20\x27修改时间:>=\x20起始时间(之后)\x27)\x0a','\x20\x20\x20\x20\x20\x20\x20\x20query.andWhere(`${query.alias}.created_at\x20<\x20:updated_at_end`,\x20{\x20updated_at_end\x20})\x0a','date','4128svHrtq','Search\x20{\x0a\x0a','4765DxJlVm','_start:\x20string)\x20{\x0a','\x20\x20\x20\x20//\x20初始化之后执行\x0a','\x20>=\x20:','timestamp','/entities/','3326adcMcx','export\x20class\x20','apply','path','-自定义检索\x0a','\x20\x20\x20\x20@Search(\x27','toString','_end\x27,\x20\x27','129572YAGJVv','\x20\x20\x20\x20async\x20updated_at_start(query:\x20SelectQueryBuilder<ObjectLiteral>,\x20updated_at_start:\x20string)\x20{\x0a','existsSync','\x20\x20\x20\x20@Search(\x27created_at_end\x27,\x20\x27创建时间:<\x20起始时间(之前)\x27)\x0a','_end:\x20string)\x20{\x0a','created_at'];a9_0x2ab4=function(){return _0x2b1833;};return a9_0x2ab4();}'use strict';Object['defineProperty'](exports,a9_0x5200dc(0x16e),{'value':!![]});const fs=require('fs'),path_1=require(a9_0x5200dc(0x156)),helper_1=require('../helper');function a9_0x499c(_0x241950,_0x2548c3){const _0x426027=a9_0x2ab4();return a9_0x499c=function(_0x5e6245,_0x35d5b2){_0x5e6245=_0x5e6245-0x150;let _0x2ab4cc=_0x426027[_0x5e6245];return _0x2ab4cc;},a9_0x499c(_0x241950,_0x2548c3);}async function default_1({tablestartUp:_0x5de322,tablestartUpShort:_0x216347,basedir:_0x5ac150,Fields:_0x256627,Comment:_0x1a4538}){const _0x167ad8=a9_0x5200dc,_0x9fa6c6=_0x5ac150+(_0x167ad8(0x152)+_0x216347+_0x167ad8(0x182));if(!fs[_0x167ad8(0x15d)](_0x9fa6c6)){let _0x14dd46='',_0xf2afc1='';for(let _0x4647a6 in _0x256627){let _0x11c122=_0x256627[_0x4647a6],_0x122f8c=(0x0,helper_1[_0x167ad8(0x175)])(_0x11c122[_0x167ad8(0x183)]);if(_0x11c122[_0x167ad8(0x166)]=='displayorder'||_0x11c122[_0x167ad8(0x166)]==_0x167ad8(0x160)||_0x11c122[_0x167ad8(0x166)]==_0x167ad8(0x17a)||_0x11c122[_0x167ad8(0x166)]==_0x167ad8(0x16a))continue;if(_0x122f8c==_0x167ad8(0x168)){}else{if(_0x122f8c==_0x167ad8(0x174)){}else{if(_0x122f8c==_0x167ad8(0x173)){}else[_0x167ad8(0x18c),'datetime',_0x167ad8(0x151)][_0x167ad8(0x17d)](_0x122f8c)>-0x1&&(_0x14dd46+=_0x167ad8(0x158)+_0x11c122[_0x167ad8(0x166)]+'_start\x27,\x20\x27'+_0x11c122[_0x167ad8(0x185)]+_0x167ad8(0x177),_0x14dd46+=_0x167ad8(0x172)+_0x11c122[_0x167ad8(0x166)]+_0x167ad8(0x171)+_0x11c122[_0x167ad8(0x166)]+_0x167ad8(0x190),_0x14dd46+=_0x167ad8(0x170)+_0x11c122[_0x167ad8(0x166)]+_0x167ad8(0x150)+_0x11c122[_0x167ad8(0x166)]+_0x167ad8(0x16d)+_0x11c122['Field']+_0x167ad8(0x16c),_0x14dd46+=_0x167ad8(0x162),_0x14dd46+='\x20\x20\x20\x20@Search(\x27'+_0x11c122[_0x167ad8(0x166)]+_0x167ad8(0x15a)+_0x11c122['Comment']+':<=\x20起始时间(之前)\x27)\x0a',_0x14dd46+=_0x167ad8(0x172)+_0x11c122[_0x167ad8(0x166)]+'_end(query:\x20SelectQueryBuilder<ObjectLiteral>,\x20'+_0x11c122['Field']+_0x167ad8(0x15f),_0x14dd46+='\x20\x20\x20\x20\x20\x20\x20\x20query.andWhere(`${query.alias}.'+_0x11c122[_0x167ad8(0x166)]+_0x167ad8(0x169)+_0x11c122[_0x167ad8(0x166)]+'_end`,\x20{\x20'+_0x11c122[_0x167ad8(0x166)]+'_end\x20})\x0a',_0x14dd46+=_0x167ad8(0x162));}}}_0x14dd46+=_0x167ad8(0x188),_0x14dd46+=_0x167ad8(0x187),_0x14dd46+=_0x167ad8(0x181),_0x14dd46+=_0x167ad8(0x162),_0x14dd46+=_0x167ad8(0x15e),_0x14dd46+='\x20\x20\x20\x20async\x20created_at_end(query:\x20SelectQueryBuilder<ObjectLiteral>,\x20created_at_end:\x20string)\x20{\x0a',_0x14dd46+=_0x167ad8(0x180),_0x14dd46+=_0x167ad8(0x162),_0x14dd46+=_0x167ad8(0x18a),_0x14dd46+=_0x167ad8(0x15c),_0x14dd46+='\x20\x20\x20\x20\x20\x20\x20\x20query.andWhere(`${query.alias}.created_at\x20>=\x20:updated_at_start`,\x20{\x20updated_at_start\x20})\x0a',_0x14dd46+=_0x167ad8(0x162),_0x14dd46+='\x20\x20\x20\x20@Search(\x27updated_at_end\x27,\x20\x27修改时间:<\x20起始时间(之前)\x27)\x0a',_0x14dd46+=_0x167ad8(0x167),_0x14dd46+=_0x167ad8(0x18b),_0x14dd46+='\x20\x20\x20\x20}\x0a\x0a',_0xf2afc1+=_0x167ad8(0x184),_0xf2afc1+='/**\x0a',_0xf2afc1+=_0x167ad8(0x163)+_0x1a4538+_0x167ad8(0x157),_0xf2afc1+='\x20*\x20**/\x0a',_0xf2afc1+=_0x167ad8(0x179),_0xf2afc1+=_0x167ad8(0x154)+_0x5de322+_0x167ad8(0x18e),_0x14dd46+=_0x167ad8(0x191),_0x14dd46+='\x20\x20\x20\x20async\x20__initialize(query:\x20SelectQueryBuilder<ObjectLiteral>,\x20params:\x20any)\x20{\x0a\x0a',_0x14dd46+='\x20\x20\x20\x20}\x0a\x0a',_0xf2afc1+=_0x167ad8(0x178),_0xf2afc1+='}',_0xf2afc1=_0xf2afc1[_0x167ad8(0x17c)]('%column%',_0x14dd46),!fs[_0x167ad8(0x15d)]((0x0,path_1['dirname'])(_0x9fa6c6))&&fs['mkdirSync']((0x0,path_1[_0x167ad8(0x17e)])(_0x9fa6c6),{'recursive':!![]}),fs[_0x167ad8(0x186)](_0x9fa6c6,_0xf2afc1,_0x167ad8(0x17b));}}exports['default']=default_1;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a10_0x9538c5=a10_0x1ee0;(function(_0x471370,_0x44169b){const _0x3dd9eb=a10_0x1ee0,_0x1d04d7=_0x471370();while(!![]){try{const _0x371596=-parseInt(_0x3dd9eb(0x209))/0x1+parseInt(_0x3dd9eb(0x200))/0x2*(-parseInt(_0x3dd9eb(0x1e6))/0x3)+parseInt(_0x3dd9eb(0x1f0))/0x4+-parseInt(_0x3dd9eb(0x1b5))/0x5+parseInt(_0x3dd9eb(0x218))/0x6+parseInt(_0x3dd9eb(0x1cd))/0x7+parseInt(_0x3dd9eb(0x1ef))/0x8*(parseInt(_0x3dd9eb(0x1e7))/0x9);if(_0x371596===_0x44169b)break;else _0x1d04d7['push'](_0x1d04d7['shift']());}catch(_0xbc9c8f){_0x1d04d7['push'](_0x1d04d7['shift']());}}}(a10_0x1f51,0xada60));const a10_0x336019=(function(){let _0x34704f=!![];return function(_0x2bd989,_0x3689b4){const _0x4756c5=_0x34704f?function(){const _0x33374e=a10_0x1ee0;if(_0x3689b4){const _0x21124e=_0x3689b4[_0x33374e(0x1cb)](_0x2bd989,arguments);return _0x3689b4=null,_0x21124e;}}:function(){};return _0x34704f=![],_0x4756c5;};}()),a10_0x43026b=a10_0x336019(this,function(){const _0x38e2c8=a10_0x1ee0;return a10_0x43026b['toString']()[_0x38e2c8(0x1e4)](_0x38e2c8(0x1cc))[_0x38e2c8(0x1fc)]()[_0x38e2c8(0x1f5)](a10_0x43026b)[_0x38e2c8(0x1e4)](_0x38e2c8(0x1cc));});a10_0x43026b();'use strict';function a10_0x1ee0(_0x1e0ece,_0x291b1d){const _0x51be56=a10_0x1f51();return a10_0x1ee0=function(_0x43026b,_0x336019){_0x43026b=_0x43026b-0x1b1;let _0x1f51ab=_0x51be56[_0x43026b];return _0x1f51ab;},a10_0x1ee0(_0x1e0ece,_0x291b1d);}Object[a10_0x9538c5(0x203)](exports,a10_0x9538c5(0x1b4),{'value':!![]});function a10_0x1f51(){const _0x1ab7a7=['writeFileSync','/Update.ts','json','\x20*\x20','\x27,\x20RuleType.number()',':\x20any\x20|\x20any[];\x0a\x0a','\x27,\x20\x27','\x20*\x20数据更新验证\x0a','%SearchDtoColumn%','1587858BPfClJ',':\x20number;\x0a\x0a','\x27;\x0a\x0a','/validators/','timestamp','text','@/apps/','created_at','deleted_at','\x20\x20\x20\x20@Rule(\x27创建时间\x27,\x20RuleType.date(),\x20\x27<\x20起始时间(之前)\x27)\x0a','@/app','DTOUpdate\x20{\x0a\x0a','YES','__esModule','4080270UCdsnM','mediumtext','\x27,\x20RuleType.string()','indexOf','.required()','getProp','toUpperCase','/entities/','\x27,\x20RuleType.number())\x0a','\x20\x20\x20\x20@Rule(\x27','updated_at','/Search.ts','\x20\x20\x20\x20@Rule(\x27修改时间\x27,\x20RuleType.date(),\x20\x27<\x20起始时间(之前)\x27)\x0a','Null','datetime','\x27\x20|\x20\x27','\x20\x20\x20\x20created_at_end?:\x20string;\x0a\x0a','enum','\x27)))\x0a','\x20\x20\x20\x20displayorder?:\x20number;\x0a\x0a','replace','DTOSearch,\x20[\x27displayorder\x27])\x20{\x0a\x0a','apply','(((.+)+)+)+$','7506219NqCviK','\x27))\x0a','find','\x27,\x20RuleType.string().valid(\x27','existsSync','join','?:\x20\x27','_start?:\x20string;\x0a\x0a','Type','\x20\x20\x20\x20','\x27,\x20RuleType.any())\x0a','date','../helper','mkdirSync','toLowerCase','boolean','DTOSearch\x20{\x0a\x0a','\x20*\x20**/\x0a','\x20\x20\x20\x20updated_at_start?:\x20string;\x0a\x0a','\x27,\x20RuleType.date()','}\x0a\x0a','float','number','search','?:\x20number;\x0a\x0a','45297JRoWNl','3006VWNtYV','\x27,\x20RuleType.string(),\x20\x27>=\x20起始时间(之后)\x27)\x0a','\x20*\x20数据检索验证\x0a','\x27,\x20RuleType.date())\x0a',':\x20string;\x0a\x0a','\x27;\x0a','\x27,\x20RuleType.number().valid(...getAnnEnumArray(','DTOUpdate\x20extends\x20OmitDto(','18592TJfFRN','2055544CHZEXu','?:\x20string;\x0a\x0a','Comment','?:\x20any\x20|\x20any[];\x0a\x0a','longtext','constructor','\x20\x20\x20\x20@Rule(\x27默认排序\x27,\x20RuleType.number())\x0a','%DtoColumn%','Field','double','/**\x0a','import\x20{\x20Rule,\x20RuleType,\x20OmitDto\x20}\x20from\x20\x27@anncic-api/validator\x27;\x0a\x0a','toString','Enum\x20}\x20from\x20\x27','import\x20{\x20Rule,\x20RuleType\x20}\x20from\x20\x27@anncic-api/validator\x27;\x0a\x0a','DTOSearch\x20extends\x20OmitDto(','108hFYbXL','import\x20{\x20','Enum,\x20\x27','defineProperty','DTOCreate\x20extends\x20OmitDto(','getEnum','\x27,\x20RuleType.string())\x0a','tinyint','utf-8','284398wenWHm','export\x20class\x20','\x20\x20\x20\x20updated_at_end?:\x20string;\x0a\x0a','substring','displayorder','string'];a10_0x1f51=function(){return _0x1ab7a7;};return a10_0x1f51();}const fs=require('fs'),helper_1=require(a10_0x9538c5(0x1d9));async function default_1({controllers:_0x6bad9b,tablestartUp:_0x1625b2,tablestartUpShort:_0x28cb27,basedir:_0x6c8598,Primary:_0x529c78,Fields:_0xe4d7f8,Comment:_0x99a9d0,moduleName:_0xa25680}){const _0x31e626=a10_0x9538c5,_0x11dab2=_0x6c8598+(_0x31e626(0x21b)+_0x28cb27);!fs['existsSync'](_0x11dab2)&&fs[_0x31e626(0x1da)](_0x11dab2,{'recursive':!![]}),await DTOCreate({'controllers':_0x6bad9b,'tablestartUp':_0x1625b2,'tablestartUpShort':_0x28cb27,'basedir':_0x6c8598,'Fields':_0xe4d7f8,'Comment':_0x99a9d0,'moduleName':_0xa25680}),await DTOUpdate({'controllers':_0x6bad9b,'tablestartUp':_0x1625b2,'tablestartUpShort':_0x28cb27,'basedir':_0x6c8598,'Fields':_0xe4d7f8,'Comment':_0x99a9d0,'moduleName':_0xa25680}),await DTOSearch({'controllers':_0x6bad9b,'tablestartUp':_0x1625b2,'tablestartUpShort':_0x28cb27,'basedir':_0x6c8598,'Fields':_0xe4d7f8,'Primary':_0x529c78,'Comment':_0x99a9d0,'moduleName':_0xa25680});}exports['default']=default_1;async function DTOCreate({controllers:_0x251b67,tablestartUp:_0x3ff6da,tablestartUpShort:_0x1bb441,basedir:_0x58906c,Fields:_0x530073,Comment:_0x10194d,moduleName:_0x510a07}){const _0x427ed6=a10_0x9538c5,_0x4c6bfb=_0x58906c+(_0x427ed6(0x21b)+_0x1bb441+'/Create.ts');if(!fs['existsSync'](_0x4c6bfb)){let _0x1b9469='',_0x248ccc='',_0x3d6f08=![];for(let _0xa28dd0 in _0x530073){let _0x5e1b1e=_0x530073[_0xa28dd0],_0x2c2bfc=(0x0,helper_1[_0x427ed6(0x1ba)])(_0x5e1b1e['Type']);if(_0x5e1b1e[_0x427ed6(0x1f8)]=='displayorder'||_0x5e1b1e[_0x427ed6(0x1f8)]=='created_at'||_0x5e1b1e['Field']==_0x427ed6(0x1bf)||_0x5e1b1e[_0x427ed6(0x1f8)]==_0x427ed6(0x220))continue;if([_0x427ed6(0x21d),_0x427ed6(0x1f4),_0x427ed6(0x1b6)][_0x427ed6(0x1b8)](_0x2c2bfc)!=-0x1)_0x1b9469+=_0x427ed6(0x1be)+_0x5e1b1e[_0x427ed6(0x1f2)]+_0x427ed6(0x206),_0x1b9469+=_0x427ed6(0x1d6)+_0x5e1b1e['Field']+_0x427ed6(0x1f1);else{if(['float',_0x427ed6(0x1f9),'decimal',_0x427ed6(0x1e3)][_0x427ed6(0x1b8)](_0x2c2bfc)!=-0x1)_0x1b9469+=_0x427ed6(0x1be)+_0x5e1b1e[_0x427ed6(0x1f2)]+_0x427ed6(0x213)+(_0x5e1b1e[_0x427ed6(0x1c2)]!=_0x427ed6(0x1b3)?_0x427ed6(0x1b9):'')+')\x0a',_0x1b9469+='\x20\x20\x20\x20'+_0x5e1b1e[_0x427ed6(0x1f8)]+(_0x5e1b1e[_0x427ed6(0x1c2)]!=_0x427ed6(0x1b3)?'?':'')+_0x427ed6(0x219);else{if([_0x427ed6(0x207)]['indexOf'](_0x2c2bfc)!=-0x1)_0x3d6f08=!![],_0x1b9469+=_0x427ed6(0x1be)+_0x5e1b1e[_0x427ed6(0x1f2)]+_0x427ed6(0x1ed)+_0x3ff6da+_0x427ed6(0x202)+_0x5e1b1e['Field']+'\x27))'+(_0x5e1b1e[_0x427ed6(0x1c2)]!=_0x427ed6(0x1b3)?_0x427ed6(0x1b9):'')+')\x0a',_0x1b9469+=_0x427ed6(0x1d6)+_0x5e1b1e[_0x427ed6(0x1f8)]+(_0x5e1b1e['Null']!=_0x427ed6(0x1b3)?'?':'')+':\x20number;\x0a\x0a';else{if(_0x2c2bfc==_0x427ed6(0x211))_0x1b9469+=_0x427ed6(0x1be)+_0x5e1b1e[_0x427ed6(0x1f2)]+_0x427ed6(0x1d7),_0x1b9469+=_0x427ed6(0x1d6)+_0x5e1b1e[_0x427ed6(0x1f8)]+(_0x5e1b1e[_0x427ed6(0x1c2)]!=_0x427ed6(0x1b3)?'?':'')+_0x427ed6(0x214);else{if(_0x2c2bfc==_0x427ed6(0x1c6)){let _0x17e17b=(0x0,helper_1[_0x427ed6(0x205)])(_0x5e1b1e[_0x427ed6(0x1d5)]);_0x1b9469+=_0x427ed6(0x1be)+_0x5e1b1e[_0x427ed6(0x1f2)]+_0x427ed6(0x1d0)+_0x17e17b[_0x427ed6(0x1d2)](_0x427ed6(0x215))+'\x27)'+(_0x5e1b1e[_0x427ed6(0x1c2)]!=_0x427ed6(0x1b3)?_0x427ed6(0x1b9):'')+')\x0a',_0x1b9469+=_0x427ed6(0x1d6)+_0x5e1b1e[_0x427ed6(0x1f8)]+(_0x5e1b1e[_0x427ed6(0x1c2)]!=_0x427ed6(0x1b3)?'?':'')+':\x20\x27'+_0x17e17b[_0x427ed6(0x1d2)]('\x27\x20|\x20\x27')+_0x427ed6(0x21a);}else['date',_0x427ed6(0x1c3),_0x427ed6(0x21c)][_0x427ed6(0x1b8)](_0x2c2bfc)>-0x1?(_0x1b9469+=_0x427ed6(0x1be)+_0x5e1b1e['Comment']+_0x427ed6(0x1e0)+(_0x5e1b1e[_0x427ed6(0x1c2)]!='YES'?_0x427ed6(0x1b9):'')+')\x0a',_0x1b9469+=_0x427ed6(0x1d6)+_0x5e1b1e[_0x427ed6(0x1f8)]+(_0x5e1b1e[_0x427ed6(0x1c2)]!=_0x427ed6(0x1b3)?'?':'')+_0x427ed6(0x1eb)):(_0x1b9469+='\x20\x20\x20\x20@Rule(\x27'+_0x5e1b1e[_0x427ed6(0x1f2)]+_0x427ed6(0x1b7)+(_0x5e1b1e[_0x427ed6(0x1c2)]!=_0x427ed6(0x1b3)?_0x427ed6(0x1b9):'')+')\x0a',_0x1b9469+=_0x427ed6(0x1d6)+_0x5e1b1e[_0x427ed6(0x1f8)]+(_0x5e1b1e[_0x427ed6(0x1c2)]!='YES'?'?':'')+_0x427ed6(0x1eb));}}}}}_0x1b9469+=_0x427ed6(0x1f6),_0x1b9469+=_0x427ed6(0x1c8);(_0x251b67===null||_0x251b67===void 0x0?void 0x0:_0x251b67['find'](_0x7343e5=>typeof _0x7343e5!=_0x427ed6(0x1dc)))?_0x248ccc+=_0x427ed6(0x1fb):_0x248ccc+=_0x427ed6(0x1fe);_0x3d6f08&&(_0x248ccc+='import\x20{\x20'+_0x3ff6da+_0x427ed6(0x1fd)+(typeof _0x510a07==_0x427ed6(0x20e)?_0x427ed6(0x21e)+_0x510a07:_0x427ed6(0x1b1))+_0x427ed6(0x1bc)+_0x1bb441+_0x427ed6(0x1ec));_0x248ccc+='\x0a',_0x248ccc+=_0x427ed6(0x1fa),_0x248ccc+=_0x427ed6(0x212)+_0x10194d+'\x0a',_0x248ccc+='\x20*\x20数据添加验证\x0a',_0x248ccc+=_0x427ed6(0x1de),_0x248ccc+=_0x427ed6(0x20a)+_0x3ff6da+'DTOCreate\x20{\x0a\x0a',_0x248ccc+=_0x427ed6(0x1f7),_0x248ccc+=_0x427ed6(0x1e1);for(const _0x5345a3 of _0x251b67){typeof _0x5345a3=='string'&&(_0x248ccc+=_0x427ed6(0x20a)+_0x5345a3[_0x427ed6(0x20c)](0x0,0x1)[_0x427ed6(0x1bb)]()+_0x5345a3[_0x427ed6(0x20c)](0x1)[_0x427ed6(0x1db)]()+_0x3ff6da+_0x427ed6(0x204)+_0x3ff6da+'DTOCreate,\x20[\x27displayorder\x27])\x20{\x0a\x0a',_0x248ccc+=_0x427ed6(0x1e1));}_0x248ccc=_0x248ccc[_0x427ed6(0x1c9)](_0x427ed6(0x1f7),_0x1b9469),fs[_0x427ed6(0x20f)](_0x4c6bfb,_0x248ccc,_0x427ed6(0x208));}}async function DTOUpdate({controllers:_0x571240,tablestartUp:_0x55c762,tablestartUpShort:_0x4c8722,basedir:_0x4c93ab,Fields:_0x431e7d,Comment:_0x35e1ff,moduleName:_0x9dbe2f}){const _0x37fb70=a10_0x9538c5,_0x2cc960=_0x4c93ab+(_0x37fb70(0x21b)+_0x4c8722+_0x37fb70(0x210));if(!fs['existsSync'](_0x2cc960)){let _0x15fadd='',_0x3fee9b='',_0x566dde=![];for(let _0x24e756 in _0x431e7d){let _0x419ba5=_0x431e7d[_0x24e756],_0x564234=(0x0,helper_1[_0x37fb70(0x1ba)])(_0x419ba5[_0x37fb70(0x1d5)]);if(_0x419ba5['Field']==_0x37fb70(0x20d)||_0x419ba5[_0x37fb70(0x1f8)]=='created_at'||_0x419ba5['Field']=='updated_at'||_0x419ba5['Field']==_0x37fb70(0x220))continue;if([_0x37fb70(0x21d),'longtext','mediumtext'][_0x37fb70(0x1b8)](_0x564234)!=-0x1)_0x15fadd+=_0x37fb70(0x1be)+_0x419ba5[_0x37fb70(0x1f2)]+_0x37fb70(0x206),_0x15fadd+='\x20\x20\x20\x20'+_0x419ba5[_0x37fb70(0x1f8)]+_0x37fb70(0x1f1);else{if([_0x37fb70(0x1e2),_0x37fb70(0x1f9),'decimal',_0x37fb70(0x1e3)][_0x37fb70(0x1b8)](_0x564234)!=-0x1)_0x15fadd+=_0x37fb70(0x1be)+_0x419ba5['Comment']+_0x37fb70(0x1bd),_0x15fadd+='\x20\x20\x20\x20'+_0x419ba5[_0x37fb70(0x1f8)]+_0x37fb70(0x1e5);else{if(['tinyint'][_0x37fb70(0x1b8)](_0x564234)!=-0x1)_0x566dde=!![],_0x15fadd+=_0x37fb70(0x1be)+_0x419ba5['Comment']+'\x27,\x20RuleType.number().valid(...getAnnEnumArray('+_0x55c762+_0x37fb70(0x202)+_0x419ba5[_0x37fb70(0x1f8)]+_0x37fb70(0x1c7),_0x15fadd+=_0x37fb70(0x1d6)+_0x419ba5[_0x37fb70(0x1f8)]+_0x37fb70(0x1e5);else{if(_0x564234=='json')_0x15fadd+=_0x37fb70(0x1be)+_0x419ba5[_0x37fb70(0x1f2)]+_0x37fb70(0x1d7),_0x15fadd+=_0x37fb70(0x1d6)+_0x419ba5['Field']+_0x37fb70(0x1f3);else{if(_0x564234==_0x37fb70(0x1c6)){let _0x3447cf=(0x0,helper_1[_0x37fb70(0x205)])(_0x419ba5[_0x37fb70(0x1d5)]);_0x15fadd+='\x20\x20\x20\x20@Rule(\x27'+_0x419ba5[_0x37fb70(0x1f2)]+_0x37fb70(0x1d0)+_0x3447cf[_0x37fb70(0x1d2)]('\x27,\x20\x27')+_0x37fb70(0x1ce),_0x15fadd+=_0x37fb70(0x1d6)+_0x419ba5['Field']+_0x37fb70(0x1d3)+_0x3447cf['join'](_0x37fb70(0x1c4))+_0x37fb70(0x21a);}else[_0x37fb70(0x1d8),_0x37fb70(0x1c3),'timestamp']['indexOf'](_0x564234)>-0x1?(_0x15fadd+=_0x37fb70(0x1be)+_0x419ba5[_0x37fb70(0x1f2)]+_0x37fb70(0x1ea),_0x15fadd+=_0x37fb70(0x1d6)+_0x419ba5[_0x37fb70(0x1f8)]+'?:\x20string;\x0a\x0a'):(_0x15fadd+=_0x37fb70(0x1be)+_0x419ba5[_0x37fb70(0x1f2)]+_0x37fb70(0x206),_0x15fadd+='\x20\x20\x20\x20'+_0x419ba5[_0x37fb70(0x1f8)]+_0x37fb70(0x1f1));}}}}}_0x15fadd+=_0x37fb70(0x1f6),_0x15fadd+='\x20\x20\x20\x20displayorder?:\x20number;\x0a\x0a';(_0x571240===null||_0x571240===void 0x0?void 0x0:_0x571240[_0x37fb70(0x1cf)](_0x54baf5=>typeof _0x54baf5!=_0x37fb70(0x1dc)))?_0x3fee9b+='import\x20{\x20Rule,\x20RuleType,\x20OmitDto\x20}\x20from\x20\x27@anncic-api/validator\x27;\x0a\x0a':_0x3fee9b+=_0x37fb70(0x1fe);_0x566dde&&(_0x3fee9b+=_0x37fb70(0x201)+_0x55c762+_0x37fb70(0x1fd)+(typeof _0x9dbe2f=='string'?_0x37fb70(0x21e)+_0x9dbe2f:_0x37fb70(0x1b1))+'/entities/'+_0x4c8722+_0x37fb70(0x1ec));_0x3fee9b+='\x0a',_0x3fee9b+=_0x37fb70(0x1fa),_0x3fee9b+=_0x37fb70(0x212)+_0x35e1ff+'\x0a',_0x3fee9b+=_0x37fb70(0x216),_0x3fee9b+='\x20*\x20**/\x0a',_0x3fee9b+=_0x37fb70(0x20a)+_0x55c762+_0x37fb70(0x1b2),_0x3fee9b+=_0x37fb70(0x1f7),_0x3fee9b+=_0x37fb70(0x1e1);for(const _0x1b0223 of _0x571240){typeof _0x1b0223=='string'&&(_0x3fee9b+=_0x37fb70(0x20a)+_0x1b0223['substring'](0x0,0x1)[_0x37fb70(0x1bb)]()+_0x1b0223[_0x37fb70(0x20c)](0x1)[_0x37fb70(0x1db)]()+_0x55c762+_0x37fb70(0x1ee)+_0x55c762+'DTOUpdate,\x20[\x27displayorder\x27])\x20{\x0a\x0a',_0x3fee9b+=_0x37fb70(0x1e1));}_0x3fee9b=_0x3fee9b['replace']('%DtoColumn%',_0x15fadd),fs['writeFileSync'](_0x2cc960,_0x3fee9b,_0x37fb70(0x208));}}async function DTOSearch({controllers:_0x3b25b3,tablestartUp:_0x30fa13,tablestartUpShort:_0x3c215d,basedir:_0x55aae3,Fields:_0x43349d,Primary:_0x1ccadf,Comment:_0x2a67f7,moduleName:_0x218605}){const _0x125b92=a10_0x9538c5,_0xb81d97=_0x55aae3+(_0x125b92(0x21b)+_0x3c215d+_0x125b92(0x1c0));if(!fs[_0x125b92(0x1d1)](_0xb81d97)){let _0x1e74ef='',_0x5a9c79='',_0x30f070=![];for(let _0x16ab51 of[{[_0x1ccadf[_0x125b92(0x1f8)]]:_0x1ccadf},_0x43349d]){for(let _0x57817a in _0x16ab51){let _0x7cd787=_0x16ab51[_0x57817a],_0x3d6e11=(0x0,helper_1['getProp'])(_0x7cd787[_0x125b92(0x1d5)]);if(_0x7cd787[_0x125b92(0x1f8)]==_0x125b92(0x20d)||_0x7cd787['Field']==_0x125b92(0x21f)||_0x7cd787['Field']==_0x125b92(0x1bf)||_0x7cd787[_0x125b92(0x1f8)]=='deleted_at')continue;if(['text',_0x125b92(0x1f4),'mediumtext'][_0x125b92(0x1b8)](_0x3d6e11)!=-0x1){}else{if([_0x125b92(0x1e2),_0x125b92(0x1f9),'decimal',_0x125b92(0x1e3)][_0x125b92(0x1b8)](_0x3d6e11)!=-0x1)_0x1e74ef+=_0x125b92(0x1be)+_0x7cd787[_0x125b92(0x1f2)]+_0x125b92(0x1bd),_0x1e74ef+=_0x125b92(0x1d6)+_0x7cd787[_0x125b92(0x1f8)]+'?:\x20number;\x0a\x0a';else{if([_0x125b92(0x207)][_0x125b92(0x1b8)](_0x3d6e11)!=-0x1)_0x30f070=!![],_0x1e74ef+=_0x125b92(0x1be)+_0x7cd787[_0x125b92(0x1f2)]+'\x27,\x20RuleType.number().valid(...getAnnEnumArray('+_0x30fa13+_0x125b92(0x202)+_0x7cd787[_0x125b92(0x1f8)]+_0x125b92(0x1c7),_0x1e74ef+=_0x125b92(0x1d6)+_0x7cd787['Field']+_0x125b92(0x1e5);else{if(_0x3d6e11==_0x125b92(0x211)){}else{if(_0x3d6e11==_0x125b92(0x1c6)){let _0xf50d75=(0x0,helper_1[_0x125b92(0x205)])(_0x7cd787['Type']);_0x1e74ef+='\x20\x20\x20\x20@Rule(\x27'+_0x7cd787[_0x125b92(0x1f2)]+_0x125b92(0x1d0)+_0xf50d75[_0x125b92(0x1d2)](_0x125b92(0x215))+_0x125b92(0x1ce),_0x1e74ef+=_0x125b92(0x1d6)+_0x7cd787['Field']+'?:\x20\x27'+_0xf50d75[_0x125b92(0x1d2)]('\x27\x20|\x20\x27')+'\x27;\x0a\x0a';}else[_0x125b92(0x1d8),'datetime','timestamp']['indexOf'](_0x3d6e11)>-0x1?(_0x1e74ef+='\x20\x20\x20\x20@Rule(\x27'+_0x7cd787[_0x125b92(0x1f2)]+_0x125b92(0x206),_0x1e74ef+=_0x125b92(0x1d6)+_0x7cd787[_0x125b92(0x1f8)]+_0x125b92(0x1f1),_0x1e74ef+=_0x125b92(0x1be)+_0x7cd787[_0x125b92(0x1f2)]+_0x125b92(0x1e8),_0x1e74ef+=_0x125b92(0x1d6)+_0x7cd787[_0x125b92(0x1f8)]+_0x125b92(0x1d4),_0x1e74ef+=_0x125b92(0x1be)+_0x7cd787[_0x125b92(0x1f2)]+'\x27,\x20RuleType.string(),\x20\x27<\x20起始时间(之前)\x27)\x0a',_0x1e74ef+=_0x125b92(0x1d6)+_0x7cd787['Field']+'_end?:\x20string;\x0a\x0a'):(_0x1e74ef+=_0x125b92(0x1be)+_0x7cd787['Comment']+_0x125b92(0x206),_0x1e74ef+='\x20\x20\x20\x20'+_0x7cd787[_0x125b92(0x1f8)]+'?:\x20string;\x0a\x0a');}}}}}}_0x1e74ef+='\x20\x20\x20\x20@Rule(\x27默认排序\x27,\x20RuleType.number())\x0a',_0x1e74ef+=_0x125b92(0x1c8),_0x1e74ef+='\x20\x20\x20\x20@Rule(\x27创建时间\x27,\x20RuleType.date(),\x20\x27>=\x20起始时间(之后)\x27)\x0a',_0x1e74ef+='\x20\x20\x20\x20created_at_start?:\x20string;\x0a\x0a',_0x1e74ef+=_0x125b92(0x221),_0x1e74ef+=_0x125b92(0x1c5),_0x1e74ef+='\x20\x20\x20\x20@Rule(\x27修改时间\x27,\x20RuleType.date(),\x20\x27>=\x20起始时间(之后)\x27)\x0a',_0x1e74ef+=_0x125b92(0x1df),_0x1e74ef+=_0x125b92(0x1c1),_0x1e74ef+=_0x125b92(0x20b);(_0x3b25b3===null||_0x3b25b3===void 0x0?void 0x0:_0x3b25b3[_0x125b92(0x1cf)](_0x4ff4e1=>typeof _0x4ff4e1!='boolean'))?_0x5a9c79+=_0x125b92(0x1fb):_0x5a9c79+=_0x125b92(0x1fe);_0x30f070&&(_0x5a9c79+='import\x20{\x20'+_0x30fa13+_0x125b92(0x1fd)+(typeof _0x218605==_0x125b92(0x20e)?_0x125b92(0x21e)+_0x218605:_0x125b92(0x1b1))+_0x125b92(0x1bc)+_0x3c215d+_0x125b92(0x1ec));_0x5a9c79+='\x0a',_0x5a9c79+='/**\x0a',_0x5a9c79+=_0x125b92(0x212)+_0x2a67f7+'\x0a',_0x5a9c79+=_0x125b92(0x1e9),_0x5a9c79+=_0x125b92(0x1de),_0x5a9c79+=_0x125b92(0x20a)+_0x30fa13+_0x125b92(0x1dd),_0x5a9c79+='%SearchDtoColumn%',_0x5a9c79+=_0x125b92(0x1e1);for(const _0x39ef2c of _0x3b25b3){typeof _0x39ef2c==_0x125b92(0x20e)&&(_0x5a9c79+=_0x125b92(0x20a)+_0x39ef2c['substring'](0x0,0x1)['toUpperCase']()+_0x39ef2c['substring'](0x1)[_0x125b92(0x1db)]()+_0x30fa13+_0x125b92(0x1ff)+_0x30fa13+_0x125b92(0x1ca),_0x5a9c79+='}\x0a\x0a');}_0x5a9c79=_0x5a9c79[_0x125b92(0x1c9)](_0x125b92(0x217),_0x1e74ef),fs[_0x125b92(0x20f)](_0xb81d97,_0x5a9c79,'utf-8');}}
|
|
1
|
+
const a10_0x1e0c65=a10_0x2f8b;(function(_0x39f2d8,_0x8c6704){const _0x48aa7e=a10_0x2f8b,_0x25e7b1=_0x39f2d8();while(!![]){try{const _0x13caf1=-parseInt(_0x48aa7e(0x167))/0x1*(-parseInt(_0x48aa7e(0x195))/0x2)+parseInt(_0x48aa7e(0x14e))/0x3+-parseInt(_0x48aa7e(0x15c))/0x4+-parseInt(_0x48aa7e(0x18f))/0x5*(-parseInt(_0x48aa7e(0x176))/0x6)+parseInt(_0x48aa7e(0x145))/0x7*(parseInt(_0x48aa7e(0x170))/0x8)+-parseInt(_0x48aa7e(0x18b))/0x9*(parseInt(_0x48aa7e(0x161))/0xa)+-parseInt(_0x48aa7e(0x13f))/0xb;if(_0x13caf1===_0x8c6704)break;else _0x25e7b1['push'](_0x25e7b1['shift']());}catch(_0x1f08dd){_0x25e7b1['push'](_0x25e7b1['shift']());}}}(a10_0x1606,0x232e7));const a10_0x4ab791=(function(){let _0x3e81fa=!![];return function(_0x218450,_0xcf72f8){const _0x41a341=_0x3e81fa?function(){const _0x5e1bd6=a10_0x2f8b;if(_0xcf72f8){const _0x5110c2=_0xcf72f8[_0x5e1bd6(0x181)](_0x218450,arguments);return _0xcf72f8=null,_0x5110c2;}}:function(){};return _0x3e81fa=![],_0x41a341;};}()),a10_0x40c024=a10_0x4ab791(this,function(){const _0x2cff97=a10_0x2f8b;return a10_0x40c024['toString']()[_0x2cff97(0x190)](_0x2cff97(0x13e))[_0x2cff97(0x17a)]()['constructor'](a10_0x40c024)[_0x2cff97(0x190)]('(((.+)+)+)+$');});a10_0x40c024();function a10_0x2f8b(_0x96841a,_0x3c1488){const _0x411849=a10_0x1606();return a10_0x2f8b=function(_0x40c024,_0x4ab791){_0x40c024=_0x40c024-0x12f;let _0x1606fb=_0x411849[_0x40c024];return _0x1606fb;},a10_0x2f8b(_0x96841a,_0x3c1488);}function a10_0x1606(){const _0x4b2549=['timestamp','find',':\x20\x27','946365sJkqXJ','search','DTOUpdate\x20{\x0a\x0a','/Create.ts','\x27,\x20\x27','Comment','2590stqrAk','\x27))\x0a','\x27,\x20RuleType.string().valid(\x27','created_at','?:\x20\x27','indexOf','longtext','\x27;\x0a\x0a','\x20\x20\x20\x20updated_at_start?:\x20string;\x0a\x0a','../helper','mediumtext','.required()','mkdirSync','\x27,\x20RuleType.string()','\x27)))\x0a','\x20\x20\x20\x20updated_at_end?:\x20string;\x0a\x0a','Enum\x20}\x20from\x20\x27','%DtoColumn%','?:\x20string;\x0a\x0a','writeFileSync','\x27,\x20RuleType.string(),\x20\x27<\x20起始时间(之前)\x27)\x0a','text','/entities/','\x27,\x20RuleType.string(),\x20\x27>=\x20起始时间(之后)\x27)\x0a','import\x20{\x20','existsSync','(((.+)+)+)+$','2600587ZktgRS','\x20\x20\x20\x20displayorder?:\x20number;\x0a\x0a','double','\x20*\x20**/\x0a','\x27,\x20RuleType.any())\x0a','getProp','28pFQNHf','DTOSearch,\x20[\x27displayorder\x27])\x20{\x0a\x0a','Type','json','\x20\x20\x20\x20@Rule(\x27修改时间\x27,\x20RuleType.date(),\x20\x27<\x20起始时间(之前)\x27)\x0a','date','import\x20{\x20Rule,\x20RuleType\x20}\x20from\x20\x27@anncic-api/validator\x27;\x0a\x0a','deleted_at','@/apps/','544593oszLlZ','displayorder','%SearchDtoColumn%','}\x0a\x0a','\x20*\x20','float','enum','\x27,\x20RuleType.number().valid(...getAnnEnumArray(','Field','string','\x20\x20\x20\x20@Rule(\x27创建时间\x27,\x20RuleType.date(),\x20\x27>=\x20起始时间(之后)\x27)\x0a','\x27\x20|\x20\x27','__esModule','/validators/','1083412IpSdwj','\x27,\x20RuleType.date())\x0a','getEnum','\x27;\x0a','\x20\x20\x20\x20created_at_start?:\x20string;\x0a\x0a','10yXUxty','datetime','Enum,\x20\x27','DTOUpdate,\x20[\x27displayorder\x27])\x20{\x0a\x0a','boolean','\x27,\x20RuleType.string())\x0a','155DmZJLl','DTOCreate,\x20[\x27displayorder\x27])\x20{\x0a\x0a','tinyint','\x27,\x20RuleType.number())\x0a','import\x20{\x20Rule,\x20RuleType,\x20OmitDto\x20}\x20from\x20\x27@anncic-api/validator\x27;\x0a\x0a','/**\x0a','?:\x20any\x20|\x20any[];\x0a\x0a','\x20\x20\x20\x20@Rule(\x27默认排序\x27,\x20RuleType.number())\x0a','@/app','370224QjLRlX','export\x20class\x20','\x20*\x20数据添加验证\x0a','\x20\x20\x20\x20@Rule(\x27创建时间\x27,\x20RuleType.date(),\x20\x27<\x20起始时间(之前)\x27)\x0a','toUpperCase','DTOCreate\x20extends\x20OmitDto(','6fIYnxR','\x20\x20\x20\x20@Rule(\x27','toLowerCase','join','toString','default','replace','Null','?:\x20number;\x0a\x0a','_start?:\x20string;\x0a\x0a','DTOSearch\x20{\x0a\x0a','apply','\x20\x20\x20\x20','/Search.ts','number',':\x20number;\x0a\x0a','substring','YES','decimal',':\x20string;\x0a\x0a','utf-8','947412AoKxxR'];a10_0x1606=function(){return _0x4b2549;};return a10_0x1606();}'use strict';Object['defineProperty'](exports,a10_0x1e0c65(0x15a),{'value':!![]});const fs=require('fs'),helper_1=require(a10_0x1e0c65(0x19e));async function default_1({controllers:_0x236ce2,tablestartUp:_0x36d8cb,tablestartUpShort:_0x3ae0f5,basedir:_0x15b336,Primary:_0x399fd7,Fields:_0x2e843f,Comment:_0x8b07f1,moduleName:_0x1e8df7}){const _0xb88754=a10_0x1e0c65,_0x15bc9f=_0x15b336+(_0xb88754(0x15b)+_0x3ae0f5);!fs[_0xb88754(0x13d)](_0x15bc9f)&&fs[_0xb88754(0x130)](_0x15bc9f,{'recursive':!![]}),await DTOCreate({'controllers':_0x236ce2,'tablestartUp':_0x36d8cb,'tablestartUpShort':_0x3ae0f5,'basedir':_0x15b336,'Fields':_0x2e843f,'Comment':_0x8b07f1,'moduleName':_0x1e8df7}),await DTOUpdate({'controllers':_0x236ce2,'tablestartUp':_0x36d8cb,'tablestartUpShort':_0x3ae0f5,'basedir':_0x15b336,'Fields':_0x2e843f,'Comment':_0x8b07f1,'moduleName':_0x1e8df7}),await DTOSearch({'controllers':_0x236ce2,'tablestartUp':_0x36d8cb,'tablestartUpShort':_0x3ae0f5,'basedir':_0x15b336,'Fields':_0x2e843f,'Primary':_0x399fd7,'Comment':_0x8b07f1,'moduleName':_0x1e8df7});}exports[a10_0x1e0c65(0x17b)]=default_1;async function DTOCreate({controllers:_0x17e411,tablestartUp:_0x37e5e5,tablestartUpShort:_0x4bc6d1,basedir:_0xc0b866,Fields:_0x375a28,Comment:_0x491b46,moduleName:_0x3bae7d}){const _0x3a435e=a10_0x1e0c65,_0x1ca9f7=_0xc0b866+(_0x3a435e(0x15b)+_0x4bc6d1+_0x3a435e(0x192));if(!fs[_0x3a435e(0x13d)](_0x1ca9f7)){let _0x1ecbca='',_0x2f7858='',_0x214d93=![];for(let _0x4bf0bf in _0x375a28){let _0x2abca9=_0x375a28[_0x4bf0bf],_0x5283b5=(0x0,helper_1['getProp'])(_0x2abca9[_0x3a435e(0x147)]);if(_0x2abca9['Field']==_0x3a435e(0x14f)||_0x2abca9[_0x3a435e(0x156)]==_0x3a435e(0x198)||_0x2abca9[_0x3a435e(0x156)]=='updated_at'||_0x2abca9[_0x3a435e(0x156)]==_0x3a435e(0x14c))continue;if([_0x3a435e(0x139),_0x3a435e(0x19b),_0x3a435e(0x19f)][_0x3a435e(0x19a)](_0x5283b5)!=-0x1)_0x1ecbca+=_0x3a435e(0x177)+_0x2abca9[_0x3a435e(0x194)]+_0x3a435e(0x166),_0x1ecbca+=_0x3a435e(0x182)+_0x2abca9[_0x3a435e(0x156)]+'?:\x20string;\x0a\x0a';else{if([_0x3a435e(0x153),'double',_0x3a435e(0x188),_0x3a435e(0x184)][_0x3a435e(0x19a)](_0x5283b5)!=-0x1)_0x1ecbca+=_0x3a435e(0x177)+_0x2abca9[_0x3a435e(0x194)]+'\x27,\x20RuleType.number()'+(_0x2abca9[_0x3a435e(0x17d)]!=_0x3a435e(0x187)?_0x3a435e(0x12f):'')+')\x0a',_0x1ecbca+=_0x3a435e(0x182)+_0x2abca9[_0x3a435e(0x156)]+(_0x2abca9[_0x3a435e(0x17d)]!=_0x3a435e(0x187)?'?':'')+_0x3a435e(0x185);else{if([_0x3a435e(0x169)][_0x3a435e(0x19a)](_0x5283b5)!=-0x1)_0x214d93=!![],_0x1ecbca+='\x20\x20\x20\x20@Rule(\x27'+_0x2abca9[_0x3a435e(0x194)]+_0x3a435e(0x155)+_0x37e5e5+_0x3a435e(0x163)+_0x2abca9[_0x3a435e(0x156)]+'\x27))'+(_0x2abca9[_0x3a435e(0x17d)]!=_0x3a435e(0x187)?_0x3a435e(0x12f):'')+')\x0a',_0x1ecbca+=_0x3a435e(0x182)+_0x2abca9['Field']+(_0x2abca9['Null']!=_0x3a435e(0x187)?'?':'')+_0x3a435e(0x185);else{if(_0x5283b5==_0x3a435e(0x148))_0x1ecbca+=_0x3a435e(0x177)+_0x2abca9[_0x3a435e(0x194)]+_0x3a435e(0x143),_0x1ecbca+='\x20\x20\x20\x20'+_0x2abca9[_0x3a435e(0x156)]+(_0x2abca9[_0x3a435e(0x17d)]!=_0x3a435e(0x187)?'?':'')+':\x20any\x20|\x20any[];\x0a\x0a';else{if(_0x5283b5==_0x3a435e(0x154)){let _0x4c5bf4=(0x0,helper_1[_0x3a435e(0x15e)])(_0x2abca9[_0x3a435e(0x147)]);_0x1ecbca+='\x20\x20\x20\x20@Rule(\x27'+_0x2abca9[_0x3a435e(0x194)]+_0x3a435e(0x197)+_0x4c5bf4[_0x3a435e(0x179)]('\x27,\x20\x27')+'\x27)'+(_0x2abca9[_0x3a435e(0x17d)]!=_0x3a435e(0x187)?_0x3a435e(0x12f):'')+')\x0a',_0x1ecbca+=_0x3a435e(0x182)+_0x2abca9[_0x3a435e(0x156)]+(_0x2abca9[_0x3a435e(0x17d)]!=_0x3a435e(0x187)?'?':'')+_0x3a435e(0x18e)+_0x4c5bf4[_0x3a435e(0x179)]('\x27\x20|\x20\x27')+_0x3a435e(0x19c);}else['date',_0x3a435e(0x162),_0x3a435e(0x18c)][_0x3a435e(0x19a)](_0x5283b5)>-0x1?(_0x1ecbca+='\x20\x20\x20\x20@Rule(\x27'+_0x2abca9[_0x3a435e(0x194)]+'\x27,\x20RuleType.date()'+(_0x2abca9['Null']!=_0x3a435e(0x187)?_0x3a435e(0x12f):'')+')\x0a',_0x1ecbca+='\x20\x20\x20\x20'+_0x2abca9[_0x3a435e(0x156)]+(_0x2abca9[_0x3a435e(0x17d)]!='YES'?'?':'')+_0x3a435e(0x189)):(_0x1ecbca+=_0x3a435e(0x177)+_0x2abca9['Comment']+_0x3a435e(0x131)+(_0x2abca9['Null']!=_0x3a435e(0x187)?_0x3a435e(0x12f):'')+')\x0a',_0x1ecbca+=_0x3a435e(0x182)+_0x2abca9[_0x3a435e(0x156)]+(_0x2abca9[_0x3a435e(0x17d)]!=_0x3a435e(0x187)?'?':'')+':\x20string;\x0a\x0a');}}}}}_0x1ecbca+=_0x3a435e(0x16e),_0x1ecbca+=_0x3a435e(0x140);(_0x17e411===null||_0x17e411===void 0x0?void 0x0:_0x17e411[_0x3a435e(0x18d)](_0x417082=>typeof _0x417082!='boolean'))?_0x2f7858+=_0x3a435e(0x16b):_0x2f7858+='import\x20{\x20Rule,\x20RuleType\x20}\x20from\x20\x27@anncic-api/validator\x27;\x0a\x0a';_0x214d93&&(_0x2f7858+=_0x3a435e(0x13c)+_0x37e5e5+'Enum\x20}\x20from\x20\x27'+(typeof _0x3bae7d==_0x3a435e(0x157)?_0x3a435e(0x14d)+_0x3bae7d:_0x3a435e(0x16f))+_0x3a435e(0x13a)+_0x4bc6d1+'\x27;\x0a');_0x2f7858+='\x0a',_0x2f7858+=_0x3a435e(0x16c),_0x2f7858+='\x20*\x20'+_0x491b46+'\x0a',_0x2f7858+=_0x3a435e(0x172),_0x2f7858+=_0x3a435e(0x142),_0x2f7858+='export\x20class\x20'+_0x37e5e5+'DTOCreate\x20{\x0a\x0a',_0x2f7858+=_0x3a435e(0x135),_0x2f7858+=_0x3a435e(0x151);for(const _0x1bcb3f of _0x17e411){typeof _0x1bcb3f=='string'&&(_0x2f7858+=_0x3a435e(0x171)+_0x1bcb3f[_0x3a435e(0x186)](0x0,0x1)[_0x3a435e(0x174)]()+_0x1bcb3f['substring'](0x1)['toLowerCase']()+_0x37e5e5+_0x3a435e(0x175)+_0x37e5e5+_0x3a435e(0x168),_0x2f7858+=_0x3a435e(0x151));}_0x2f7858=_0x2f7858[_0x3a435e(0x17c)]('%DtoColumn%',_0x1ecbca),fs[_0x3a435e(0x137)](_0x1ca9f7,_0x2f7858,_0x3a435e(0x18a));}}async function DTOUpdate({controllers:_0x5c7d2c,tablestartUp:_0x41cf07,tablestartUpShort:_0x44af56,basedir:_0x1b3676,Fields:_0x16bba2,Comment:_0x26ad1e,moduleName:_0x454163}){const _0x566736=a10_0x1e0c65,_0x197cc0=_0x1b3676+(_0x566736(0x15b)+_0x44af56+'/Update.ts');if(!fs[_0x566736(0x13d)](_0x197cc0)){let _0x2c76f5='',_0xf0c16b='',_0x37cf6c=![];for(let _0x309164 in _0x16bba2){let _0x5d70e1=_0x16bba2[_0x309164],_0xcb7a84=(0x0,helper_1[_0x566736(0x144)])(_0x5d70e1['Type']);if(_0x5d70e1[_0x566736(0x156)]==_0x566736(0x14f)||_0x5d70e1[_0x566736(0x156)]==_0x566736(0x198)||_0x5d70e1['Field']=='updated_at'||_0x5d70e1['Field']==_0x566736(0x14c))continue;if([_0x566736(0x139),_0x566736(0x19b),_0x566736(0x19f)]['indexOf'](_0xcb7a84)!=-0x1)_0x2c76f5+=_0x566736(0x177)+_0x5d70e1[_0x566736(0x194)]+_0x566736(0x166),_0x2c76f5+=_0x566736(0x182)+_0x5d70e1['Field']+_0x566736(0x136);else{if([_0x566736(0x153),_0x566736(0x141),_0x566736(0x188),_0x566736(0x184)][_0x566736(0x19a)](_0xcb7a84)!=-0x1)_0x2c76f5+=_0x566736(0x177)+_0x5d70e1[_0x566736(0x194)]+_0x566736(0x16a),_0x2c76f5+=_0x566736(0x182)+_0x5d70e1[_0x566736(0x156)]+'?:\x20number;\x0a\x0a';else{if(['tinyint']['indexOf'](_0xcb7a84)!=-0x1)_0x37cf6c=!![],_0x2c76f5+=_0x566736(0x177)+_0x5d70e1[_0x566736(0x194)]+_0x566736(0x155)+_0x41cf07+'Enum,\x20\x27'+_0x5d70e1[_0x566736(0x156)]+_0x566736(0x132),_0x2c76f5+='\x20\x20\x20\x20'+_0x5d70e1['Field']+_0x566736(0x17e);else{if(_0xcb7a84==_0x566736(0x148))_0x2c76f5+=_0x566736(0x177)+_0x5d70e1[_0x566736(0x194)]+_0x566736(0x143),_0x2c76f5+='\x20\x20\x20\x20'+_0x5d70e1['Field']+_0x566736(0x16d);else{if(_0xcb7a84=='enum'){let _0x16a9a6=(0x0,helper_1[_0x566736(0x15e)])(_0x5d70e1[_0x566736(0x147)]);_0x2c76f5+='\x20\x20\x20\x20@Rule(\x27'+_0x5d70e1['Comment']+_0x566736(0x197)+_0x16a9a6[_0x566736(0x179)]('\x27,\x20\x27')+_0x566736(0x196),_0x2c76f5+=_0x566736(0x182)+_0x5d70e1['Field']+'?:\x20\x27'+_0x16a9a6[_0x566736(0x179)](_0x566736(0x159))+_0x566736(0x19c);}else['date','datetime',_0x566736(0x18c)]['indexOf'](_0xcb7a84)>-0x1?(_0x2c76f5+='\x20\x20\x20\x20@Rule(\x27'+_0x5d70e1[_0x566736(0x194)]+_0x566736(0x15d),_0x2c76f5+=_0x566736(0x182)+_0x5d70e1[_0x566736(0x156)]+'?:\x20string;\x0a\x0a'):(_0x2c76f5+=_0x566736(0x177)+_0x5d70e1[_0x566736(0x194)]+_0x566736(0x166),_0x2c76f5+=_0x566736(0x182)+_0x5d70e1['Field']+'?:\x20string;\x0a\x0a');}}}}}_0x2c76f5+='\x20\x20\x20\x20@Rule(\x27默认排序\x27,\x20RuleType.number())\x0a',_0x2c76f5+=_0x566736(0x140);(_0x5c7d2c===null||_0x5c7d2c===void 0x0?void 0x0:_0x5c7d2c[_0x566736(0x18d)](_0x543652=>typeof _0x543652!=_0x566736(0x165)))?_0xf0c16b+=_0x566736(0x16b):_0xf0c16b+=_0x566736(0x14b);_0x37cf6c&&(_0xf0c16b+=_0x566736(0x13c)+_0x41cf07+_0x566736(0x134)+(typeof _0x454163=='string'?_0x566736(0x14d)+_0x454163:_0x566736(0x16f))+_0x566736(0x13a)+_0x44af56+_0x566736(0x15f));_0xf0c16b+='\x0a',_0xf0c16b+=_0x566736(0x16c),_0xf0c16b+=_0x566736(0x152)+_0x26ad1e+'\x0a',_0xf0c16b+='\x20*\x20数据更新验证\x0a',_0xf0c16b+=_0x566736(0x142),_0xf0c16b+=_0x566736(0x171)+_0x41cf07+_0x566736(0x191),_0xf0c16b+=_0x566736(0x135),_0xf0c16b+=_0x566736(0x151);for(const _0x5873fd of _0x5c7d2c){typeof _0x5873fd==_0x566736(0x157)&&(_0xf0c16b+=_0x566736(0x171)+_0x5873fd[_0x566736(0x186)](0x0,0x1)[_0x566736(0x174)]()+_0x5873fd[_0x566736(0x186)](0x1)['toLowerCase']()+_0x41cf07+'DTOUpdate\x20extends\x20OmitDto('+_0x41cf07+_0x566736(0x164),_0xf0c16b+=_0x566736(0x151));}_0xf0c16b=_0xf0c16b[_0x566736(0x17c)](_0x566736(0x135),_0x2c76f5),fs[_0x566736(0x137)](_0x197cc0,_0xf0c16b,_0x566736(0x18a));}}async function DTOSearch({controllers:_0x24dee3,tablestartUp:_0x1d986a,tablestartUpShort:_0x4a459e,basedir:_0x580104,Fields:_0x13b3cd,Primary:_0x264f37,Comment:_0x439974,moduleName:_0x1722fc}){const _0xbec197=a10_0x1e0c65,_0x2801dc=_0x580104+(_0xbec197(0x15b)+_0x4a459e+_0xbec197(0x183));if(!fs[_0xbec197(0x13d)](_0x2801dc)){let _0x1f3116='',_0x5ce6f0='',_0x2547f8=![];for(let _0x1834d1 of[{[_0x264f37[_0xbec197(0x156)]]:_0x264f37},_0x13b3cd]){for(let _0x148d3a in _0x1834d1){let _0xb45569=_0x1834d1[_0x148d3a],_0x1f5bd0=(0x0,helper_1[_0xbec197(0x144)])(_0xb45569[_0xbec197(0x147)]);if(_0xb45569['Field']==_0xbec197(0x14f)||_0xb45569[_0xbec197(0x156)]==_0xbec197(0x198)||_0xb45569[_0xbec197(0x156)]=='updated_at'||_0xb45569[_0xbec197(0x156)]=='deleted_at')continue;if([_0xbec197(0x139),_0xbec197(0x19b),'mediumtext'][_0xbec197(0x19a)](_0x1f5bd0)!=-0x1){}else{if(['float',_0xbec197(0x141),_0xbec197(0x188),_0xbec197(0x184)][_0xbec197(0x19a)](_0x1f5bd0)!=-0x1)_0x1f3116+='\x20\x20\x20\x20@Rule(\x27'+_0xb45569['Comment']+_0xbec197(0x16a),_0x1f3116+=_0xbec197(0x182)+_0xb45569[_0xbec197(0x156)]+_0xbec197(0x17e);else{if([_0xbec197(0x169)][_0xbec197(0x19a)](_0x1f5bd0)!=-0x1)_0x2547f8=!![],_0x1f3116+=_0xbec197(0x177)+_0xb45569[_0xbec197(0x194)]+'\x27,\x20RuleType.number().valid(...getAnnEnumArray('+_0x1d986a+_0xbec197(0x163)+_0xb45569['Field']+'\x27)))\x0a',_0x1f3116+=_0xbec197(0x182)+_0xb45569[_0xbec197(0x156)]+'?:\x20number;\x0a\x0a';else{if(_0x1f5bd0==_0xbec197(0x148)){}else{if(_0x1f5bd0==_0xbec197(0x154)){let _0x2f6add=(0x0,helper_1['getEnum'])(_0xb45569['Type']);_0x1f3116+='\x20\x20\x20\x20@Rule(\x27'+_0xb45569[_0xbec197(0x194)]+_0xbec197(0x197)+_0x2f6add['join'](_0xbec197(0x193))+_0xbec197(0x196),_0x1f3116+='\x20\x20\x20\x20'+_0xb45569[_0xbec197(0x156)]+_0xbec197(0x199)+_0x2f6add[_0xbec197(0x179)](_0xbec197(0x159))+_0xbec197(0x19c);}else[_0xbec197(0x14a),'datetime','timestamp'][_0xbec197(0x19a)](_0x1f5bd0)>-0x1?(_0x1f3116+=_0xbec197(0x177)+_0xb45569[_0xbec197(0x194)]+_0xbec197(0x166),_0x1f3116+=_0xbec197(0x182)+_0xb45569[_0xbec197(0x156)]+_0xbec197(0x136),_0x1f3116+=_0xbec197(0x177)+_0xb45569[_0xbec197(0x194)]+_0xbec197(0x13b),_0x1f3116+=_0xbec197(0x182)+_0xb45569[_0xbec197(0x156)]+_0xbec197(0x17f),_0x1f3116+=_0xbec197(0x177)+_0xb45569[_0xbec197(0x194)]+_0xbec197(0x138),_0x1f3116+=_0xbec197(0x182)+_0xb45569[_0xbec197(0x156)]+'_end?:\x20string;\x0a\x0a'):(_0x1f3116+=_0xbec197(0x177)+_0xb45569[_0xbec197(0x194)]+_0xbec197(0x166),_0x1f3116+=_0xbec197(0x182)+_0xb45569[_0xbec197(0x156)]+_0xbec197(0x136));}}}}}}_0x1f3116+=_0xbec197(0x16e),_0x1f3116+=_0xbec197(0x140),_0x1f3116+=_0xbec197(0x158),_0x1f3116+=_0xbec197(0x160),_0x1f3116+=_0xbec197(0x173),_0x1f3116+='\x20\x20\x20\x20created_at_end?:\x20string;\x0a\x0a',_0x1f3116+='\x20\x20\x20\x20@Rule(\x27修改时间\x27,\x20RuleType.date(),\x20\x27>=\x20起始时间(之后)\x27)\x0a',_0x1f3116+=_0xbec197(0x19d),_0x1f3116+=_0xbec197(0x149),_0x1f3116+=_0xbec197(0x133);(_0x24dee3===null||_0x24dee3===void 0x0?void 0x0:_0x24dee3['find'](_0xdbe3aa=>typeof _0xdbe3aa!=_0xbec197(0x165)))?_0x5ce6f0+=_0xbec197(0x16b):_0x5ce6f0+=_0xbec197(0x14b);_0x2547f8&&(_0x5ce6f0+='import\x20{\x20'+_0x1d986a+_0xbec197(0x134)+(typeof _0x1722fc==_0xbec197(0x157)?_0xbec197(0x14d)+_0x1722fc:_0xbec197(0x16f))+_0xbec197(0x13a)+_0x4a459e+_0xbec197(0x15f));_0x5ce6f0+='\x0a',_0x5ce6f0+=_0xbec197(0x16c),_0x5ce6f0+=_0xbec197(0x152)+_0x439974+'\x0a',_0x5ce6f0+='\x20*\x20数据检索验证\x0a',_0x5ce6f0+=_0xbec197(0x142),_0x5ce6f0+=_0xbec197(0x171)+_0x1d986a+_0xbec197(0x180),_0x5ce6f0+=_0xbec197(0x150),_0x5ce6f0+='}\x0a\x0a';for(const _0x3ad439 of _0x24dee3){typeof _0x3ad439=='string'&&(_0x5ce6f0+=_0xbec197(0x171)+_0x3ad439[_0xbec197(0x186)](0x0,0x1)[_0xbec197(0x174)]()+_0x3ad439[_0xbec197(0x186)](0x1)[_0xbec197(0x178)]()+_0x1d986a+'DTOSearch\x20extends\x20OmitDto('+_0x1d986a+_0xbec197(0x146),_0x5ce6f0+='}\x0a\x0a');}_0x5ce6f0=_0x5ce6f0['replace'](_0xbec197(0x150),_0x1f3116),fs[_0xbec197(0x137)](_0x2801dc,_0x5ce6f0,_0xbec197(0x18a));}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a11_0x2a8353=a11_0x4c7e;(function(_0x4d4bab,_0x192033){const _0x30b927=a11_0x4c7e,_0x3d2dc8=_0x4d4bab();while(!![]){try{const _0x2d4ee2=parseInt(_0x30b927(0x198))/0x1*(parseInt(_0x30b927(0x196))/0x2)+parseInt(_0x30b927(0x187))/0x3*(parseInt(_0x30b927(0x1ab))/0x4)+-parseInt(_0x30b927(0x1b2))/0x5+-parseInt(_0x30b927(0x1a0))/0x6*(-parseInt(_0x30b927(0x18c))/0x7)+-parseInt(_0x30b927(0x178))/0x8*(parseInt(_0x30b927(0x189))/0x9)+-parseInt(_0x30b927(0x1ac))/0xa+-parseInt(_0x30b927(0x1b4))/0xb*(-parseInt(_0x30b927(0x183))/0xc);if(_0x2d4ee2===_0x192033)break;else _0x3d2dc8['push'](_0x3d2dc8['shift']());}catch(_0x5b4586){_0x3d2dc8['push'](_0x3d2dc8['shift']());}}}(a11_0x2891,0x4e640));const a11_0x42cc89=(function(){let _0x334771=!![];return function(_0x30d002,_0x13fc7d){const _0x347084=_0x334771?function(){const _0x1ae3ae=a11_0x4c7e;if(_0x13fc7d){const _0x6a5a6f=_0x13fc7d[_0x1ae3ae(0x194)](_0x30d002,arguments);return _0x13fc7d=null,_0x6a5a6f;}}:function(){};return _0x334771=![],_0x347084;};}()),a11_0x499f8b=a11_0x42cc89(this,function(){const _0x2189e9=a11_0x4c7e;return a11_0x499f8b[_0x2189e9(0x19e)]()['search'](_0x2189e9(0x192))[_0x2189e9(0x19e)]()[_0x2189e9(0x1a7)](a11_0x499f8b)[_0x2189e9(0x1a6)](_0x2189e9(0x192));});function a11_0x4c7e(_0x654459,_0x5db298){const _0x4d83f6=a11_0x2891();return a11_0x4c7e=function(_0x499f8b,_0x42cc89){_0x499f8b=_0x499f8b-0x172;let _0x28918a=_0x4d83f6[_0x499f8b];return _0x28918a;},a11_0x4c7e(_0x654459,_0x5db298);}a11_0x499f8b();function a11_0x2891(){const _0x45f1c5=['readFileSync','1IDMCyt','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{title:\x20\x22首页\x22\x20,children:[\x0a','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20})\x0a','},\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20add\x20menu\x20here','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20add\x20menu\x20here\x0a','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<el-dropdown-menu>\x0a','toString','\x20\x20\x20\x20\x20\x20\x20\x20<template\x20#userbar>\x0a','18Lnutho','\x20\x20\x20\x20\x20\x20\x20\x20}\x0a','existsSync','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20confirmButtonText:\x20\x22退出\x22,\x0a','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20type:\x20\x22warning\x22,\x0a','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}).then(()\x20=>\x20{\x0a','search','constructor','//\x20add\x20menu\x20here','\x20\x20\x20\x20</page-layout>\x0a','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</el-dropdown-menu>\x0a','24pdkXRb','2920810xTJZWR','writeFileSync','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20this.$confirm(\x22确认是否退出当前用户?\x22,\x22提示\x22,\x20{\x0a','\x20\x20\x20\x20\x20\x20\x20\x20</template>\x0a','</style>\x0a','\x20\x20\x20\x20.user\x20{display:\x20flex;align-items:\x20center;height:100%}\x0a','1385485jONNQH','\x20\x20\x20\x20\x20\x20\x20\x20return\x20{\x0a','1243HaidoN','\x20\x20\x20\x20<page-layout\x20:menus=\x22menus\x22>\x0a','/pages/layout.vue','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22user\x22>\x0a','/layout.vue','</script>\x0a\x0a','8HivxtR','padEnd','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</template>\x0a',',\x20path:\x20\x22','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<el-avatar\x20:size=\x2230\x22>A</el-avatar>\x0a','replace','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<label>Admin<i\x20class=\x22el-icon-arrow-down\x20el-icon--right\x22\x20/></label>\x0a','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<el-dropdown-item\x20command=\x22outLogin\x22>退出登录</el-dropdown-item>\x0a','default','\x20\x20\x20\x20\x20\x20\x20\x20handleCommand(command)\x20{\x0a','{title:\x20\x22','34332NRtUNh','\x20\x20\x20\x20}\x0a','<template>\x0a','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</el-dropdown>\x0a','48078VrbxxG','<style\x20scoped>\x0a','3556809NcTxio','/module/','utf-8','1288609WidJjZ','cwd','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20menus:\x20[\x0a','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20]},\x0a','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20console.log(\x22点击退出\x22)\x0a','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20if(command\x20==\x20\x22outLogin\x22){\x0a','(((.+)+)+)+$','export\x20default\x20{\x0a','apply','<script>\x0a','627514xKYcKi'];a11_0x2891=function(){return _0x45f1c5;};return a11_0x2891();}'use strict';Object['defineProperty'](exports,'__esModule',{'value':!![]});const fs=require('fs'),path_1=require('path');async function default_1({tablestartUpShort2:_0x205777,controller:_0x331d88,moduleName:_0x5b2ccb,Comment:_0xe7fd0b}){const _0x378028=a11_0x4c7e;let _0x12a379=process[_0x378028(0x18d)]()+'/vue'+(typeof _0x331d88=='string'?'/'+_0x331d88:'');_0x5b2ccb?_0x12a379=_0x12a379+(_0x378028(0x18a)+_0x5b2ccb+_0x378028(0x176)):_0x12a379=_0x12a379+_0x378028(0x173);await createLayout(_0x12a379);const _0x53ad02=fs[_0x378028(0x197)](_0x12a379,_0x378028(0x18b));fs[_0x378028(0x1ad)](_0x12a379,_0x53ad02[_0x378028(0x17d)](_0x378028(0x1a8),_0x378028(0x182)+(_0xe7fd0b+'\x22')[_0x378028(0x179)](0x14)+_0x378028(0x17b)+(''+(typeof _0x5b2ccb=='string'?_0x378028(0x18a)+_0x5b2ccb+'/':'/')+_0x205777+'\x22')[_0x378028(0x179)](0x14)+_0x378028(0x19b)));}exports[a11_0x2a8353(0x180)]=default_1;async function createLayout(_0x365f70){const _0x338a49=a11_0x2a8353;if(!fs[_0x338a49(0x1a2)](_0x365f70)){let _0x24d4a5=_0x338a49(0x185);_0x24d4a5+=_0x338a49(0x172),_0x24d4a5+=_0x338a49(0x19f),_0x24d4a5+='\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<el-dropdown\x20trigger=\x22click\x22\x20@command=\x22handleCommand\x22\x20style=\x22height:\x20100%;\x22>\x0a',_0x24d4a5+=_0x338a49(0x175),_0x24d4a5+=_0x338a49(0x17c),_0x24d4a5+=_0x338a49(0x17e),_0x24d4a5+='\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</div>\x0a',_0x24d4a5+='\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<template\x20#dropdown>\x0a',_0x24d4a5+=_0x338a49(0x19d),_0x24d4a5+=_0x338a49(0x17f),_0x24d4a5+=_0x338a49(0x1aa),_0x24d4a5+=_0x338a49(0x17a),_0x24d4a5+=_0x338a49(0x186),_0x24d4a5+=_0x338a49(0x1af),_0x24d4a5+=_0x338a49(0x1a9),_0x24d4a5+='</template>\x0a\x0a',_0x24d4a5+=_0x338a49(0x195),_0x24d4a5+=_0x338a49(0x193),_0x24d4a5+='\x20\x20\x20\x20data()\x20{\x0a',_0x24d4a5+=_0x338a49(0x1b3),_0x24d4a5+=_0x338a49(0x18e),_0x24d4a5+=_0x338a49(0x199),_0x24d4a5+='\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{title:\x20\x22控制台\x22\x20,\x20path:\x20\x22/\x22,affix:true},\x0a',_0x24d4a5+=_0x338a49(0x19c),_0x24d4a5+=_0x338a49(0x18f),_0x24d4a5+='\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20]\x0a',_0x24d4a5+=_0x338a49(0x1a1),_0x24d4a5+='\x20\x20\x20\x20},\x0a',_0x24d4a5+='\x20\x20\x20\x20methods:\x20{\x0a',_0x24d4a5+=_0x338a49(0x181),_0x24d4a5+=_0x338a49(0x191),_0x24d4a5+=_0x338a49(0x1ae),_0x24d4a5+=_0x338a49(0x1a4),_0x24d4a5+=_0x338a49(0x1a3),_0x24d4a5+='\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20confirmButtonClass:\x20\x22el-button--danger\x22,\x0a',_0x24d4a5+=_0x338a49(0x1a5),_0x24d4a5+=_0x338a49(0x190),_0x24d4a5+=_0x338a49(0x19a),_0x24d4a5+=_0x338a49(0x174),_0x24d4a5+='\x20\x20\x20\x20\x20\x20\x20\x20}\x0a',_0x24d4a5+=_0x338a49(0x184),_0x24d4a5+='}\x0a',_0x24d4a5+=_0x338a49(0x177),_0x24d4a5+=_0x338a49(0x188),_0x24d4a5+=_0x338a49(0x1b1),_0x24d4a5+=_0x338a49(0x1b0),fs['mkdirSync']((0x0,path_1['dirname'])(_0x365f70),{'recursive':!![]}),fs[_0x338a49(0x1ad)](_0x365f70,_0x24d4a5,_0x338a49(0x18b));}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a12_0x281856=a12_0x458f;(function(_0x47c9b8,_0x58801c){const _0x3e9262=a12_0x458f,_0x3fccc1=_0x47c9b8();while(!![]){try{const _0xdc5a73=-parseInt(_0x3e9262(0x172))/0x1*(parseInt(_0x3e9262(0x17a))/0x2)+parseInt(_0x3e9262(0x15b))/0x3+-parseInt(_0x3e9262(0x15c))/0x4*(parseInt(_0x3e9262(0x18d))/0x5)+-parseInt(_0x3e9262(0x15f))/0x6*(parseInt(_0x3e9262(0x130))/0x7)+parseInt(_0x3e9262(0x183))/0x8*(-parseInt(_0x3e9262(0x122))/0x9)+parseInt(_0x3e9262(0x18e))/0xa*(-parseInt(_0x3e9262(0x191))/0xb)+parseInt(_0x3e9262(0x126))/0xc*(parseInt(_0x3e9262(0x15e))/0xd);if(_0xdc5a73===_0x58801c)break;else _0x3fccc1['push'](_0x3fccc1['shift']());}catch(_0x589235){_0x3fccc1['push'](_0x3fccc1['shift']());}}}(a12_0x1868,0xcc662));const a12_0x1b9e46=(function(){let _0x50ea94=!![];return function(_0x380d61,_0x1c3fa0){const _0xca7bdf=_0x50ea94?function(){const _0x172c4d=a12_0x458f;if(_0x1c3fa0){const _0x2bf59a=_0x1c3fa0[_0x172c4d(0x143)](_0x380d61,arguments);return _0x1c3fa0=null,_0x2bf59a;}}:function(){};return _0x50ea94=![],_0xca7bdf;};}()),a12_0x5b1d79=a12_0x1b9e46(this,function(){const _0x334bfb=a12_0x458f;return a12_0x5b1d79['toString']()['search'](_0x334bfb(0x192))[_0x334bfb(0x186)]()['constructor'](a12_0x5b1d79)[_0x334bfb(0x16e)]('(((.+)+)+)+$');});a12_0x5b1d79();'use strict';Object[a12_0x281856(0x15a)](exports,a12_0x281856(0x141),{'value':!![]});const fs=require('fs'),path_1=require(a12_0x281856(0x160)),helper_1=require('../helper');function a12_0x1868(){const _0x5e64fe=['substr',')\x22\x20type=\x22text\x22\x20size=\x22small\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20编辑\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</el-button>\x0a\x0a\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<el-button\x20v-if=\x22$hasPrem(`delete@','_ids','writeFileSync','tags','dirname','</a>','text','thumb','477hcIMpn','\x20label=\x22','\x22\x20\x20placeholder=\x22请输入','`)\x22\x20@click=\x22$refs[\x27page-store\x27].open(scope.row.','3432408oatOgI','<page-images\x20v-model=\x22formdata.','thumbs','<el-date-picker\x20v-model=\x22search.','){\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20this.loading\x20=\x20true;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20this.$get(\x27','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','</el-select>','cwd','<el-input-number\x20v-model=\x22search.','\x20\x20\x20\x20','4923653YgovKA','getProp','\x22\x20:limit=\x225\x22\x20/>','<el-input\x20v-model=\x22formdata.',').then(res=>{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20this.loading\x20=\x20false\x20,\x20this.LoadDatas()\x20,\x20this.$notify({message:\x20res?.message\x20||\x20\x27操作成功\x27});\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}).catch(err=>{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20this.loading\x20=\x20false\x20,\x20this.$notify.error({message:err||\x27删除失败\x27});\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20})\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}).catch(()=>{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20this.loading\x20=\x20false;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\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\x20\x20}\x0a\x20\x20\x20\x20},\x0a}\x0a</script>','<el-form-item\x20label=\x22排序\x22>','utf-8','\x0a</template>\x0a<script>\x0aexport\x20default\x20{\x0a\x20\x20\x20\x20props:\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20search:\x20{type:\x20Object\x20,default:\x20()=>{return\x20{}}},\x0a\x20\x20\x20\x20}\x0a}\x0a</script>','<template\x20#default=\x22scope\x22>','/index.vue',')\x22\x20style=\x22width:\x2040px;\x20cursor:pointer\x22\x20/>','\x22\x20:limit=\x221\x22\x20/>','\x22\x20placeholder=\x22请选择',').then(res=>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20this.formdata\x20=\x20res.data,\x20this.loading\x20=\x20false;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}).catch(err=>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20this.$notify.error({message:\x20err\x20||\x20\x27网络请求错误\x27}),this.$refs[\x27page-dialog\x27].close();\x0a\x20\x20\x20\x20\x20\x20\x20\x20\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\x20\x20},\x0a\x0a\x20\x20\x20\x20\x20\x20\x20\x20/**\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20*\x20保存\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20*\x20@param\x20item\x20要保存的数据\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20*\x20**/\x0a\x20\x20\x20\x20\x20\x20\x20\x20ActionSave(item){\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20this.loading\x20=\x20true;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20this.$save(\x27','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</el-form>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</el-tab-pane>\x0a\x20\x20\x20\x20\x20\x20\x20\x20</el-tabs>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<template\x20#footer>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<el-button\x20type=\x22primary\x22\x20@click=\x22ActionSave(formdata)\x22>保存</el-button>\x0a\x20\x20\x20\x20\x20\x20\x20\x20</template>\x0a\x20\x20\x20\x20</page-dialog>\x0a</template>\x0a<script>\x0aexport\x20default\x20{\x0a\x20\x20\x20\x20data(){\x0a\x20\x20\x20\x20\x20\x20\x20\x20return\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20formdata:{},\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20loading:false,\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20},\x0a\x20\x20\x20\x20methods:\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20open(','\x22\x20:min=\x221\x22\x20:max=\x22100\x22\x20/>','/components/search.vue','__esModule','timestamp','apply','Type','\x27,this.table.search).then(res=>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20this.table.data\x20=\x20res.data\x20,\x20this.table.search._count\x20=\x20res.extra.pagetotal\x20,\x20this.loading\x20=\x20false;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}).catch(err=>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20this.$notify.error({message:\x20err\x20||\x20\x27网络请求错误\x27}),this.loading\x20=\x20false;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20});\x0a\x20\x20\x20\x20\x20\x20\x20\x20},\x0a\x0a\x20\x20\x20\x20\x20\x20\x20\x20/**\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20*\x20删除\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20*\x20@param\x20item\x20要删除的数据\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20*\x20**/\x0a\x20\x20\x20\x20\x20\x20\x20\x20ActionDel(item){\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20if(\x20item.id\x20){\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20this.loading\x20=\x20true;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20this.$confirm(\x27此操作将永久删除,\x20是否继续?\x27,\x20\x27提示\x27,\x20{confirmButtonText:\x20\x27确定\x27,cancelButtonText:\x20\x27取消\x27,type:\x20\x27warning\x27}).then(()\x20=>\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20this.$del(\x27','<template\x20#reference>','\x22\x20type=\x22datetime\x22\x20value-format=\x22YYYY-MM-DD\x20HH:mm:ss\x22/>','<el-select-search\x20v-model=\x22search.','<a\x20:href=\x22$img(scope.row.','`)\x22\x20@click=\x22$refs[\x27page-store\x27].open()\x22\x20type=\x22primary\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20添加\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</el-button>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</template>\x0a\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<template\x20#column>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','mkdirSync','deleted_at','existsSync','displayorder','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','number','_start\x22\x20placeholder=\x22选择','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x22\x20align=\x22center\x22\x20fixed=\x22left\x22\x20\x20width=\x22120\x22\x20/>','<img\x20:src=\x22$img(scope.row.','date','string','padEnd','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','结束时间\x22\x20type=\x22datetime\x22\x20value-format=\x22YYYY-MM-DD\x20HH:mm:ss\x22/>','defineProperty','1890SernHm','100CxfbMU','结束时间\x22\x20type=\x22date\x22\x20value-format=\x22YYYY-MM-DD\x22/>','143VWouTx','6TFjcvS','path','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x22\x20lakey=\x22id\x22\x20\x20label=\x22id\x22\x20/>','</el-table-column>','\x22\x20class=\x22block\x22>','\x22\x20placeholder=\x22请输入','img','created_at','\x22\x20type=\x22date\x22\x20value-format=\x22YYYY-MM-DD\x22/>','logo','</template>','\x22\x20/>','`)\x22\x20@click=\x22ActionDel(scope.row)\x22\x20type=\x22text\x22\x20size=\x22small\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20删除\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</el-button>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</template>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</el-table-column>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</template>\x0a\x20\x20\x20\x20\x20\x20\x20\x20</page-table>\x0a\x0a\x20\x20\x20\x20\x20\x20\x20\x20<store\x20ref=\x22page-store\x22\x20@save=\x22LoadDatas\x22/>\x0a\x20\x20\x20\x20</page>\x0a</template>\x0a<script>\x0aimport\x20store\x20from\x20\x22./components/store.vue\x22\x0aimport\x20search\x20from\x20\x22./components/search.vue\x22\x0aexport\x20default\x20{\x0a\x20\x20\x20\x20components:\x20{store,search},\x0a\x20\x20\x20\x20data(){\x0a\x20\x20\x20\x20\x20\x20\x20\x20return\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20loading:false,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20table:{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20data:[],\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20search:{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20_page:1,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20_size:20,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20_count:0,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\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\x20\x20}\x0a\x20\x20\x20\x20},\x0a\x20\x20\x20\x20mounted()\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20Object.assign(this.table.search,this.$route.params,this.$route.query),this.LoadDatas();\x0a\x20\x20\x20\x20},\x0a\x20\x20\x20\x20methods:\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20/**\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20*\x20获取数据列表\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20*\x20@param\x20page\x20分页-当前页\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20*\x20@param\x20size\x20分页-每页数量\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20*\x20**/\x0a\x20\x20\x20\x20\x20\x20\x20\x20LoadDatas(page,size){\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20page\x20&&\x20(this.table.search._page\x20=\x20page),size\x20&&\x20(this.table.search._size\x20=\x20size),this.loading\x20=\x20true;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20this.$get(\x27',')\x22\x20style=\x22width:\x20100%;max-width:500px\x22\x20/>','search','\x22\x20align=\x27center\x27\x20show-overflow-tooltip>','<el-input\x20v-model=\x22search.','/vue','1255593ZfzHlk','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20',')\x22\x20target=\x22_blank\x22\x20title=\x22查看最大化图片\x22>','<el-table-column\x20prop=','<el-select-tags\x20v-model=\x22formdata.','datetime','</el-form-item>','/module/','2MBbJLZ','\x22\x20type=\x22textarea\x22/>','/components/store.vue','\x20\x20\x20\x20\x20\x20\x20\x20','<el-date-picker\x20v-model=\x22formdata.','indexOf','</el-popover>','<el-form-item\x20label=\x22','/\x27+item.','3368sLZlLW','_end\x22\x20placeholder=\x22选择','\x22\x20placeholder=\x22请输入或选择','toString','Field','getEnum','Comment','/pages/','<el-option\x20label=\x22','enum','27020appNKB','5130tIjuTd','){\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20this.formdata\x20=\x20{}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20this.$refs[\x27page-dialog\x27].open()\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20if(','<el-input-number\x20v-model=\x22formdata.','4147QEOqFV','(((.+)+)+)+$','\x22\x20api=\x22','\x22\x20placeholder=\x22选择','updated_at','_id','\x22\x20value=\x22'];a12_0x1868=function(){return _0x5e64fe;};return a12_0x1868();}async function default_1({moduleName:_0x25e78a,controller:_0x1a7965,tablestartUpShort2:_0x560b4e,Primary:_0x4dbd9e,Fields:_0x3584fd}){await createIndex({'moduleName':_0x25e78a,'controller':_0x1a7965,'tablestartUpShort2':_0x560b4e,'Primary':_0x4dbd9e,'Fields':_0x3584fd}),await createStore({'moduleName':_0x25e78a,'controller':_0x1a7965,'tablestartUpShort2':_0x560b4e,'Primary':_0x4dbd9e,'Fields':_0x3584fd}),await createSearch({'moduleName':_0x25e78a,'controller':_0x1a7965,'tablestartUpShort2':_0x560b4e,'Primary':_0x4dbd9e,'Fields':_0x3584fd});}function a12_0x458f(_0x150a28,_0x526cf6){const _0x3454bc=a12_0x1868();return a12_0x458f=function(_0x5b1d79,_0x1b9e46){_0x5b1d79=_0x5b1d79-0x11a;let _0x18689b=_0x3454bc[_0x5b1d79];return _0x18689b;},a12_0x458f(_0x150a28,_0x526cf6);}exports['default']=default_1;async function createIndex({moduleName:_0x4709d5,controller:_0x208ff2,tablestartUpShort2:_0x22fd6f,Primary:_0x4e70fd,Fields:_0x29fcf6}){const _0x3db2e3=a12_0x281856;let _0x5cc3ce=process[_0x3db2e3(0x12d)]()+_0x3db2e3(0x171)+(typeof _0x208ff2==_0x3db2e3(0x156)?'/'+_0x208ff2:'');_0x4709d5?_0x5cc3ce=_0x5cc3ce+(_0x3db2e3(0x179)+_0x4709d5+'/'+_0x22fd6f+_0x3db2e3(0x139)):_0x5cc3ce=_0x5cc3ce+('/pages/'+_0x22fd6f+'/index.vue');if(!fs[_0x3db2e3(0x14d)](_0x5cc3ce)){let _0x33b6b3=_0x3db2e3(0x175)+('\x22'+_0x4e70fd[_0x3db2e3(0x187)]+'\x22')['padEnd'](0x14)+(_0x3db2e3(0x123)+(_0x4e70fd[_0x3db2e3(0x189)]||'编号')+_0x3db2e3(0x153));for(let _0x1f4232 in _0x29fcf6){const _0xe12fe3=_0x29fcf6[_0x1f4232];if([_0x3db2e3(0x167),'updated_at',_0x3db2e3(0x14c),_0x3db2e3(0x14e)][_0x3db2e3(0x17f)](_0x1f4232)!=-0x1)continue;if(_0x1f4232[_0x3db2e3(0x198)](-0x3)==_0x3db2e3(0x166)||_0x1f4232[_0x3db2e3(0x198)](-0x5)==_0x3db2e3(0x121)||_0x1f4232==_0x3db2e3(0x121)||_0x1f4232['substr'](-0x4)==_0x3db2e3(0x169)||_0x1f4232==_0x3db2e3(0x169))_0x33b6b3+='\x0a'+_0x3db2e3(0x158)+_0x3db2e3(0x175)+('\x22'+_0x1f4232+'\x22')[_0x3db2e3(0x157)](0x14)+('\x20label=\x22'+(_0xe12fe3[_0x3db2e3(0x189)]||_0xe12fe3[_0x3db2e3(0x187)])+_0x3db2e3(0x16f)),_0x33b6b3+='\x0a'+_0x3db2e3(0x12b)+_0x3db2e3(0x138),_0x33b6b3+='\x0a'+_0x3db2e3(0x14f)+'<el-popover\x20placement=\x22bottom\x22\x20trigger=\x22click\x22>',_0x33b6b3+='\x0a'+_0x3db2e3(0x161)+(_0x3db2e3(0x149)+_0x1f4232+_0x3db2e3(0x174)),_0x33b6b3+='\x0a'+_0x3db2e3(0x173)+(_0x3db2e3(0x154)+_0x1f4232+_0x3db2e3(0x16d)),_0x33b6b3+='\x0a'+_0x3db2e3(0x161)+_0x3db2e3(0x11f),_0x33b6b3+='\x0a'+_0x3db2e3(0x161)+_0x3db2e3(0x146),_0x33b6b3+='\x0a'+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x3db2e3(0x154)+_0x1f4232+_0x3db2e3(0x13a)),_0x33b6b3+='\x0a'+_0x3db2e3(0x161)+_0x3db2e3(0x16a),_0x33b6b3+='\x0a'+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x3db2e3(0x180),_0x33b6b3+='\x0a'+_0x3db2e3(0x12b)+_0x3db2e3(0x16a),_0x33b6b3+='\x0a'+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x3db2e3(0x163);else[_0x3db2e3(0x120),'longtext']['indexOf']((0x0,helper_1[_0x3db2e3(0x131)])(_0xe12fe3[_0x3db2e3(0x144)]))==-0x1&&(_0x33b6b3+='\x0a'+_0x3db2e3(0x158)+_0x3db2e3(0x175)+('\x22'+_0x1f4232+'\x22')[_0x3db2e3(0x157)](0x14)+('\x20label=\x22'+(_0xe12fe3[_0x3db2e3(0x189)]||_0xe12fe3[_0x3db2e3(0x187)])+'\x22\x20align=\x27center\x27\x20show-overflow-tooltip\x20/>'));}const _0x5173f9=''+(typeof _0x208ff2==_0x3db2e3(0x156)?_0x208ff2+'/':'')+(_0x4709d5?_0x4709d5+'/':'')+_0x22fd6f,_0x71b1b2=''+(typeof _0x208ff2==_0x3db2e3(0x156)?_0x208ff2+'/':'')+(_0x4709d5?_0x4709d5+'/':'')+_0x22fd6f+'/:'+_0x4e70fd[_0x3db2e3(0x187)],_0x2cfe30=''+(typeof _0x208ff2==_0x3db2e3(0x156)?_0x208ff2+'/':'')+(_0x4709d5?_0x4709d5+'/':'')+_0x22fd6f+'/:'+_0x4e70fd[_0x3db2e3(0x187)];fs[_0x3db2e3(0x14b)]((0x0,path_1['dirname'])(_0x5cc3ce),{'recursive':!![]}),fs[_0x3db2e3(0x11c)](_0x5cc3ce,'<template>\x0a\x20\x20\x20\x20<page\x20:loading=\x22loading\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<page-table\x20:datas=\x22table.data\x22\x20:pageinfo=\x22table.search\x22\x20@transform=\x22LoadDatas\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<template\x20#search>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<search\x20v-model:search=\x22table.search\x22\x20/>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</template>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<template\x20#header>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<el-button\x20v-if=\x22$hasPrem(`post@'+_0x5173f9+_0x3db2e3(0x14a)+_0x33b6b3+'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<el-table-column\x20label=\x22排序\x22\x20align=\x27center\x27\x20prop=\x22displayorder\x22\x20/>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<el-table-column\x20label=\x22操作\x22\x20align=\x22center\x22\x20fixed=\x22right\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<template\x20#default=\x22scope\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<el-button\x20v-if=\x22$hasPrem(`put@'+_0x71b1b2+_0x3db2e3(0x125)+_0x4e70fd[_0x3db2e3(0x187)]+_0x3db2e3(0x11a)+_0x2cfe30+_0x3db2e3(0x16c)+_0x5173f9+_0x3db2e3(0x145)+(typeof _0x208ff2==_0x3db2e3(0x156)?_0x208ff2+'/':'')+(_0x4709d5?_0x4709d5+'/':'')+_0x22fd6f+_0x3db2e3(0x182)+_0x4e70fd['Field']+_0x3db2e3(0x134),'utf-8');}}async function createSearch({moduleName:_0x47089e,tablestartUpShort2:_0x52e94b,controller:_0x282aee,Primary:_0x5c8c75,Fields:_0x9ed580}){const _0x277bbb=a12_0x281856;let _0x52a943=process[_0x277bbb(0x12d)]()+'/vue'+(typeof _0x282aee=='string'?'/'+_0x282aee:'');_0x47089e?_0x52a943=_0x52a943+('/module/'+_0x47089e+'/'+_0x52e94b+_0x277bbb(0x140)):_0x52a943=_0x52a943+('/pages/'+_0x52e94b+_0x277bbb(0x140));if(!fs[_0x277bbb(0x14d)](_0x52a943)){let _0x19e114='';_0x19e114+='\x0a'+_0x277bbb(0x12f)+(_0x277bbb(0x181)+(_0x5c8c75['Comment']||'编号')+'\x22>'),_0x19e114+='\x0a'+_0x277bbb(0x17d)+(_0x277bbb(0x170)+_0x5c8c75[_0x277bbb(0x187)]+_0x277bbb(0x165)+(_0x5c8c75[_0x277bbb(0x189)]||'编号')+'\x22\x20/>'),_0x19e114+='\x0a'+_0x277bbb(0x12f)+_0x277bbb(0x178);for(let _0x4aed1d in _0x9ed580){const _0x1ca466=_0x9ed580[_0x4aed1d];if([_0x277bbb(0x195),_0x277bbb(0x14c),_0x277bbb(0x14e)][_0x277bbb(0x17f)](_0x4aed1d)!=-0x1)continue;if(_0x4aed1d['substr'](-0x3)=='num')_0x19e114+='\x0a'+_0x277bbb(0x12f)+(_0x277bbb(0x181)+(_0x1ca466[_0x277bbb(0x189)]||_0x1ca466[_0x277bbb(0x187)])+'\x22>'),_0x19e114+='\x0a'+_0x277bbb(0x17d)+(_0x277bbb(0x12e)+_0x4aed1d+_0x277bbb(0x165)+_0x1ca466[_0x277bbb(0x189)]+_0x277bbb(0x13f)),_0x19e114+='\x0a'+'\x20\x20\x20\x20'+_0x277bbb(0x178)+'\x0a';else{if(_0x4aed1d['endsWith'](_0x277bbb(0x196))){let _0x2fc261=''+(typeof _0x282aee==_0x277bbb(0x156)?_0x282aee+'/':'')+(_0x47089e?_0x47089e+'/':'')+_0x52e94b;_0x19e114+='\x0a'+_0x277bbb(0x17d)+('<el-form-item\x20label=\x22'+(_0x1ca466[_0x277bbb(0x189)]||_0x1ca466['Field'])+'\x22>'),_0x19e114+='\x0a'+_0x277bbb(0x152)+(_0x277bbb(0x148)+_0x4aed1d+_0x277bbb(0x193)+_0x2fc261+_0x277bbb(0x162)),_0x19e114+='\x0a'+_0x277bbb(0x17d)+'</el-form-item>'+'\x0a';}else switch((0x0,helper_1[_0x277bbb(0x131)])(_0x1ca466[_0x277bbb(0x144)])){case _0x277bbb(0x18c):_0x19e114+='\x0a'+_0x277bbb(0x12f)+(_0x277bbb(0x181)+(_0x1ca466['Comment']||_0x1ca466[_0x277bbb(0x187)])+'\x22>'),_0x19e114+='\x0a'+_0x277bbb(0x17d)+('<el-select\x20v-model=\x22search.'+_0x4aed1d+_0x277bbb(0x13c)+_0x1ca466[_0x277bbb(0x189)]+'\x22>');for(let _0x5bd0fe of(0x0,helper_1[_0x277bbb(0x188)])(_0x1ca466[_0x277bbb(0x144)])){_0x19e114+='\x0a'+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x277bbb(0x18b)+_0x5bd0fe+_0x277bbb(0x197)+_0x5bd0fe+_0x277bbb(0x16b));}_0x19e114+='\x0a'+_0x277bbb(0x17d)+_0x277bbb(0x12c),_0x19e114+='\x0a'+_0x277bbb(0x12f)+'</el-form-item>'+'\x0a';break;case _0x277bbb(0x155):_0x19e114+='\x0a'+'\x20\x20\x20\x20'+('<el-form-item\x20label=\x22'+(_0x1ca466[_0x277bbb(0x189)]||_0x1ca466[_0x277bbb(0x187)])+'\x22>'),_0x19e114+='\x0a'+_0x277bbb(0x17d)+(_0x277bbb(0x129)+_0x4aed1d+_0x277bbb(0x151)+_0x1ca466[_0x277bbb(0x189)]+'开始时间\x22\x20type=\x22date\x22\x20value-format=\x22YYYY-MM-DD\x22/>'),_0x19e114+='\x0a'+_0x277bbb(0x12f)+_0x277bbb(0x178)+'\x0a',_0x19e114+='\x0a'+_0x277bbb(0x12f)+(_0x277bbb(0x181)+(_0x1ca466[_0x277bbb(0x189)]||_0x1ca466[_0x277bbb(0x187)])+'\x22>'),_0x19e114+='\x0a'+_0x277bbb(0x17d)+(_0x277bbb(0x129)+_0x4aed1d+_0x277bbb(0x184)+_0x1ca466[_0x277bbb(0x189)]+_0x277bbb(0x15d)),_0x19e114+='\x0a'+'\x20\x20\x20\x20'+_0x277bbb(0x178)+'\x0a';break;case _0x277bbb(0x177):_0x19e114+='\x0a'+_0x277bbb(0x12f)+(_0x277bbb(0x181)+(_0x1ca466[_0x277bbb(0x189)]||_0x1ca466['Field'])+'\x22>'),_0x19e114+='\x0a'+_0x277bbb(0x17d)+(_0x277bbb(0x129)+_0x4aed1d+_0x277bbb(0x151)+_0x1ca466[_0x277bbb(0x189)]+'开始时间\x22\x20type=\x22datetime\x22\x20value-format=\x22YYYY-MM-DD\x20HH:mm:ss\x22/>'),_0x19e114+='\x0a'+_0x277bbb(0x12f)+_0x277bbb(0x178)+'\x0a',_0x19e114+='\x0a'+_0x277bbb(0x12f)+(_0x277bbb(0x181)+(_0x1ca466[_0x277bbb(0x189)]||_0x1ca466['Field'])+'\x22>'),_0x19e114+='\x0a'+_0x277bbb(0x17d)+(_0x277bbb(0x129)+_0x4aed1d+'_end\x22\x20placeholder=\x22选择'+_0x1ca466[_0x277bbb(0x189)]+_0x277bbb(0x159)),_0x19e114+='\x0a'+'\x20\x20\x20\x20'+'</el-form-item>'+'\x0a';break;case _0x277bbb(0x142):_0x19e114+='\x0a'+_0x277bbb(0x12f)+('<el-form-item\x20label=\x22'+(_0x1ca466[_0x277bbb(0x189)]||_0x1ca466[_0x277bbb(0x187)])+'\x22>'),_0x19e114+='\x0a'+'\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x277bbb(0x129)+_0x4aed1d+_0x277bbb(0x151)+_0x1ca466['Comment']+'开始时间\x22\x20type=\x22datetime\x22\x20value-format=\x22YYYY-MM-DD\x20HH:mm:ss\x22/>'),_0x19e114+='\x0a'+'\x20\x20\x20\x20'+_0x277bbb(0x178)+'\x0a',_0x19e114+='\x0a'+_0x277bbb(0x12f)+('<el-form-item\x20label=\x22'+(_0x1ca466[_0x277bbb(0x189)]||_0x1ca466[_0x277bbb(0x187)])+'\x22>'),_0x19e114+='\x0a'+_0x277bbb(0x17d)+('<el-date-picker\x20v-model=\x22search.'+_0x4aed1d+_0x277bbb(0x184)+_0x1ca466[_0x277bbb(0x189)]+_0x277bbb(0x159)),_0x19e114+='\x0a'+'\x20\x20\x20\x20'+_0x277bbb(0x178)+'\x0a';break;case'string':_0x19e114+='\x0a'+_0x277bbb(0x12f)+('<el-form-item\x20label=\x22'+(_0x1ca466['Comment']||_0x1ca466[_0x277bbb(0x187)])+'\x22>'),_0x19e114+='\x0a'+_0x277bbb(0x17d)+(_0x277bbb(0x170)+_0x4aed1d+_0x277bbb(0x165)+_0x1ca466[_0x277bbb(0x189)]+_0x277bbb(0x16b)),_0x19e114+='\x0a'+_0x277bbb(0x12f)+'</el-form-item>'+'\x0a';}}}fs[_0x277bbb(0x14b)]((0x0,path_1[_0x277bbb(0x11e)])(_0x52a943),{'recursive':!![]}),fs[_0x277bbb(0x11c)](_0x52a943,'<template>\x0a\x20\x20\x20\x20'+_0x19e114+_0x277bbb(0x137),'utf-8');}}async function createStore({moduleName:_0x276340,controller:_0x3dc38b,tablestartUpShort2:_0x21b361,Primary:_0x1e9480,Fields:_0x313fb4}){const _0x1987a2=a12_0x281856;let _0x194ccc=process[_0x1987a2(0x12d)]()+_0x1987a2(0x171)+(typeof _0x3dc38b==_0x1987a2(0x156)?'/'+_0x3dc38b:'');_0x276340?_0x194ccc=_0x194ccc+(_0x1987a2(0x179)+_0x276340+'/'+_0x21b361+_0x1987a2(0x17c)):_0x194ccc=_0x194ccc+(_0x1987a2(0x18a)+_0x21b361+_0x1987a2(0x17c));if(!fs[_0x1987a2(0x14d)](_0x194ccc)){let _0x10c318='';for(let _0x4d454e in _0x313fb4){const _0x141096=_0x313fb4[_0x4d454e];if([_0x1987a2(0x167),'updated_at',_0x1987a2(0x14c),_0x1987a2(0x14e)]['indexOf'](_0x4d454e)!=-0x1)continue;if(_0x4d454e['substr'](-0x4)=='imgs'||_0x4d454e[_0x1987a2(0x198)](-0x5)==_0x1987a2(0x128))_0x10c318+='\x0a'+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x1987a2(0x181)+(_0x141096[_0x1987a2(0x189)]||_0x141096[_0x1987a2(0x187)])+_0x1987a2(0x164)),_0x10c318+='\x0a'+_0x1987a2(0x14f)+('<page-images\x20v-model=\x22formdata.'+_0x4d454e+_0x1987a2(0x132)),_0x10c318+='\x0a'+_0x1987a2(0x12b)+_0x1987a2(0x178)+'\x0a';else{if(_0x4d454e[_0x1987a2(0x198)](-0x3)==_0x1987a2(0x166)||_0x4d454e[_0x1987a2(0x198)](-0x5)==_0x1987a2(0x121)||_0x4d454e=='thumb'||_0x4d454e[_0x1987a2(0x198)](-0x4)=='logo'||_0x4d454e=='logo')_0x10c318+='\x0a'+_0x1987a2(0x12b)+(_0x1987a2(0x181)+(_0x141096['Comment']||_0x141096[_0x1987a2(0x187)])+_0x1987a2(0x164)),_0x10c318+='\x0a'+_0x1987a2(0x14f)+(_0x1987a2(0x127)+_0x4d454e+_0x1987a2(0x13b)),_0x10c318+='\x0a'+_0x1987a2(0x12b)+_0x1987a2(0x178)+'\x0a';else{if(_0x4d454e[_0x1987a2(0x198)](-0x4)==_0x1987a2(0x11d))_0x10c318+='\x0a'+_0x1987a2(0x12b)+(_0x1987a2(0x181)+(_0x141096[_0x1987a2(0x189)]||_0x141096[_0x1987a2(0x187)])+'\x22>'),_0x10c318+='\x0a'+_0x1987a2(0x14f)+(_0x1987a2(0x176)+_0x4d454e+_0x1987a2(0x185)+_0x141096[_0x1987a2(0x189)]+'\x22\x20split=\x22-\x22\x20/>'),_0x10c318+='\x0a'+_0x1987a2(0x12b)+_0x1987a2(0x178)+'\x0a';else{if(_0x4d454e[_0x1987a2(0x198)](-0x3)=='num')_0x10c318+='\x0a'+_0x1987a2(0x12b)+(_0x1987a2(0x181)+(_0x141096[_0x1987a2(0x189)]||_0x141096[_0x1987a2(0x187)])+'\x22>'),_0x10c318+='\x0a'+_0x1987a2(0x14f)+(_0x1987a2(0x190)+_0x4d454e+_0x1987a2(0x165)+_0x141096['Comment']+_0x1987a2(0x13f)),_0x10c318+='\x0a'+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x1987a2(0x178)+'\x0a';else{if(_0x4d454e['substr'](-0x4)==_0x1987a2(0x11b))_0x10c318+='\x0a'+_0x1987a2(0x12b)+(_0x1987a2(0x181)+(_0x141096[_0x1987a2(0x189)]||_0x141096[_0x1987a2(0x187)])+'\x22>'),_0x10c318+='\x0a'+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x1987a2(0x133)+_0x4d454e+_0x1987a2(0x165)+_0x141096[_0x1987a2(0x189)]+'\x22\x20/>'),_0x10c318+='\x0a'+_0x1987a2(0x12b)+'</el-form-item>'+'\x0a';else{if(_0x4d454e['substr'](-0x3)=='_id'){let _0x552d24=''+(typeof _0x3dc38b==_0x1987a2(0x156)?_0x3dc38b+'/':'')+(_0x276340?_0x276340+'/':'')+_0x21b361;_0x10c318+='\x0a'+_0x1987a2(0x12b)+(_0x1987a2(0x181)+(_0x141096[_0x1987a2(0x189)]||_0x141096[_0x1987a2(0x187)])+'\x22>'),_0x10c318+='\x0a'+_0x1987a2(0x14f)+('<el-select-search\x20v-model=\x22formdata.'+_0x4d454e+_0x1987a2(0x193)+_0x552d24+_0x1987a2(0x162)),_0x10c318+='\x0a'+_0x1987a2(0x12b)+_0x1987a2(0x178)+'\x0a';}else switch((0x0,helper_1[_0x1987a2(0x131)])(_0x141096[_0x1987a2(0x144)])){case _0x1987a2(0x150):_0x10c318+='\x0a'+_0x1987a2(0x12b)+(_0x1987a2(0x181)+(_0x141096['Comment']||_0x141096[_0x1987a2(0x187)])+'\x22>'),_0x10c318+='\x0a'+_0x1987a2(0x14f)+('<el-input-number\x20v-model=\x22formdata.'+_0x4d454e+_0x1987a2(0x165)+_0x141096[_0x1987a2(0x189)]+'\x22\x20:min=\x221\x22\x20/>'),_0x10c318+='\x0a'+_0x1987a2(0x12b)+'</el-form-item>'+'\x0a';break;case _0x1987a2(0x18c):_0x10c318+='\x0a'+_0x1987a2(0x12b)+(_0x1987a2(0x181)+(_0x141096[_0x1987a2(0x189)]||_0x141096[_0x1987a2(0x187)])+'\x22>'),_0x10c318+='\x0a'+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+('<el-select\x20v-model=\x22formdata.'+_0x4d454e+'\x22\x20placeholder=\x22请选择'+_0x141096[_0x1987a2(0x189)]+'\x22>');for(let _0x260f03 of(0x0,helper_1['getEnum'])(_0x141096[_0x1987a2(0x144)])){_0x10c318+='\x0a'+_0x1987a2(0x161)+(_0x1987a2(0x18b)+_0x260f03+_0x1987a2(0x197)+_0x260f03+_0x1987a2(0x16b));}_0x10c318+='\x0a'+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x1987a2(0x12c),_0x10c318+='\x0a'+_0x1987a2(0x12b)+_0x1987a2(0x178)+'\x0a';break;case _0x1987a2(0x120):_0x10c318+='\x0a'+_0x1987a2(0x12b)+(_0x1987a2(0x181)+(_0x141096['Comment']||_0x141096[_0x1987a2(0x187)])+_0x1987a2(0x164)),_0x10c318+='\x0a'+_0x1987a2(0x14f)+('<el-input\x20v-model=\x22formdata.'+_0x4d454e+_0x1987a2(0x124)+_0x141096[_0x1987a2(0x189)]+_0x1987a2(0x17b)),_0x10c318+='\x0a'+_0x1987a2(0x12b)+_0x1987a2(0x178)+'\x0a';break;case'longtext':_0x10c318+='\x0a'+_0x1987a2(0x12b)+(_0x1987a2(0x181)+(_0x141096[_0x1987a2(0x189)]||_0x141096[_0x1987a2(0x187)])+_0x1987a2(0x164)),_0x10c318+='\x0a'+_0x1987a2(0x14f)+('<page-editor\x20v-model=\x22formdata.'+_0x4d454e+_0x1987a2(0x16b)),_0x10c318+='\x0a'+_0x1987a2(0x12b)+'</el-form-item>'+'\x0a';break;case'mediumtext':_0x10c318+='\x0a'+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x1987a2(0x181)+(_0x141096[_0x1987a2(0x189)]||_0x141096[_0x1987a2(0x187)])+'\x22\x20class=\x22block\x22>'),_0x10c318+='\x0a'+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+('<page-editor\x20v-model=\x22formdata.'+_0x4d454e+_0x1987a2(0x16b)),_0x10c318+='\x0a'+_0x1987a2(0x12b)+_0x1987a2(0x178)+'\x0a';break;case'date':_0x10c318+='\x0a'+_0x1987a2(0x12b)+(_0x1987a2(0x181)+(_0x141096[_0x1987a2(0x189)]||_0x141096[_0x1987a2(0x187)])+'\x22>'),_0x10c318+='\x0a'+_0x1987a2(0x14f)+(_0x1987a2(0x17e)+_0x4d454e+_0x1987a2(0x194)+_0x141096[_0x1987a2(0x189)]+_0x1987a2(0x168)),_0x10c318+='\x0a'+_0x1987a2(0x12b)+_0x1987a2(0x178)+'\x0a';break;case _0x1987a2(0x177):_0x10c318+='\x0a'+_0x1987a2(0x12b)+(_0x1987a2(0x181)+(_0x141096[_0x1987a2(0x189)]||_0x141096[_0x1987a2(0x187)])+'\x22>'),_0x10c318+='\x0a'+_0x1987a2(0x14f)+(_0x1987a2(0x17e)+_0x4d454e+_0x1987a2(0x194)+_0x141096[_0x1987a2(0x189)]+_0x1987a2(0x147)),_0x10c318+='\x0a'+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x1987a2(0x178)+'\x0a';break;case _0x1987a2(0x142):_0x10c318+='\x0a'+_0x1987a2(0x12b)+(_0x1987a2(0x181)+(_0x141096[_0x1987a2(0x189)]||_0x141096['Field'])+'\x22>'),_0x10c318+='\x0a'+_0x1987a2(0x14f)+(_0x1987a2(0x17e)+_0x4d454e+_0x1987a2(0x194)+_0x141096[_0x1987a2(0x189)]+_0x1987a2(0x147)),_0x10c318+='\x0a'+_0x1987a2(0x12b)+'</el-form-item>'+'\x0a';break;default:_0x10c318+='\x0a'+_0x1987a2(0x12b)+(_0x1987a2(0x181)+(_0x141096[_0x1987a2(0x189)]||_0x141096[_0x1987a2(0x187)])+'\x22>'),_0x10c318+='\x0a'+_0x1987a2(0x14f)+(_0x1987a2(0x133)+_0x4d454e+_0x1987a2(0x165)+_0x141096[_0x1987a2(0x189)]+_0x1987a2(0x16b)),_0x10c318+='\x0a'+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+'</el-form-item>'+'\x0a';}}}}}}}_0x10c318+='\x0a'+_0x1987a2(0x12b)+_0x1987a2(0x135),_0x10c318+='\x0a'+_0x1987a2(0x14f)+'<el-input-number\x20v-model=\x22formdata.displayorder\x22\x20placeholder=\x22请输入排序权重\x22\x20/>',_0x10c318+='\x0a'+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x1987a2(0x178)+'\x0a',fs[_0x1987a2(0x14b)]((0x0,path_1[_0x1987a2(0x11e)])(_0x194ccc),{'recursive':!![]}),fs[_0x1987a2(0x11c)](_0x194ccc,'<template>\x0a\x20\x20\x20\x20<page-dialog\x20ref=\x22page-dialog\x22\x20:loading=\x22loading\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<el-tabs>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<el-tab-pane\x20label=\x22基本信息\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<el-form\x20ref=\x22form\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x10c318+_0x1987a2(0x13e)+_0x1e9480[_0x1987a2(0x187)]+_0x1987a2(0x18f)+_0x1e9480[_0x1987a2(0x187)]+_0x1987a2(0x12a)+(typeof _0x3dc38b==_0x1987a2(0x156)?_0x3dc38b+'/':'')+(_0x276340?_0x276340+'/':'')+_0x21b361+'/\x27+'+_0x1e9480['Field']+_0x1987a2(0x13d)+(typeof _0x3dc38b==_0x1987a2(0x156)?_0x3dc38b+'/':'')+(_0x276340?_0x276340+'/':'')+_0x21b361+'\x27,item).then(res=>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20this.loading\x20=\x20false\x20,\x20this.$emit(\x22save\x22),this.$notify({message:\x20res?.message\x20||\x20\x27操作成功\x27})\x20,\x20this.$refs[\x27page-dialog\x27].close();\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}).catch(err=>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20this.loading\x20=\x20false\x20,\x20this.$notify.error({message:\x20err\x20||\x20\x27网络请求错误\x27});\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20});\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20},\x0a}\x0a</script>',_0x1987a2(0x136));}}
|
|
1
|
+
const a12_0x55ab82=a12_0x536c;(function(_0x43a223,_0xdbbf19){const _0x567ee8=a12_0x536c,_0x41d874=_0x43a223();while(!![]){try{const _0x477bde=-parseInt(_0x567ee8(0xdf))/0x1+parseInt(_0x567ee8(0x115))/0x2*(-parseInt(_0x567ee8(0x10c))/0x3)+-parseInt(_0x567ee8(0x108))/0x4+parseInt(_0x567ee8(0x138))/0x5*(-parseInt(_0x567ee8(0xea))/0x6)+parseInt(_0x567ee8(0xcd))/0x7+parseInt(_0x567ee8(0xd6))/0x8+-parseInt(_0x567ee8(0xfd))/0x9*(-parseInt(_0x567ee8(0x111))/0xa);if(_0x477bde===_0xdbbf19)break;else _0x41d874['push'](_0x41d874['shift']());}catch(_0x1a003b){_0x41d874['push'](_0x41d874['shift']());}}}(a12_0xc8eb,0x36e7e));const a12_0x4bf559=(function(){let _0x5cb432=!![];return function(_0x2dba61,_0x45f559){const _0x33b223=_0x5cb432?function(){if(_0x45f559){const _0x33a990=_0x45f559['apply'](_0x2dba61,arguments);return _0x45f559=null,_0x33a990;}}:function(){};return _0x5cb432=![],_0x33b223;};}()),a12_0x2cdcf4=a12_0x4bf559(this,function(){const _0x5d8372=a12_0x536c;return a12_0x2cdcf4['toString']()[_0x5d8372(0xeb)]('(((.+)+)+)+$')[_0x5d8372(0x11a)]()['constructor'](a12_0x2cdcf4)['search'](_0x5d8372(0xe9));});a12_0x2cdcf4();function a12_0x536c(_0x153846,_0x252c0c){const _0x3e5184=a12_0xc8eb();return a12_0x536c=function(_0x2cdcf4,_0x4bf559){_0x2cdcf4=_0x2cdcf4-0xba;let _0xc8eb9c=_0x3e5184[_0x2cdcf4];return _0xc8eb9c;},a12_0x536c(_0x153846,_0x252c0c);}'use strict';Object[a12_0x55ab82(0xd7)](exports,a12_0x55ab82(0xc3),{'value':!![]});const fs=require('fs'),path_1=require(a12_0x55ab82(0x135)),helper_1=require(a12_0x55ab82(0xfc));async function default_1({moduleName:_0x540edb,controller:_0xa48a37,tablestartUpShort2:_0x428b5f,Primary:_0x52b84e,Fields:_0x1bc241}){await createIndex({'moduleName':_0x540edb,'controller':_0xa48a37,'tablestartUpShort2':_0x428b5f,'Primary':_0x52b84e,'Fields':_0x1bc241}),await createStore({'moduleName':_0x540edb,'controller':_0xa48a37,'tablestartUpShort2':_0x428b5f,'Primary':_0x52b84e,'Fields':_0x1bc241}),await createSearch({'moduleName':_0x540edb,'controller':_0xa48a37,'tablestartUpShort2':_0x428b5f,'Primary':_0x52b84e,'Fields':_0x1bc241});}exports['default']=default_1;function a12_0xc8eb(){const _0x51f9d6=['timestamp','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<el-table-column\x20label=\x22排序\x22\x20align=\x27center\x27\x20prop=\x22displayorder\x22\x20/>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<el-table-column\x20label=\x22操作\x22\x20align=\x22center\x22\x20fixed=\x22right\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<template\x20#default=\x22scope\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<el-button\x20v-if=\x22$hasPrem(`put@','<el-popover\x20placement=\x22bottom\x22\x20trigger=\x22click\x22>','\x22\x20placeholder=\x22选择','3535464vyBJay','defineProperty','datetime','<template\x20#default=\x22scope\x22>','existsSync','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','<template\x20#reference>',').then(res=>{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20this.loading\x20=\x20false\x20,\x20this.LoadDatas()\x20,\x20this.$notify({message:\x20res?.message\x20||\x20\x27操作成功\x27});\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}).catch(err=>{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20this.loading\x20=\x20false\x20,\x20this.$notify.error({message:err||\x27删除失败\x27});\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20})\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}).catch(()=>{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20this.loading\x20=\x20false;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\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\x20\x20}\x0a\x20\x20\x20\x20},\x0a}\x0a</script>','Type','291433ysWysH','<el-input-number\x20v-model=\x22search.','Field','</el-popover>','</template>','){\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20this.loading\x20=\x20true;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20this.$get(\x27',')\x22\x20style=\x22width:\x20100%;max-width:500px\x22\x20/>','deleted_at','\x22\x20lakey=\x22id\x22\x20\x20label=\x22id\x22\x20/>','updated_at','(((.+)+)+)+$','8526oiNYGI','search','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</el-form>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</el-tab-pane>\x0a\x20\x20\x20\x20\x20\x20\x20\x20</el-tabs>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<template\x20#footer>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<el-button\x20type=\x22primary\x22\x20@click=\x22ActionSave(formdata)\x22>保存</el-button>\x0a\x20\x20\x20\x20\x20\x20\x20\x20</template>\x0a\x20\x20\x20\x20</page-dialog>\x0a</template>\x0a<script>\x0aexport\x20default\x20{\x0a\x20\x20\x20\x20data(){\x0a\x20\x20\x20\x20\x20\x20\x20\x20return\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20formdata:{},\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20loading:false,\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20},\x0a\x20\x20\x20\x20methods:\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20open(','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','_end\x22\x20placeholder=\x22选择','_ids','\x22\x20/>','<el-input\x20v-model=\x22formdata.','</el-form-item>','/index.vue','<template>\x0a\x20\x20\x20\x20','longtext','<el-input\x20v-model=\x22search.','\x22\x20:min=\x221\x22\x20:max=\x22100\x22\x20/>','<template>\x0a\x20\x20\x20\x20<page\x20:loading=\x22loading\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<page-table\x20:datas=\x22table.data\x22\x20:pageinfo=\x22table.search\x22\x20@transform=\x22LoadDatas\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<template\x20#search>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<search\x20v-model:search=\x22table.search\x22\x20/>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</template>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<template\x20#header>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<el-button\x20v-if=\x22$hasPrem(`post@','\x22\x20value=\x22','enum','string','../helper','3372255XwvObS','\x22\x20:min=\x221\x22\x20/>','getEnum','number','<page-images\x20v-model=\x22formdata.','<page-editor\x20v-model=\x22formdata.','created_at','writeFileSync','cwd','\x22\x20class=\x22block\x22>','<el-select\x20v-model=\x22search.','115220vHYVCN','logo','img','<el-option\x20label=\x22','21eBJQmV','substr','\x20label=\x22','\x0a</template>\x0a<script>\x0aexport\x20default\x20{\x0a\x20\x20\x20\x20props:\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20search:\x20{type:\x20Object\x20,default:\x20()=>{return\x20{}}},\x0a\x20\x20\x20\x20}\x0a}\x0a</script>','mediumtext','10rnODiE','Comment','</el-table-column>','\x22\x20:limit=\x225\x22\x20/>','44354vBzWZB','<img\x20:src=\x22$img(scope.row.','getProp',')\x22\x20type=\x22text\x22\x20size=\x22small\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20编辑\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</el-button>\x0a\x0a\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<el-button\x20v-if=\x22$hasPrem(`delete@','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','toString','/components/store.vue','\x20\x20\x20\x20\x20\x20\x20\x20','\x27,item).then(res=>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20this.loading\x20=\x20false\x20,\x20this.$emit(\x22save\x22),this.$notify({message:\x20res?.message\x20||\x20\x27操作成功\x27})\x20,\x20this.$refs[\x27page-dialog\x27].close();\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}).catch(err=>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20this.loading\x20=\x20false\x20,\x20this.$notify.error({message:\x20err\x20||\x20\x27网络请求错误\x27});\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20});\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20},\x0a}\x0a</script>','_start\x22\x20placeholder=\x22选择',')\x22\x20style=\x22width:\x2040px;\x20cursor:pointer\x22\x20/>',').then(res=>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20this.formdata\x20=\x20res.data,\x20this.loading\x20=\x20false;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}).catch(err=>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20this.$notify.error({message:\x20err\x20||\x20\x27网络请求错误\x27}),this.$refs[\x27page-dialog\x27].close();\x0a\x20\x20\x20\x20\x20\x20\x20\x20\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\x20\x20},\x0a\x0a\x20\x20\x20\x20\x20\x20\x20\x20/**\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20*\x20保存\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20*\x20@param\x20item\x20要保存的数据\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20*\x20**/\x0a\x20\x20\x20\x20\x20\x20\x20\x20ActionSave(item){\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20this.loading\x20=\x20true;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20this.$save(\x27','dirname','<el-form-item\x20label=\x22','mkdirSync','/pages/','_id','\x22\x20split=\x22-\x22\x20/>','</el-select>','imgs','\x22\x20type=\x22textarea\x22/>','\x22\x20placeholder=\x22请选择','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','padEnd','displayorder','){\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20this.formdata\x20=\x20{}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20this.$refs[\x27page-dialog\x27].open()\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20if(','<el-select-search\x20v-model=\x22search.','<el-table-column\x20prop=','utf-8','/components/search.vue','开始时间\x22\x20type=\x22date\x22\x20value-format=\x22YYYY-MM-DD\x22/>','<el-input-number\x20v-model=\x22formdata.','path','结束时间\x22\x20type=\x22datetime\x22\x20value-format=\x22YYYY-MM-DD\x20HH:mm:ss\x22/>','num','1475LbCALy','<el-date-picker\x20v-model=\x22formdata.','<a\x20:href=\x22$img(scope.row.','/module/','endsWith','结束时间\x22\x20type=\x22date\x22\x20value-format=\x22YYYY-MM-DD\x22/>','\x22\x20type=\x22datetime\x22\x20value-format=\x22YYYY-MM-DD\x20HH:mm:ss\x22/>','text','<el-select-tags\x20v-model=\x22formdata.','<template>\x0a\x20\x20\x20\x20<page-dialog\x20ref=\x22page-dialog\x22\x20:loading=\x22loading\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<el-tabs>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<el-tab-pane\x20label=\x22基本信息\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<el-form\x20ref=\x22form\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','__esModule','thumb','\x22\x20placeholder=\x22请输入','/vue','<el-date-picker\x20v-model=\x22search.','<el-select-search\x20v-model=\x22formdata.','`)\x22\x20@click=\x22ActionDel(scope.row)\x22\x20type=\x22text\x22\x20size=\x22small\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20删除\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</el-button>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</template>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</el-table-column>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</template>\x0a\x20\x20\x20\x20\x20\x20\x20\x20</page-table>\x0a\x0a\x20\x20\x20\x20\x20\x20\x20\x20<store\x20ref=\x22page-store\x22\x20@save=\x22LoadDatas\x22/>\x0a\x20\x20\x20\x20</page>\x0a</template>\x0a<script>\x0aimport\x20store\x20from\x20\x22./components/store.vue\x22\x0aimport\x20search\x20from\x20\x22./components/search.vue\x22\x0aexport\x20default\x20{\x0a\x20\x20\x20\x20components:\x20{store,search},\x0a\x20\x20\x20\x20data(){\x0a\x20\x20\x20\x20\x20\x20\x20\x20return\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20loading:false,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20table:{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20data:[],\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20search:{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20_page:1,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20_size:20,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20_count:0,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\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\x20\x20}\x0a\x20\x20\x20\x20},\x0a\x20\x20\x20\x20mounted()\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20Object.assign(this.table.search,this.$route.params,this.$route.query),this.LoadDatas();\x0a\x20\x20\x20\x20},\x0a\x20\x20\x20\x20methods:\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20/**\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20*\x20获取数据列表\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20*\x20@param\x20page\x20分页-当前页\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20*\x20@param\x20size\x20分页-每页数量\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20*\x20**/\x0a\x20\x20\x20\x20\x20\x20\x20\x20LoadDatas(page,size){\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20page\x20&&\x20(this.table.search._page\x20=\x20page),size\x20&&\x20(this.table.search._size\x20=\x20size),this.loading\x20=\x20true;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20this.$get(\x27','<el-select\x20v-model=\x22formdata.','indexOf','开始时间\x22\x20type=\x22datetime\x22\x20value-format=\x22YYYY-MM-DD\x20HH:mm:ss\x22/>','2120566Sikquh','\x20\x20\x20\x20','\x27,this.table.search).then(res=>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20this.table.data\x20=\x20res.data\x20,\x20this.table.search._count\x20=\x20res.extra.pagetotal\x20,\x20this.loading\x20=\x20false;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}).catch(err=>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20this.$notify.error({message:\x20err\x20||\x20\x27网络请求错误\x27}),this.loading\x20=\x20false;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20});\x0a\x20\x20\x20\x20\x20\x20\x20\x20},\x0a\x0a\x20\x20\x20\x20\x20\x20\x20\x20/**\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20*\x20删除\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20*\x20@param\x20item\x20要删除的数据\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20*\x20**/\x0a\x20\x20\x20\x20\x20\x20\x20\x20ActionDel(item){\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20if(\x20item.id\x20){\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20this.loading\x20=\x20true;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20this.$confirm(\x27此操作将永久删除,\x20是否继续?\x27,\x20\x27提示\x27,\x20{confirmButtonText:\x20\x27确定\x27,cancelButtonText:\x20\x27取消\x27,type:\x20\x27warning\x27}).then(()\x20=>\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20this.$del(\x27','\x22\x20\x20placeholder=\x22请输入','\x22\x20type=\x22date\x22\x20value-format=\x22YYYY-MM-DD\x22/>'];a12_0xc8eb=function(){return _0x51f9d6;};return a12_0xc8eb();}async function createIndex({moduleName:_0x31f17d,controller:_0x3e7ca9,tablestartUpShort2:_0x4b72a6,Primary:_0x361ed4,Fields:_0x81af59}){const _0x28812e=a12_0x55ab82;let _0x40e9bf=process[_0x28812e(0x105)]()+'/vue'+(typeof _0x3e7ca9==_0x28812e(0xfb)?'/'+_0x3e7ca9:'');_0x31f17d?_0x40e9bf=_0x40e9bf+(_0x28812e(0xbb)+_0x31f17d+'/'+_0x4b72a6+_0x28812e(0xf3)):_0x40e9bf=_0x40e9bf+(_0x28812e(0x124)+_0x4b72a6+_0x28812e(0xf3));if(!fs['existsSync'](_0x40e9bf)){let _0x9a2f67=_0x28812e(0x130)+('\x22'+_0x361ed4[_0x28812e(0xe1)]+'\x22')['padEnd'](0x14)+('\x20label=\x22'+(_0x361ed4[_0x28812e(0x112)]||'编号')+'\x22\x20align=\x22center\x22\x20fixed=\x22left\x22\x20\x20width=\x22120\x22\x20/>');for(let _0x5850a0 in _0x81af59){const _0x3682cb=_0x81af59[_0x5850a0];if([_0x28812e(0x103),'updated_at',_0x28812e(0xe6),_0x28812e(0x12d)][_0x28812e(0xcb)](_0x5850a0)!=-0x1)continue;if(_0x5850a0['substr'](-0x3)==_0x28812e(0x10a)||_0x5850a0[_0x28812e(0x10d)](-0x5)==_0x28812e(0xc4)||_0x5850a0==_0x28812e(0xc4)||_0x5850a0['substr'](-0x4)==_0x28812e(0x109)||_0x5850a0==_0x28812e(0x109))_0x9a2f67+='\x0a'+_0x28812e(0xdb)+_0x28812e(0x130)+('\x22'+_0x5850a0+'\x22')['padEnd'](0x14)+(_0x28812e(0x10e)+(_0x3682cb['Comment']||_0x3682cb['Field'])+'\x22\x20align=\x27center\x27\x20show-overflow-tooltip>'),_0x9a2f67+='\x0a'+_0x28812e(0x119)+_0x28812e(0xd9),_0x9a2f67+='\x0a'+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x28812e(0xd4),_0x9a2f67+='\x0a'+_0x28812e(0x12b)+(_0x28812e(0xba)+_0x5850a0+')\x22\x20target=\x22_blank\x22\x20title=\x22查看最大化图片\x22>'),_0x9a2f67+='\x0a'+_0x28812e(0xed)+(_0x28812e(0x116)+_0x5850a0+_0x28812e(0xe5)),_0x9a2f67+='\x0a'+_0x28812e(0x12b)+'</a>',_0x9a2f67+='\x0a'+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x28812e(0xdc),_0x9a2f67+='\x0a'+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x28812e(0x116)+_0x5850a0+_0x28812e(0x11f)),_0x9a2f67+='\x0a'+_0x28812e(0x12b)+_0x28812e(0xe3),_0x9a2f67+='\x0a'+_0x28812e(0xc2)+_0x28812e(0xe2),_0x9a2f67+='\x0a'+_0x28812e(0x119)+_0x28812e(0xe3),_0x9a2f67+='\x0a'+_0x28812e(0xdb)+_0x28812e(0x113);else[_0x28812e(0xbf),_0x28812e(0xf5)][_0x28812e(0xcb)]((0x0,helper_1[_0x28812e(0x117)])(_0x3682cb['Type']))==-0x1&&(_0x9a2f67+='\x0a'+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x28812e(0x130)+('\x22'+_0x5850a0+'\x22')[_0x28812e(0x12c)](0x14)+(_0x28812e(0x10e)+(_0x3682cb[_0x28812e(0x112)]||_0x3682cb['Field'])+'\x22\x20align=\x27center\x27\x20show-overflow-tooltip\x20/>'));}const _0x39c8c6=''+(typeof _0x3e7ca9==_0x28812e(0xfb)?_0x3e7ca9+'/':'')+(_0x31f17d?_0x31f17d+'/':'')+_0x4b72a6,_0x15f01a=''+(typeof _0x3e7ca9=='string'?_0x3e7ca9+'/':'')+(_0x31f17d?_0x31f17d+'/':'')+_0x4b72a6+'/:'+_0x361ed4[_0x28812e(0xe1)],_0x3dc496=''+(typeof _0x3e7ca9=='string'?_0x3e7ca9+'/':'')+(_0x31f17d?_0x31f17d+'/':'')+_0x4b72a6+'/:'+_0x361ed4[_0x28812e(0xe1)];fs[_0x28812e(0x123)]((0x0,path_1[_0x28812e(0x121)])(_0x40e9bf),{'recursive':!![]}),fs['writeFileSync'](_0x40e9bf,_0x28812e(0xf8)+_0x39c8c6+'`)\x22\x20@click=\x22$refs[\x27page-store\x27].open()\x22\x20type=\x22primary\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20添加\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</el-button>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</template>\x0a\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<template\x20#column>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x9a2f67+_0x28812e(0xd3)+_0x15f01a+'`)\x22\x20@click=\x22$refs[\x27page-store\x27].open(scope.row.'+_0x361ed4[_0x28812e(0xe1)]+_0x28812e(0x118)+_0x3dc496+_0x28812e(0xc9)+_0x39c8c6+_0x28812e(0xcf)+(typeof _0x3e7ca9==_0x28812e(0xfb)?_0x3e7ca9+'/':'')+(_0x31f17d?_0x31f17d+'/':'')+_0x4b72a6+'/\x27+item.'+_0x361ed4[_0x28812e(0xe1)]+_0x28812e(0xdd),'utf-8');}}async function createSearch({moduleName:_0x17455f,tablestartUpShort2:_0x3b6c42,controller:_0x1dfca4,Primary:_0x3f4f60,Fields:_0x1f0f74}){const _0x147968=a12_0x55ab82;let _0x13a6c0=process[_0x147968(0x105)]()+_0x147968(0xc6)+(typeof _0x1dfca4=='string'?'/'+_0x1dfca4:'');_0x17455f?_0x13a6c0=_0x13a6c0+('/module/'+_0x17455f+'/'+_0x3b6c42+_0x147968(0x132)):_0x13a6c0=_0x13a6c0+(_0x147968(0x124)+_0x3b6c42+_0x147968(0x132));if(!fs[_0x147968(0xda)](_0x13a6c0)){let _0x5d0459='';_0x5d0459+='\x0a'+_0x147968(0xce)+(_0x147968(0x122)+(_0x3f4f60[_0x147968(0x112)]||'编号')+'\x22>'),_0x5d0459+='\x0a'+_0x147968(0x11c)+(_0x147968(0xf6)+_0x3f4f60[_0x147968(0xe1)]+_0x147968(0xc5)+(_0x3f4f60[_0x147968(0x112)]||'编号')+_0x147968(0xf0)),_0x5d0459+='\x0a'+'\x20\x20\x20\x20'+_0x147968(0xf2);for(let _0x30d748 in _0x1f0f74){const _0x8661b9=_0x1f0f74[_0x30d748];if([_0x147968(0xe8),_0x147968(0xe6),_0x147968(0x12d)][_0x147968(0xcb)](_0x30d748)!=-0x1)continue;if(_0x30d748['substr'](-0x3)=='num')_0x5d0459+='\x0a'+'\x20\x20\x20\x20'+(_0x147968(0x122)+(_0x8661b9[_0x147968(0x112)]||_0x8661b9[_0x147968(0xe1)])+'\x22>'),_0x5d0459+='\x0a'+_0x147968(0x11c)+(_0x147968(0xe0)+_0x30d748+_0x147968(0xc5)+_0x8661b9['Comment']+_0x147968(0xf7)),_0x5d0459+='\x0a'+_0x147968(0xce)+'</el-form-item>'+'\x0a';else{if(_0x30d748[_0x147968(0xbc)](_0x147968(0x125))){let _0x3adfad=''+(typeof _0x1dfca4==_0x147968(0xfb)?_0x1dfca4+'/':'')+(_0x17455f?_0x17455f+'/':'')+_0x3b6c42;_0x5d0459+='\x0a'+_0x147968(0x11c)+(_0x147968(0x122)+(_0x8661b9[_0x147968(0x112)]||_0x8661b9[_0x147968(0xe1)])+'\x22>'),_0x5d0459+='\x0a'+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x147968(0x12f)+_0x30d748+'\x22\x20api=\x22'+_0x3adfad+_0x147968(0xe7)),_0x5d0459+='\x0a'+'\x20\x20\x20\x20\x20\x20\x20\x20'+_0x147968(0xf2)+'\x0a';}else switch((0x0,helper_1[_0x147968(0x117)])(_0x8661b9[_0x147968(0xde)])){case _0x147968(0xfa):_0x5d0459+='\x0a'+_0x147968(0xce)+(_0x147968(0x122)+(_0x8661b9[_0x147968(0x112)]||_0x8661b9[_0x147968(0xe1)])+'\x22>'),_0x5d0459+='\x0a'+_0x147968(0x11c)+(_0x147968(0x107)+_0x30d748+_0x147968(0x12a)+_0x8661b9[_0x147968(0x112)]+'\x22>');for(let _0x52c6c2 of(0x0,helper_1[_0x147968(0xff)])(_0x8661b9[_0x147968(0xde)])){_0x5d0459+='\x0a'+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+('<el-option\x20label=\x22'+_0x52c6c2+_0x147968(0xf9)+_0x52c6c2+_0x147968(0xf0));}_0x5d0459+='\x0a'+_0x147968(0x11c)+_0x147968(0x127),_0x5d0459+='\x0a'+_0x147968(0xce)+_0x147968(0xf2)+'\x0a';break;case'date':_0x5d0459+='\x0a'+_0x147968(0xce)+(_0x147968(0x122)+(_0x8661b9[_0x147968(0x112)]||_0x8661b9[_0x147968(0xe1)])+'\x22>'),_0x5d0459+='\x0a'+'\x20\x20\x20\x20\x20\x20\x20\x20'+('<el-date-picker\x20v-model=\x22search.'+_0x30d748+_0x147968(0x11e)+_0x8661b9[_0x147968(0x112)]+_0x147968(0x133)),_0x5d0459+='\x0a'+_0x147968(0xce)+'</el-form-item>'+'\x0a',_0x5d0459+='\x0a'+_0x147968(0xce)+('<el-form-item\x20label=\x22'+(_0x8661b9['Comment']||_0x8661b9[_0x147968(0xe1)])+'\x22>'),_0x5d0459+='\x0a'+_0x147968(0x11c)+('<el-date-picker\x20v-model=\x22search.'+_0x30d748+_0x147968(0xee)+_0x8661b9[_0x147968(0x112)]+_0x147968(0xbd)),_0x5d0459+='\x0a'+'\x20\x20\x20\x20'+_0x147968(0xf2)+'\x0a';break;case _0x147968(0xd8):_0x5d0459+='\x0a'+_0x147968(0xce)+(_0x147968(0x122)+(_0x8661b9['Comment']||_0x8661b9[_0x147968(0xe1)])+'\x22>'),_0x5d0459+='\x0a'+_0x147968(0x11c)+(_0x147968(0xc7)+_0x30d748+_0x147968(0x11e)+_0x8661b9[_0x147968(0x112)]+_0x147968(0xcc)),_0x5d0459+='\x0a'+_0x147968(0xce)+_0x147968(0xf2)+'\x0a',_0x5d0459+='\x0a'+_0x147968(0xce)+(_0x147968(0x122)+(_0x8661b9[_0x147968(0x112)]||_0x8661b9[_0x147968(0xe1)])+'\x22>'),_0x5d0459+='\x0a'+_0x147968(0x11c)+(_0x147968(0xc7)+_0x30d748+_0x147968(0xee)+_0x8661b9[_0x147968(0x112)]+_0x147968(0x136)),_0x5d0459+='\x0a'+_0x147968(0xce)+_0x147968(0xf2)+'\x0a';break;case _0x147968(0xd2):_0x5d0459+='\x0a'+_0x147968(0xce)+(_0x147968(0x122)+(_0x8661b9[_0x147968(0x112)]||_0x8661b9[_0x147968(0xe1)])+'\x22>'),_0x5d0459+='\x0a'+_0x147968(0x11c)+(_0x147968(0xc7)+_0x30d748+_0x147968(0x11e)+_0x8661b9['Comment']+_0x147968(0xcc)),_0x5d0459+='\x0a'+_0x147968(0xce)+_0x147968(0xf2)+'\x0a',_0x5d0459+='\x0a'+_0x147968(0xce)+(_0x147968(0x122)+(_0x8661b9[_0x147968(0x112)]||_0x8661b9['Field'])+'\x22>'),_0x5d0459+='\x0a'+_0x147968(0x11c)+(_0x147968(0xc7)+_0x30d748+'_end\x22\x20placeholder=\x22选择'+_0x8661b9['Comment']+'结束时间\x22\x20type=\x22datetime\x22\x20value-format=\x22YYYY-MM-DD\x20HH:mm:ss\x22/>'),_0x5d0459+='\x0a'+'\x20\x20\x20\x20'+_0x147968(0xf2)+'\x0a';break;case _0x147968(0xfb):_0x5d0459+='\x0a'+_0x147968(0xce)+('<el-form-item\x20label=\x22'+(_0x8661b9['Comment']||_0x8661b9['Field'])+'\x22>'),_0x5d0459+='\x0a'+_0x147968(0x11c)+(_0x147968(0xf6)+_0x30d748+_0x147968(0xc5)+_0x8661b9['Comment']+_0x147968(0xf0)),_0x5d0459+='\x0a'+_0x147968(0xce)+_0x147968(0xf2)+'\x0a';}}}fs[_0x147968(0x123)]((0x0,path_1[_0x147968(0x121)])(_0x13a6c0),{'recursive':!![]}),fs[_0x147968(0x104)](_0x13a6c0,_0x147968(0xf4)+_0x5d0459+_0x147968(0x10f),_0x147968(0x131));}}async function createStore({moduleName:_0x2402c8,controller:_0x57feb5,tablestartUpShort2:_0x393553,Primary:_0x198760,Fields:_0x1fc440}){const _0x1e4978=a12_0x55ab82;let _0xab40d6=process[_0x1e4978(0x105)]()+_0x1e4978(0xc6)+(typeof _0x57feb5==_0x1e4978(0xfb)?'/'+_0x57feb5:'');_0x2402c8?_0xab40d6=_0xab40d6+('/module/'+_0x2402c8+'/'+_0x393553+'/components/store.vue'):_0xab40d6=_0xab40d6+(_0x1e4978(0x124)+_0x393553+_0x1e4978(0x11b));if(!fs[_0x1e4978(0xda)](_0xab40d6)){let _0x15ad2c='';for(let _0x47dc45 in _0x1fc440){const _0x3450f5=_0x1fc440[_0x47dc45];if([_0x1e4978(0x103),'updated_at',_0x1e4978(0xe6),_0x1e4978(0x12d)][_0x1e4978(0xcb)](_0x47dc45)!=-0x1)continue;if(_0x47dc45[_0x1e4978(0x10d)](-0x4)==_0x1e4978(0x128)||_0x47dc45[_0x1e4978(0x10d)](-0x5)=='thumbs')_0x15ad2c+='\x0a'+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x1e4978(0x122)+(_0x3450f5[_0x1e4978(0x112)]||_0x3450f5[_0x1e4978(0xe1)])+_0x1e4978(0x106)),_0x15ad2c+='\x0a'+_0x1e4978(0xc2)+(_0x1e4978(0x101)+_0x47dc45+_0x1e4978(0x114)),_0x15ad2c+='\x0a'+_0x1e4978(0x119)+_0x1e4978(0xf2)+'\x0a';else{if(_0x47dc45[_0x1e4978(0x10d)](-0x3)=='img'||_0x47dc45[_0x1e4978(0x10d)](-0x5)==_0x1e4978(0xc4)||_0x47dc45==_0x1e4978(0xc4)||_0x47dc45[_0x1e4978(0x10d)](-0x4)==_0x1e4978(0x109)||_0x47dc45==_0x1e4978(0x109))_0x15ad2c+='\x0a'+_0x1e4978(0x119)+(_0x1e4978(0x122)+(_0x3450f5[_0x1e4978(0x112)]||_0x3450f5[_0x1e4978(0xe1)])+_0x1e4978(0x106)),_0x15ad2c+='\x0a'+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x1e4978(0x101)+_0x47dc45+'\x22\x20:limit=\x221\x22\x20/>'),_0x15ad2c+='\x0a'+_0x1e4978(0x119)+_0x1e4978(0xf2)+'\x0a';else{if(_0x47dc45[_0x1e4978(0x10d)](-0x4)=='tags')_0x15ad2c+='\x0a'+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x1e4978(0x122)+(_0x3450f5[_0x1e4978(0x112)]||_0x3450f5[_0x1e4978(0xe1)])+'\x22>'),_0x15ad2c+='\x0a'+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x1e4978(0xc0)+_0x47dc45+'\x22\x20placeholder=\x22请输入或选择'+_0x3450f5[_0x1e4978(0x112)]+_0x1e4978(0x126)),_0x15ad2c+='\x0a'+_0x1e4978(0x119)+_0x1e4978(0xf2)+'\x0a';else{if(_0x47dc45[_0x1e4978(0x10d)](-0x3)==_0x1e4978(0x137))_0x15ad2c+='\x0a'+_0x1e4978(0x119)+('<el-form-item\x20label=\x22'+(_0x3450f5[_0x1e4978(0x112)]||_0x3450f5[_0x1e4978(0xe1)])+'\x22>'),_0x15ad2c+='\x0a'+_0x1e4978(0xc2)+(_0x1e4978(0x134)+_0x47dc45+'\x22\x20placeholder=\x22请输入'+_0x3450f5[_0x1e4978(0x112)]+_0x1e4978(0xf7)),_0x15ad2c+='\x0a'+_0x1e4978(0x119)+_0x1e4978(0xf2)+'\x0a';else{if(_0x47dc45[_0x1e4978(0x10d)](-0x4)==_0x1e4978(0xef))_0x15ad2c+='\x0a'+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x1e4978(0x122)+(_0x3450f5[_0x1e4978(0x112)]||_0x3450f5['Field'])+'\x22>'),_0x15ad2c+='\x0a'+_0x1e4978(0xc2)+('<el-input\x20v-model=\x22formdata.'+_0x47dc45+_0x1e4978(0xc5)+_0x3450f5[_0x1e4978(0x112)]+'\x22\x20/>'),_0x15ad2c+='\x0a'+_0x1e4978(0x119)+_0x1e4978(0xf2)+'\x0a';else{if(_0x47dc45[_0x1e4978(0x10d)](-0x3)==_0x1e4978(0x125)){let _0x4235c9=''+(typeof _0x57feb5==_0x1e4978(0xfb)?_0x57feb5+'/':'')+(_0x2402c8?_0x2402c8+'/':'')+_0x393553;_0x15ad2c+='\x0a'+_0x1e4978(0x119)+('<el-form-item\x20label=\x22'+(_0x3450f5[_0x1e4978(0x112)]||_0x3450f5[_0x1e4978(0xe1)])+'\x22>'),_0x15ad2c+='\x0a'+_0x1e4978(0xc2)+(_0x1e4978(0xc8)+_0x47dc45+'\x22\x20api=\x22'+_0x4235c9+_0x1e4978(0xe7)),_0x15ad2c+='\x0a'+_0x1e4978(0x119)+'</el-form-item>'+'\x0a';}else switch((0x0,helper_1[_0x1e4978(0x117)])(_0x3450f5[_0x1e4978(0xde)])){case _0x1e4978(0x100):_0x15ad2c+='\x0a'+_0x1e4978(0x119)+('<el-form-item\x20label=\x22'+(_0x3450f5['Comment']||_0x3450f5[_0x1e4978(0xe1)])+'\x22>'),_0x15ad2c+='\x0a'+_0x1e4978(0xc2)+('<el-input-number\x20v-model=\x22formdata.'+_0x47dc45+_0x1e4978(0xc5)+_0x3450f5[_0x1e4978(0x112)]+_0x1e4978(0xfe)),_0x15ad2c+='\x0a'+_0x1e4978(0x119)+_0x1e4978(0xf2)+'\x0a';break;case _0x1e4978(0xfa):_0x15ad2c+='\x0a'+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x1e4978(0x122)+(_0x3450f5[_0x1e4978(0x112)]||_0x3450f5['Field'])+'\x22>'),_0x15ad2c+='\x0a'+_0x1e4978(0xc2)+(_0x1e4978(0xca)+_0x47dc45+_0x1e4978(0x12a)+_0x3450f5['Comment']+'\x22>');for(let _0x5984f8 of(0x0,helper_1['getEnum'])(_0x3450f5['Type'])){_0x15ad2c+='\x0a'+_0x1e4978(0x12b)+(_0x1e4978(0x10b)+_0x5984f8+_0x1e4978(0xf9)+_0x5984f8+_0x1e4978(0xf0));}_0x15ad2c+='\x0a'+_0x1e4978(0xc2)+'</el-select>',_0x15ad2c+='\x0a'+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x1e4978(0xf2)+'\x0a';break;case _0x1e4978(0xbf):_0x15ad2c+='\x0a'+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x1e4978(0x122)+(_0x3450f5[_0x1e4978(0x112)]||_0x3450f5[_0x1e4978(0xe1)])+_0x1e4978(0x106)),_0x15ad2c+='\x0a'+_0x1e4978(0xc2)+(_0x1e4978(0xf1)+_0x47dc45+_0x1e4978(0xd0)+_0x3450f5[_0x1e4978(0x112)]+_0x1e4978(0x129)),_0x15ad2c+='\x0a'+_0x1e4978(0x119)+'</el-form-item>'+'\x0a';break;case _0x1e4978(0xf5):_0x15ad2c+='\x0a'+_0x1e4978(0x119)+(_0x1e4978(0x122)+(_0x3450f5[_0x1e4978(0x112)]||_0x3450f5[_0x1e4978(0xe1)])+'\x22\x20class=\x22block\x22>'),_0x15ad2c+='\x0a'+_0x1e4978(0xc2)+(_0x1e4978(0x102)+_0x47dc45+'\x22\x20/>'),_0x15ad2c+='\x0a'+_0x1e4978(0x119)+'</el-form-item>'+'\x0a';break;case _0x1e4978(0x110):_0x15ad2c+='\x0a'+_0x1e4978(0x119)+(_0x1e4978(0x122)+(_0x3450f5[_0x1e4978(0x112)]||_0x3450f5[_0x1e4978(0xe1)])+_0x1e4978(0x106)),_0x15ad2c+='\x0a'+_0x1e4978(0xc2)+('<page-editor\x20v-model=\x22formdata.'+_0x47dc45+'\x22\x20/>'),_0x15ad2c+='\x0a'+_0x1e4978(0x119)+_0x1e4978(0xf2)+'\x0a';break;case'date':_0x15ad2c+='\x0a'+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x1e4978(0x122)+(_0x3450f5[_0x1e4978(0x112)]||_0x3450f5['Field'])+'\x22>'),_0x15ad2c+='\x0a'+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x1e4978(0x139)+_0x47dc45+_0x1e4978(0xd5)+_0x3450f5[_0x1e4978(0x112)]+_0x1e4978(0xd1)),_0x15ad2c+='\x0a'+_0x1e4978(0x119)+_0x1e4978(0xf2)+'\x0a';break;case'datetime':_0x15ad2c+='\x0a'+_0x1e4978(0x119)+(_0x1e4978(0x122)+(_0x3450f5['Comment']||_0x3450f5[_0x1e4978(0xe1)])+'\x22>'),_0x15ad2c+='\x0a'+_0x1e4978(0xc2)+(_0x1e4978(0x139)+_0x47dc45+_0x1e4978(0xd5)+_0x3450f5[_0x1e4978(0x112)]+_0x1e4978(0xbe)),_0x15ad2c+='\x0a'+_0x1e4978(0x119)+'</el-form-item>'+'\x0a';break;case _0x1e4978(0xd2):_0x15ad2c+='\x0a'+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+('<el-form-item\x20label=\x22'+(_0x3450f5['Comment']||_0x3450f5[_0x1e4978(0xe1)])+'\x22>'),_0x15ad2c+='\x0a'+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x1e4978(0x139)+_0x47dc45+_0x1e4978(0xd5)+_0x3450f5[_0x1e4978(0x112)]+_0x1e4978(0xbe)),_0x15ad2c+='\x0a'+_0x1e4978(0x119)+_0x1e4978(0xf2)+'\x0a';break;default:_0x15ad2c+='\x0a'+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x1e4978(0x122)+(_0x3450f5[_0x1e4978(0x112)]||_0x3450f5['Field'])+'\x22>'),_0x15ad2c+='\x0a'+_0x1e4978(0xc2)+(_0x1e4978(0xf1)+_0x47dc45+'\x22\x20placeholder=\x22请输入'+_0x3450f5[_0x1e4978(0x112)]+_0x1e4978(0xf0)),_0x15ad2c+='\x0a'+_0x1e4978(0x119)+_0x1e4978(0xf2)+'\x0a';}}}}}}}_0x15ad2c+='\x0a'+_0x1e4978(0x119)+'<el-form-item\x20label=\x22排序\x22>',_0x15ad2c+='\x0a'+_0x1e4978(0xc2)+'<el-input-number\x20v-model=\x22formdata.displayorder\x22\x20placeholder=\x22请输入排序权重\x22\x20/>',_0x15ad2c+='\x0a'+_0x1e4978(0x119)+_0x1e4978(0xf2)+'\x0a',fs['mkdirSync']((0x0,path_1[_0x1e4978(0x121)])(_0xab40d6),{'recursive':!![]}),fs['writeFileSync'](_0xab40d6,_0x1e4978(0xc1)+_0x15ad2c+_0x1e4978(0xec)+_0x198760[_0x1e4978(0xe1)]+_0x1e4978(0x12e)+_0x198760[_0x1e4978(0xe1)]+_0x1e4978(0xe4)+(typeof _0x57feb5==_0x1e4978(0xfb)?_0x57feb5+'/':'')+(_0x2402c8?_0x2402c8+'/':'')+_0x393553+'/\x27+'+_0x198760[_0x1e4978(0xe1)]+_0x1e4978(0x120)+(typeof _0x57feb5==_0x1e4978(0xfb)?_0x57feb5+'/':'')+(_0x2402c8?_0x2402c8+'/':'')+_0x393553+_0x1e4978(0x11d),'utf-8');}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a13_0xbef142=a13_0x3f0c;(function(_0x51e9be,_0x194204){const _0x2089a0=a13_0x3f0c,_0x26cce9=_0x51e9be();while(!![]){try{const _0x3ea4dd=-parseInt(_0x2089a0(0x9c))/0x1*(-parseInt(_0x2089a0(0x87))/0x2)+-parseInt(_0x2089a0(0x8d))/0x3*(parseInt(_0x2089a0(0x7f))/0x4)+-parseInt(_0x2089a0(0x83))/0x5*(-parseInt(_0x2089a0(0x96))/0x6)+parseInt(_0x2089a0(0x90))/0x7*(parseInt(_0x2089a0(0x8a))/0x8)+-parseInt(_0x2089a0(0x98))/0x9+-parseInt(_0x2089a0(0x92))/0xa+parseInt(_0x2089a0(0x8c))/0xb;if(_0x3ea4dd===_0x194204)break;else _0x26cce9['push'](_0x26cce9['shift']());}catch(_0x12d5f9){_0x26cce9['push'](_0x26cce9['shift']());}}}(a13_0x51bf,0xc0c7b));const a13_0x257d5b=(function(){let _0x49e8dd=!![];return function(_0x20f5bf,_0x1501b7){const _0x4669b0=_0x49e8dd?function(){const _0x5908e6=a13_0x3f0c;if(_0x1501b7){const _0x414d94=_0x1501b7[_0x5908e6(0x80)](_0x20f5bf,arguments);return _0x1501b7=null,_0x414d94;}}:function(){};return _0x49e8dd=![],_0x4669b0;};}()),a13_0x2219f7=a13_0x257d5b(this,function(){const _0x46f3aa=a13_0x3f0c;return a13_0x2219f7[_0x46f3aa(0x8e)]()['search'](_0x46f3aa(0x8b))[_0x46f3aa(0x8e)]()[_0x46f3aa(0x7c)](a13_0x2219f7)[_0x46f3aa(0x89)]('(((.+)+)+)+$');});a13_0x2219f7();function a13_0x3f0c(_0x3dc5b2,_0x32223c){const _0x573840=a13_0x51bf();return a13_0x3f0c=function(_0x2219f7,_0x257d5b){_0x2219f7=_0x2219f7-0x79;let _0x51bfd3=_0x573840[_0x2219f7];return _0x51bfd3;},a13_0x3f0c(_0x3dc5b2,_0x32223c);}function a13_0x51bf(){const _0x4028ee=['6048amWCvc','/routes.js','1111347WfCNMB','existsSync',',\x20component:\x20()=>\x20import(\x27./','writeFileSync','194137AWGNUS','path',',\x20path:\x20\x22','{name:\x20\x22','utf-8','dirname','padEnd','constructor','module/','defineProperty','3344inchrZ','apply','import\x20layout\x20from\x20\x22./layout.vue\x22\x0a\x0a','\x20\x20\x20\x20//\x20add\x20route\x20here\x0a','1630jzYRGJ','cwd','replace','//\x20add\x20route\x20here','10HlblbV','string','search','2233496bmfFNb','(((.+)+)+)+$','1491897PoUTFG','3774qaHnjf','toString','/index.vue\x27)},\x0a\x20\x20\x20\x20//\x20add\x20route\x20here','35NCyVYz','export\x20default\x20{path:\x20\x27/','8660570XQKlSG','/pages/routes.js','default','readFileSync'];a13_0x51bf=function(){return _0x4028ee;};return a13_0x51bf();}'use strict';Object[a13_0xbef142(0x7e)](exports,'__esModule',{'value':!![]});const fs=require('fs'),path_1=require(a13_0xbef142(0x9d));async function default_1({tablestartUpShort2:_0x3daf6a,moduleName:_0x4c0eeb,controller:_0x38d9d7,Comment:_0x42337a}){await createRoutes({'tablestartUpShort2':_0x3daf6a,'moduleName':_0x4c0eeb,'controller':_0x38d9d7,'Comment':_0x42337a});}exports[a13_0xbef142(0x94)]=default_1;async function createRoutes({tablestartUpShort2:_0x372361,moduleName:_0x2aa026,controller:_0x6a4058,Comment:_0x4e56bc}){const _0x471c98=a13_0xbef142;let _0x1bd068=process[_0x471c98(0x84)]()+'/vue'+(typeof _0x6a4058==_0x471c98(0x88)?'/'+_0x6a4058:'');_0x2aa026?_0x1bd068=_0x1bd068+('/module/'+_0x2aa026+_0x471c98(0x97)):_0x1bd068=_0x1bd068+_0x471c98(0x93);if(!fs[_0x471c98(0x99)](_0x1bd068)){let _0x5a4a8f=_0x471c98(0x81);_0x5a4a8f+=_0x471c98(0x91)+(_0x2aa026?_0x471c98(0x7d)+_0x2aa026+'/':'')+'\x27,\x20component:layout,\x20children:[\x0a',_0x5a4a8f+=_0x471c98(0x82),_0x5a4a8f+=']}\x0a',fs['mkdirSync']((0x0,path_1[_0x471c98(0x7a)])(_0x1bd068),{'recursive':!![]}),fs['writeFileSync'](_0x1bd068,_0x5a4a8f,_0x471c98(0x79));}const _0xd2a608=fs[_0x471c98(0x95)](_0x1bd068,_0x471c98(0x79));fs[_0x471c98(0x9b)](_0x1bd068,_0xd2a608[_0x471c98(0x85)](_0x471c98(0x86),_0x471c98(0x9f)+(_0x4e56bc+'\x22')[_0x471c98(0x7b)](0x14)+_0x471c98(0x9e)+(_0x372361+'\x22')[_0x471c98(0x7b)](0x14)+(_0x471c98(0x9a)+_0x372361+_0x471c98(0x8f))));}
|
package/dist/types/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a14_0x2c2f40=a14_0x1600;(function(_0xdca8b1,_0x5cd18c){var _0x24948b=a14_0x1600,_0x39b7ce=_0xdca8b1();while(!![]){try{var _0x3f2bcc=-parseInt(_0x24948b(0x1f3))/0x1*(parseInt(_0x24948b(0x200))/0x2)+-parseInt(_0x24948b(0x1fc))/0x3+parseInt(_0x24948b(0x1f6))/0x4+parseInt(_0x24948b(0x1f2))/0x5+-parseInt(_0x24948b(0x1f1))/0x6*(parseInt(_0x24948b(0x1f7))/0x7)+-parseInt(_0x24948b(0x1f9))/0x8*(-parseInt(_0x24948b(0x1f4))/0x9)+parseInt(_0x24948b(0x1fb))/0xa*(-parseInt(_0x24948b(0x1f5))/0xb);if(_0x3f2bcc===_0x5cd18c)break;else _0x39b7ce['push'](_0x39b7ce['shift']());}catch(_0x45a79f){_0x39b7ce['push'](_0x39b7ce['shift']());}}}(a14_0x3ccc,0x9ae1a));var a14_0x29fe80=(function(){var _0xb391a2=!![];return function(_0x319b09,_0x407332){var _0x31c0b4=_0xb391a2?function(){var _0x4e3ae0=a14_0x1600;if(_0x407332){var _0x2a90dd=_0x407332[_0x4e3ae0(0x1fd)](_0x319b09,arguments);return _0x407332=null,_0x2a90dd;}}:function(){};return _0xb391a2=![],_0x31c0b4;};}()),a14_0x418eb0=a14_0x29fe80(this,function(){var _0x345a75=a14_0x1600;return a14_0x418eb0['toString']()['search'](_0x345a75(0x1fe))[_0x345a75(0x1ff)]()[_0x345a75(0x1f0)](a14_0x418eb0)['search'](_0x345a75(0x1fe));});function a14_0x1600(_0x39a4fb,_0x594e63){var _0x372fc2=a14_0x3ccc();return a14_0x1600=function(_0x418eb0,_0x29fe80){_0x418eb0=_0x418eb0-0x1f0;var _0x3ccc17=_0x372fc2[_0x418eb0];return _0x3ccc17;},a14_0x1600(_0x39a4fb,_0x594e63);}a14_0x418eb0();'use strict';function a14_0x3ccc(){var _0x1f845e=['constructor','2762010kixfIi','4725070GXqSfi','593755bgWBgg','683739KSMnbu','341253LVjTQt','1455376bJRUYo','14qClhhj','defineProperty','128xQgwdz','__esModule','10dUFcYf','1033656jslNbh','apply','(((.+)+)+)+$','toString','2zQSOBB'];a14_0x3ccc=function(){return _0x1f845e;};return a14_0x3ccc();}Object[a14_0x2c2f40(0x1f8)](exports,a14_0x2c2f40(0x1fa),{'value':!![]});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "anncic-apihelper",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.8",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist"
|
|
@@ -14,12 +14,12 @@
|
|
|
14
14
|
"build": "tsc && javascript-obfuscator ./dist --output ./dist --config obfuscator.json"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@anncic-api/typeorm": "^1.5.
|
|
17
|
+
"@anncic-api/typeorm": "^1.5.8"
|
|
18
18
|
},
|
|
19
19
|
"devDependencies": {
|
|
20
20
|
"@types/node": "^18.8.4",
|
|
21
21
|
"javascript-obfuscator": "^4.0.0",
|
|
22
22
|
"typescript": "^4.8.4"
|
|
23
23
|
},
|
|
24
|
-
"gitHead": "
|
|
24
|
+
"gitHead": "d9ce0be4623dcd0cc941f8f3f4c21541df3acb78"
|
|
25
25
|
}
|