anvero-apihelper 0.0.0-stage → 3.0.0

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.
@@ -0,0 +1,15 @@
1
+ import { CommandRunner } from '@midwayjs/commander';
2
+ import { ApicreateService } from '../service/ApicreateService';
3
+ export declare class anveroGenCommand implements CommandRunner {
4
+ protected ApicreateService: ApicreateService;
5
+ parseMode(val: string): string;
6
+ parseTables(val: string): string[];
7
+ parseTableprefix(val: string): string;
8
+ parseSubstr(val: string): number;
9
+ parseController(val: string): true | string[];
10
+ parseHasvue(): boolean;
11
+ parseVuedialog(): boolean;
12
+ parseVueapiprefix(val: string): string;
13
+ parseConnection(val: string): string;
14
+ run(passedParams: string[], options: Record<string, any>): Promise<void>;
15
+ }
@@ -0,0 +1 @@
1
+ const a0_0x281447=a0_0x1bd7;(function(_0x52a8c4,_0x1be094){const _0x4e278b=a0_0x1bd7,_0x461457=_0x52a8c4();while(!![]){try{const _0x127a88=-parseInt(_0x4e278b(0x120))/0x1+-parseInt(_0x4e278b(0x12b))/0x2+parseInt(_0x4e278b(0x133))/0x3*(parseInt(_0x4e278b(0x154))/0x4)+-parseInt(_0x4e278b(0x105))/0x5*(-parseInt(_0x4e278b(0x146))/0x6)+parseInt(_0x4e278b(0x152))/0x7+parseInt(_0x4e278b(0x11a))/0x8*(parseInt(_0x4e278b(0x12e))/0x9)+parseInt(_0x4e278b(0x128))/0xa*(parseInt(_0x4e278b(0x151))/0xb);if(_0x127a88===_0x1be094)break;else _0x461457['push'](_0x461457['shift']());}catch(_0x1dc21c){_0x461457['push'](_0x461457['shift']());}}}(a0_0x4f2f,0x8acef));function a0_0x4f2f(){const _0x578fcc=['controller','生成模式\x20app|basic|plugin,默认\x20app(产物依次为\x20src/app、src/basic、src/apps/<模块>)','parseTableprefix','按数据库表生成分层\x20API\x20代码(--mode\x20app|basic|plugin,默认\x20app:表前缀\x20app_,控制器\x20admin,输出\x20src/app)','createPlugin','toString','design:returntype','5gBkYTo','trim','-m,\x20--mode\x20[mode]','__esModule','parseTables','parseSubstr','app','tableprefix','src/apps/<模块>','--vuedialog','exit','前端全局\x20api\x20前缀(配合\x20--hasvue,如\x20$api):设置时不生成独立\x20api\x20文件,页面直接调\x20${前缀}.${模块}${表Pascal}.${方法}($api.Order.List\x20/\x20$api.helloincshOrders.List)适配\x20alova;缺省按原规则生成\x20vue/apis\x20独立\x20api\x20文件','parseHasvue','anveroGenCommand','mode','design:paramtypes','生成前端代码到\x20./vue;不带此参数不生成前端','[gen:api]\x20未知模式\x20','parseMode','vueapiprefix','includes','104IcBHkG','--vueapiprefix\x20[vueapiprefix]','decorate','basic_','length','parseVuedialog','667242fuqEZJ','控制器目录名,逗号分隔多个,默认\x20admin;裸\x20flag\x20落\x20app/basic\x20根目录;空串只生成基础分层','basic','prototype','defineProperty','tables','function','isFinite','7006660vWGPpY','hasvue','表名截断长度,默认\x20app\x20模式\x204(去\x20app_)、basic\x20模式\x206(去\x20basic_)、plugin\x20模式\x200','2092274IuunhJ','typeorm\x20数据源名,默认\x20default','ApicreateService','257697mohRnU','string','log','constructor','error','27582JMUAAk','split','parseController','substr','@midwayjs/core','metadata','plugin','-t,\x20--tables\x20[tables]','createBasic','__decorate','\x20全量匹配','apply','filter','map','__metadata','src/','--hasvue','vuedialog','parseConnection','3469026WbhXtQ','default','design:type','object','-c,\x20--controller\x20[controller]','app_','createApp','按前缀\x20','search','admin','../service/ApicreateService','11MwQErh','3128944YtabqD','@midwayjs/commander','80nObzXC',',可选\x20app\x20|\x20basic\x20|\x20plugin','Option','--connection\x20[connection]','parseVueapiprefix','前端生成弹窗形态标记(配合\x20--hasvue)','(((.+)+)+)+$','-s,\x20--substr\x20[substr]','run','connection'];a0_0x4f2f=function(){return _0x578fcc;};return a0_0x4f2f();}function a0_0x1bd7(_0x334509,_0x5a147c){_0x334509=_0x334509-0x105;const _0x2d2892=a0_0x4f2f();let _0xa828c8=_0x2d2892[_0x334509];return _0xa828c8;}const a0_0x473a7e=(function(){let _0x350d7=!![];return function(_0x1b4512,_0x4700e9){const _0x163560=_0x350d7?function(){const _0x586571=a0_0x1bd7;if(_0x4700e9){const _0x23e620=_0x4700e9[_0x586571(0x13e)](_0x1b4512,arguments);return _0x4700e9=null,_0x23e620;}}:function(){};return _0x350d7=![],_0x163560;};}()),a0_0xa828c8=a0_0x473a7e(this,function(){const _0x40305a=a0_0x1bd7;return a0_0xa828c8[_0x40305a(0x163)]()[_0x40305a(0x14e)](_0x40305a(0x15a))[_0x40305a(0x163)]()[_0x40305a(0x131)](a0_0xa828c8)[_0x40305a(0x14e)](_0x40305a(0x15a));});a0_0xa828c8();'use strict';var __decorate=this&&this[a0_0x281447(0x13c)]||function(_0x117b66,_0x33dbf9,_0x270753,_0x217a24){const _0x3a676a=a0_0x281447;var _0x2b3bdd=arguments['length'],_0x5e4351=_0x2b3bdd<0x3?_0x33dbf9:_0x217a24===null?_0x217a24=Object['getOwnPropertyDescriptor'](_0x33dbf9,_0x270753):_0x217a24,_0xa657ce;if(typeof Reflect==='object'&&typeof Reflect['decorate']===_0x3a676a(0x126))_0x5e4351=Reflect[_0x3a676a(0x11c)](_0x117b66,_0x33dbf9,_0x270753,_0x217a24);else{for(var _0x3dba38=_0x117b66['length']-0x1;_0x3dba38>=0x0;_0x3dba38--)if(_0xa657ce=_0x117b66[_0x3dba38])_0x5e4351=(_0x2b3bdd<0x3?_0xa657ce(_0x5e4351):_0x2b3bdd>0x3?_0xa657ce(_0x33dbf9,_0x270753,_0x5e4351):_0xa657ce(_0x33dbf9,_0x270753))||_0x5e4351;}return _0x2b3bdd>0x3&&_0x5e4351&&Object[_0x3a676a(0x124)](_0x33dbf9,_0x270753,_0x5e4351),_0x5e4351;},__metadata=this&&this[a0_0x281447(0x141)]||function(_0x253b29,_0x4edc2c){const _0x29e54e=a0_0x281447;if(typeof Reflect===_0x29e54e(0x149)&&typeof Reflect[_0x29e54e(0x138)]===_0x29e54e(0x126))return Reflect[_0x29e54e(0x138)](_0x253b29,_0x4edc2c);};Object[a0_0x281447(0x124)](exports,a0_0x281447(0x108),{'value':!![]}),exports[a0_0x281447(0x112)]=void 0x0;const core_1=require(a0_0x281447(0x137)),commander_1=require(a0_0x281447(0x153)),ApicreateService_1=require(a0_0x281447(0x150));let anveroGenCommand=class anveroGenCommand{[a0_0x281447(0x117)](_0x1cc837){return _0x1cc837;}[a0_0x281447(0x109)](_0x2e086f){const _0x99510=a0_0x281447;return(_0x2e086f||'')['split'](',')[_0x99510(0x140)](_0x7f6b4c=>_0x7f6b4c[_0x99510(0x106)]())['filter'](Boolean);}[a0_0x281447(0x160)](_0x2111b5){const _0x11a5d6=a0_0x281447;return typeof _0x2111b5===_0x11a5d6(0x12f)?_0x2111b5:undefined;}[a0_0x281447(0x10a)](_0x421026){const _0x25ebd5=a0_0x281447;return typeof _0x421026===_0x25ebd5(0x12f)&&_0x421026!==''&&Number[_0x25ebd5(0x127)](Number(_0x421026))?Number(_0x421026):undefined;}[a0_0x281447(0x135)](_0x27f218){const _0x38998d=a0_0x281447;if(_0x27f218===undefined)return!![];return(_0x27f218||'')[_0x38998d(0x134)](',')[_0x38998d(0x140)](_0x26a609=>_0x26a609['trim']())[_0x38998d(0x13f)](Boolean);}[a0_0x281447(0x111)](){return!![];}['parseVuedialog'](){return!![];}['parseVueapiprefix'](_0x5dd596){const _0x387f46=a0_0x281447;return typeof _0x5dd596===_0x387f46(0x12f)&&_0x5dd596?_0x5dd596:undefined;}[a0_0x281447(0x145)](_0x4ca996){return typeof _0x4ca996==='string'&&_0x4ca996?_0x4ca996:undefined;}async[a0_0x281447(0x15c)](_0x4a70a8,_0x1b7ad6){const _0x4da50c=a0_0x281447,_0x36d3a1=_0x1b7ad6[_0x4da50c(0x113)]||_0x4da50c(0x10b);![_0x4da50c(0x10b),_0x4da50c(0x122),_0x4da50c(0x139)][_0x4da50c(0x119)](_0x36d3a1)&&(console[_0x4da50c(0x132)](_0x4da50c(0x116)+_0x36d3a1+_0x4da50c(0x155)),process[_0x4da50c(0x10f)](0x1));const _0x1de14b={'app':{'tableprefix':_0x4da50c(0x14b),'substr':0x4},'basic':{'tableprefix':_0x4da50c(0x11d),'substr':0x6},'plugin':{'tableprefix':'','substr':0x0}},_0x5685a5=typeof _0x1b7ad6[_0x4da50c(0x10c)]===_0x4da50c(0x12f)?_0x1b7ad6['tableprefix']:_0x1de14b[_0x36d3a1][_0x4da50c(0x10c)],_0x3a62d0=Number[_0x4da50c(0x127)](_0x1b7ad6[_0x4da50c(0x136)])?_0x1b7ad6[_0x4da50c(0x136)]:_0x1de14b[_0x36d3a1][_0x4da50c(0x136)],_0x5ab380=_0x1b7ad6[_0x4da50c(0x15e)]===undefined?[_0x4da50c(0x14f)]:_0x1b7ad6[_0x4da50c(0x15e)],_0x187607=typeof _0x1b7ad6[_0x4da50c(0x15d)]===_0x4da50c(0x12f)?_0x1b7ad6[_0x4da50c(0x15d)]:_0x4da50c(0x147),_0x16ab6b={'substr':_0x3a62d0,'tableprefix':_0x5685a5,'controller':_0x5ab380,'connection':_0x187607,'hasvue':_0x1b7ad6[_0x4da50c(0x129)],'vuedialog':!!_0x1b7ad6[_0x4da50c(0x144)],'vueapiprefix':_0x1b7ad6[_0x4da50c(0x118)]},_0x365267=_0x1b7ad6[_0x4da50c(0x125)]||[],_0x367009=_0x365267[_0x4da50c(0x11e)]?_0x365267:[''];for(const _0x24af3d of _0x367009){const _0x5a5394={..._0x16ab6b,..._0x24af3d?{'table':_0x24af3d}:{}};if(_0x36d3a1===_0x4da50c(0x122))await this[_0x4da50c(0x12d)][_0x4da50c(0x13b)](_0x5a5394);else _0x36d3a1===_0x4da50c(0x139)?await this[_0x4da50c(0x12d)][_0x4da50c(0x162)](_0x5a5394):await this[_0x4da50c(0x12d)][_0x4da50c(0x14c)](_0x5a5394);console[_0x4da50c(0x130)]('[gen:api]\x20完成:'+(_0x24af3d||_0x4da50c(0x14d)+(_0x5685a5||'*')+_0x4da50c(0x13d)));}console['log']('[gen:api]\x20产物目录:'+(_0x36d3a1==='plugin'?_0x4da50c(0x10d):_0x4da50c(0x142)+_0x36d3a1)),process[_0x4da50c(0x10f)](0x0);}};exports[a0_0x281447(0x112)]=anveroGenCommand,__decorate([(0x0,core_1['Inject'])(),__metadata(a0_0x281447(0x148),ApicreateService_1[a0_0x281447(0x12d)])],anveroGenCommand[a0_0x281447(0x123)],a0_0x281447(0x12d),void 0x0),__decorate([(0x0,commander_1['Option'])({'flags':a0_0x281447(0x107),'description':a0_0x281447(0x15f)}),__metadata(a0_0x281447(0x148),Function),__metadata(a0_0x281447(0x114),[String]),__metadata(a0_0x281447(0x164),void 0x0)],anveroGenCommand['prototype'],'parseMode',null),__decorate([(0x0,commander_1[a0_0x281447(0x156)])({'flags':a0_0x281447(0x13a),'description':'精确表名,逗号分隔多个;缺省按\x20tableprefix\x20全量匹配'}),__metadata(a0_0x281447(0x148),Function),__metadata('design:paramtypes',[String]),__metadata(a0_0x281447(0x164),void 0x0)],anveroGenCommand[a0_0x281447(0x123)],a0_0x281447(0x109),null),__decorate([(0x0,commander_1[a0_0x281447(0x156)])({'flags':'-p,\x20--tableprefix\x20[tableprefix]','description':'表前缀过滤,默认\x20app\x20模式\x20\x27app_\x27、basic\x20模式\x20\x27basic_\x27、plugin\x20模式\x20\x27\x27(全表)'}),__metadata(a0_0x281447(0x148),Function),__metadata(a0_0x281447(0x114),[String]),__metadata('design:returntype',void 0x0)],anveroGenCommand[a0_0x281447(0x123)],'parseTableprefix',null),__decorate([(0x0,commander_1[a0_0x281447(0x156)])({'flags':a0_0x281447(0x15b),'description':a0_0x281447(0x12a)}),__metadata(a0_0x281447(0x148),Function),__metadata(a0_0x281447(0x114),[String]),__metadata(a0_0x281447(0x164),void 0x0)],anveroGenCommand[a0_0x281447(0x123)],a0_0x281447(0x10a),null),__decorate([(0x0,commander_1['Option'])({'flags':a0_0x281447(0x14a),'description':a0_0x281447(0x121)}),__metadata('design:type',Function),__metadata(a0_0x281447(0x114),[String]),__metadata('design:returntype',void 0x0)],anveroGenCommand[a0_0x281447(0x123)],a0_0x281447(0x135),null),__decorate([(0x0,commander_1[a0_0x281447(0x156)])({'flags':a0_0x281447(0x143),'description':a0_0x281447(0x115)}),__metadata(a0_0x281447(0x148),Function),__metadata(a0_0x281447(0x114),[]),__metadata('design:returntype',void 0x0)],anveroGenCommand[a0_0x281447(0x123)],a0_0x281447(0x111),null),__decorate([(0x0,commander_1[a0_0x281447(0x156)])({'flags':a0_0x281447(0x10e),'description':a0_0x281447(0x159)}),__metadata('design:type',Function),__metadata(a0_0x281447(0x114),[]),__metadata('design:returntype',void 0x0)],anveroGenCommand[a0_0x281447(0x123)],a0_0x281447(0x11f),null),__decorate([(0x0,commander_1['Option'])({'flags':a0_0x281447(0x11b),'description':a0_0x281447(0x110)}),__metadata(a0_0x281447(0x148),Function),__metadata(a0_0x281447(0x114),[String]),__metadata(a0_0x281447(0x164),void 0x0)],anveroGenCommand[a0_0x281447(0x123)],a0_0x281447(0x158),null),__decorate([(0x0,commander_1['Option'])({'flags':a0_0x281447(0x157),'description':a0_0x281447(0x12c)}),__metadata('design:type',Function),__metadata(a0_0x281447(0x114),[String]),__metadata(a0_0x281447(0x164),void 0x0)],anveroGenCommand[a0_0x281447(0x123)],a0_0x281447(0x145),null),exports[a0_0x281447(0x112)]=anveroGenCommand=__decorate([(0x0,commander_1['Command'])({'name':'anvero:gen','description':a0_0x281447(0x161)})],anveroGenCommand);
@@ -0,0 +1,7 @@
1
+ import { MidwayApplicationManager, MidwayConfigService, MidwayDecoratorService } from '@midwayjs/core';
2
+ export declare class CustomConfiguration {
3
+ config: MidwayConfigService;
4
+ decorator: MidwayDecoratorService;
5
+ application: MidwayApplicationManager;
6
+ onReady(): Promise<void>;
7
+ }
@@ -0,0 +1 @@
1
+ var a1_0x540e36=a1_0x5d08;(function(_0x3e8fe1,_0x11b658){var _0x2d95c3=a1_0x5d08,_0x172fac=_0x3e8fe1();while(!![]){try{var _0x230d40=parseInt(_0x2d95c3(0xc6))/0x1*(-parseInt(_0x2d95c3(0xc0))/0x2)+-parseInt(_0x2d95c3(0xc2))/0x3+parseInt(_0x2d95c3(0xb2))/0x4*(-parseInt(_0x2d95c3(0xc8))/0x5)+-parseInt(_0x2d95c3(0xa5))/0x6*(-parseInt(_0x2d95c3(0xae))/0x7)+parseInt(_0x2d95c3(0xa9))/0x8*(-parseInt(_0x2d95c3(0xad))/0x9)+-parseInt(_0x2d95c3(0xbc))/0xa*(-parseInt(_0x2d95c3(0xa6))/0xb)+-parseInt(_0x2d95c3(0xc5))/0xc*(-parseInt(_0x2d95c3(0xb5))/0xd);if(_0x230d40===_0x11b658)break;else _0x172fac['push'](_0x172fac['shift']());}catch(_0xbbec3e){_0x172fac['push'](_0x172fac['shift']());}}}(a1_0x24ea,0x78711));var a1_0x5e0d03=(function(){var _0x5ec40f=!![];return function(_0x478958,_0x543681){var _0x473b82=_0x5ec40f?function(){var _0x3ba584=a1_0x5d08;if(_0x543681){var _0x5d59c6=_0x543681[_0x3ba584(0xcb)](_0x478958,arguments);return _0x543681=null,_0x5d59c6;}}:function(){};return _0x5ec40f=![],_0x473b82;};}()),a1_0x154cda=a1_0x5e0d03(this,function(){var _0x78d95c=a1_0x5d08;return a1_0x154cda[_0x78d95c(0xbe)]()['search'](_0x78d95c(0xca))[_0x78d95c(0xbe)]()[_0x78d95c(0xc9)](a1_0x154cda)[_0x78d95c(0xb7)]('(((.+)+)+)+$');});a1_0x154cda();'use strict';function a1_0x5d08(_0x523d54,_0x3e0c1a){_0x523d54=_0x523d54-0xa2;var _0x4a9380=a1_0x24ea();var _0x154cda=_0x4a9380[_0x523d54];return _0x154cda;}var __decorate=this&&this['__decorate']||function(_0x560508,_0x80109f,_0x45febb,_0xe0dd65){var _0x60a7c9=a1_0x5d08,_0x3833d3=arguments[_0x60a7c9(0xa8)],_0x5dc5e9=_0x3833d3<0x3?_0x80109f:_0xe0dd65===null?_0xe0dd65=Object['getOwnPropertyDescriptor'](_0x80109f,_0x45febb):_0xe0dd65,_0x28692e;if(typeof Reflect===_0x60a7c9(0xc7)&&typeof Reflect['decorate']===_0x60a7c9(0xbf))_0x5dc5e9=Reflect[_0x60a7c9(0xb9)](_0x560508,_0x80109f,_0x45febb,_0xe0dd65);else{for(var _0x4edef3=_0x560508[_0x60a7c9(0xa8)]-0x1;_0x4edef3>=0x0;_0x4edef3--)if(_0x28692e=_0x560508[_0x4edef3])_0x5dc5e9=(_0x3833d3<0x3?_0x28692e(_0x5dc5e9):_0x3833d3>0x3?_0x28692e(_0x80109f,_0x45febb,_0x5dc5e9):_0x28692e(_0x80109f,_0x45febb))||_0x5dc5e9;}return _0x3833d3>0x3&&_0x5dc5e9&&Object[_0x60a7c9(0xbd)](_0x80109f,_0x45febb,_0x5dc5e9),_0x5dc5e9;},__metadata=this&&this[a1_0x540e36(0xa7)]||function(_0x18af37,_0x5db875){var _0x343fd5=a1_0x540e36;if(typeof Reflect===_0x343fd5(0xc7)&&typeof Reflect[_0x343fd5(0xb0)]===_0x343fd5(0xbf))return Reflect[_0x343fd5(0xb0)](_0x18af37,_0x5db875);};Object['defineProperty'](exports,a1_0x540e36(0xba),{'value':!![]}),exports[a1_0x540e36(0xab)]=void 0x0;const core_1=require(a1_0x540e36(0xa2)),core_2=require(a1_0x540e36(0xa2)),typeorm=require(a1_0x540e36(0xb6)),commander=require(a1_0x540e36(0xa4));let CustomConfiguration=class CustomConfiguration{async[a1_0x540e36(0xb8)](){}};exports['CustomConfiguration']=CustomConfiguration,__decorate([(0x0,core_1['Inject'])(),__metadata(a1_0x540e36(0xbb),core_2[a1_0x540e36(0xb4)])],CustomConfiguration['prototype'],a1_0x540e36(0xa3),void 0x0),__decorate([(0x0,core_1[a1_0x540e36(0xb1)])(),__metadata(a1_0x540e36(0xbb),core_2[a1_0x540e36(0xc1)])],CustomConfiguration[a1_0x540e36(0xac)],a1_0x540e36(0xb3),void 0x0),__decorate([(0x0,core_1[a1_0x540e36(0xb1)])(),__metadata(a1_0x540e36(0xbb),core_2[a1_0x540e36(0xaf)])],CustomConfiguration[a1_0x540e36(0xac)],a1_0x540e36(0xaa),void 0x0),exports[a1_0x540e36(0xab)]=CustomConfiguration=__decorate([(0x0,core_1[a1_0x540e36(0xc4)])({'imports':[typeorm,commander],'namespace':a1_0x540e36(0xc3)})],CustomConfiguration);function a1_0x24ea(){var _0x540534=['function','2svlWSI','MidwayDecoratorService','1879689zzDprA','anvero-apihelper','Configuration','5532eIoBnV','950917ciVjWO','object','5hlUZih','constructor','(((.+)+)+)+$','apply','@midwayjs/core','config','@midwayjs/commander','75066EZxiZb','9185ojLoDK','__metadata','length','3633976akxYde','application','CustomConfiguration','prototype','9gIySlu','392EaCzaj','MidwayApplicationManager','metadata','Inject','1411688DRGXpj','decorator','MidwayConfigService','59046NAyQie','@anveroapi/typeorm','search','onReady','decorate','__esModule','design:type','1000adGusn','defineProperty','toString'];a1_0x24ea=function(){return _0x540534;};return a1_0x24ea();}
@@ -0,0 +1,2 @@
1
+ export declare function getProp(type: string): string;
2
+ export declare function getEnum(type: string): Array<string>;
package/dist/helper.js ADDED
@@ -0,0 +1 @@
1
+ const a2_0xcef022=a2_0x4947;(function(_0x21fcf0,_0x48ea6c){const _0x3d2dcd=a2_0x4947,_0x3ac1a3=_0x21fcf0();while(!![]){try{const _0x5b08e3=parseInt(_0x3d2dcd(0x89))/0x1+-parseInt(_0x3d2dcd(0x74))/0x2*(parseInt(_0x3d2dcd(0x78))/0x3)+parseInt(_0x3d2dcd(0x6e))/0x4+-parseInt(_0x3d2dcd(0x76))/0x5*(-parseInt(_0x3d2dcd(0x72))/0x6)+-parseInt(_0x3d2dcd(0x80))/0x7*(-parseInt(_0x3d2dcd(0x7e))/0x8)+parseInt(_0x3d2dcd(0x90))/0x9+parseInt(_0x3d2dcd(0x83))/0xa*(-parseInt(_0x3d2dcd(0x86))/0xb);if(_0x5b08e3===_0x48ea6c)break;else _0x3ac1a3['push'](_0x3ac1a3['shift']());}catch(_0x23b4f3){_0x3ac1a3['push'](_0x3ac1a3['shift']());}}}(a2_0x327e,0x40838));const a2_0x3ff95c=(function(){let _0x2df3f2=!![];return function(_0x598661,_0x49555e){const _0x5a18a8=_0x2df3f2?function(){const _0x25e607=a2_0x4947;if(_0x49555e){const _0x431af8=_0x49555e[_0x25e607(0x8a)](_0x598661,arguments);return _0x49555e=null,_0x431af8;}}:function(){};return _0x2df3f2=![],_0x5a18a8;};}()),a2_0x2c1600=a2_0x3ff95c(this,function(){const _0x358fc4=a2_0x4947;return a2_0x2c1600[_0x358fc4(0x7c)]()[_0x358fc4(0x82)](_0x358fc4(0x70))[_0x358fc4(0x7c)]()[_0x358fc4(0x88)](a2_0x2c1600)['search'](_0x358fc4(0x70));});a2_0x2c1600();function a2_0x4947(_0x3e0eb9,_0x22652b){_0x3e0eb9=_0x3e0eb9-0x6e;const _0x189bc6=a2_0x327e();let _0x2c1600=_0x189bc6[_0x3e0eb9];return _0x2c1600;}'use strict';Object[a2_0xcef022(0x8d)](exports,'__esModule',{'value':!![]}),exports[a2_0xcef022(0x79)]=getProp,exports[a2_0xcef022(0x6f)]=getEnum;const columnTypes={'json':a2_0xcef022(0x87),'char':'string','varchar':a2_0xcef022(0x7a),'text':a2_0xcef022(0x8c),'longtext':a2_0xcef022(0x81),'mediumtext':'mediumtext','int':a2_0xcef022(0x8b),'float':'float','double':a2_0xcef022(0x8f),'decimal':a2_0xcef022(0x77),'date':'date','time':a2_0xcef022(0x7d),'datetime':a2_0xcef022(0x7d),'timestamp':a2_0xcef022(0x8e),'tinyint':a2_0xcef022(0x7f)};function a2_0x327e(){const _0x10a223=['366012xgTPLc','1441568lcRfPP','getEnum','(((.+)+)+)+$','indexOf','17328AUAezP','hasOwnProperty','6434DSHjtd','split','5naqqtP','decimal','312xkyfEm','getProp','string','substr','toString','datetime','66632sJXFMF','tinyint','161kSTjeO','longtext','search','30rPUYhM','replace','enum','1887809VjoEcD','json','constructor','518158pYokPM','apply','number','text','defineProperty','timestamp','float'];a2_0x327e=function(){return _0x10a223;};return a2_0x327e();}function getProp(_0x51d8b6){const _0x62a933=a2_0xcef022;if(columnTypes[_0x62a933(0x73)](_0x51d8b6))return columnTypes[_0x51d8b6];else return _0x51d8b6[_0x62a933(0x71)]('(')>-0x1||_0x51d8b6[_0x62a933(0x71)]('\x20')>-0x1?(_0x51d8b6=_0x51d8b6[_0x62a933(0x7b)](0x0,_0x51d8b6['indexOf']('(')>-0x1?_0x51d8b6['indexOf']('('):_0x51d8b6[_0x62a933(0x71)]('\x20')),columnTypes[_0x51d8b6]||_0x51d8b6):_0x62a933(0x7a);}function getEnum(_0x524973){const _0x2f013a=a2_0xcef022;if(getProp(_0x524973)==_0x2f013a(0x85))return _0x524973[_0x2f013a(0x7b)](0x5,_0x524973['length']-0x6)[_0x2f013a(0x84)](/[\'|\"]/g,'')[_0x2f013a(0x75)](',');return[];}
@@ -0,0 +1,3 @@
1
+ export { ApicreateService } from './service/ApicreateService';
2
+ export { anveroGenCommand } from './command/anverogen.command';
3
+ export { CustomConfiguration as Configuration } from './configuration';
package/dist/index.js ADDED
@@ -0,0 +1 @@
1
+ var a3_0x1f86c8=a3_0x4c9e;(function(_0x1944d0,_0xb9c7f1){var _0x65aa69=a3_0x4c9e,_0x525a92=_0x1944d0();while(!![]){try{var _0x190c66=-parseInt(_0x65aa69(0xbe))/0x1*(parseInt(_0x65aa69(0xca))/0x2)+-parseInt(_0x65aa69(0xcb))/0x3+parseInt(_0x65aa69(0xcc))/0x4+parseInt(_0x65aa69(0xc1))/0x5+-parseInt(_0x65aa69(0xc9))/0x6+parseInt(_0x65aa69(0xc4))/0x7+parseInt(_0x65aa69(0xc5))/0x8;if(_0x190c66===_0xb9c7f1)break;else _0x525a92['push'](_0x525a92['shift']());}catch(_0x25fd77){_0x525a92['push'](_0x525a92['shift']());}}}(a3_0x30db,0x413e7));var a3_0x3abee3=(function(){var _0x570c92=!![];return function(_0x25262b,_0x3b6baa){var _0x443b25=_0x570c92?function(){if(_0x3b6baa){var _0xc2e539=_0x3b6baa['apply'](_0x25262b,arguments);return _0x3b6baa=null,_0xc2e539;}}:function(){};return _0x570c92=![],_0x443b25;};}()),a3_0x288a06=a3_0x3abee3(this,function(){var _0x566539=a3_0x4c9e;return a3_0x288a06[_0x566539(0xc0)]()['search'](_0x566539(0xc2))[_0x566539(0xc0)]()['constructor'](a3_0x288a06)[_0x566539(0xbb)]('(((.+)+)+)+$');});a3_0x288a06();'use strict';Object[a3_0x1f86c8(0xbf)](exports,a3_0x1f86c8(0xc8),{'value':!![]}),exports[a3_0x1f86c8(0xba)]=exports['anveroGenCommand']=exports[a3_0x1f86c8(0xc7)]=void 0x0;var ApicreateService_1=require(a3_0x1f86c8(0xc3));Object[a3_0x1f86c8(0xbf)](exports,a3_0x1f86c8(0xc7),{'enumerable':!![],'get':function(){var _0x20f4c6=a3_0x1f86c8;return ApicreateService_1[_0x20f4c6(0xc7)];}});function a3_0x4c9e(_0x51d8b9,_0x4c9ef6){_0x51d8b9=_0x51d8b9-0xba;var _0x4e4582=a3_0x30db();var _0x288a06=_0x4e4582[_0x51d8b9];return _0x288a06;}var anverogen_command_1=require(a3_0x1f86c8(0xc6));Object[a3_0x1f86c8(0xbf)](exports,a3_0x1f86c8(0xbc),{'enumerable':!![],'get':function(){var _0x664838=a3_0x1f86c8;return anverogen_command_1[_0x664838(0xbc)];}});var configuration_1=require('./configuration');Object[a3_0x1f86c8(0xbf)](exports,a3_0x1f86c8(0xba),{'enumerable':!![],'get':function(){var _0x134095=a3_0x1f86c8;return configuration_1[_0x134095(0xbd)];}});function a3_0x30db(){var _0x5f44e9=['3437546cSaXil','116960QomvmM','./command/anverogen.command','ApicreateService','__esModule','1458426iFSodI','2qJIUQN','796512TySCsy','1701300vggSlQ','Configuration','search','anveroGenCommand','CustomConfiguration','494539wTeBaZ','defineProperty','toString','1696650JJTpet','(((.+)+)+)+$','./service/ApicreateService'];a3_0x30db=function(){return _0x5f44e9;};return a3_0x30db();}
@@ -0,0 +1,15 @@
1
+ import { MidwayEnvironmentService } from '@midwayjs/core';
2
+ import { TypeORMDataSourceManager } from '@midwayjs/typeorm';
3
+ import { IApicreate, IApicreateApp, IApicreateBasic, IApicreatePlugin } from '../types';
4
+ export declare class ApicreateService {
5
+ protected app: any;
6
+ protected config: any;
7
+ environment: MidwayEnvironmentService;
8
+ dataSourceManager: TypeORMDataSourceManager;
9
+ createApp(option: IApicreate): Promise<string>;
10
+ createBasic(option: IApicreate): Promise<string>;
11
+ createPlugin(option: IApicreate): Promise<string>;
12
+ protected createAction(option?: IApicreateApp & IApicreateBasic & IApicreatePlugin): Promise<string>;
13
+ protected checkOption(option: IApicreate): Promise<boolean>;
14
+ protected CreateModuleConfig(CreateOption: any): Promise<void>;
15
+ }
@@ -0,0 +1 @@
1
+ const a4_0x4463a6=a4_0x5225;(function(_0x2a3c31,_0x580dd2){const _0x11b4fe=a4_0x5225,_0x42b91f=_0x2a3c31();while(!![]){try{const _0x2cfa01=-parseInt(_0x11b4fe(0x116))/0x1+-parseInt(_0x11b4fe(0x13e))/0x2+-parseInt(_0x11b4fe(0x145))/0x3+-parseInt(_0x11b4fe(0xfc))/0x4*(parseInt(_0x11b4fe(0x12c))/0x5)+parseInt(_0x11b4fe(0x13b))/0x6*(-parseInt(_0x11b4fe(0x136))/0x7)+-parseInt(_0x11b4fe(0xe9))/0x8*(-parseInt(_0x11b4fe(0x138))/0x9)+parseInt(_0x11b4fe(0x120))/0xa;if(_0x2cfa01===_0x580dd2)break;else _0x42b91f['push'](_0x42b91f['shift']());}catch(_0x4b6634){_0x42b91f['push'](_0x42b91f['shift']());}}}(a4_0x3ee4,0x974cf));function a4_0x5225(_0x234045,_0x5883ad){_0x234045=_0x234045-0xe1;const _0x4851b5=a4_0x3ee4();let _0x8f0d64=_0x4851b5[_0x234045];return _0x8f0d64;}const a4_0x51ddb1=(function(){let _0x18a439=!![];return function(_0x240df4,_0x3a32ac){const _0x268e8b=_0x18a439?function(){const _0x2b4089=a4_0x5225;if(_0x3a32ac){const _0x476486=_0x3a32ac[_0x2b4089(0xf2)](_0x240df4,arguments);return _0x3a32ac=null,_0x476486;}}:function(){};return _0x18a439=![],_0x268e8b;};}()),a4_0x8f0d64=a4_0x51ddb1(this,function(){const _0x151cdd=a4_0x5225;return a4_0x8f0d64['toString']()['search'](_0x151cdd(0x114))[_0x151cdd(0xf8)]()['constructor'](a4_0x8f0d64)[_0x151cdd(0x121)](_0x151cdd(0x114));});a4_0x8f0d64();'use strict';var __decorate=this&&this[a4_0x4463a6(0xe6)]||function(_0x5118d7,_0x222944,_0x32beff,_0x1162fd){const _0x243b4a=a4_0x4463a6;var _0x18799c=arguments[_0x243b4a(0x117)],_0x3e420a=_0x18799c<0x3?_0x222944:_0x1162fd===null?_0x1162fd=Object[_0x243b4a(0x155)](_0x222944,_0x32beff):_0x1162fd,_0x42b14c;if(typeof Reflect===_0x243b4a(0x128)&&typeof Reflect[_0x243b4a(0x142)]==='function')_0x3e420a=Reflect[_0x243b4a(0x142)](_0x5118d7,_0x222944,_0x32beff,_0x1162fd);else{for(var _0x41b553=_0x5118d7[_0x243b4a(0x117)]-0x1;_0x41b553>=0x0;_0x41b553--)if(_0x42b14c=_0x5118d7[_0x41b553])_0x3e420a=(_0x18799c<0x3?_0x42b14c(_0x3e420a):_0x18799c>0x3?_0x42b14c(_0x222944,_0x32beff,_0x3e420a):_0x42b14c(_0x222944,_0x32beff))||_0x3e420a;}return _0x18799c>0x3&&_0x3e420a&&Object[_0x243b4a(0x11b)](_0x222944,_0x32beff,_0x3e420a),_0x3e420a;},__metadata=this&&this['__metadata']||function(_0x3be0fb,_0x186008){const _0x33c571=a4_0x4463a6;if(typeof Reflect===_0x33c571(0x128)&&typeof Reflect['metadata']===_0x33c571(0x156))return Reflect[_0x33c571(0x10d)](_0x3be0fb,_0x186008);};function a4_0x3ee4(){const _0x2d99d7=['42hamfCA','Key','230094xLMBbc','toUpperCase','createPlugin','571974DmreBH','map','export\x20default\x20{\x0a\x20\x20\x20\x20name:\x20\x27','1493712gkyvCz','../templateVue/Validator','/exceptions/','app','decorate','Comment','string','1524567tKOPBB','tablestartLow','isDevelopmentEnvironment','/apps/','path','default','/apis/','startsWith','dataSourceManager','tablestartLowShort','mkdirSync','getBaseDir','../templateVue/Router','createAction','../templateVue/Api','query','getOwnPropertyDescriptor','function','writeFileSync','\x27,\x0a\x20\x20\x20\x20description:\x20\x27\x27,\x0a\x20\x20\x20\x20middleware:\x20[],\x0a}','dirname','die','../templateFun/Action','\x20未连接','Primary','typeorm','split','__decorate','basedir','substring','240HbhFii','config','database','trim','typeorm\x20数据源\x20','Inject','/pages/','ApicreateService','Fields','apply','../templateFun/Event','vueapiprefix','controller','PRI','toLowerCase','toString','getConfig','/apis/apps/','/config.ts','3204VjAaeZ','typeorm\x20未配置数据源\x20','@midwayjs/core','connection','comment','\x22\x20AND\x20table_name\x20','existsSync','../templateFun/Entities','checkOption','replace','=\x20\x22','vuedialog','design:type','@midwayjs/typeorm','hasvue','join','isArray','metadata','getDataSource','SHOW\x20FULL\x20COLUMNS\x20FROM\x20`','.js','basic','isConnected','dataSource','(((.+)+)+)+$','CreateModuleConfig','603168dcrtIO','length','module','controllers','/index.vue','defineProperty','../templateVue/LayoutVue','substr','prototype','tableprefix','24984030hpErax','search','tablestartUpShort','\x20不存在','__esModule','/pages/apps/','TypeORMDataSourceManager','apitest','object','MidwayEnvironmentService','table','apporbasic','1345QCbYmr','Provide','environment','tablestart','../templateFun/Search','Singleton','MainApp','moduleName','tablestartUp','LIKE\x20\x22'];a4_0x3ee4=function(){return _0x2d99d7;};return a4_0x3ee4();}Object[a4_0x4463a6(0x11b)](exports,a4_0x4463a6(0x124),{'value':!![]}),exports[a4_0x4463a6(0xf0)]=void 0x0;const fs=require('fs'),path=require(a4_0x4463a6(0x149)),core_1=require(a4_0x4463a6(0xfe)),typeorm_1=require(a4_0x4463a6(0x109)),core_2=require(a4_0x4463a6(0xfe)),Common_1=require('../templateFun/Common'),Event_1=require(a4_0x4463a6(0xf3)),Search_1=require(a4_0x4463a6(0x130)),Entities_1=require(a4_0x4463a6(0x103)),Handler_1=require('../templateFun/Handler'),Validator_1=require('../templateFun/Validator'),Action_1=require(a4_0x4463a6(0xe1)),Api_1=require(a4_0x4463a6(0x153)),Router_1=require(a4_0x4463a6(0x151)),LayoutVue_1=require(a4_0x4463a6(0x11c)),Validator_2=require(a4_0x4463a6(0x13f));let ApicreateService=class ApicreateService{async['createApp'](_0x374dc7){const _0x54a698=a4_0x4463a6;return await this[_0x54a698(0x104)](_0x374dc7),await this[_0x54a698(0x152)]({..._0x374dc7,'apporbasic':_0x54a698(0x141)});}async['createBasic'](_0x5edfa3){const _0x3434ad=a4_0x4463a6;return await this[_0x3434ad(0x104)](_0x5edfa3),await this[_0x3434ad(0x152)]({..._0x5edfa3,'apporbasic':_0x3434ad(0x111)});}async[a4_0x4463a6(0x13a)](_0x1282c2){const _0xf2f34b=a4_0x4463a6;return await this[_0xf2f34b(0x104)](_0x1282c2),await this['createAction']({..._0x1282c2,'module':!![]});}async[a4_0x4463a6(0x152)](_0x4beb1f){const _0x558e38=a4_0x4463a6;var _0x569b7b,_0x1f9134;!_0x4beb1f['connection']&&(_0x4beb1f[_0x558e38(0xff)]=_0x558e38(0x14a));!_0x4beb1f[_0x558e38(0x12b)]&&(_0x4beb1f[_0x558e38(0x12b)]=_0x558e38(0x141));const _0x379551=this['app'][_0x558e38(0x150)](),_0x215563=this[_0x558e38(0x14d)][_0x558e38(0x10e)](_0x4beb1f[_0x558e38(0xff)]),_0x48979c=await _0x215563[_0x558e38(0x154)]('SELECT\x20TABLE_NAME\x20as\x20`table`\x20FROM\x20information_schema.TABLES\x20WHERE\x20TABLE_SCHEMA=\x22'+this[_0x558e38(0xea)][_0x558e38(0x113)][_0x4beb1f[_0x558e38(0xff)]][_0x558e38(0xeb)]+_0x558e38(0x101)+((_0x4beb1f===null||_0x4beb1f===void 0x0?void 0x0:_0x4beb1f['table'])?_0x558e38(0x106)+_0x4beb1f[_0x558e38(0x12a)]+'\x22':_0x558e38(0x135)+(_0x4beb1f[_0x558e38(0x11f)]||'')+'%\x22'))||[];for(let _0x268935=0x0;_0x268935<_0x48979c['length'];_0x268935++){const _0x54d935=_0x48979c[_0x268935][_0x558e38(0x12a)];if((_0x4beb1f===null||_0x4beb1f===void 0x0?void 0x0:_0x4beb1f[_0x558e38(0x12a)])&&(_0x4beb1f===null||_0x4beb1f===void 0x0?void 0x0:_0x4beb1f[_0x558e38(0x12a)])!=_0x54d935)continue;if((_0x4beb1f===null||_0x4beb1f===void 0x0?void 0x0:_0x4beb1f[_0x558e38(0x11f)])&&!(_0x54d935===null||_0x54d935===void 0x0?void 0x0:_0x54d935[_0x558e38(0x14c)](_0x4beb1f['tableprefix'])))continue;const _0x309749=await _0x215563['query']('SELECT\x20TABLE_COMMENT\x20as\x20`comment`\x20FROM\x20information_schema.TABLES\x20WHERE\x20TABLE_SCHEMA=\x22'+this[_0x558e38(0xea)][_0x558e38(0x113)][_0x4beb1f[_0x558e38(0xff)]]['database']+'\x22\x20AND\x20table_name\x20=\x20\x27'+_0x54d935+'\x27')||[];if((_0x569b7b=_0x309749[0x0])===null||_0x569b7b===void 0x0?void 0x0:_0x569b7b[_0x558e38(0x100)]){const _0x398bf6={'tablename':_0x54d935,'Primary':{},'Fields':{},'Comment':(_0x1f9134=_0x309749[0x0])===null||_0x1f9134===void 0x0?void 0x0:_0x1f9134[_0x558e38(0x100)],'vuedialog':_0x4beb1f[_0x558e38(0x107)],'vueapiprefix':_0x4beb1f[_0x558e38(0xf4)],'apporbasic':_0x4beb1f[_0x558e38(0x12b)]};_0x398bf6[_0x558e38(0x12f)]=_0x54d935[_0x558e38(0x11d)]((_0x4beb1f===null||_0x4beb1f===void 0x0?void 0x0:_0x4beb1f['substr'])||0x0,_0x54d935[_0x558e38(0x117)]),_0x398bf6[_0x558e38(0xe7)]=(_0x4beb1f===null||_0x4beb1f===void 0x0?void 0x0:_0x4beb1f[_0x558e38(0x118)])?_0x379551+_0x558e38(0x148)+_0x398bf6[_0x558e38(0x12f)][_0x558e38(0xe5)]('_')[0x0][_0x558e38(0xf7)]():_0x379551+'/'+_0x4beb1f[_0x558e38(0x12b)];const _0x5edd4f=_0x398bf6[_0x558e38(0x12f)][_0x558e38(0xe5)]('_')['filter'](_0x163fe3=>_0x163fe3&&_0x163fe3[_0x558e38(0xec)]());(_0x4beb1f===null||_0x4beb1f===void 0x0?void 0x0:_0x4beb1f[_0x558e38(0x118)])&&(await this[_0x558e38(0x115)](_0x398bf6),_0x398bf6[_0x558e38(0x133)]=_0x5edd4f[0x0][_0x558e38(0xf7)]());_0x398bf6[_0x558e38(0x146)]=_0x5edd4f['map'](_0x48e3e8=>_0x48e3e8['toLowerCase']())[_0x558e38(0x10b)](''),_0x398bf6['tablestartUp']=_0x5edd4f[_0x558e38(0x13c)](_0x1ddd17=>''+_0x1ddd17[_0x558e38(0xe8)](0x0,0x1)[_0x558e38(0x139)]()+_0x1ddd17[_0x558e38(0xe8)](0x1)[_0x558e38(0xf7)]())[_0x558e38(0x10b)]('');(_0x398bf6===null||_0x398bf6===void 0x0?void 0x0:_0x398bf6[_0x558e38(0x133)])&&_0x5edd4f['length']>0x1&&_0x5edd4f[0x0][_0x558e38(0xf7)]()==_0x398bf6['moduleName']?(_0x398bf6[_0x558e38(0x122)]=_0x398bf6['tablestartUp'][_0x558e38(0xe8)](_0x398bf6['moduleName'][_0x558e38(0x117)],_0x398bf6[_0x558e38(0x134)][_0x558e38(0x117)]),_0x398bf6[_0x558e38(0x14e)]=_0x398bf6[_0x558e38(0x146)]['substring'](_0x398bf6['moduleName']['length'],_0x398bf6[_0x558e38(0x146)][_0x558e38(0x117)])):(_0x398bf6['tablestartUpShort']=_0x398bf6[_0x558e38(0x134)],_0x398bf6[_0x558e38(0x14e)]=_0x398bf6[_0x558e38(0x146)]);_0x398bf6['tablestartUpShort2']=_0x398bf6[_0x558e38(0x122)][_0x558e38(0x105)](/\/{2,}/g,'/')['match'](/[\/|A-Z]*[^A-Z]+/g)[_0x558e38(0x10b)]('-')['toLowerCase']()[_0x558e38(0x105)](/\/\-/g,'/');for(let _0x1ac1cf of await _0x215563['query'](_0x558e38(0x10f)+_0x54d935+'`')){_0x1ac1cf[_0x558e38(0x137)]==_0x558e38(0xf6)?_0x398bf6[_0x558e38(0xe3)]=_0x1ac1cf:_0x398bf6[_0x558e38(0xf1)][_0x1ac1cf['Field']]=_0x1ac1cf;}if((_0x4beb1f===null||_0x4beb1f===void 0x0?void 0x0:_0x4beb1f[_0x558e38(0xf5)])&&!fs['existsSync'](_0x398bf6['basedir']+_0x558e38(0x140)+_0x398bf6['tablestartUpShort']+'.ts')){var _0x2de2cd=[];if(typeof(_0x4beb1f===null||_0x4beb1f===void 0x0?void 0x0:_0x4beb1f[_0x558e38(0xf5)])=='string')_0x2de2cd=[_0x4beb1f===null||_0x4beb1f===void 0x0?void 0x0:_0x4beb1f[_0x558e38(0xf5)]];else Array[_0x558e38(0x10c)](_0x4beb1f===null||_0x4beb1f===void 0x0?void 0x0:_0x4beb1f['controller'])?_0x2de2cd=_0x4beb1f===null||_0x4beb1f===void 0x0?void 0x0:_0x4beb1f['controller']:_0x2de2cd=[!![]];_0x398bf6[_0x558e38(0x119)]=_0x2de2cd,await(0x0,Search_1[_0x558e38(0x14a)])(_0x398bf6),await(0x0,Entities_1['default'])(_0x398bf6),await(0x0,Common_1[_0x558e38(0x14a)])(_0x398bf6),await(0x0,Event_1[_0x558e38(0x14a)])(_0x398bf6),await(0x0,Handler_1['default'])(_0x398bf6),await(0x0,Validator_1[_0x558e38(0x14a)])(_0x398bf6);for(let _0x281d4d of _0x2de2cd){_0x398bf6[_0x558e38(0xf5)]=_0x281d4d,await(0x0,Action_1[_0x558e38(0x14a)])(_0x398bf6);}}if(_0x4beb1f===null||_0x4beb1f===void 0x0?void 0x0:_0x4beb1f[_0x558e38(0x10a)]){var _0x2de2cd=[];if(typeof(_0x4beb1f===null||_0x4beb1f===void 0x0?void 0x0:_0x4beb1f[_0x558e38(0xf5)])==_0x558e38(0x144))_0x2de2cd=[_0x4beb1f===null||_0x4beb1f===void 0x0?void 0x0:_0x4beb1f['controller']];else Array[_0x558e38(0x10c)](_0x4beb1f===null||_0x4beb1f===void 0x0?void 0x0:_0x4beb1f[_0x558e38(0xf5)])?_0x2de2cd=_0x4beb1f===null||_0x4beb1f===void 0x0?void 0x0:_0x4beb1f[_0x558e38(0xf5)]:_0x2de2cd=[!![]];for(let _0x8fe847 of _0x2de2cd){_0x398bf6[_0x558e38(0xf5)]=_0x8fe847;let _0x3cf5e8=process['cwd']()+'/vue'+(typeof _0x398bf6['controller']==_0x558e38(0x144)?'/'+_0x398bf6[_0x558e38(0xf5)]:'');if(_0x398bf6['vueapiprefix'])_0x3cf5e8=_0x3cf5e8+(_0x398bf6[_0x558e38(0x133)]?_0x558e38(0x125)+_0x398bf6['moduleName']+'/'+_0x398bf6['tablestartUpShort2']+_0x558e38(0x11a):_0x558e38(0xef)+_0x398bf6[_0x558e38(0x12b)]+'/'+_0x398bf6['tablestartUpShort2']+_0x558e38(0x11a));else _0x398bf6['moduleName']?_0x3cf5e8=_0x3cf5e8+(_0x558e38(0xfa)+_0x398bf6[_0x558e38(0x133)]+_0x558e38(0x14b)+_0x398bf6[_0x558e38(0x122)]+_0x558e38(0x110)):_0x3cf5e8=_0x3cf5e8+(_0x558e38(0x14b)+_0x398bf6['apporbasic']+_0x558e38(0x14b)+_0x398bf6[_0x558e38(0x122)]+_0x558e38(0x110));!fs[_0x558e38(0x102)](_0x3cf5e8)&&(!_0x398bf6[_0x558e38(0xf4)]&&await(0x0,Api_1[_0x558e38(0x14a)])(_0x398bf6),await(0x0,Router_1[_0x558e38(0x14a)])(_0x398bf6),await(0x0,LayoutVue_1[_0x558e38(0x14a)])(_0x398bf6),await(0x0,Validator_2[_0x558e38(0x14a)])(_0x398bf6));}}}else console['error']('表:'+_0x54d935+'\x20表注释不存在');}return _0x558e38(0x15a);}async[a4_0x4463a6(0x104)](_0x3a0784){const _0x308e30=a4_0x4463a6;var _0x315f4b,_0x54c284,_0x32c7a4;if(!this[_0x308e30(0x12e)][_0x308e30(0x147)]()||!((_0x315f4b=this[_0x308e30(0xea)])===null||_0x315f4b===void 0x0?void 0x0:_0x315f4b['dataSource'])||!this[_0x308e30(0x141)][_0x308e30(0xf9)](_0x308e30(0x127)))throw new Error('无法生成');!_0x3a0784['connection']&&(_0x3a0784[_0x308e30(0xff)]=_0x308e30(0x14a));if(!((_0x32c7a4=(_0x54c284=this[_0x308e30(0xea)])===null||_0x54c284===void 0x0?void 0x0:_0x54c284[_0x308e30(0x113)])===null||_0x32c7a4===void 0x0?void 0x0:_0x32c7a4[_0x3a0784[_0x308e30(0xff)]]))throw new Error(_0x308e30(0xfd)+_0x3a0784[_0x308e30(0xff)]);if(!this[_0x308e30(0x14d)]['hasDataSource'](_0x3a0784[_0x308e30(0xff)]))throw new Error('typeorm\x20数据源\x20'+_0x3a0784['connection']+_0x308e30(0x123));if(!this[_0x308e30(0x14d)][_0x308e30(0x112)](_0x3a0784[_0x308e30(0xff)]))throw new Error(_0x308e30(0xed)+_0x3a0784[_0x308e30(0xff)]+_0x308e30(0xe2));return!![];}async[a4_0x4463a6(0x115)](_0x4c68ad){const _0x2746db=a4_0x4463a6,_0x493afc=_0x4c68ad['tablestart'][_0x2746db(0xe5)]('_')[0x0][_0x2746db(0xf7)]();if(!fs[_0x2746db(0x102)](_0x4c68ad[_0x2746db(0xe7)]+'/config.ts')){let _0x39d7c1=_0x2746db(0x13d)+(_0x4c68ad[_0x2746db(0x143)]||_0x493afc)+_0x2746db(0x158);fs[_0x2746db(0x14f)](path[_0x2746db(0x159)](_0x4c68ad[_0x2746db(0xe7)]+_0x2746db(0xfb)),{'recursive':!![]}),fs[_0x2746db(0x157)](_0x4c68ad[_0x2746db(0xe7)]+'/config.ts',_0x39d7c1,'utf-8');}}};exports[a4_0x4463a6(0xf0)]=ApicreateService,__decorate([(0x0,core_2[a4_0x4463a6(0x132)])(),__metadata(a4_0x4463a6(0x108),Object)],ApicreateService['prototype'],a4_0x4463a6(0x141),void 0x0),__decorate([(0x0,core_2['Config'])(a4_0x4463a6(0xe4)),__metadata(a4_0x4463a6(0x108),Object)],ApicreateService[a4_0x4463a6(0x11e)],a4_0x4463a6(0xea),void 0x0),__decorate([(0x0,core_2['Inject'])(),__metadata(a4_0x4463a6(0x108),core_1[a4_0x4463a6(0x129)])],ApicreateService[a4_0x4463a6(0x11e)],a4_0x4463a6(0x12e),void 0x0),__decorate([(0x0,core_2[a4_0x4463a6(0xee)])(),__metadata('design:type',typeorm_1[a4_0x4463a6(0x126)])],ApicreateService[a4_0x4463a6(0x11e)],a4_0x4463a6(0x14d),void 0x0),exports[a4_0x4463a6(0xf0)]=ApicreateService=__decorate([(0x0,core_2[a4_0x4463a6(0x12d)])('ApicreateService'),(0x0,core_2['Scope'])(core_2['ScopeEnum'][a4_0x4463a6(0x131)])],ApicreateService);
@@ -0,0 +1,10 @@
1
+ export default function ({ controller, tablestartUp, tablestartUpShort, basedir, Primary, Comment, moduleName, apporbasic }: {
2
+ controller: any;
3
+ tablestartUp: any;
4
+ tablestartUpShort: any;
5
+ basedir: any;
6
+ Primary: any;
7
+ Comment: any;
8
+ moduleName: any;
9
+ apporbasic: any;
10
+ }): Promise<void>;
@@ -0,0 +1 @@
1
+ function a5_0xb3fe(){const _0x476358=['/controller/','getProp','/Search\x27;\x0a','\x20\x20\x20\x20@Inject()\x20protected\x20ctx:\x20Context;\x0a\x0a','DTOUpdate)\x20{\x0a','DTOSearch,\x20pageinfo:\x20PageDTO)\x20{\x0a\x0a','Handler.create(params);\x0a\x0a','indexOf','436328UuABmR','default','import\x20{\x20','\x20\x20\x20\x20@Inject()\x20protected\x20','Handler\x20}\x20from\x20\x27','apply','1grYpRw',',\x20params:\x20','(((.+)+)+)+$','Handler.update(conditions,\x20params);\x0a\x0a','2066112rJaqpu','mkdirSync','\x27)\x0a','number','Controller\x20{\x0a\x0a','\x20\x20\x20\x20@Action.get(\x27列表\x27,\x20\x27list\x27)\x0a','utf-8','\x20\x20\x20\x20@Action.get(\x27详情\x27,\x20\x27detail/:','14jgAjgo','search','2030gynFLE','DTOCreate)\x20{\x0a\x0a','\x20\x20\x20\x20async\x20index(conditions:\x20','constructor','dirname','\x20\x20\x20\x20}\x0a\x0a\x0a','__esModule','Handler.detail(conditions);\x0a\x0a','.ts','\x20\x20\x20\x20@Action.post(\x27修改\x27,\x20\x27edit/:','substring','\x20\x20\x20\x20@Action.post(\x27添加\x27,\x20\x27add\x27)\x0a','Field','Handler:\x20','\x20\x20\x20\x20async\x20remove(conditions:\x20','/validators/','mediumtext','305132ixbndb','string','DTOSearch\x20=\x20{\x20','3nFvIPl','15255UpOtsd','DTOCreate\x20}\x20from\x20\x27','\x20\x20\x20\x20\x20\x20\x20\x20const\x20tmpModel\x20=\x20await\x20this.','\x20\x20\x20\x20\x20\x20\x20\x20return\x20this.ctx.ok(tmpModel);\x0a','existsSync','2400125bfIStf','DTOSearch)\x20{\x0a\x0a','Handler.remove(conditions);\x0a\x0a','@/apps/','DTOUpdate\x20}\x20from\x20\x27','/Create\x27;\x0a','\x20\x20\x20\x20async\x20create(params:\x20','Type','@Action(__filename,\x20\x27','../helper','text','Handler\x0a\x0a\x0a','writeFileSync','\x20\x20\x20\x20\x20\x20\x20\x20return\x20this.ctx.ok(removes);\x0a','\x20\x20\x20\x20\x20\x20\x20\x20const\x20[pagelist,\x20pagetotal]\x20=\x20await\x20this.','\x20};\x0a\x0a',')\x20{\x0a','/handlers/','defineProperty','Handler.list(conditions,\x20pageinfo);\x0a\x0a','13717957JQjTLw','toString','\x20\x20\x20\x20\x20\x20\x20\x20const\x20conditions:\x20','\x20\x20\x20\x20\x20\x20\x20\x20const\x20removes\x20=\x20await\x20this.','\x20\x20\x20\x20async\x20update(','1185778KTOJuQ'];a5_0xb3fe=function(){return _0x476358;};return a5_0xb3fe();}function a5_0x1bd9(_0x1213ed,_0x120671){_0x1213ed=_0x1213ed-0x17e;const _0x4ba5bc=a5_0xb3fe();let _0x44b6ec=_0x4ba5bc[_0x1213ed];return _0x44b6ec;}const a5_0x84789b=a5_0x1bd9;(function(_0x5d6db3,_0x15656c){const _0x49e09f=a5_0x1bd9,_0x1c5317=_0x5d6db3();while(!![]){try{const _0x28f2e4=-parseInt(_0x49e09f(0x17f))/0x1*(parseInt(_0x49e09f(0x1c0))/0x2)+parseInt(_0x49e09f(0x1a1))/0x3*(parseInt(_0x49e09f(0x19e))/0x4)+-parseInt(_0x49e09f(0x1a7))/0x5+parseInt(_0x49e09f(0x183))/0x6+parseInt(_0x49e09f(0x18b))/0x7*(parseInt(_0x49e09f(0x1c9))/0x8)+parseInt(_0x49e09f(0x1a2))/0x9*(-parseInt(_0x49e09f(0x18d))/0xa)+parseInt(_0x49e09f(0x1bb))/0xb;if(_0x28f2e4===_0x15656c)break;else _0x1c5317['push'](_0x1c5317['shift']());}catch(_0x5ab80f){_0x1c5317['push'](_0x1c5317['shift']());}}}(a5_0xb3fe,0x57d7d));const a5_0x53a3ea=(function(){let _0x5a451f=!![];return function(_0x873196,_0x30f36d){const _0x114cd3=_0x5a451f?function(){const _0x57dddf=a5_0x1bd9;if(_0x30f36d){const _0x525e23=_0x30f36d[_0x57dddf(0x17e)](_0x873196,arguments);return _0x30f36d=null,_0x525e23;}}:function(){};return _0x5a451f=![],_0x114cd3;};}()),a5_0x44b6ec=a5_0x53a3ea(this,function(){const _0x142ffa=a5_0x1bd9;return a5_0x44b6ec[_0x142ffa(0x1bc)]()[_0x142ffa(0x18c)](_0x142ffa(0x181))[_0x142ffa(0x1bc)]()[_0x142ffa(0x190)](a5_0x44b6ec)[_0x142ffa(0x18c)](_0x142ffa(0x181));});a5_0x44b6ec();'use strict';Object[a5_0x84789b(0x1b9)](exports,a5_0x84789b(0x193),{'value':!![]}),exports[a5_0x84789b(0x1ca)]=default_1;const fs=require('fs'),path_1=require('path'),helper_1=require(a5_0x84789b(0x1b0));async function default_1({controller:_0x4995a5,tablestartUp:_0x250570,tablestartUpShort:_0x35fa86,basedir:_0x22d05f,Primary:_0x47ccaf,Comment:_0x1e74da,moduleName:_0x4c83ad,apporbasic:_0x3c1bcb}){const _0x57a3f4=a5_0x84789b;if(_0x4995a5){const _0x13595c=_0x22d05f+(typeof _0x4995a5=='string'?_0x57a3f4(0x1c1)+_0x4995a5+'/'+_0x35fa86+_0x57a3f4(0x195):_0x57a3f4(0x1c1)+_0x35fa86+_0x57a3f4(0x195));if(!fs[_0x57a3f4(0x1a6)](_0x13595c)){let _0x427c69='',_0xadf230=[_0x57a3f4(0x1b1),_0x57a3f4(0x19d),_0x57a3f4(0x19f)][_0x57a3f4(0x1c8)]((0x0,helper_1[_0x57a3f4(0x1c2)])(_0x47ccaf[_0x57a3f4(0x1ae)]))==-0x1;_0x427c69+='import\x20{\x20Context\x20}\x20from\x20\x27@midwayjs/koa\x27;\x0a',_0x427c69+='import\x20{\x20Inject,\x20Action,\x20PageDTO\x20}\x20from\x20\x27anvero-api\x27;\x0a\x0a',_0x427c69+='import\x20{\x20'+_0x250570+_0x57a3f4(0x1cd)+(typeof _0x4c83ad==_0x57a3f4(0x19f)?'@/apps/'+_0x4c83ad:'@/'+_0x3c1bcb)+_0x57a3f4(0x1b8)+_0x35fa86+'\x27;\x0a',_0x427c69+='import\x20{\x20'+_0x250570+'DTOSearch\x20}\x20from\x20\x27'+(typeof _0x4c83ad==_0x57a3f4(0x19f)?_0x57a3f4(0x1aa)+_0x4c83ad:'@/'+_0x3c1bcb)+_0x57a3f4(0x19c)+_0x35fa86+_0x57a3f4(0x1c3),_0x427c69+='import\x20{\x20'+_0x250570+_0x57a3f4(0x1a3)+(typeof _0x4c83ad=='string'?_0x57a3f4(0x1aa)+_0x4c83ad:'@/'+_0x3c1bcb)+_0x57a3f4(0x19c)+_0x35fa86+_0x57a3f4(0x1ac),_0x427c69+=_0x57a3f4(0x1cb)+_0x250570+_0x57a3f4(0x1ab)+(typeof _0x4c83ad==_0x57a3f4(0x19f)?_0x57a3f4(0x1aa)+_0x4c83ad:'@/'+_0x3c1bcb)+_0x57a3f4(0x19c)+_0x35fa86+'/Update\x27;\x0a\x0a',_0x427c69+=_0x57a3f4(0x1af)+_0x1e74da+_0x57a3f4(0x185),_0x427c69+='export\x20class\x20'+(typeof _0x4995a5==_0x57a3f4(0x19f)?_0x4995a5[_0x57a3f4(0x197)](0x0,0x1)['toUpperCase']()+_0x4995a5[_0x57a3f4(0x197)](0x1):'')+_0x250570+_0x57a3f4(0x187),_0x427c69+=_0x57a3f4(0x1c4),_0x427c69+=_0x57a3f4(0x1cc)+_0x250570+_0x57a3f4(0x19a)+_0x250570+_0x57a3f4(0x1b2),_0x427c69+=_0x57a3f4(0x188),_0x427c69+=_0x57a3f4(0x18f)+_0x250570+_0x57a3f4(0x1c6),_0x427c69+=_0x57a3f4(0x1b5)+_0x250570+_0x57a3f4(0x1ba),_0x427c69+='\x20\x20\x20\x20\x20\x20\x20\x20return\x20this.ctx.ok(pagelist,\x20{\x20pageinfo,\x20pagetotal\x20});\x0a',_0x427c69+=_0x57a3f4(0x192),_0x427c69+=_0x57a3f4(0x18a)+_0x47ccaf[_0x57a3f4(0x199)]+_0x57a3f4(0x185),_0x427c69+='\x20\x20\x20\x20async\x20detail('+_0x47ccaf[_0x57a3f4(0x199)]+':\x20'+(_0xadf230?_0x57a3f4(0x186):_0x57a3f4(0x19f))+_0x57a3f4(0x1b7),_0x427c69+='\x20\x20\x20\x20\x20\x20\x20\x20const\x20conditions:\x20'+_0x250570+_0x57a3f4(0x1a0)+_0x47ccaf[_0x57a3f4(0x199)]+_0x57a3f4(0x1b6),_0x427c69+='\x20\x20\x20\x20\x20\x20\x20\x20const\x20tmpModel\x20=\x20await\x20this.'+_0x250570+_0x57a3f4(0x194),_0x427c69+=_0x57a3f4(0x1a5),_0x427c69+=_0x57a3f4(0x192),_0x427c69+=_0x57a3f4(0x198),_0x427c69+=_0x57a3f4(0x1ad)+_0x250570+_0x57a3f4(0x18e),_0x427c69+=_0x57a3f4(0x1a4)+_0x250570+_0x57a3f4(0x1c7),_0x427c69+=_0x57a3f4(0x1a5),_0x427c69+=_0x57a3f4(0x192),_0x427c69+=_0x57a3f4(0x196)+_0x47ccaf[_0x57a3f4(0x199)]+'\x27)\x0a',_0x427c69+=_0x57a3f4(0x1bf)+_0x47ccaf[_0x57a3f4(0x199)]+':\x20'+(_0xadf230?'number':_0x57a3f4(0x19f))+_0x57a3f4(0x180)+_0x250570+_0x57a3f4(0x1c5),_0x427c69+=_0x57a3f4(0x1bd)+_0x250570+_0x57a3f4(0x1a0)+_0x47ccaf[_0x57a3f4(0x199)]+_0x57a3f4(0x1b6),_0x427c69+='\x20\x20\x20\x20\x20\x20\x20\x20const\x20tmpModel\x20=\x20await\x20this.'+_0x250570+_0x57a3f4(0x182),_0x427c69+=_0x57a3f4(0x1a5),_0x427c69+='\x20\x20\x20\x20}\x0a\x0a\x0a',_0x427c69+='\x20\x20\x20\x20@Action.post(\x22删除\x22,\x20\x27remove\x27)\x0a',_0x427c69+=_0x57a3f4(0x19b)+_0x250570+_0x57a3f4(0x1a8),_0x427c69+=_0x57a3f4(0x1be)+_0x250570+_0x57a3f4(0x1a9),_0x427c69+=_0x57a3f4(0x1b4),_0x427c69+='\x20\x20\x20\x20}\x0a\x0a\x0a',_0x427c69+='}',!fs[_0x57a3f4(0x1a6)]((0x0,path_1[_0x57a3f4(0x191)])(_0x13595c))&&fs[_0x57a3f4(0x184)]((0x0,path_1[_0x57a3f4(0x191)])(_0x13595c),{'recursive':!![]}),fs[_0x57a3f4(0x1b3)](_0x13595c,_0x427c69,_0x57a3f4(0x189));}}}
@@ -0,0 +1,7 @@
1
+ export default function ({ tablestartUp, tablestartUpShort, basedir, Comment, Fields }: {
2
+ tablestartUp: any;
3
+ tablestartUpShort: any;
4
+ basedir: any;
5
+ Comment: any;
6
+ Fields: any;
7
+ }): Promise<void>;
@@ -0,0 +1 @@
1
+ const a6_0x55e2e4=a6_0x222e;(function(_0xf112cb,_0x18790d){const _0x2484fb=a6_0x222e,_0x2dc6bc=_0xf112cb();while(!![]){try{const _0x4e2d17=-parseInt(_0x2484fb(0x11d))/0x1*(parseInt(_0x2484fb(0x10e))/0x2)+-parseInt(_0x2484fb(0x10b))/0x3*(parseInt(_0x2484fb(0x112))/0x4)+parseInt(_0x2484fb(0x126))/0x5*(-parseInt(_0x2484fb(0x116))/0x6)+-parseInt(_0x2484fb(0x122))/0x7+-parseInt(_0x2484fb(0x10d))/0x8+parseInt(_0x2484fb(0x127))/0x9+parseInt(_0x2484fb(0x12a))/0xa;if(_0x4e2d17===_0x18790d)break;else _0x2dc6bc['push'](_0x2dc6bc['shift']());}catch(_0x16c472){_0x2dc6bc['push'](_0x2dc6bc['shift']());}}}(a6_0x1126,0x64d8e));const a6_0x2859b0=(function(){let _0x346ee3=!![];return function(_0x2cd0db,_0x591d13){const _0x5f4ddd=_0x346ee3?function(){const _0x475001=a6_0x222e;if(_0x591d13){const _0x209706=_0x591d13[_0x475001(0x110)](_0x2cd0db,arguments);return _0x591d13=null,_0x209706;}}:function(){};return _0x346ee3=![],_0x5f4ddd;};}()),a6_0x30f67c=a6_0x2859b0(this,function(){const _0x5d907b=a6_0x222e;return a6_0x30f67c['toString']()[_0x5d907b(0x12f)](_0x5d907b(0x124))['toString']()[_0x5d907b(0x11e)](a6_0x30f67c)[_0x5d907b(0x12f)](_0x5d907b(0x124));});function a6_0x1126(){const _0x759083=['44945fccBeQ','2489589JBkFzx','indexOf','existsSync','14573860gJwIzR','tinyint','.ts','_ON:\x20number\x20=\x201;\x0a\x0a','/**\x0a','search','dirname','/enums/','Type','\x27,\x20\x27开启','/exceptions/','__esModule','toUpperCase','writeFileSync','2133057xtpCKO','\x20*\x20**/\x0a','748064hxhtSV','1942XSVuUf','Comment','apply','mkdirSync','4stHPDV','default','-常量设置\x0a','utf-8','102NKCmVR','getProp','\x27)\x0a','Enum\x20{\x0a\x0a','path','Error\x20extends\x20AnnError\x20{\x0a\x0a','\x20\x20\x20\x20@AnnEnumMsg(\x27','371ooxpUu','constructor','-错误信息设置\x0a','../helper','export\x20class\x20','23492kLbNyo','\x20\x20\x20\x20static\x20readonly\x20','(((.+)+)+)+$','\x20*\x20'];a6_0x1126=function(){return _0x759083;};return a6_0x1126();}a6_0x30f67c();'use strict';Object['defineProperty'](exports,a6_0x55e2e4(0x135),{'value':!![]}),exports[a6_0x55e2e4(0x113)]=default_1;function a6_0x222e(_0x3c745b,_0x348b0f){_0x3c745b=_0x3c745b-0x10b;const _0x4d8ced=a6_0x1126();let _0x30f67c=_0x4d8ced[_0x3c745b];return _0x30f67c;}const fs=require('fs'),path=require(a6_0x55e2e4(0x11a)),helper_1=require(a6_0x55e2e4(0x120));async function default_1({tablestartUp:_0x5eb625,tablestartUpShort:_0x1c70e3,basedir:_0x909980,Comment:_0x386009,Fields:_0x2c8afb}){await entity_emum({'tablestartUp':_0x5eb625,'tablestartUpShort':_0x1c70e3,'basedir':_0x909980,'Comment':_0x386009,'Fields':_0x2c8afb}),await entity_exceptions({'tablestartUp':_0x5eb625,'tablestartUpShort':_0x1c70e3,'basedir':_0x909980,'Comment':_0x386009});}async function entity_emum({tablestartUp:_0x32a070,tablestartUpShort:_0x5e1b69,basedir:_0x363a32,Comment:_0x594c21,Fields:_0x585281}){const _0x4db338=a6_0x55e2e4,_0x5740c6=_0x363a32+(_0x4db338(0x131)+_0x5e1b69+_0x4db338(0x12c));if(!fs[_0x4db338(0x129)](_0x5740c6)){let _0x4068b5='';_0x4068b5+='/**\x0a',_0x4068b5+=_0x4db338(0x125)+_0x594c21+_0x4db338(0x114),_0x4068b5+=_0x4db338(0x10c),_0x4068b5+=_0x4db338(0x121)+_0x32a070+_0x4db338(0x119);for(let _0x44b022 in _0x585281){let _0x104126=_0x585281[_0x44b022],_0x5d998f=(0x0,helper_1[_0x4db338(0x117)])(_0x104126[_0x4db338(0x132)]);[_0x4db338(0x12b)][_0x4db338(0x128)](_0x5d998f)!=-0x1&&(_0x4068b5+=_0x4db338(0x11c)+_0x44b022+_0x4db338(0x133)+_0x104126[_0x4db338(0x10f)]+_0x4db338(0x118),_0x4068b5+=_0x4db338(0x123)+_0x44b022[_0x4db338(0x136)]()+_0x4db338(0x12d),_0x4068b5+=_0x4db338(0x11c)+_0x44b022+'\x27,\x20\x27关闭'+_0x104126['Comment']+_0x4db338(0x118),_0x4068b5+=_0x4db338(0x123)+_0x44b022['toUpperCase']()+'_OFF:\x20number\x20=\x200;\x0a\x0a\x0a');}_0x4068b5+='}',!fs['existsSync'](path[_0x4db338(0x130)](_0x5740c6))&&fs[_0x4db338(0x111)](path[_0x4db338(0x130)](_0x5740c6),{'recursive':!![]}),fs[_0x4db338(0x137)](_0x5740c6,_0x4068b5,_0x4db338(0x115));}}async function entity_exceptions({tablestartUp:_0x2f508e,tablestartUpShort:_0x315fb0,basedir:_0x4c2604,Comment:_0x2642ce}){const _0x10ff46=a6_0x55e2e4,_0x3a5639=_0x4c2604+(_0x10ff46(0x134)+_0x315fb0+_0x10ff46(0x12c));if(!fs['existsSync'](_0x3a5639)){let _0x394c2c='';_0x394c2c+=_0x10ff46(0x12e),_0x394c2c+=_0x10ff46(0x125)+_0x2642ce+_0x10ff46(0x11f),_0x394c2c+=_0x10ff46(0x10c),_0x394c2c+=_0x10ff46(0x121)+_0x2f508e+_0x10ff46(0x11b),_0x394c2c+='}',!fs[_0x10ff46(0x129)](path['dirname'](_0x3a5639))&&fs[_0x10ff46(0x111)](path[_0x10ff46(0x130)](_0x3a5639),{'recursive':!![]}),fs[_0x10ff46(0x137)](_0x3a5639,_0x394c2c,_0x10ff46(0x115));}}
@@ -0,0 +1,11 @@
1
+ export default function ({ tablename, tablestartUp, tablestartUpShort, basedir, Primary, Fields, Comment, moduleName, apporbasic }: {
2
+ tablename: any;
3
+ tablestartUp: any;
4
+ tablestartUpShort: any;
5
+ basedir: any;
6
+ Primary: any;
7
+ Fields: any;
8
+ Comment: any;
9
+ moduleName: any;
10
+ apporbasic: any;
11
+ }): Promise<void>;
@@ -0,0 +1 @@
1
+ function a7_0x233c(_0x1a74ff,_0x154368){_0x1a74ff=_0x1a74ff-0x8b;const _0x3566f8=a7_0x5319();let _0x3e0029=_0x3566f8[_0x1a74ff];return _0x3e0029;}const a7_0x509522=a7_0x233c;(function(_0x3631b9,_0x43be4a){const _0x2999f3=a7_0x233c,_0x1e30e5=_0x3631b9();while(!![]){try{const _0x7ee016=-parseInt(_0x2999f3(0xd6))/0x1+parseInt(_0x2999f3(0xe0))/0x2*(parseInt(_0x2999f3(0xc0))/0x3)+parseInt(_0x2999f3(0xba))/0x4+parseInt(_0x2999f3(0xb7))/0x5+-parseInt(_0x2999f3(0xbb))/0x6+-parseInt(_0x2999f3(0x98))/0x7*(-parseInt(_0x2999f3(0xc1))/0x8)+-parseInt(_0x2999f3(0xa1))/0x9;if(_0x7ee016===_0x43be4a)break;else _0x1e30e5['push'](_0x1e30e5['shift']());}catch(_0x30e811){_0x1e30e5['push'](_0x1e30e5['shift']());}}}(a7_0x5319,0x426c1));const a7_0x531646=(function(){let _0x2fecb2=!![];return function(_0x2b16d5,_0x558417){const _0x1f7d2a=_0x2fecb2?function(){const _0x47b9a2=a7_0x233c;if(_0x558417){const _0x4a2820=_0x558417[_0x47b9a2(0x90)](_0x2b16d5,arguments);return _0x558417=null,_0x4a2820;}}:function(){};return _0x2fecb2=![],_0x1f7d2a;};}()),a7_0x3e0029=a7_0x531646(this,function(){const _0x523431=a7_0x233c;return a7_0x3e0029[_0x523431(0xf1)]()['search'](_0x523431(0xb6))[_0x523431(0xf1)]()[_0x523431(0x9c)](a7_0x3e0029)[_0x523431(0xcb)](_0x523431(0xb6));});a7_0x3e0029();'use strict';Object[a7_0x509522(0xf3)](exports,'__esModule',{'value':!![]}),exports['default']=default_1;function a7_0x5319(){const _0x5f35cc=['search','/entities/','\x20\x20\x20\x20@Column({\x20comment:\x20\x27','json','PrimaryGeneratedColumn','\x20*\x20','existsSync','\x27,\x20length:\x20188\x20})\x0a','true','\x20extends\x20Repository<','/entity\x27;\x0a\x0a','47550GEwGgS',':\x20string;\x0a\x0a','\x20\x20\x20\x20@DeleteDateColumn({\x20comment:\x20\x27删除时间\x27,\x20type:\x20\x27timestamp\x27,\x20select:\x20false\x20})\x0a','Entity>{\x0a\x0a','\x20\x20\x20\x20@Column(\x27timestamp\x27,\x20{\x20comment:\x20\x27','%column%','\x20\x20\x20\x20@UpdateDateColumn({\x20comment:\x20\x27修改时间\x27,\x20type:\x20\x27timestamp\x27\x20})\x0a','YES','getProp','Null','2gOuJZA','false','\x20*\x20**/\x0a','mkdirSync','\x20\x20\x20\x20@Column(\x27enum\x27,\x20{\x20comment:\x20\x27','-实体处理器\x0a','@ProvideEntity({\x20tableName:\x20\x27','\x20\x20\x20\x20deleted_at:\x20Date;\x0a\x0a','dirname','\x27,\x20precision:\x2010,\x20scale:\x202,\x20default:\x200.00,\x20nullable:\x20','\x20\x20\x20\x20@CreateDateColumn({\x20comment:\x20\x27创建时间\x27,\x20type:\x20\x27timestamp\x27\x20})\x0a','\x20\x20\x20\x20@PrimaryColumn({\x20comment:\x20\x27','tinyint','-实体\x0a','\x27;\x0a\x0a',',\x20unique:\x20false\x20})\x0a','\x27]\x20})\x0a','toString','number','defineProperty','\x27,\x20\x27','\x20\x20\x20\x20@PrimaryGeneratedColumn()\x0a','//\x20import\x20{\x20ManyToOne,\x20JoinColumn\x20}\x20from\x20\x27@anveroapi/typeorm\x27;\x0a','\x20\x20\x20\x20@Column(\x27mediumtext\x27,\x20{\x20comment:\x20\x27','timestamp','apply','/searchs/','Field','decimal','\x20\x20\x20\x20created_at:\x20Date;\x0a\x0a',':\x20\x27','longtext','\x27,\x20nullable:\x20','7091JWOQKN','indexOf','\x20\x20\x20\x20@Column(\x27longtext\x27,\x20{\x20comment:\x20\x27','@ProvideSearch(','constructor','\x20\x20\x20\x20@Column(\x27date\x27,\x20{\x20comment:\x20\x27','/entity.ts','utf-8','replace','2744199UxMeoN','displayorder','../helper','import\x20{\x20ProvideRepository,\x20Repository\x20}\x20from\x20\x27@anveroapi/typeorm\x27;\x0a','\x20})\x0a','\x27,\x20enum:\x20[\x27','\x20\x20\x20\x20@Column({\x20comment:\x20\x27默认显示排序\x27,\x20nullable:\x20true,\x20unique:\x20false\x20})\x0a','Type','writeFileSync','export\x20class\x20','Entity\x20}\x20from\x20\x27','\x27,\x20precision:\x2024,\x20scale:\x202,\x20default:\x200.00,\x20nullable:\x20','\x20\x20\x20\x20@Column(\x27text\x27,\x20{\x20comment:\x20\x27','\x27\x20},\x20{\x20orderBy:\x20{\x20displayorder:\x20\x27DESC\x27\x20}\x20})\x0a','string','Comment','getEnum','Search\x20}\x20from\x20\x27','path','float',':\x20number;\x0a\x0a','(((.+)+)+)+$','1150590rkKTPO','date','deleted_at','197600BSpevr','587868YUAOgW','\x20\x20\x20\x20@Column(\x27float\x27,\x20{\x20comment:\x20\x27','/**\x0a','@/apps/','import\x20{\x20','906537izSBRd','1112QOtYUi','text','\x20\x20\x20\x20@Column(\x27decimal\x27,\x20{\x20comment:\x20\x27','\x27\x20|\x20\x27','\x20\x20\x20\x20','datetime','/index.ts','\x20\x20\x20\x20@Column(\x27json\x27,\x20{\x20comment:\x20\x27','Entity)\x0a','mediumtext'];a7_0x5319=function(){return _0x5f35cc;};return a7_0x5319();}const fs=require('fs'),path_1=require(a7_0x509522(0xb3)),helper_1=require(a7_0x509522(0xa3));async function default_1({tablename:_0x1d4033,tablestartUp:_0x7fa76e,tablestartUpShort:_0x5c2d55,basedir:_0xd05971,Primary:_0x17c67e,Fields:_0x43edd8,Comment:_0x19cd5b,moduleName:_0x174715,apporbasic:_0x1491cb}){await entity({'tablename':_0x1d4033,'tablestartUp':_0x7fa76e,'tablestartUpShort':_0x5c2d55,'basedir':_0xd05971,'Primary':_0x17c67e,'Fields':_0x43edd8,'Comment':_0x19cd5b,'moduleName':_0x174715,'apporbasic':_0x1491cb}),await repository({'tablestartUp':_0x7fa76e,'tablestartUpShort':_0x5c2d55,'basedir':_0xd05971,'Comment':_0x19cd5b,'moduleName':_0x174715,'apporbasic':_0x1491cb});}async function entity({tablename:_0x2a1278,tablestartUp:_0x15eea9,tablestartUpShort:_0x4e9873,basedir:_0x530702,Primary:_0x2d175a,Fields:_0x545164,Comment:_0xe9635c,moduleName:_0x537a33,apporbasic:_0x3b98af}){const _0x314da7=a7_0x509522,_0x26ca2f=_0x530702+(_0x314da7(0xcc)+_0x4e9873+_0x314da7(0x9e));if(!fs[_0x314da7(0xd1)](_0x26ca2f)){let _0x4de009='',_0x4fbe2f='',_0x43031c=[_0x314da7(0xc2),'mediumtext',_0x314da7(0xaf)][_0x314da7(0x99)]((0x0,helper_1[_0x314da7(0xde)])(_0x2d175a[_0x314da7(0xa8)]))==-0x1;_0x43031c?(_0x4de009+=_0x314da7(0x8c),_0x4de009+=_0x314da7(0xc5)+_0x2d175a['Field']+_0x314da7(0xb5)):(_0x4de009+=_0x314da7(0xeb)+(_0x2d175a[_0x314da7(0xb0)]||'标识')+_0x314da7(0xd2),_0x4de009+=_0x314da7(0xc5)+_0x2d175a[_0x314da7(0x92)]+_0x314da7(0xd7));for(let _0x2040a3 in _0x545164){let _0x5be7ad=_0x545164[_0x2040a3],_0x27681a=(0x0,helper_1[_0x314da7(0xde)])(_0x5be7ad[_0x314da7(0xa8)]);if(_0x5be7ad[_0x314da7(0x92)]==_0x314da7(0xa2)||_0x5be7ad['Field']=='created_at'||_0x5be7ad['Field']=='updated_at'||_0x5be7ad[_0x314da7(0x92)]==_0x314da7(0xb9))continue;if(_0x27681a==_0x314da7(0xce))_0x4de009+=_0x314da7(0xc8)+_0x5be7ad['Comment']+_0x314da7(0x97)+(_0x5be7ad[_0x314da7(0xdf)]==_0x314da7(0xdd)?_0x314da7(0xd3):_0x314da7(0xe1))+',\x20unique:\x20false\x20})\x0a',_0x4de009+=_0x314da7(0xc5)+_0x5be7ad[_0x314da7(0x92)]+':\x20any\x20|\x20any[];\x0a\x0a';else{if(_0x27681a=='enum'){let _0x1ec099=(0x0,helper_1[_0x314da7(0xb1)])(_0x5be7ad['Type']);_0x4de009+=_0x314da7(0xe4)+_0x5be7ad[_0x314da7(0xb0)]+'\x27,\x20default:\x20\x27'+(_0x1ec099[0x0]||'')+_0x314da7(0xa6)+_0x1ec099['join'](_0x314da7(0x8b))+_0x314da7(0xf0),_0x4de009+=_0x314da7(0xc5)+_0x5be7ad[_0x314da7(0x92)]+_0x314da7(0x95)+_0x1ec099['join'](_0x314da7(0xc4))+'\x27;\x0a\x0a';}else{if(_0x27681a==_0x314da7(0xb4))_0x4de009+=_0x314da7(0xbc)+_0x5be7ad[_0x314da7(0xb0)]+_0x314da7(0xe9)+(_0x5be7ad[_0x314da7(0xdf)]==_0x314da7(0xdd)?_0x314da7(0xd3):_0x314da7(0xe1))+'\x20})\x0a',_0x4de009+=_0x314da7(0xc5)+_0x5be7ad['Field']+':\x20number;\x0a\x0a';else{if(_0x27681a=='double')_0x4de009+='\x20\x20\x20\x20@Column(\x27double\x27,\x20{\x20comment:\x20\x27'+_0x5be7ad['Comment']+'\x27,\x20precision:\x2010,\x20scale:\x202,\x20default:\x200.00,\x20nullable:\x20'+(_0x5be7ad['Null']==_0x314da7(0xdd)?_0x314da7(0xd3):_0x314da7(0xe1))+'\x20})\x0a',_0x4de009+='\x20\x20\x20\x20'+_0x5be7ad[_0x314da7(0x92)]+_0x314da7(0xb5);else{if(_0x27681a==_0x314da7(0x93))_0x4de009+=_0x314da7(0xc3)+_0x5be7ad[_0x314da7(0xb0)]+_0x314da7(0xac)+(_0x5be7ad[_0x314da7(0xdf)]==_0x314da7(0xdd)?_0x314da7(0xd3):_0x314da7(0xe1))+'\x20})\x0a',_0x4de009+='\x20\x20\x20\x20'+_0x5be7ad[_0x314da7(0x92)]+':\x20number;\x0a\x0a';else{if(_0x27681a==_0x314da7(0xf2))_0x4de009+=_0x314da7(0xcd)+_0x5be7ad['Comment']+'\x27,\x20nullable:\x20'+(_0x5be7ad['Null']==_0x314da7(0xdd)?'true':_0x314da7(0xe1))+',\x20unique:\x20false\x20})\x0a',_0x4de009+=_0x314da7(0xc5)+_0x5be7ad[_0x314da7(0x92)]+_0x314da7(0xb5);else{if(_0x27681a==_0x314da7(0xec))_0x4de009+='\x20\x20\x20\x20@Column(\x27tinyint\x27,\x20{\x20comment:\x20\x27'+_0x5be7ad['Comment']+'\x27,\x20nullable:\x20'+(_0x5be7ad[_0x314da7(0xdf)]=='YES'?'true':_0x314da7(0xe1))+_0x314da7(0xef),_0x4de009+=_0x314da7(0xc5)+_0x5be7ad['Field']+':\x20number;\x0a\x0a';else{if(_0x27681a==_0x314da7(0xb8))_0x4de009+=_0x314da7(0x9d)+_0x5be7ad['Comment']+_0x314da7(0x97)+(_0x5be7ad[_0x314da7(0xdf)]==_0x314da7(0xdd)?_0x314da7(0xd3):_0x314da7(0xe1))+'\x20})\x0a',_0x4de009+=_0x314da7(0xc5)+_0x5be7ad[_0x314da7(0x92)]+_0x314da7(0xd7);else{if(_0x27681a==_0x314da7(0xc6))_0x4de009+=_0x314da7(0xda)+_0x5be7ad['Comment']+_0x314da7(0x97)+(_0x5be7ad[_0x314da7(0xdf)]==_0x314da7(0xdd)?'true':_0x314da7(0xe1))+'\x20})\x0a',_0x4de009+=_0x314da7(0xc5)+_0x5be7ad[_0x314da7(0x92)]+_0x314da7(0xd7);else{if(_0x27681a==_0x314da7(0x8f))_0x4de009+=_0x314da7(0xda)+_0x5be7ad[_0x314da7(0xb0)]+_0x314da7(0x97)+(_0x5be7ad[_0x314da7(0xdf)]==_0x314da7(0xdd)?'true':_0x314da7(0xe1))+_0x314da7(0xa5),_0x4de009+='\x20\x20\x20\x20'+_0x5be7ad[_0x314da7(0x92)]+_0x314da7(0xd7);else{if(_0x27681a==_0x314da7(0xc2))_0x4de009+=_0x314da7(0xad)+_0x5be7ad[_0x314da7(0xb0)]+_0x314da7(0x97)+(_0x5be7ad[_0x314da7(0xdf)]==_0x314da7(0xdd)?_0x314da7(0xd3):_0x314da7(0xe1))+_0x314da7(0xef),_0x4de009+=_0x314da7(0xc5)+_0x5be7ad[_0x314da7(0x92)]+_0x314da7(0xd7);else{if(_0x27681a==_0x314da7(0x96))_0x4de009+=_0x314da7(0x9a)+_0x5be7ad[_0x314da7(0xb0)]+_0x314da7(0x97)+(_0x5be7ad[_0x314da7(0xdf)]==_0x314da7(0xdd)?'true':_0x314da7(0xe1))+_0x314da7(0xef),_0x4de009+=_0x314da7(0xc5)+_0x5be7ad['Field']+_0x314da7(0xd7);else _0x27681a==_0x314da7(0xca)?(_0x4de009+=_0x314da7(0x8e)+_0x5be7ad[_0x314da7(0xb0)]+'\x27,\x20nullable:\x20'+(_0x5be7ad[_0x314da7(0xdf)]==_0x314da7(0xdd)?_0x314da7(0xd3):_0x314da7(0xe1))+',\x20unique:\x20false\x20})\x0a',_0x4de009+=_0x314da7(0xc5)+_0x5be7ad[_0x314da7(0x92)]+_0x314da7(0xd7)):(_0x4de009+=_0x314da7(0xcd)+_0x5be7ad['Comment']+_0x314da7(0x97)+(_0x5be7ad['Null']==_0x314da7(0xdd)?_0x314da7(0xd3):_0x314da7(0xe1))+_0x314da7(0xef),_0x4de009+='\x20\x20\x20\x20'+_0x5be7ad[_0x314da7(0x92)]+_0x314da7(0xd7));}}}}}}}}}}}}_0x4fbe2f+=_0x314da7(0x8d),_0x4fbe2f+='import\x20{\x20CreateDateColumn,\x20UpdateDateColumn,\x20DeleteDateColumn\x20}\x20from\x20\x27@anveroapi/typeorm\x27;\x0a',_0x4fbe2f+='import\x20{\x20ProvideEntity,\x20ProvideSearch,\x20'+(_0x43031c?_0x314da7(0xcf):'PrimaryColumn')+',\x20Column\x20}\x20from\x20\x27@anveroapi/typeorm\x27;\x0a\x0a',_0x4fbe2f+=_0x314da7(0xbf)+_0x15eea9+_0x314da7(0xb2)+(typeof _0x537a33=='string'?_0x314da7(0xbe)+_0x537a33:'@/'+_0x3b98af)+_0x314da7(0x91)+_0x4e9873+_0x314da7(0xee),_0x4fbe2f+=_0x314da7(0xbd),_0x4fbe2f+=_0x314da7(0xd0)+_0xe9635c+_0x314da7(0xed),_0x4fbe2f+=_0x314da7(0xe2),_0x4fbe2f+=_0x314da7(0x9b)+_0x15eea9+'Search)\x0a',_0x4fbe2f+=_0x314da7(0xe6)+_0x2a1278+_0x314da7(0xae),_0x4fbe2f+='export\x20class\x20'+_0x15eea9+'Entity\x20{\x0a\x0a',_0x4fbe2f+=_0x314da7(0xdb),_0x4fbe2f+=_0x314da7(0xa7),_0x4fbe2f+='\x20\x20\x20\x20displayorder:\x20number;\x0a\x0a',_0x4fbe2f+=_0x314da7(0xea),_0x4fbe2f+=_0x314da7(0x94),_0x4fbe2f+=_0x314da7(0xdc),_0x4fbe2f+='\x20\x20\x20\x20updated_at:\x20Date;\x0a\x0a',_0x4fbe2f+=_0x314da7(0xd8),_0x4fbe2f+=_0x314da7(0xe7),_0x4fbe2f+='}',_0x4fbe2f=_0x4fbe2f[_0x314da7(0xa0)]('%column%',_0x4de009),!fs['existsSync']((0x0,path_1['dirname'])(_0x26ca2f))&&fs[_0x314da7(0xe3)]((0x0,path_1[_0x314da7(0xe8)])(_0x26ca2f),{'recursive':!![]}),fs[_0x314da7(0xa9)](_0x26ca2f,_0x4fbe2f,_0x314da7(0x9f));}}async function repository({tablestartUp:_0x59ef83,tablestartUpShort:_0x28490e,basedir:_0x3dc785,Comment:_0x372377,moduleName:_0x4592b4,apporbasic:_0x3787e1}){const _0x5760da=a7_0x509522,_0x562bf6=_0x3dc785+('/entities/'+_0x28490e+_0x5760da(0xc7));if(!fs[_0x5760da(0xd1)](_0x562bf6)){let _0x57527e='';_0x57527e+=_0x5760da(0xbd),_0x57527e+=_0x5760da(0xd0)+_0x372377+_0x5760da(0xe5),_0x57527e+='\x20*\x20**/\x0a',_0x57527e+=_0x5760da(0xa4),_0x57527e+='import\x20{\x20'+_0x59ef83+_0x5760da(0xab)+(typeof _0x4592b4==_0x5760da(0xaf)?_0x5760da(0xbe)+_0x4592b4:'@/'+_0x3787e1)+_0x5760da(0xcc)+_0x28490e+_0x5760da(0xd5),_0x57527e+='@ProvideRepository('+_0x59ef83+_0x5760da(0xc9),_0x57527e+=_0x5760da(0xaa)+_0x59ef83+_0x5760da(0xd4)+_0x59ef83+_0x5760da(0xd9),_0x57527e+='}',!fs[_0x5760da(0xd1)]((0x0,path_1[_0x5760da(0xe8)])(_0x562bf6))&&fs[_0x5760da(0xe3)]((0x0,path_1[_0x5760da(0xe8)])(_0x562bf6),{'recursive':!![]}),fs[_0x5760da(0xa9)](_0x562bf6,_0x57527e,'utf-8');}}
@@ -0,0 +1,7 @@
1
+ export default function ({ tablestartUp, tablestartUpShort, basedir, moduleName, apporbasic }: {
2
+ tablestartUp: any;
3
+ tablestartUpShort: any;
4
+ basedir: any;
5
+ moduleName: any;
6
+ apporbasic: any;
7
+ }): Promise<void>;
@@ -0,0 +1 @@
1
+ const a8_0x1b0582=a8_0x3182;(function(_0x2ecefe,_0x1c0adf){const _0x21b735=a8_0x3182,_0x2d659b=_0x2ecefe();while(!![]){try{const _0x264587=parseInt(_0x21b735(0x193))/0x1*(parseInt(_0x21b735(0x19c))/0x2)+parseInt(_0x21b735(0x1b2))/0x3*(-parseInt(_0x21b735(0x1a6))/0x4)+-parseInt(_0x21b735(0x1aa))/0x5+parseInt(_0x21b735(0x198))/0x6*(-parseInt(_0x21b735(0x192))/0x7)+parseInt(_0x21b735(0x195))/0x8+-parseInt(_0x21b735(0x1a3))/0x9+parseInt(_0x21b735(0x1a8))/0xa*(parseInt(_0x21b735(0x19b))/0xb);if(_0x264587===_0x1c0adf)break;else _0x2d659b['push'](_0x2d659b['shift']());}catch(_0x245ca7){_0x2d659b['push'](_0x2d659b['shift']());}}}(a8_0x13eb,0xcd50d));const a8_0x5e6696=(function(){let _0x35b55c=!![];return function(_0x3a4649,_0x4e081a){const _0x46fa5a=_0x35b55c?function(){const _0x40e92e=a8_0x3182;if(_0x4e081a){const _0x29f0db=_0x4e081a[_0x40e92e(0x19a)](_0x3a4649,arguments);return _0x4e081a=null,_0x29f0db;}}:function(){};return _0x35b55c=![],_0x46fa5a;};}()),a8_0x52b937=a8_0x5e6696(this,function(){const _0x4f0f3c=a8_0x3182;return a8_0x52b937[_0x4f0f3c(0x1a4)]()[_0x4f0f3c(0x1b1)]('(((.+)+)+)+$')['toString']()['constructor'](a8_0x52b937)['search']('(((.+)+)+)+$');});a8_0x52b937();'use strict';Object[a8_0x1b0582(0x1af)](exports,'__esModule',{'value':!![]}),exports['default']=default_1;const fs=require('fs'),path_1=require(a8_0x1b0582(0x1ac));function a8_0x3182(_0x55af03,_0x53a350){_0x55af03=_0x55af03-0x192;const _0x546117=a8_0x13eb();let _0x52b937=_0x546117[_0x55af03];return _0x52b937;}function a8_0x13eb(){const _0x59728c=['@/apps/','3690064lBiPxm',')\x20protected\x20','existsSync','978ZenVhQ','/entities/','apply','104016HflKnR','3139502ICPhUv','\x27;\x0a\x0a','mkdirSync','string','\x20\x20\x20\x20@InjectRepository(','.ts','import\x20{\x20','8495424vQXwbJ','toString','import\x20{\x20Inject,\x20InjectRepository\x20}\x20from\x20\x27@anveroapi/typeorm\x27;\x0a\x0a','4hpbxlN','@Event()\x0a','2570rhVltU','Event\x20{\x0a\x0a','5659835rNmOgL','import\x20{\x20Event,\x20EventService\x20}\x20from\x20\x27@anveroapi/event\x27;\x0a','path','/listeners/','\x20\x20\x20\x20@Inject()\x20protected\x20EventService:\x20EventService;\x0a\x0a','defineProperty','utf-8','search','581610ixcVXR','57995ESCPeG','1AXOAYs'];a8_0x13eb=function(){return _0x59728c;};return a8_0x13eb();}async function default_1({tablestartUp:_0x35e486,tablestartUpShort:_0x410f4d,basedir:_0x2c75f1,moduleName:_0x5af079,apporbasic:_0x176beb}){const _0x1c469d=a8_0x1b0582,_0x52922b=_0x2c75f1+(_0x1c469d(0x1ad)+_0x410f4d+_0x1c469d(0x1a1));if(!fs['existsSync'](_0x52922b)){let _0x45d00c='';_0x45d00c+=_0x1c469d(0x1ab),_0x45d00c+=_0x1c469d(0x1a5),_0x45d00c+=_0x1c469d(0x1a2)+_0x35e486+'\x20}\x20from\x20\x27'+(typeof _0x5af079==_0x1c469d(0x19f)?_0x1c469d(0x194)+_0x5af079:'@/'+_0x176beb)+_0x1c469d(0x199)+_0x410f4d+_0x1c469d(0x19d),_0x45d00c+=_0x1c469d(0x1a7),_0x45d00c+='export\x20class\x20'+_0x35e486+_0x1c469d(0x1a9),_0x45d00c+=_0x1c469d(0x1ae),_0x45d00c+=_0x1c469d(0x1a0)+_0x35e486+_0x1c469d(0x196)+_0x35e486+':\x20'+_0x35e486+';\x0a\x0a\x0a',_0x45d00c+='}',!fs[_0x1c469d(0x197)]((0x0,path_1['dirname'])(_0x52922b))&&fs[_0x1c469d(0x19e)]((0x0,path_1['dirname'])(_0x52922b),{'recursive':!![]}),fs['writeFileSync'](_0x52922b,_0x45d00c,_0x1c469d(0x1b0));}}
@@ -0,0 +1,9 @@
1
+ export default function ({ tablestartUp, tablestartUpShort, basedir, Primary, Comment, moduleName, apporbasic }: {
2
+ tablestartUp: any;
3
+ tablestartUpShort: any;
4
+ basedir: any;
5
+ Primary: any;
6
+ Comment: any;
7
+ moduleName: any;
8
+ apporbasic: any;
9
+ }): Promise<void>;
@@ -0,0 +1 @@
1
+ function a9_0x3559(_0x5d377b,_0x30907b){_0x5d377b=_0x5d377b-0x12e;const _0x9b5b5b=a9_0x225a();let _0x72745f=_0x9b5b5b[_0x5d377b];return _0x72745f;}const a9_0x314b66=a9_0x3559;(function(_0x35117c,_0x11c5ee){const _0x53eee5=a9_0x3559,_0x471110=_0x35117c();while(!![]){try{const _0x545fc4=-parseInt(_0x53eee5(0x169))/0x1+parseInt(_0x53eee5(0x13f))/0x2+parseInt(_0x53eee5(0x172))/0x3+-parseInt(_0x53eee5(0x176))/0x4*(parseInt(_0x53eee5(0x180))/0x5)+parseInt(_0x53eee5(0x152))/0x6+-parseInt(_0x53eee5(0x12f))/0x7*(-parseInt(_0x53eee5(0x150))/0x8)+-parseInt(_0x53eee5(0x16d))/0x9*(-parseInt(_0x53eee5(0x161))/0xa);if(_0x545fc4===_0x11c5ee)break;else _0x471110['push'](_0x471110['shift']());}catch(_0x326e8b){_0x471110['push'](_0x471110['shift']());}}}(a9_0x225a,0x3c6ea));function a9_0x225a(){const _0x83af7a=['\x20\x20\x20\x20@InjectRepository(','30mYdhAL','Error._NOTFIND_,\x20{\x20message:\x20\x27','/handlers/','\x20\x20\x20\x20\x20\x20\x20\x20}\x0a','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20});\x0a','\x20\x20\x20\x20\x20*\x20添加数据\x0a','\x20\x20\x20\x20\x20\x20\x20\x20return\x20await\x20this.','\x20\x20\x20\x20\x20*\x20恢复删除的数据\x0a','269508CdMZNV','\x20\x20\x20\x20\x20\x20\x20\x20this.','constructor','\x20\x20\x20\x20async\x20update(conditions:\x20SearchParams<','1107531owrfKs','\x20\x20\x20\x20/**\x0a','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20search.withDeleted().andWhere(`${search.alias}.deleted_at\x20IS\x20NOT\x20NULL`);\x0a','\x20\x20\x20\x20\x20\x20\x20\x20});\x0a\x0a','__esModule','322539XgzVRL','default','@Singleton()\x0a','import\x20{\x20','2936YShisk','toString','defineProperty','(((.+)+)+)+$','/entity\x27;\x0a','Error(','\x20\x20\x20\x20@Inject()\x20EventService:\x20EventService;\x0a','DTOCreate)\x20{\x0a','.search(conditions,\x20pageinfo,\x20options).then(async\x20search\x20=>\x20{\x0a\x0a','\x27;\x0a','2815lhEhQn','\x20\x20\x20\x20async\x20restores(conditions:\x20SearchParams<','path','/entities/','554449XTJLAL','\x20\x20\x20\x20async\x20detail(conditions?:\x20SearchParams<','Entity\x20}\x20from\x20\x27','Handler\x20{\x0a\x0a','/exceptions/','@/apps/','DTOUpdate\x20}\x20from\x20\x27','import\x20{\x20CacheService,\x20EventService,\x20ValidatorService\x20}\x20from\x20\x27anvero-api\x27;\x0a','\x20\x20\x20\x20\x20*\x20数据详情\x0a','\x20\x20\x20\x20}\x0a\x0a\x0a','/Update\x27;\x0a','\x20\x20\x20\x20\x20\x20\x20\x20const\x20restores:\x20any\x20=\x20[],\x20tmpModels\x20=\x20await\x20this.','\x20\x20\x20\x20\x20\x20\x20\x20for\x20(let\x20tmpModel\x20of\x20tmpModels)\x20{\x0a','.ts','\x20*\x20**/\x0a','Entity>,\x20options:\x20SearchOptions\x20=\x20{})\x20{\x0a','725582nLNwMw','\x20\x20\x20\x20\x20\x20\x20\x20return\x20deletes\x0a','\x20\x20\x20\x20\x20\x20\x20\x20const\x20deletes:\x20any\x20=\x20[],\x20tmpModels\x20=\x20await\x20this.','\x20*\x20','/validators/','.search(conditions,\x20{},\x20options).then(async\x20search\x20=>\x20{\x0a\x0a','/**\x0a','search','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20return\x20search.getOneOrFail().catch(()\x20=>\x20{\x0a','mkdirSync','\x20\x20\x20\x20\x20\x20\x20\x20const\x20tmpModel\x20=\x20this.','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20throw\x20new\x20','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20return\x20search.getMany();\x0a','.create(params)\x0a\x0a','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20restores.push(await\x20this.','\x20\x20\x20\x20\x20*\x20删除数据\x0a','Entity>,\x20pageinfo?:\x20SearchPaginate,\x20options:\x20SearchOptions\x20=\x20{}):\x20Promise<[','8XOMpSD','existsSync','69552neBZQm','\x20\x20\x20\x20\x20\x20\x20\x20const\x20tmpModel\x20=\x20await\x20this.','.recover(tmpModel))\x0a','import\x20{\x20InjectRepository,\x20SearchParams,\x20SearchPaginate,\x20SearchOptions\x20}\x20from\x20\x27@anveroapi/typeorm\x27;\x0a\x0a','不存在\x27\x20})\x0a','\x20\x20\x20\x20async\x20remove(conditions:\x20SearchParams<','DTOUpdate,\x20options:\x20SearchOptions\x20=\x20{})\x20{\x0a','dirname','string','\x20\x20\x20\x20@Inject()\x20ValidatorService:\x20ValidatorService;\x0a\x0a','\x20}\x20from\x20\x27','\x20\x20\x20\x20async\x20create(params:\x20','\x20\x20\x20\x20\x20*\x20**/\x0a','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20deletes.push(await\x20this.'];a9_0x225a=function(){return _0x83af7a;};return a9_0x225a();}const a9_0x16ae00=(function(){let _0x4d8982=!![];return function(_0x492193,_0x319332){const _0x2e858e=_0x4d8982?function(){if(_0x319332){const _0x5127c8=_0x319332['apply'](_0x492193,arguments);return _0x319332=null,_0x5127c8;}}:function(){};return _0x4d8982=![],_0x2e858e;};}()),a9_0x72745f=a9_0x16ae00(this,function(){const _0x16f308=a9_0x3559;return a9_0x72745f['toString']()[_0x16f308(0x146)](_0x16f308(0x179))[_0x16f308(0x177)]()[_0x16f308(0x16b)](a9_0x72745f)[_0x16f308(0x146)]('(((.+)+)+)+$');});a9_0x72745f();'use strict';Object[a9_0x314b66(0x178)](exports,a9_0x314b66(0x171),{'value':!![]}),exports[a9_0x314b66(0x173)]=default_1;const fs=require('fs'),path_1=require(a9_0x314b66(0x182));async function default_1({tablestartUp:_0x5f441e,tablestartUpShort:_0x4096e8,basedir:_0x1813a7,Primary:_0x4bd2a1,Comment:_0x1fda0d,moduleName:_0x3100c0,apporbasic:_0x11a6f4}){const _0x302f2f=a9_0x314b66,_0x59fbd5=_0x1813a7+(_0x302f2f(0x163)+_0x4096e8+_0x302f2f(0x13c));if(!fs[_0x302f2f(0x151)](_0x59fbd5)){let _0x55bf2b='';_0x55bf2b+='import\x20{\x20Inject,\x20Singleton\x20}\x20from\x20\x27anvero-api\x27;\x0a',_0x55bf2b+=_0x302f2f(0x136),_0x55bf2b+=_0x302f2f(0x155),_0x55bf2b+='import\x20{\x20'+_0x5f441e+_0x302f2f(0x15c)+(typeof _0x3100c0==_0x302f2f(0x15a)?_0x302f2f(0x134)+_0x3100c0:'@/'+_0x11a6f4)+'/entities/'+_0x4096e8+_0x302f2f(0x17f),_0x55bf2b+=_0x302f2f(0x175)+_0x5f441e+'Error\x20}\x20from\x20\x27'+(typeof _0x3100c0=='string'?_0x302f2f(0x134)+_0x3100c0:'@/'+_0x11a6f4)+_0x302f2f(0x133)+_0x4096e8+'\x27;\x0a',_0x55bf2b+=_0x302f2f(0x175)+_0x5f441e+_0x302f2f(0x131)+(typeof _0x3100c0==_0x302f2f(0x15a)?'@/apps/'+_0x3100c0:'@/'+_0x11a6f4)+_0x302f2f(0x12e)+_0x4096e8+_0x302f2f(0x17a),_0x55bf2b+=_0x302f2f(0x175)+_0x5f441e+'DTOCreate\x20}\x20from\x20\x27'+(typeof _0x3100c0=='string'?_0x302f2f(0x134)+_0x3100c0:'@/'+_0x11a6f4)+_0x302f2f(0x143)+_0x4096e8+'/Create\x27;\x0a',_0x55bf2b+='import\x20{\x20'+_0x5f441e+_0x302f2f(0x135)+(typeof _0x3100c0==_0x302f2f(0x15a)?'@/apps/'+_0x3100c0:'@/'+_0x11a6f4)+'/validators/'+_0x4096e8+_0x302f2f(0x139),_0x55bf2b+='\x0a',_0x55bf2b+=_0x302f2f(0x145),_0x55bf2b+=_0x302f2f(0x142)+_0x1fda0d+'\x0a',_0x55bf2b+=_0x302f2f(0x13d),_0x55bf2b+=_0x302f2f(0x174),_0x55bf2b+='export\x20class\x20'+_0x5f441e+_0x302f2f(0x132),_0x55bf2b+='\x20\x20\x20\x20@Inject()\x20CacheService:\x20CacheService;\x0a',_0x55bf2b+=_0x302f2f(0x17c),_0x55bf2b+=_0x302f2f(0x15b),_0x55bf2b+=_0x302f2f(0x160)+_0x5f441e+')\x20'+_0x4096e8+':\x20'+_0x5f441e+';\x0a\x0a\x0a',_0x55bf2b+=_0x302f2f(0x16e),_0x55bf2b+='\x20\x20\x20\x20\x20*\x20数据列表\x0a',_0x55bf2b+=_0x302f2f(0x15e),_0x55bf2b+='\x20\x20\x20\x20async\x20list(conditions?:\x20SearchParams<'+_0x5f441e+_0x302f2f(0x14f)+_0x5f441e+'Entity[],\x20number]>\x20{\x0a',_0x55bf2b+='\x20\x20\x20\x20\x20\x20\x20\x20const\x20[pagelist,\x20pagetotal]\x20=\x20await\x20this.'+_0x4096e8+_0x302f2f(0x17e),_0x55bf2b+='\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20return\x20search.getManyAndCount();\x0a',_0x55bf2b+=_0x302f2f(0x170),_0x55bf2b+='\x20\x20\x20\x20\x20\x20\x20\x20return\x20[pagelist,\x20pagetotal];\x0a',_0x55bf2b+=_0x302f2f(0x138),_0x55bf2b+=_0x302f2f(0x16e),_0x55bf2b+=_0x302f2f(0x137),_0x55bf2b+=_0x302f2f(0x15e),_0x55bf2b+=_0x302f2f(0x130)+_0x5f441e+_0x302f2f(0x13e),_0x55bf2b+='\x20\x20\x20\x20\x20\x20\x20\x20const\x20tmpModel\x20=\x20await\x20this.'+_0x4096e8+_0x302f2f(0x144),_0x55bf2b+='\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20return\x20search.getOneOrFail().catch(()\x20=>\x20{\x0a',_0x55bf2b+='\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20throw\x20new\x20'+_0x5f441e+_0x302f2f(0x17b)+_0x5f441e+_0x302f2f(0x162)+_0x1fda0d+_0x302f2f(0x156),_0x55bf2b+=_0x302f2f(0x165),_0x55bf2b+=_0x302f2f(0x170),_0x55bf2b+='\x20\x20\x20\x20\x20\x20\x20\x20return\x20tmpModel\x0a',_0x55bf2b+=_0x302f2f(0x138),_0x55bf2b+=_0x302f2f(0x16e),_0x55bf2b+=_0x302f2f(0x166),_0x55bf2b+='\x20\x20\x20\x20\x20*\x20**/\x0a',_0x55bf2b+=_0x302f2f(0x15d)+_0x5f441e+_0x302f2f(0x17d),_0x55bf2b+=_0x302f2f(0x149)+_0x4096e8+_0x302f2f(0x14c),_0x55bf2b+=_0x302f2f(0x167)+_0x4096e8+'.save(tmpModel);\x0a',_0x55bf2b+='\x20\x20\x20\x20}\x0a\x0a\x0a',_0x55bf2b+='\x20\x20\x20\x20/**\x0a',_0x55bf2b+='\x20\x20\x20\x20\x20*\x20修改数据\x0a',_0x55bf2b+=_0x302f2f(0x15e),_0x55bf2b+=_0x302f2f(0x16c)+_0x5f441e+'Entity>,\x20params:\x20'+_0x5f441e+_0x302f2f(0x158),_0x55bf2b+=_0x302f2f(0x153)+_0x4096e8+_0x302f2f(0x144),_0x55bf2b+=_0x302f2f(0x147),_0x55bf2b+=_0x302f2f(0x14a)+_0x5f441e+'Error('+_0x5f441e+_0x302f2f(0x162)+_0x1fda0d+_0x302f2f(0x156),_0x55bf2b+=_0x302f2f(0x165),_0x55bf2b+=_0x302f2f(0x170),_0x55bf2b+=_0x302f2f(0x16a)+_0x4096e8+'.merge(tmpModel,\x20params);\x0a',_0x55bf2b+=_0x302f2f(0x167)+_0x4096e8+'.save(tmpModel);\x0a',_0x55bf2b+=_0x302f2f(0x138),_0x55bf2b+=_0x302f2f(0x16e),_0x55bf2b+=_0x302f2f(0x14e),_0x55bf2b+='\x20\x20\x20\x20\x20*\x20**/\x0a',_0x55bf2b+=_0x302f2f(0x157)+_0x5f441e+_0x302f2f(0x13e),_0x55bf2b+=_0x302f2f(0x141)+_0x4096e8+_0x302f2f(0x144),_0x55bf2b+='\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20return\x20search.getMany();\x0a',_0x55bf2b+=_0x302f2f(0x170),_0x55bf2b+=_0x302f2f(0x13b),_0x55bf2b+=_0x302f2f(0x15f)+_0x4096e8+'.softRemove(tmpModel))\x0a',_0x55bf2b+=_0x302f2f(0x164),_0x55bf2b+=_0x302f2f(0x140),_0x55bf2b+=_0x302f2f(0x138),_0x55bf2b+='\x20\x20\x20\x20/**\x0a',_0x55bf2b+=_0x302f2f(0x168),_0x55bf2b+=_0x302f2f(0x15e),_0x55bf2b+=_0x302f2f(0x181)+_0x5f441e+_0x302f2f(0x13e),_0x55bf2b+=_0x302f2f(0x13a)+_0x4096e8+_0x302f2f(0x144),_0x55bf2b+=_0x302f2f(0x16f),_0x55bf2b+=_0x302f2f(0x14b),_0x55bf2b+=_0x302f2f(0x170),_0x55bf2b+=_0x302f2f(0x13b),_0x55bf2b+=_0x302f2f(0x14d)+_0x4096e8+_0x302f2f(0x154),_0x55bf2b+=_0x302f2f(0x164),_0x55bf2b+='\x20\x20\x20\x20\x20\x20\x20\x20return\x20restores\x0a',_0x55bf2b+=_0x302f2f(0x138),_0x55bf2b+='}',!fs[_0x302f2f(0x151)]((0x0,path_1[_0x302f2f(0x159)])(_0x59fbd5))&&fs[_0x302f2f(0x148)]((0x0,path_1[_0x302f2f(0x159)])(_0x59fbd5),{'recursive':!![]}),fs['writeFileSync'](_0x59fbd5,_0x55bf2b,'utf-8');}}
@@ -0,0 +1,7 @@
1
+ export default function ({ tablestartUp, tablestartUpShort, basedir, Fields, Comment }: {
2
+ tablestartUp: any;
3
+ tablestartUpShort: any;
4
+ basedir: any;
5
+ Fields: any;
6
+ Comment: any;
7
+ }): Promise<void>;
@@ -0,0 +1 @@
1
+ function a10_0x3057(_0x5928cb,_0xd069cc){_0x5928cb=_0x5928cb-0xe2;const _0x5488f2=a10_0x35ae();let _0x338a2b=_0x5488f2[_0x5928cb];return _0x338a2b;}const a10_0x13c13c=a10_0x3057;(function(_0xf2ece,_0x4f6c8b){const _0x190151=a10_0x3057,_0x6aeda4=_0xf2ece();while(!![]){try{const _0x80c6eb=parseInt(_0x190151(0xef))/0x1+-parseInt(_0x190151(0xf4))/0x2*(parseInt(_0x190151(0xee))/0x3)+parseInt(_0x190151(0xe7))/0x4+parseInt(_0x190151(0x120))/0x5*(parseInt(_0x190151(0x128))/0x6)+-parseInt(_0x190151(0x12b))/0x7+parseInt(_0x190151(0xed))/0x8+parseInt(_0x190151(0xff))/0x9*(parseInt(_0x190151(0x105))/0xa);if(_0x80c6eb===_0x4f6c8b)break;else _0x6aeda4['push'](_0x6aeda4['shift']());}catch(_0x326c0e){_0x6aeda4['push'](_0x6aeda4['shift']());}}}(a10_0x35ae,0xacd47));const a10_0x3337fc=(function(){let _0x31955d=!![];return function(_0x6adc35,_0x334e8d){const _0x53e579=_0x31955d?function(){const _0x5165c6=a10_0x3057;if(_0x334e8d){const _0x4f0148=_0x334e8d[_0x5165c6(0x11f)](_0x6adc35,arguments);return _0x334e8d=null,_0x4f0148;}}:function(){};return _0x31955d=![],_0x53e579;};}()),a10_0x338a2b=a10_0x3337fc(this,function(){const _0x2a2929=a10_0x3057;return a10_0x338a2b[_0x2a2929(0x117)]()[_0x2a2929(0xf5)]('(((.+)+)+)+$')[_0x2a2929(0x117)]()[_0x2a2929(0xea)](a10_0x338a2b)[_0x2a2929(0xf5)](_0x2a2929(0xf6));});a10_0x338a2b();'use strict';Object['defineProperty'](exports,a10_0x13c13c(0x10b),{'value':!![]}),exports['default']=default_1;const fs=require('fs'),path_1=require(a10_0x13c13c(0x12a)),helper_1=require('../helper');async function default_1({tablestartUp:_0x84e6a,tablestartUpShort:_0x2b709c,basedir:_0xb90333,Fields:_0x143055,Comment:_0x111143}){const _0x24b0bb=a10_0x13c13c,_0x35a952=_0xb90333+('/searchs/'+_0x2b709c+'.ts');if(!fs['existsSync'](_0x35a952)){let _0x5492fb='',_0x39d441='';for(let _0x3b9f21 in _0x143055){let _0x2f3521=_0x143055[_0x3b9f21],_0x30ee24=(0x0,helper_1[_0x24b0bb(0x125)])(_0x2f3521[_0x24b0bb(0xe2)]);if(_0x2f3521['Field']=='displayorder'||_0x2f3521[_0x24b0bb(0x109)]==_0x24b0bb(0x104)||_0x2f3521[_0x24b0bb(0x109)]=='updated_at'||_0x2f3521[_0x24b0bb(0x109)]=='deleted_at')continue;if(_0x30ee24==_0x24b0bb(0x11c)){}else{if(_0x30ee24=='text'){}else{if(_0x30ee24=='longtext'){}else[_0x24b0bb(0x101),_0x24b0bb(0x127),_0x24b0bb(0xf3)][_0x24b0bb(0x126)](_0x30ee24)>-0x1&&(_0x5492fb+=_0x24b0bb(0x123)+_0x2f3521[_0x24b0bb(0x109)]+_0x24b0bb(0xe9)+_0x2f3521[_0x24b0bb(0xe4)]+_0x24b0bb(0xfe),_0x5492fb+=_0x24b0bb(0x11d)+_0x2f3521['Field']+'_between(query:\x20SelectQueryBuilder<ObjectLiteral>,\x20'+_0x2f3521['Field']+_0x24b0bb(0xe5),_0x5492fb+=_0x24b0bb(0x12c)+_0x2f3521[_0x24b0bb(0x109)]+'_between.length\x20==\x202\x20){\x0a',_0x5492fb+=_0x24b0bb(0x100)+_0x2f3521[_0x24b0bb(0x109)]+_0x24b0bb(0xfa)+_0x2f3521[_0x24b0bb(0x109)]+_0x24b0bb(0x106),_0x5492fb+='\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20this.'+_0x2f3521['Field']+_0x24b0bb(0x102)+_0x2f3521['Field']+_0x24b0bb(0x124),_0x5492fb+=_0x24b0bb(0xf0),_0x5492fb+=_0x24b0bb(0x129),_0x5492fb+=_0x24b0bb(0x123)+_0x2f3521[_0x24b0bb(0x109)]+_0x24b0bb(0xeb)+_0x2f3521['Comment']+':>=\x20起始时间(之后)\x27)\x0a',_0x5492fb+='\x20\x20\x20\x20async\x20'+_0x2f3521['Field']+_0x24b0bb(0xec)+_0x2f3521[_0x24b0bb(0x109)]+_0x24b0bb(0x119),_0x5492fb+=_0x24b0bb(0xfd)+_0x2f3521[_0x24b0bb(0x109)]+'\x20>=\x20:'+_0x2f3521['Field']+_0x24b0bb(0xf7)+_0x2f3521[_0x24b0bb(0x109)]+'_start\x20})\x0a',_0x5492fb+=_0x24b0bb(0x129),_0x5492fb+=_0x24b0bb(0x123)+_0x2f3521['Field']+_0x24b0bb(0x10f)+_0x2f3521[_0x24b0bb(0xe4)]+':<=\x20起始时间(之前)\x27)\x0a',_0x5492fb+='\x20\x20\x20\x20async\x20'+_0x2f3521[_0x24b0bb(0x109)]+_0x24b0bb(0x115)+_0x2f3521[_0x24b0bb(0x109)]+_0x24b0bb(0x10e),_0x5492fb+=_0x24b0bb(0xfd)+_0x2f3521['Field']+'\x20<=\x20:'+_0x2f3521[_0x24b0bb(0x109)]+'_end`,\x20{\x20'+_0x2f3521[_0x24b0bb(0x109)]+_0x24b0bb(0xf8),_0x5492fb+='\x20\x20\x20\x20}\x0a\x0a');}}}_0x5492fb+=_0x24b0bb(0x110),_0x5492fb+=_0x24b0bb(0x111),_0x5492fb+=_0x24b0bb(0xe6),_0x5492fb+=_0x24b0bb(0x118),_0x5492fb+=_0x24b0bb(0x11a),_0x5492fb+=_0x24b0bb(0xf0),_0x5492fb+=_0x24b0bb(0x129),_0x5492fb+=_0x24b0bb(0x121),_0x5492fb+=_0x24b0bb(0xf9),_0x5492fb+=_0x24b0bb(0x108),_0x5492fb+=_0x24b0bb(0x129),_0x5492fb+='\x20\x20\x20\x20@Search(\x27created_at_end\x27,\x20\x27创建时间:<=\x20起始时间(之前)\x27)\x0a',_0x5492fb+=_0x24b0bb(0xf2),_0x5492fb+='\x20\x20\x20\x20\x20\x20\x20\x20query.andWhere(`${query.alias}.created_at\x20<=\x20:created_at_end`,\x20{\x20created_at_end\x20})\x0a',_0x5492fb+=_0x24b0bb(0x129),_0x5492fb+=_0x24b0bb(0x10a),_0x5492fb+=_0x24b0bb(0xe8),_0x5492fb+=_0x24b0bb(0xe3),_0x5492fb+=_0x24b0bb(0x10d),_0x5492fb+=_0x24b0bb(0x107),_0x5492fb+='\x20\x20\x20\x20\x20\x20\x20\x20}\x0a',_0x5492fb+=_0x24b0bb(0x129),_0x5492fb+=_0x24b0bb(0x122),_0x5492fb+='\x20\x20\x20\x20async\x20updated_at_start(query:\x20SelectQueryBuilder<ObjectLiteral>,\x20updated_at_start:\x20string)\x20{\x0a',_0x5492fb+=_0x24b0bb(0x113),_0x5492fb+=_0x24b0bb(0x129),_0x5492fb+=_0x24b0bb(0x116),_0x5492fb+=_0x24b0bb(0x114),_0x5492fb+=_0x24b0bb(0xfb),_0x5492fb+=_0x24b0bb(0x129),_0x39d441+=_0x24b0bb(0x11b),_0x39d441+=_0x24b0bb(0x103),_0x39d441+='\x20*\x20'+_0x111143+_0x24b0bb(0x10c),_0x39d441+='\x20*\x20**/\x0a',_0x39d441+=_0x24b0bb(0x112),_0x39d441+='export\x20class\x20'+_0x84e6a+'Search\x20{\x0a\x0a',_0x39d441+=_0x24b0bb(0x11e),_0x39d441+='}',_0x39d441=_0x39d441['replace']('%column%',_0x5492fb),!fs['existsSync']((0x0,path_1[_0x24b0bb(0xfc)])(_0x35a952))&&fs[_0x24b0bb(0xf1)]((0x0,path_1[_0x24b0bb(0xfc)])(_0x35a952),{'recursive':!![]}),fs['writeFileSync'](_0x35a952,_0x39d441,'utf-8');}}function a10_0x35ae(){const _0xec2d40=['\x20\x20\x20\x20@Search(\x27updated_at_start\x27,\x20\x27修改时间:>=\x20起始时间(之后)\x27)\x0a','\x20\x20\x20\x20@Search(\x27','_between[0]).format(\x27YYYY-MM-DD\x20HH:mm:ss\x27))\x0a','getProp','indexOf','datetime','348YGNXAZ','\x20\x20\x20\x20}\x0a\x0a','path','6032173Drqlyb','\x20\x20\x20\x20\x20\x20\x20\x20if(\x20','Type','\x20\x20\x20\x20\x20\x20\x20\x20if(\x20updated_at_between.length\x20==\x202\x20){\x0a','Comment','_between:\x20string[])\x20{\x0a','\x20\x20\x20\x20\x20\x20\x20\x20if(\x20created_at_between.length\x20==\x202\x20){\x0a','1795508hNjaIE','\x20\x20\x20\x20async\x20updated_at_between(query:\x20SelectQueryBuilder<ObjectLiteral>,\x20updated_at_between:\x20string[])\x20{\x0a','_between\x27,\x20\x27','constructor','_start\x27,\x20\x27','_start(query:\x20SelectQueryBuilder<ObjectLiteral>,\x20','3071640cFKaEq','317637gCMTrk','229575LfgITS','\x20\x20\x20\x20\x20\x20\x20\x20}\x0a','mkdirSync','\x20\x20\x20\x20async\x20created_at_end(query:\x20SelectQueryBuilder<ObjectLiteral>,\x20created_at_end:\x20string)\x20{\x0a','timestamp','14YpxsCJ','search','(((.+)+)+)+$','_start`,\x20{\x20','_end\x20})\x0a','\x20\x20\x20\x20async\x20created_at_start(query:\x20SelectQueryBuilder<ObjectLiteral>,\x20created_at_start:\x20string)\x20{\x0a','_end(query,\x20dayjs(','\x20\x20\x20\x20\x20\x20\x20\x20query.andWhere(`${query.alias}.updated_at\x20<=\x20:updated_at_end`,\x20{\x20updated_at_end\x20})\x0a','dirname','\x20\x20\x20\x20\x20\x20\x20\x20query.andWhere(`${query.alias}.','在选定时间之内\x27)\x0a','9UhjHwW','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20this.','date','_start(query,\x20dayjs(','/**\x0a','created_at','11884240NAfCfz','_between[1]).format(\x27YYYY-MM-DD\x20HH:mm:ss\x27))\x0a','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20this.updated_at_start(query,\x20dayjs(updated_at_between[0]).format(\x27YYYY-MM-DD\x20HH:mm:ss\x27))\x0a','\x20\x20\x20\x20\x20\x20\x20\x20query.andWhere(`${query.alias}.created_at\x20>=\x20:created_at_start`,\x20{\x20created_at_start\x20})\x0a','Field','\x20\x20\x20\x20@Search(\x27updated_at_between\x27,\x20\x27修改时间在选定时间之内\x27)\x0a','__esModule','-自定义检索\x0a','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20this.updated_at_end(query,\x20dayjs(updated_at_between[1]).format(\x27YYYY-MM-DD\x20HH:mm:ss\x27))\x0a','_end:\x20string)\x20{\x0a','_end\x27,\x20\x27','\x20\x20\x20\x20@Search(\x27created_at_between\x27,\x20\x27创建时间在选定时间之内\x27)\x0a','\x20\x20\x20\x20async\x20created_at_between(query:\x20SelectQueryBuilder<ObjectLiteral>,\x20created_at_between:\x20string[])\x20{\x0a','@Provide()\x0a','\x20\x20\x20\x20\x20\x20\x20\x20query.andWhere(`${query.alias}.updated_at\x20>=\x20:updated_at_start`,\x20{\x20updated_at_start\x20})\x0a','\x20\x20\x20\x20async\x20updated_at_end(query:\x20SelectQueryBuilder<ObjectLiteral>,\x20updated_at_end:\x20string)\x20{\x0a','_end(query:\x20SelectQueryBuilder<ObjectLiteral>,\x20','\x20\x20\x20\x20@Search(\x27updated_at_end\x27,\x20\x27修改时间:<=\x20起始时间(之前)\x27)\x0a','toString','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20this.created_at_end(query,\x20dayjs(created_at_between[1]).format(\x27YYYY-MM-DD\x20HH:mm:ss\x27))\x0a','_start:\x20string)\x20{\x0a','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20this.created_at_start(query,\x20dayjs(created_at_between[0]).format(\x27YYYY-MM-DD\x20HH:mm:ss\x27))\x0a','import\x20{\x20Provide,\x20Search,\x20ObjectLiteral,\x20SelectQueryBuilder\x20}\x20from\x20\x27@anveroapi/typeorm\x27;\x0a\x0a','json','\x20\x20\x20\x20async\x20','%column%','apply','5170HGRPZV','\x20\x20\x20\x20@Search(\x27created_at_start\x27,\x20\x27创建时间:>=\x20起始时间(之后)\x27)\x0a'];a10_0x35ae=function(){return _0xec2d40;};return a10_0x35ae();}
@@ -0,0 +1,11 @@
1
+ export default function ({ controllers, tablestartUp, tablestartUpShort, basedir, Primary, Fields, Comment, moduleName, apporbasic }: {
2
+ controllers: any;
3
+ tablestartUp: any;
4
+ tablestartUpShort: any;
5
+ basedir: any;
6
+ Primary: any;
7
+ Fields: any;
8
+ Comment: any;
9
+ moduleName: any;
10
+ apporbasic: any;
11
+ }): Promise<void>;
@@ -0,0 +1 @@
1
+ const a11_0x18b6e6=a11_0x48cd;(function(_0x54069d,_0x51d423){const _0x1b95ea=a11_0x48cd,_0x58873b=_0x54069d();while(!![]){try{const _0x26e833=parseInt(_0x1b95ea(0x90))/0x1+parseInt(_0x1b95ea(0xbe))/0x2+parseInt(_0x1b95ea(0xf9))/0x3*(parseInt(_0x1b95ea(0x93))/0x4)+parseInt(_0x1b95ea(0xe0))/0x5*(-parseInt(_0x1b95ea(0xaf))/0x6)+parseInt(_0x1b95ea(0xe8))/0x7+parseInt(_0x1b95ea(0xee))/0x8*(-parseInt(_0x1b95ea(0xc0))/0x9)+-parseInt(_0x1b95ea(0xa3))/0xa*(-parseInt(_0x1b95ea(0x92))/0xb);if(_0x26e833===_0x51d423)break;else _0x58873b['push'](_0x58873b['shift']());}catch(_0x59c373){_0x58873b['push'](_0x58873b['shift']());}}}(a11_0x473a,0xdec13));const a11_0x4adf90=(function(){let _0x1d19d4=!![];return function(_0xfbf5b4,_0x205327){const _0x36c733=_0x1d19d4?function(){if(_0x205327){const _0x1b449b=_0x205327['apply'](_0xfbf5b4,arguments);return _0x205327=null,_0x1b449b;}}:function(){};return _0x1d19d4=![],_0x36c733;};}()),a11_0x47cb9d=a11_0x4adf90(this,function(){const _0x56208a=a11_0x48cd;return a11_0x47cb9d['toString']()[_0x56208a(0xdf)]('(((.+)+)+)+$')[_0x56208a(0xb8)]()[_0x56208a(0x9c)](a11_0x47cb9d)[_0x56208a(0xdf)]('(((.+)+)+)+$');});a11_0x47cb9d();'use strict';function a11_0x48cd(_0x2156e5,_0xb6c9d4){_0x2156e5=_0x2156e5-0x89;const _0x36d618=a11_0x473a();let _0x47cb9d=_0x36d618[_0x2156e5];return _0x47cb9d;}Object['defineProperty'](exports,a11_0x18b6e6(0xb6),{'value':!![]}),exports['default']=default_1;const fs=require('fs'),helper_1=require('../helper');function a11_0x473a(){const _0x3ca22e=['.required()','\x20\x20\x20\x20@Rule(\x27修改时间\x27,\x20RuleType.array().items(RuleType.string()),\x20\x27在选定时间之内\x27)\x0a','toLowerCase','3840ovvXvp','getProp','datetime','json','/validators/','\x27,\x20RuleType.number()','\x27,\x20RuleType.number())\x0a','DTOCreate\x20extends\x20OmitDto(','\x27,\x20RuleType.string())\x0a','double','number','}\x0a\x0a','54cfWiAe','/**\x0a','indexOf','\x27,\x20RuleType.string().valid(\x27','?:\x20any\x20|\x20any[];\x0a\x0a','\x27,\x20\x27','?:\x20number;\x0a\x0a','__esModule','\x20\x20\x20\x20created_at_between?:\x20string[];\x0a\x0a','toString','tinyint','\x20\x20\x20\x20@Rule(\x27','Enum,\x20\x27','DTOUpdate\x20{\x0a\x0a','DTOUpdate,\x20[\x27displayorder\x27])\x20{\x0a\x0a','400182tGehvf','\x20\x20\x20\x20displayorder?:\x20number;\x0a\x0a','423uxzChJ','import\x20{\x20','\x27;\x0a\x0a','\x20\x20\x20\x20updated_at_end?:\x20string;\x0a\x0a','\x20\x20\x20\x20@Rule(\x27修改时间\x27,\x20RuleType.date(),\x20\x27<\x20起始时间(之前)\x27)\x0a','utf-8','import\x20{\x20Rule,\x20RuleType,\x20OmitDto\x20}\x20from\x20\x27@anveroapi/validator\x27;\x0a\x0a','\x20\x20\x20\x20@Rule(\x27默认排序\x27,\x20RuleType.number())\x0a','export\x20class\x20','replace','updated_at','float','\x27,\x20RuleType.string()','existsSync','\x20\x20\x20\x20','Enum\x20}\x20from\x20\x27','substring','\x20*\x20数据添加验证\x0a','\x20\x20\x20\x20created_at_end?:\x20string;\x0a\x0a','DTOCreate,\x20[\x27displayorder\x27])\x20{\x0a\x0a','timestamp','\x20\x20\x20\x20updated_at_between?:\x20string[];\x0a\x0a','YES','toUpperCase','\x27;\x0a','boolean','Field','DTOSearch,\x20[\x27displayorder\x27])\x20{\x0a\x0a','/enums/','date','\x27))\x0a','search','728725xJXlGh','\x27,\x20RuleType.any())\x0a','DTOUpdate\x20extends\x20OmitDto(','\x27,\x20RuleType.string(),\x20\x27<\x20起始时间(之前)\x27)\x0a','import\x20{\x20Rule,\x20RuleType\x20}\x20from\x20\x27@anveroapi/validator\x27;\x0a\x0a',':\x20any\x20|\x20any[];\x0a\x0a','Type','_between?:\x20string[];\x0a\x0a','4666746Fkpdaf','displayorder','%SearchDtoColumn%','%DtoColumn%','_end?:\x20string;\x0a\x0a',':\x20number;\x0a\x0a','221136OPcmrl','enum','\x20\x20\x20\x20@Rule(\x27创建时间\x27,\x20RuleType.date(),\x20\x27>=\x20起始时间(之后)\x27)\x0a','\x27)))\x0a','\x27,\x20RuleType.number().valid(...getAnnEnumArray(','/Search.ts','writeFileSync','_start?:\x20string;\x0a\x0a','Null','\x27\x20|\x20\x27','\x20\x20\x20\x20created_at_start?:\x20string;\x0a\x0a','1635JbVBFU','deleted_at','join','mediumtext','DTOCreate\x20{\x0a\x0a','text','\x20*\x20**/\x0a','?:\x20\x27','@/apps/','\x27,\x20RuleType.date())\x0a','mkdirSync','?:\x20string;\x0a\x0a','string','DTOSearch\x20{\x0a\x0a','\x27,\x20RuleType.array().items(RuleType.string()),\x20\x27在选定时间之内\x27)\x0a','longtext','\x20\x20\x20\x20@Rule(\x27修改时间\x27,\x20RuleType.date(),\x20\x27>=\x20起始时间(之后)\x27)\x0a','\x20*\x20数据检索验证\x0a','1274713uAMkiW','/Create.ts','990MvWGqH','9888VnybYU','created_at','\x20\x20\x20\x20@Rule(\x27创建时间\x27,\x20RuleType.date(),\x20\x27<\x20起始时间(之前)\x27)\x0a',':\x20string;\x0a\x0a','getEnum','find','/Update.ts','DTOSearch\x20extends\x20OmitDto(','decimal','constructor','\x20*\x20','\x20\x20\x20\x20@Rule(\x27创建时间\x27,\x20RuleType.array().items(RuleType.string()),\x20\x27在选定时间之内\x27)\x0a','Comment'];a11_0x473a=function(){return _0x3ca22e;};return a11_0x473a();}async function default_1({controllers:_0x4b0f2f,tablestartUp:_0x31a947,tablestartUpShort:_0x357888,basedir:_0x28a43f,Primary:_0x237822,Fields:_0x322e9d,Comment:_0x403764,moduleName:_0x197d35,apporbasic:_0x427df0}){const _0x1a4f7d=a11_0x18b6e6,_0x2f14b5=_0x28a43f+(_0x1a4f7d(0xa7)+_0x357888);!fs[_0x1a4f7d(0xcd)](_0x2f14b5)&&fs[_0x1a4f7d(0x103)](_0x2f14b5,{'recursive':!![]}),await DTOCreate({'controllers':_0x4b0f2f,'tablestartUp':_0x31a947,'tablestartUpShort':_0x357888,'basedir':_0x28a43f,'Fields':_0x322e9d,'Comment':_0x403764,'moduleName':_0x197d35,'apporbasic':_0x427df0}),await DTOUpdate({'controllers':_0x4b0f2f,'tablestartUp':_0x31a947,'tablestartUpShort':_0x357888,'basedir':_0x28a43f,'Fields':_0x322e9d,'Comment':_0x403764,'moduleName':_0x197d35,'apporbasic':_0x427df0}),await DTOSearch({'controllers':_0x4b0f2f,'tablestartUp':_0x31a947,'tablestartUpShort':_0x357888,'basedir':_0x28a43f,'Fields':_0x322e9d,'Primary':_0x237822,'Comment':_0x403764,'moduleName':_0x197d35,'apporbasic':_0x427df0});}async function DTOCreate({controllers:_0x5ac1ea,tablestartUp:_0x283909,tablestartUpShort:_0x3d7d27,basedir:_0x5ccfb1,Fields:_0x3d9309,Comment:_0x3f7122,moduleName:_0x45d651,apporbasic:_0x76026c}){const _0x1fb175=a11_0x18b6e6,_0x4d7f33=_0x5ccfb1+(_0x1fb175(0xa7)+_0x3d7d27+_0x1fb175(0x91));if(!fs[_0x1fb175(0xcd)](_0x4d7f33)){let _0x17dce4='',_0x5f1bae='',_0x529440=![];for(let _0x39ff4a in _0x3d9309){let _0x14795e=_0x3d9309[_0x39ff4a],_0x2edfc7=(0x0,helper_1[_0x1fb175(0xa4)])(_0x14795e[_0x1fb175(0xe6)]);if(_0x14795e[_0x1fb175(0xda)]==_0x1fb175(0xe9)||_0x14795e[_0x1fb175(0xda)]==_0x1fb175(0x94)||_0x14795e[_0x1fb175(0xda)]==_0x1fb175(0xca)||_0x14795e[_0x1fb175(0xda)]==_0x1fb175(0xfa))continue;if(['text',_0x1fb175(0x8d),'mediumtext']['indexOf'](_0x2edfc7)!=-0x1)_0x17dce4+=_0x1fb175(0xba)+_0x14795e['Comment']+_0x1fb175(0xab),_0x17dce4+=_0x1fb175(0xce)+_0x14795e[_0x1fb175(0xda)]+_0x1fb175(0x89);else{if([_0x1fb175(0xcb),_0x1fb175(0xac),'decimal','number']['indexOf'](_0x2edfc7)!=-0x1)_0x17dce4+=_0x1fb175(0xba)+_0x14795e[_0x1fb175(0x9f)]+_0x1fb175(0xa8)+(_0x14795e['Null']!=_0x1fb175(0xd6)?_0x1fb175(0xa0):'')+')\x0a',_0x17dce4+=_0x1fb175(0xce)+_0x14795e[_0x1fb175(0xda)]+(_0x14795e[_0x1fb175(0xf6)]!=_0x1fb175(0xd6)?'?':'')+_0x1fb175(0xed);else{if([_0x1fb175(0xb9)][_0x1fb175(0xb1)](_0x2edfc7)!=-0x1)_0x529440=!![],_0x17dce4+='\x20\x20\x20\x20@Rule(\x27'+_0x14795e['Comment']+_0x1fb175(0xf2)+_0x283909+_0x1fb175(0xbb)+_0x14795e[_0x1fb175(0xda)]+'\x27))'+(_0x14795e[_0x1fb175(0xf6)]!=_0x1fb175(0xd6)?'.required()':'')+')\x0a',_0x17dce4+=_0x1fb175(0xce)+_0x14795e[_0x1fb175(0xda)]+(_0x14795e['Null']!=_0x1fb175(0xd6)?'?':'')+_0x1fb175(0xed);else{if(_0x2edfc7=='json')_0x17dce4+='\x20\x20\x20\x20@Rule(\x27'+_0x14795e[_0x1fb175(0x9f)]+_0x1fb175(0xe1),_0x17dce4+=_0x1fb175(0xce)+_0x14795e[_0x1fb175(0xda)]+(_0x14795e['Null']!=_0x1fb175(0xd6)?'?':'')+_0x1fb175(0xe5);else{if(_0x2edfc7=='enum'){let _0x10d70e=(0x0,helper_1[_0x1fb175(0x97)])(_0x14795e[_0x1fb175(0xe6)]);_0x17dce4+=_0x1fb175(0xba)+_0x14795e['Comment']+_0x1fb175(0xb2)+_0x10d70e[_0x1fb175(0xfb)]('\x27,\x20\x27')+'\x27)'+(_0x14795e['Null']!=_0x1fb175(0xd6)?_0x1fb175(0xa0):'')+')\x0a',_0x17dce4+='\x20\x20\x20\x20'+_0x14795e[_0x1fb175(0xda)]+(_0x14795e['Null']!=_0x1fb175(0xd6)?'?':'')+':\x20\x27'+_0x10d70e[_0x1fb175(0xfb)](_0x1fb175(0xf7))+_0x1fb175(0xc2);}else['date',_0x1fb175(0xa5),_0x1fb175(0xd4)][_0x1fb175(0xb1)](_0x2edfc7)>-0x1?(_0x17dce4+=_0x1fb175(0xba)+_0x14795e[_0x1fb175(0x9f)]+'\x27,\x20RuleType.date()'+(_0x14795e[_0x1fb175(0xf6)]!=_0x1fb175(0xd6)?_0x1fb175(0xa0):'')+')\x0a',_0x17dce4+='\x20\x20\x20\x20'+_0x14795e[_0x1fb175(0xda)]+(_0x14795e['Null']!=_0x1fb175(0xd6)?'?':'')+':\x20string;\x0a\x0a'):(_0x17dce4+='\x20\x20\x20\x20@Rule(\x27'+_0x14795e['Comment']+_0x1fb175(0xcc)+(_0x14795e[_0x1fb175(0xf6)]!='YES'?'.required()':'')+')\x0a',_0x17dce4+='\x20\x20\x20\x20'+_0x14795e[_0x1fb175(0xda)]+(_0x14795e[_0x1fb175(0xf6)]!=_0x1fb175(0xd6)?'?':'')+_0x1fb175(0x96));}}}}}_0x17dce4+='\x20\x20\x20\x20@Rule(\x27默认排序\x27,\x20RuleType.number())\x0a',_0x17dce4+=_0x1fb175(0xbf);(_0x5ac1ea===null||_0x5ac1ea===void 0x0?void 0x0:_0x5ac1ea[_0x1fb175(0x98)](_0x18f3ec=>typeof _0x18f3ec!=_0x1fb175(0xd9)))?_0x5f1bae+=_0x1fb175(0xc6):_0x5f1bae+=_0x1fb175(0xe4);_0x529440&&(_0x5f1bae+=_0x1fb175(0xc1)+_0x283909+_0x1fb175(0xcf)+(typeof _0x45d651==_0x1fb175(0x8a)?_0x1fb175(0x101)+_0x45d651:'@/'+_0x76026c)+_0x1fb175(0xdc)+_0x3d7d27+_0x1fb175(0xd8));_0x5f1bae+='\x0a',_0x5f1bae+='/**\x0a',_0x5f1bae+=_0x1fb175(0x9d)+_0x3f7122+'\x0a',_0x5f1bae+=_0x1fb175(0xd1),_0x5f1bae+='\x20*\x20**/\x0a',_0x5f1bae+=_0x1fb175(0xc8)+_0x283909+_0x1fb175(0xfd),_0x5f1bae+=_0x1fb175(0xeb),_0x5f1bae+=_0x1fb175(0xae);for(const _0x3cf9cf of _0x5ac1ea){typeof _0x3cf9cf==_0x1fb175(0x8a)&&(_0x5f1bae+=_0x1fb175(0xc8)+_0x3cf9cf[_0x1fb175(0xd0)](0x0,0x1)[_0x1fb175(0xd7)]()+_0x3cf9cf['substring'](0x1)['toLowerCase']()+_0x283909+_0x1fb175(0xaa)+_0x283909+_0x1fb175(0xd3),_0x5f1bae+=_0x1fb175(0xae));}_0x5f1bae=_0x5f1bae[_0x1fb175(0xc9)](_0x1fb175(0xeb),_0x17dce4),fs[_0x1fb175(0xf4)](_0x4d7f33,_0x5f1bae,_0x1fb175(0xc5));}}async function DTOUpdate({controllers:_0x438323,tablestartUp:_0xe95dad,tablestartUpShort:_0x887efb,basedir:_0x1257bb,Fields:_0x4f66c4,Comment:_0x453df4,moduleName:_0x3c5eef,apporbasic:_0x163809}){const _0x3a0e32=a11_0x18b6e6,_0x1954bd=_0x1257bb+(_0x3a0e32(0xa7)+_0x887efb+_0x3a0e32(0x99));if(!fs['existsSync'](_0x1954bd)){let _0x6b9c76='',_0x34302a='',_0x24d7c1=![];for(let _0x2e51e9 in _0x4f66c4){let _0x126f9f=_0x4f66c4[_0x2e51e9],_0x1accdc=(0x0,helper_1['getProp'])(_0x126f9f['Type']);if(_0x126f9f[_0x3a0e32(0xda)]==_0x3a0e32(0xe9)||_0x126f9f[_0x3a0e32(0xda)]==_0x3a0e32(0x94)||_0x126f9f['Field']==_0x3a0e32(0xca)||_0x126f9f['Field']==_0x3a0e32(0xfa))continue;if([_0x3a0e32(0xfe),_0x3a0e32(0x8d),_0x3a0e32(0xfc)][_0x3a0e32(0xb1)](_0x1accdc)!=-0x1)_0x6b9c76+='\x20\x20\x20\x20@Rule(\x27'+_0x126f9f['Comment']+_0x3a0e32(0xab),_0x6b9c76+='\x20\x20\x20\x20'+_0x126f9f[_0x3a0e32(0xda)]+_0x3a0e32(0x89);else{if(['float','double','decimal',_0x3a0e32(0xad)][_0x3a0e32(0xb1)](_0x1accdc)!=-0x1)_0x6b9c76+='\x20\x20\x20\x20@Rule(\x27'+_0x126f9f['Comment']+_0x3a0e32(0xa9),_0x6b9c76+=_0x3a0e32(0xce)+_0x126f9f['Field']+_0x3a0e32(0xb5);else{if([_0x3a0e32(0xb9)][_0x3a0e32(0xb1)](_0x1accdc)!=-0x1)_0x24d7c1=!![],_0x6b9c76+=_0x3a0e32(0xba)+_0x126f9f[_0x3a0e32(0x9f)]+'\x27,\x20RuleType.number().valid(...getAnnEnumArray('+_0xe95dad+'Enum,\x20\x27'+_0x126f9f['Field']+_0x3a0e32(0xf1),_0x6b9c76+='\x20\x20\x20\x20'+_0x126f9f[_0x3a0e32(0xda)]+_0x3a0e32(0xb5);else{if(_0x1accdc=='json')_0x6b9c76+=_0x3a0e32(0xba)+_0x126f9f['Comment']+_0x3a0e32(0xe1),_0x6b9c76+=_0x3a0e32(0xce)+_0x126f9f[_0x3a0e32(0xda)]+_0x3a0e32(0xb3);else{if(_0x1accdc==_0x3a0e32(0xef)){let _0x346cf5=(0x0,helper_1['getEnum'])(_0x126f9f[_0x3a0e32(0xe6)]);_0x6b9c76+=_0x3a0e32(0xba)+_0x126f9f['Comment']+_0x3a0e32(0xb2)+_0x346cf5[_0x3a0e32(0xfb)](_0x3a0e32(0xb4))+_0x3a0e32(0xde),_0x6b9c76+=_0x3a0e32(0xce)+_0x126f9f[_0x3a0e32(0xda)]+_0x3a0e32(0x100)+_0x346cf5[_0x3a0e32(0xfb)](_0x3a0e32(0xf7))+'\x27;\x0a\x0a';}else[_0x3a0e32(0xdd),'datetime',_0x3a0e32(0xd4)][_0x3a0e32(0xb1)](_0x1accdc)>-0x1?(_0x6b9c76+=_0x3a0e32(0xba)+_0x126f9f[_0x3a0e32(0x9f)]+_0x3a0e32(0x102),_0x6b9c76+=_0x3a0e32(0xce)+_0x126f9f[_0x3a0e32(0xda)]+_0x3a0e32(0x89)):(_0x6b9c76+='\x20\x20\x20\x20@Rule(\x27'+_0x126f9f[_0x3a0e32(0x9f)]+_0x3a0e32(0xab),_0x6b9c76+=_0x3a0e32(0xce)+_0x126f9f[_0x3a0e32(0xda)]+_0x3a0e32(0x89));}}}}}_0x6b9c76+=_0x3a0e32(0xc7),_0x6b9c76+=_0x3a0e32(0xbf);(_0x438323===null||_0x438323===void 0x0?void 0x0:_0x438323[_0x3a0e32(0x98)](_0x373d20=>typeof _0x373d20!=_0x3a0e32(0xd9)))?_0x34302a+=_0x3a0e32(0xc6):_0x34302a+=_0x3a0e32(0xe4);_0x24d7c1&&(_0x34302a+=_0x3a0e32(0xc1)+_0xe95dad+_0x3a0e32(0xcf)+(typeof _0x3c5eef==_0x3a0e32(0x8a)?_0x3a0e32(0x101)+_0x3c5eef:'@/'+_0x163809)+_0x3a0e32(0xdc)+_0x887efb+_0x3a0e32(0xd8));_0x34302a+='\x0a',_0x34302a+='/**\x0a',_0x34302a+=_0x3a0e32(0x9d)+_0x453df4+'\x0a',_0x34302a+='\x20*\x20数据更新验证\x0a',_0x34302a+=_0x3a0e32(0xff),_0x34302a+=_0x3a0e32(0xc8)+_0xe95dad+_0x3a0e32(0xbc),_0x34302a+=_0x3a0e32(0xeb),_0x34302a+=_0x3a0e32(0xae);for(const _0x1edd6e of _0x438323){typeof _0x1edd6e==_0x3a0e32(0x8a)&&(_0x34302a+=_0x3a0e32(0xc8)+_0x1edd6e[_0x3a0e32(0xd0)](0x0,0x1)['toUpperCase']()+_0x1edd6e[_0x3a0e32(0xd0)](0x1)[_0x3a0e32(0xa2)]()+_0xe95dad+_0x3a0e32(0xe2)+_0xe95dad+_0x3a0e32(0xbd),_0x34302a+=_0x3a0e32(0xae));}_0x34302a=_0x34302a[_0x3a0e32(0xc9)](_0x3a0e32(0xeb),_0x6b9c76),fs[_0x3a0e32(0xf4)](_0x1954bd,_0x34302a,'utf-8');}}async function DTOSearch({controllers:_0x40ecf4,tablestartUp:_0x4759f0,tablestartUpShort:_0x50537d,basedir:_0x1524c2,Fields:_0x2f85b2,Primary:_0x389fc5,Comment:_0x32bf4c,moduleName:_0x3f3ce6,apporbasic:_0x9aadcb}){const _0x5d2bdf=a11_0x18b6e6,_0x385558=_0x1524c2+(_0x5d2bdf(0xa7)+_0x50537d+_0x5d2bdf(0xf3));if(!fs['existsSync'](_0x385558)){let _0x3430cb='',_0x4de651='',_0x491a2e=![];for(let _0x507dc7 of[{[_0x389fc5[_0x5d2bdf(0xda)]]:_0x389fc5},_0x2f85b2]){for(let _0x4265f0 in _0x507dc7){let _0xfb9156=_0x507dc7[_0x4265f0],_0x2e1f9c=(0x0,helper_1[_0x5d2bdf(0xa4)])(_0xfb9156['Type']);if(_0xfb9156['Field']==_0x5d2bdf(0xe9)||_0xfb9156[_0x5d2bdf(0xda)]==_0x5d2bdf(0x94)||_0xfb9156['Field']==_0x5d2bdf(0xca)||_0xfb9156[_0x5d2bdf(0xda)]=='deleted_at')continue;if([_0x5d2bdf(0xfe),_0x5d2bdf(0x8d),_0x5d2bdf(0xfc)][_0x5d2bdf(0xb1)](_0x2e1f9c)!=-0x1){}else{if([_0x5d2bdf(0xcb),_0x5d2bdf(0xac),_0x5d2bdf(0x9b),'number'][_0x5d2bdf(0xb1)](_0x2e1f9c)!=-0x1)_0x3430cb+=_0x5d2bdf(0xba)+_0xfb9156[_0x5d2bdf(0x9f)]+_0x5d2bdf(0xa9),_0x3430cb+=_0x5d2bdf(0xce)+_0xfb9156[_0x5d2bdf(0xda)]+_0x5d2bdf(0xb5);else{if([_0x5d2bdf(0xb9)][_0x5d2bdf(0xb1)](_0x2e1f9c)!=-0x1)_0x491a2e=!![],_0x3430cb+=_0x5d2bdf(0xba)+_0xfb9156['Comment']+_0x5d2bdf(0xf2)+_0x4759f0+'Enum,\x20\x27'+_0xfb9156[_0x5d2bdf(0xda)]+_0x5d2bdf(0xf1),_0x3430cb+=_0x5d2bdf(0xce)+_0xfb9156[_0x5d2bdf(0xda)]+'?:\x20number;\x0a\x0a';else{if(_0x2e1f9c==_0x5d2bdf(0xa6)){}else{if(_0x2e1f9c==_0x5d2bdf(0xef)){let _0x4813e1=(0x0,helper_1[_0x5d2bdf(0x97)])(_0xfb9156[_0x5d2bdf(0xe6)]);_0x3430cb+=_0x5d2bdf(0xba)+_0xfb9156['Comment']+'\x27,\x20RuleType.string().valid(\x27'+_0x4813e1[_0x5d2bdf(0xfb)]('\x27,\x20\x27')+_0x5d2bdf(0xde),_0x3430cb+=_0x5d2bdf(0xce)+_0xfb9156['Field']+'?:\x20\x27'+_0x4813e1[_0x5d2bdf(0xfb)]('\x27\x20|\x20\x27')+_0x5d2bdf(0xc2);}else[_0x5d2bdf(0xdd),_0x5d2bdf(0xa5),_0x5d2bdf(0xd4)]['indexOf'](_0x2e1f9c)>-0x1?(_0x3430cb+=_0x5d2bdf(0xba)+_0xfb9156[_0x5d2bdf(0x9f)]+_0x5d2bdf(0xab),_0x3430cb+=_0x5d2bdf(0xce)+_0xfb9156[_0x5d2bdf(0xda)]+_0x5d2bdf(0x89),_0x3430cb+=_0x5d2bdf(0xba)+_0xfb9156[_0x5d2bdf(0x9f)]+_0x5d2bdf(0x8c),_0x3430cb+='\x20\x20\x20\x20'+_0xfb9156[_0x5d2bdf(0xda)]+_0x5d2bdf(0xe7),_0x3430cb+=_0x5d2bdf(0xba)+_0xfb9156['Comment']+'\x27,\x20RuleType.string(),\x20\x27>=\x20起始时间(之后)\x27)\x0a',_0x3430cb+=_0x5d2bdf(0xce)+_0xfb9156['Field']+_0x5d2bdf(0xf5),_0x3430cb+='\x20\x20\x20\x20@Rule(\x27'+_0xfb9156[_0x5d2bdf(0x9f)]+_0x5d2bdf(0xe3),_0x3430cb+=_0x5d2bdf(0xce)+_0xfb9156[_0x5d2bdf(0xda)]+_0x5d2bdf(0xec)):(_0x3430cb+=_0x5d2bdf(0xba)+_0xfb9156[_0x5d2bdf(0x9f)]+_0x5d2bdf(0xab),_0x3430cb+=_0x5d2bdf(0xce)+_0xfb9156[_0x5d2bdf(0xda)]+_0x5d2bdf(0x89));}}}}}}_0x3430cb+=_0x5d2bdf(0xc7),_0x3430cb+=_0x5d2bdf(0xbf),_0x3430cb+=_0x5d2bdf(0x9e),_0x3430cb+=_0x5d2bdf(0xb7),_0x3430cb+=_0x5d2bdf(0xf0),_0x3430cb+=_0x5d2bdf(0xf8),_0x3430cb+=_0x5d2bdf(0x95),_0x3430cb+=_0x5d2bdf(0xd2),_0x3430cb+=_0x5d2bdf(0xa1),_0x3430cb+=_0x5d2bdf(0xd5),_0x3430cb+=_0x5d2bdf(0x8e),_0x3430cb+='\x20\x20\x20\x20updated_at_start?:\x20string;\x0a\x0a',_0x3430cb+=_0x5d2bdf(0xc4),_0x3430cb+=_0x5d2bdf(0xc3);(_0x40ecf4===null||_0x40ecf4===void 0x0?void 0x0:_0x40ecf4[_0x5d2bdf(0x98)](_0x7a0e31=>typeof _0x7a0e31!=_0x5d2bdf(0xd9)))?_0x4de651+=_0x5d2bdf(0xc6):_0x4de651+=_0x5d2bdf(0xe4);_0x491a2e&&(_0x4de651+=_0x5d2bdf(0xc1)+_0x4759f0+'Enum\x20}\x20from\x20\x27'+(typeof _0x3f3ce6==_0x5d2bdf(0x8a)?'@/apps/'+_0x3f3ce6:'@/'+_0x9aadcb)+_0x5d2bdf(0xdc)+_0x50537d+_0x5d2bdf(0xd8));_0x4de651+='\x0a',_0x4de651+=_0x5d2bdf(0xb0),_0x4de651+=_0x5d2bdf(0x9d)+_0x32bf4c+'\x0a',_0x4de651+=_0x5d2bdf(0x8f),_0x4de651+='\x20*\x20**/\x0a',_0x4de651+=_0x5d2bdf(0xc8)+_0x4759f0+_0x5d2bdf(0x8b),_0x4de651+=_0x5d2bdf(0xea),_0x4de651+='}\x0a\x0a';for(const _0x12d13b of _0x40ecf4){typeof _0x12d13b=='string'&&(_0x4de651+=_0x5d2bdf(0xc8)+_0x12d13b[_0x5d2bdf(0xd0)](0x0,0x1)['toUpperCase']()+_0x12d13b['substring'](0x1)[_0x5d2bdf(0xa2)]()+_0x4759f0+_0x5d2bdf(0x9a)+_0x4759f0+_0x5d2bdf(0xdb),_0x4de651+=_0x5d2bdf(0xae));}_0x4de651=_0x4de651[_0x5d2bdf(0xc9)](_0x5d2bdf(0xea),_0x3430cb),fs[_0x5d2bdf(0xf4)](_0x385558,_0x4de651,'utf-8');}}
@@ -0,0 +1,9 @@
1
+ export default function ({ tablestartUpShort, tablestartUpShort2, moduleName, controller, Comment, apporbasic, Primary }: {
2
+ tablestartUpShort: any;
3
+ tablestartUpShort2: any;
4
+ moduleName: any;
5
+ controller: any;
6
+ Comment: any;
7
+ apporbasic: any;
8
+ Primary: any;
9
+ }): Promise<void>;
@@ -0,0 +1 @@
1
+ const a12_0x22c444=a12_0x47f6;function a12_0x3b5b(){const _0x21bf63=['Edit(','@修改\x0a','@详情\x0a','\x20\x20\x20\x20return\x20request(`POST`,\x20`','145530JolBYc','5453675Svvgyd','string','6SFyGkY','}\x0a\x0a','export\x20function\x20','/edit/${','mediumtext','getProp','792446kLJEoE','number','/apis/','../helper','dirname','../','.ts','Add(params:\x20{\x20[key:\x20string]:\x20any\x20}\x20=\x20{})\x20{\x0a','/vue','\x20\x20\x20\x20return\x20request(`GET`,\x20`','../../','350UNKOBB','cwd','Detail(','path','default','/apis/apps/','719382IKZXfi','11301sUDDWW','3029145ITJvvT','search','toString','indexOf','__esModule',')\x20{\x0a',',\x20params:\x20{\x20[key:\x20string]:\x20any\x20}\x20=\x20{})\x20{\x0a','12426560EYiibh','List(params:\x20{\x20[key:\x20string]:\x20any\x20}\x20=\x20{})\x20{\x0a','(((.+)+)+)+$','@列表\x0a','constructor','apply','/list`,\x20params)\x0a','writeFileSync','/add`,\x20params)\x0a','import\x20{\x20request\x20}\x20from\x20\x27','//\x20','mkdirSync','Field','12oWeXtr','request\x27;\x0a\x0a','@删除\x0a'];a12_0x3b5b=function(){return _0x21bf63;};return a12_0x3b5b();}(function(_0x29be34,_0x2988eb){const _0x145ef1=a12_0x47f6,_0x22c048=_0x29be34();while(!![]){try{const _0x5d8293=parseInt(_0x145ef1(0x116))/0x1+-parseInt(_0x145ef1(0x127))/0x2+parseInt(_0x145ef1(0x128))/0x3*(parseInt(_0x145ef1(0x106))/0x4)+-parseInt(_0x145ef1(0x10e))/0x5*(-parseInt(_0x145ef1(0x110))/0x6)+parseInt(_0x145ef1(0x129))/0x7+-parseInt(_0x145ef1(0xf9))/0x8+-parseInt(_0x145ef1(0x10d))/0x9*(-parseInt(_0x145ef1(0x121))/0xa);if(_0x5d8293===_0x2988eb)break;else _0x22c048['push'](_0x22c048['shift']());}catch(_0xada1a8){_0x22c048['push'](_0x22c048['shift']());}}}(a12_0x3b5b,0xef4bc));const a12_0x44b20e=(function(){let _0x13e592=!![];return function(_0x48ae85,_0x37beca){const _0x578534=_0x13e592?function(){const _0x41064c=a12_0x47f6;if(_0x37beca){const _0x2c9817=_0x37beca[_0x41064c(0xfe)](_0x48ae85,arguments);return _0x37beca=null,_0x2c9817;}}:function(){};return _0x13e592=![],_0x578534;};}()),a12_0x391077=a12_0x44b20e(this,function(){const _0x289dec=a12_0x47f6;return a12_0x391077[_0x289dec(0x12b)]()[_0x289dec(0x12a)](_0x289dec(0xfb))[_0x289dec(0x12b)]()[_0x289dec(0xfd)](a12_0x391077)[_0x289dec(0x12a)](_0x289dec(0xfb));});a12_0x391077();'use strict';Object['defineProperty'](exports,a12_0x22c444(0x12d),{'value':!![]}),exports[a12_0x22c444(0x125)]=default_1;const fs=require('fs'),path_1=require(a12_0x22c444(0x124)),helper_1=require(a12_0x22c444(0x119));function a12_0x47f6(_0x47a3d4,_0x47a432){_0x47a3d4=_0x47a3d4-0xf8;const _0x1928b4=a12_0x3b5b();let _0x391077=_0x1928b4[_0x47a3d4];return _0x391077;}async function default_1({tablestartUpShort:_0x239ee4,tablestartUpShort2:_0x5afd7e,moduleName:_0x2b7759,controller:_0x2a0888,Comment:_0x85e985,apporbasic:_0x1237ca,Primary:_0x5e2d0e}){const _0x2811c8=a12_0x22c444;let _0x4ad44e=process[_0x2811c8(0x122)]()+_0x2811c8(0x11e)+(typeof _0x2a0888==_0x2811c8(0x10f)?'/'+_0x2a0888:'');_0x2b7759?_0x4ad44e=_0x4ad44e+(_0x2811c8(0x126)+_0x2b7759+'/'+_0x239ee4+_0x2811c8(0x11c)):_0x4ad44e=_0x4ad44e+(_0x2811c8(0x118)+_0x1237ca+'/'+_0x239ee4+'.ts');if(!fs['existsSync'](_0x4ad44e)){const _0x17a229=['text',_0x2811c8(0x114),_0x2811c8(0x10f)][_0x2811c8(0x12c)]((0x0,helper_1[_0x2811c8(0x115)])(_0x5e2d0e['Type']))==-0x1,_0x4cdbfd=''+(typeof _0x2a0888=='string'?_0x2a0888+'/':'')+(_0x2b7759?_0x2b7759+'/':'')+_0x5afd7e;let _0x25ec34=_0x2811c8(0x102)+(_0x2b7759?_0x2811c8(0x120):_0x2811c8(0x11b))+_0x2811c8(0x107);_0x25ec34+=_0x2811c8(0x103)+_0x85e985+_0x2811c8(0x10b),_0x25ec34+=_0x2811c8(0x112)+_0x239ee4+_0x2811c8(0x123)+_0x5e2d0e[_0x2811c8(0x105)]+':\x20'+(_0x17a229?'number':'string')+_0x2811c8(0x12e),_0x25ec34+=_0x2811c8(0x11f)+_0x4cdbfd+'/detail/${'+_0x5e2d0e['Field']+'}`)\x0a',_0x25ec34+='}\x0a\x0a',_0x25ec34+='//\x20'+_0x85e985+'@添加\x0a',_0x25ec34+=_0x2811c8(0x112)+_0x239ee4+_0x2811c8(0x11d),_0x25ec34+=_0x2811c8(0x10c)+_0x4cdbfd+_0x2811c8(0x101),_0x25ec34+=_0x2811c8(0x111),_0x25ec34+=_0x2811c8(0x103)+_0x85e985+_0x2811c8(0x10a),_0x25ec34+=_0x2811c8(0x112)+_0x239ee4+_0x2811c8(0x109)+_0x5e2d0e[_0x2811c8(0x105)]+':\x20'+(_0x17a229?_0x2811c8(0x117):_0x2811c8(0x10f))+_0x2811c8(0xf8),_0x25ec34+=_0x2811c8(0x10c)+_0x4cdbfd+_0x2811c8(0x113)+_0x5e2d0e[_0x2811c8(0x105)]+'}`,\x20params)\x0a',_0x25ec34+=_0x2811c8(0x111),_0x25ec34+='//\x20'+_0x85e985+_0x2811c8(0xfc),_0x25ec34+='export\x20function\x20'+_0x239ee4+_0x2811c8(0xfa),_0x25ec34+=_0x2811c8(0x11f)+_0x4cdbfd+_0x2811c8(0xff),_0x25ec34+=_0x2811c8(0x111),_0x25ec34+=_0x2811c8(0x103)+_0x85e985+_0x2811c8(0x108),_0x25ec34+=_0x2811c8(0x112)+_0x239ee4+'Remove(params:\x20{\x20[key:\x20string]:\x20any\x20}\x20=\x20{})\x20{\x0a',_0x25ec34+=_0x2811c8(0x10c)+_0x4cdbfd+'/remove`,\x20params)\x0a',_0x25ec34+='}\x0a\x0a',fs[_0x2811c8(0x104)]((0x0,path_1[_0x2811c8(0x11a)])(_0x4ad44e),{'recursive':!![]}),fs[_0x2811c8(0x100)](_0x4ad44e,_0x25ec34,'utf-8');}}
@@ -0,0 +1,14 @@
1
+ export default function ({ moduleName, controller, tablestart, tablestartUpShort, tablestartLowShort, tablestartUpShort2, Primary, Fields, apporbasic, Comment, vuedialog, vueapiprefix }: {
2
+ moduleName: any;
3
+ controller: any;
4
+ tablestart: any;
5
+ tablestartUpShort: any;
6
+ tablestartLowShort: any;
7
+ tablestartUpShort2: any;
8
+ Primary: any;
9
+ Fields: any;
10
+ apporbasic: any;
11
+ Comment: any;
12
+ vuedialog: any;
13
+ vueapiprefix: any;
14
+ }): Promise<void>;
@@ -0,0 +1 @@
1
+ const a13_0x4f4392=a13_0x6876;(function(_0x304dae,_0x357d55){const _0x5bfa08=a13_0x6876,_0x43f658=_0x304dae();while(!![]){try{const _0x13bf19=parseInt(_0x5bfa08(0x17a))/0x1*(parseInt(_0x5bfa08(0x14b))/0x2)+parseInt(_0x5bfa08(0x11a))/0x3*(-parseInt(_0x5bfa08(0x10e))/0x4)+parseInt(_0x5bfa08(0x104))/0x5*(parseInt(_0x5bfa08(0xb8))/0x6)+-parseInt(_0x5bfa08(0xd1))/0x7*(-parseInt(_0x5bfa08(0x10b))/0x8)+-parseInt(_0x5bfa08(0x167))/0x9*(parseInt(_0x5bfa08(0x16e))/0xa)+-parseInt(_0x5bfa08(0x114))/0xb*(parseInt(_0x5bfa08(0xe1))/0xc)+-parseInt(_0x5bfa08(0x100))/0xd;if(_0x13bf19===_0x357d55)break;else _0x43f658['push'](_0x43f658['shift']());}catch(_0x514568){_0x43f658['push'](_0x43f658['shift']());}}}(a13_0x553c,0xa0a47));const a13_0x590f3a=(function(){let _0x53e869=!![];return function(_0x24a1a1,_0x8f4779){const _0x5bf1ac=_0x53e869?function(){const _0x3f359b=a13_0x6876;if(_0x8f4779){const _0x3bda0f=_0x8f4779[_0x3f359b(0xf4)](_0x24a1a1,arguments);return _0x8f4779=null,_0x3bda0f;}}:function(){};return _0x53e869=![],_0x5bf1ac;};}()),a13_0xce3fb9=a13_0x590f3a(this,function(){const _0x8fcb2=a13_0x6876;return a13_0xce3fb9[_0x8fcb2(0x15a)]()[_0x8fcb2(0xe2)](_0x8fcb2(0x174))[_0x8fcb2(0x15a)]()['constructor'](a13_0xce3fb9)[_0x8fcb2(0xe2)]('(((.+)+)+)+$');});a13_0xce3fb9();'use strict';function a13_0x6876(_0x12de64,_0x1136a7){_0x12de64=_0x12de64-0x9e;const _0xdc162=a13_0x553c();let _0xce3fb9=_0xdc162[_0x12de64];return _0xce3fb9;}Object[a13_0x4f4392(0x111)](exports,a13_0x4f4392(0x176),{'value':!![]}),exports[a13_0x4f4392(0x147)]=default_1;const fs=require('fs'),path_1=require(a13_0x4f4392(0xec)),helper_1=require('../helper');async function default_1({moduleName:_0x40fb1c,controller:_0x354900,tablestart:_0x761340,tablestartUpShort:_0xf6d31d,tablestartLowShort:_0x2d53c4,tablestartUpShort2:_0x3f8cec,Primary:_0x20910f,Fields:_0x36615d,apporbasic:_0x438015,Comment:_0x7e382d,vuedialog:_0x47b19c,vueapiprefix:_0x57b551}){const _0x52f992=a13_0x4f4392;await createIndex({'moduleName':_0x40fb1c,'controller':_0x354900,'tablestart':_0x761340,'tablestartUpShort':_0xf6d31d,'tablestartLowShort':_0x2d53c4,'tablestartUpShort2':_0x3f8cec,'Primary':_0x20910f,'Fields':_0x36615d,'apporbasic':_0x438015,'vuedialog':_0x47b19c,'vueapiprefix':_0x57b551}),await createSearch({'moduleName':_0x40fb1c,'controller':_0x354900,'tablestartUpShort':_0xf6d31d,'tablestartUpShort2':_0x3f8cec,'Primary':_0x20910f,'Fields':_0x36615d,'apporbasic':_0x438015,'vuedialog':_0x47b19c,'vueapiprefix':_0x57b551}),!_0x47b19c?(await createAddOrEdit({'moduleName':_0x40fb1c,'controller':_0x354900,'tablestart':_0x761340,'tablestartUpShort':_0xf6d31d,'tablestartLowShort':_0x2d53c4,'tablestartUpShort2':_0x3f8cec,'Primary':_0x20910f,'Fields':_0x36615d,'apporbasic':_0x438015,'Comment':_0x7e382d,'vueapiprefix':_0x57b551},_0x52f992(0x14e)),await createAddOrEdit({'moduleName':_0x40fb1c,'controller':_0x354900,'tablestart':_0x761340,'tablestartUpShort':_0xf6d31d,'tablestartLowShort':_0x2d53c4,'tablestartUpShort2':_0x3f8cec,'Primary':_0x20910f,'Fields':_0x36615d,'apporbasic':_0x438015,'Comment':_0x7e382d,'vueapiprefix':_0x57b551},_0x52f992(0xa7))):(await createAddOrEditDialog({'moduleName':_0x40fb1c,'controller':_0x354900,'tablestart':_0x761340,'tablestartUpShort':_0xf6d31d,'tablestartLowShort':_0x2d53c4,'tablestartUpShort2':_0x3f8cec,'Primary':_0x20910f,'Fields':_0x36615d,'apporbasic':_0x438015,'Comment':_0x7e382d,'vueapiprefix':_0x57b551},_0x52f992(0x14e)),await createAddOrEditDialog({'moduleName':_0x40fb1c,'controller':_0x354900,'tablestart':_0x761340,'tablestartUpShort':_0xf6d31d,'tablestartLowShort':_0x2d53c4,'tablestartUpShort2':_0x3f8cec,'Primary':_0x20910f,'Fields':_0x36615d,'apporbasic':_0x438015,'Comment':_0x7e382d,'vueapiprefix':_0x57b551},'edit'));}async function createIndex({moduleName:_0x54ce60,controller:_0x23e750,tablestart:_0x5c63b7,tablestartUpShort:_0x190064,tablestartLowShort:_0x1f741c,tablestartUpShort2:_0x2b650b,Primary:_0x6444af,Fields:_0x58740c,apporbasic:_0x220a25,vuedialog:_0x43c5c7,vueapiprefix:_0x1f1a9a}){const _0x3ec039=a13_0x4f4392;let _0x1b2b94=process[_0x3ec039(0x11d)]()+'/vue'+(typeof _0x23e750==_0x3ec039(0x120)?'/'+_0x23e750:'');_0x54ce60?_0x1b2b94=_0x1b2b94+(_0x3ec039(0x144)+_0x54ce60+'/'+_0x2b650b+(!_0x43c5c7?_0x3ec039(0xcd):'/')+_0x3ec039(0x102)):_0x1b2b94=_0x1b2b94+(_0x3ec039(0xb4)+_0x220a25+'/'+_0x2b650b+(!_0x43c5c7?'/list/':'/')+_0x3ec039(0x102));if(!fs[_0x3ec039(0xd9)](_0x1b2b94)){let _0x2ddd51=_0x3ec039(0x10c)+('\x22'+_0x6444af[_0x3ec039(0xb9)]+'\x22')[_0x3ec039(0x15c)](0x14)+(_0x3ec039(0x132)+(_0x6444af[_0x3ec039(0xd0)]||'编号')+_0x3ec039(0xbb));for(let _0x17f859 in _0x58740c){const _0x354187=_0x58740c[_0x17f859];if([_0x3ec039(0x157),_0x3ec039(0x183),'deleted_at',_0x3ec039(0xda)][_0x3ec039(0xba)](_0x17f859)!=-0x1)continue;if(_0x17f859[_0x3ec039(0x106)](_0x17f859[_0x3ec039(0x16f)]-0x3)==_0x3ec039(0xb6)||_0x17f859[_0x3ec039(0x106)](_0x17f859[_0x3ec039(0x16f)]-0x5)==_0x3ec039(0xc9)||_0x17f859==_0x3ec039(0xc9)||_0x17f859['substring'](_0x17f859[_0x3ec039(0x16f)]-0x4)==_0x3ec039(0xbc)||_0x17f859=='logo')_0x2ddd51+='\x0a'+_0x3ec039(0x184)+_0x3ec039(0x10c)+('\x22'+_0x17f859+'\x22')[_0x3ec039(0x15c)](0x14)+(_0x3ec039(0x132)+(_0x354187[_0x3ec039(0xd0)]||_0x354187['Field'])+_0x3ec039(0x12f)),_0x2ddd51+='\x0a'+_0x3ec039(0xff)+_0x3ec039(0xd4),_0x2ddd51+='\x0a'+_0x3ec039(0xde)+_0x3ec039(0x118),_0x2ddd51+='\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'+('<a\x20:href=\x22scope.row.'+_0x17f859+_0x3ec039(0x153)),_0x2ddd51+='\x0a'+_0x3ec039(0xf9)+(_0x3ec039(0x158)+_0x17f859+_0x3ec039(0xc5)),_0x2ddd51+='\x0a'+_0x3ec039(0xee)+_0x3ec039(0x125),_0x2ddd51+='\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'+_0x3ec039(0xdd),_0x2ddd51+='\x0a'+_0x3ec039(0xf9)+(_0x3ec039(0x180)+_0x17f859+_0x3ec039(0x177)),_0x2ddd51+='\x0a'+_0x3ec039(0xee)+_0x3ec039(0x169),_0x2ddd51+='\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'+_0x3ec039(0x14a),_0x2ddd51+='\x0a'+_0x3ec039(0xff)+_0x3ec039(0x169),_0x2ddd51+='\x0a'+_0x3ec039(0x184)+_0x3ec039(0xbd);else{if(['tinyint']['indexOf']((0x0,helper_1[_0x3ec039(0x149)])(_0x354187[_0x3ec039(0x10f)]))!=-0x1)_0x2ddd51+='\x0a'+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+'<el-table-column\x20prop='+('\x22'+_0x17f859+'\x22')[_0x3ec039(0x15c)](0x14)+('\x20label=\x22'+(_0x354187[_0x3ec039(0xd0)]||_0x354187[_0x3ec039(0xb9)])+'\x22\x20align=\x27center\x27\x20sortable=\x22custom\x22>'),_0x2ddd51+='\x0a'+_0x3ec039(0xff)+_0x3ec039(0xd4),_0x2ddd51+='\x0a'+_0x3ec039(0xde)+('<elplus-switch\x20v-model=\x22scope.row\x22\x20field=\x22'+_0x17f859+_0x3ec039(0x138)),_0x2ddd51+='\x0a'+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+'</template>',_0x2ddd51+='\x0a'+_0x3ec039(0x184)+_0x3ec039(0xbd);else['text'][_0x3ec039(0xba)]((0x0,helper_1[_0x3ec039(0x149)])(_0x354187[_0x3ec039(0x10f)]))==-0x1&&(_0x2ddd51+='\x0a'+_0x3ec039(0x184)+_0x3ec039(0x10c)+('\x22'+_0x17f859+'\x22')['padEnd'](0x14)+(_0x3ec039(0x132)+(_0x354187['Comment']||_0x354187['Field'])+'\x22\x20align=\x27center\x27\x20sortable=\x22custom\x22\x20show-overflow-tooltip\x20/>'));}}const _0x3a5d2c=''+(typeof _0x23e750==_0x3ec039(0x120)?_0x23e750+'/':'')+(_0x54ce60?_0x54ce60+'/':'')+_0x2b650b,_0x51d1dd=_0x1f1a9a?_0x1f1a9a+'.'+(_0x54ce60?''+_0x54ce60+_0x190064:_0x190064):''+_0x190064,_0x4e7efe=_0x1f1a9a?'':_0x3ec039(0x17b)+_0x190064+_0x3ec039(0x152)+_0x190064+'Remove,\x20'+_0x190064+'Edit\x20}\x20from\x20\x27@/apis/'+(_0x54ce60?_0x3ec039(0xa0)+_0x54ce60:''+_0x220a25)+'/'+_0x190064+_0x3ec039(0x15e),_0x2ecc14=_0x1f1a9a?_0x51d1dd+_0x3ec039(0x160):_0x190064+_0x3ec039(0x12b),_0x3a4e04=_0x1f1a9a?_0x51d1dd+_0x3ec039(0x130)+_0x6444af[_0x3ec039(0xb9)]+_0x3ec039(0xe4)+_0x6444af[_0x3ec039(0xb9)]+_0x3ec039(0xb3):_0x190064+'Remove({\x20'+_0x6444af[_0x3ec039(0xb9)]+_0x3ec039(0xe4)+_0x6444af['Field']+'\x20})',_0x39d96a=_0x1f1a9a?_0x51d1dd+_0x3ec039(0x141)+_0x6444af[_0x3ec039(0xb9)]+_0x3ec039(0xe4)+_0x6444af[_0x3ec039(0xb9)]+'\x20},\x20data:\x20{\x20[field]:\x20item[field]\x20}\x20}\x20as\x20any)':_0x190064+'Edit(item.'+_0x6444af['Field']+_0x3ec039(0x15d);fs[_0x3ec039(0x13b)]((0x0,path_1['dirname'])(_0x1b2b94),{'recursive':!![]}),fs[_0x3ec039(0xb1)](_0x1b2b94,'<template>\x0a\x20\x20\x20\x20<page-main>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<elplus-table\x20:datas=\x22table.data\x22\x20:pageinfo=\x22table.search\x22\x20:loading=\x22loading\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\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(`get@/'+_0x3a5d2c+_0x3ec039(0x13f)+(!_0x43c5c7?_0x3ec039(0xcc):_0x3ec039(0x166))+'\x22\x20\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'+_0x2ddd51+_0x3ec039(0xf7)+_0x3a5d2c+_0x3ec039(0x123)+_0x6444af[_0x3ec039(0xb9)]+_0x3ec039(0x101)+(!_0x43c5c7?_0x3ec039(0xc2)+_0x6444af[_0x3ec039(0xb9)]+_0x3ec039(0xae)+_0x6444af[_0x3ec039(0xb9)]+_0x3ec039(0xb2):_0x3ec039(0x135))+_0x3ec039(0x126)+_0x3a5d2c+_0x3ec039(0x13e)+(!_0x43c5c7?'':'<dialog-add-vue\x20ref=\x22refDialogAdd\x22\x20@save=\x22LoadDatas()\x22\x20/>')+_0x3ec039(0xfc)+(!_0x43c5c7?'':'<dialog-edit-vue\x20ref=\x22refDialogEdit\x22\x20@save=\x22LoadDatas()\x22/>')+_0x3ec039(0x17c)+(!_0x43c5c7?'':_0x3ec039(0x168))+'\x0a'+(!_0x43c5c7?'':_0x3ec039(0x122))+'\x0a'+_0x4e7efe+_0x3ec039(0xe8)+_0x2ecc14+_0x3ec039(0xce)+_0x3a4e04+_0x3ec039(0x15f)+_0x6444af[_0x3ec039(0xb9)]+')\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20loading.value\x20=\x20true,\x20'+_0x39d96a+_0x3ec039(0x134),_0x3ec039(0x11f));}}function a13_0x553c(){const _0x383ec7=['4507516UeSAQq','`)\x22\x20@click=\x22','index.vue',':api=\x22$api.','585ffNDGF','\x22\x20placeholder=\x22请输入或选择','substring','longtext','\x22\x20\x20placeholder=\x22请输入','Edit,\x20','mediumtext','6009504xIvqqp','<el-table-column\x20prop=','_start\x22\x20placeholder=\x22选择','1028752KRakas','Type','/vue','defineProperty','}\x0a\x0a','<=\x22>','748cQRlKW','timestamp','\x0a</template>\x0a<script\x20lang=\x22ts\x22\x20setup>\x0aconst\x20props\x20=\x20defineProps({\x0a\x20\x20\x20\x20search:\x20{type:\x20Object\x20,default:\x20()=>{return\x20{}}},\x0a})\x0a</script>','\x22\x20placeholder=\x22请输入','<el-popover\x20placement=\x22bottom\x22\x20trigger=\x22click\x22>','开始时间\x22\x20type=\x22datetime\x22\x20value-format=\x22YYYY-MM-DD\x20HH:mm:ss\x22/>','6DWFssr','module=\x22','\x20\x20\x20\x20}\x20else\x20{\x0a','cwd','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20loading.value\x20=\x20false,\x20$notify.success(res?.message\x20||\x20\x27操作成功\x27),\x20emits(\x27save\x27),\x20refDialog?.value?.close()\x0a','utf-8','string','<elplus-select-tags\x20v-model=\x22formdata.','import\x20dialogEditVue\x20from\x20\x27./components/dialog-edit.vue\x27;','/edit/:','\x22\x20clearable>','</a>','\x22\x20type=\x22primary\x22\x20text>\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\x20\x20\x20\x20<el-button\x20v-if=\x22$hasPrem(`post@/','<el-option\x20label=\x22','<template>\x0a\x20\x20\x20\x20','edit/:','\x22\x20prop=\x22','List(Object.assign({},\x20route?.query\x20||\x20{},\x20table.search\x20||\x20{},\x20sortable))','<elplus-search-select\x20v-model=\x22props.search.','Add','_ids','\x22\x20align=\x27center\x27\x20show-overflow-tooltip>','.Remove({\x20data:\x20{\x20','thumbs','\x20label=\x22','\x20lakey=\x22id\x22\x20\x20label=\x22id\x22\x20clearable/>','.then(res\x20=>\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20if(\x20typeof(res?.data)\x20!=\x20\x27undefined\x27\x20){\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20item\x20=\x20res.data;\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\x20loading.value\x20=\x20false,\x20$notify.success(res?.message\x20||\x20\x27操作成功\x27);\x0a\x20\x20\x20\x20\x20\x20\x20\x20}).catch(err\x20=>\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20loading.value\x20=\x20false,\x20$notify.error(err\x20||\x20\x27操作失败\x27);\x0a\x20\x20\x20\x20\x20\x20\x20\x20})\x0a\x20\x20\x20\x20}\x0a}\x0a\x0a/**\x0a\x20*\x20加载数据\x0a\x20*\x20**/\x0aLoadDatas()\x0a\x0a</script>','$refs?.refDialogEdit?.open(scope.row.id)','<el-input\x20v-model=\x22formdata.','</el-form-item>','\x22\x20active-text=\x22启用\x22\x20inactive-text=\x22禁用\x22\x20@change=\x22handlerFieldChange\x22\x20/>','<el-date-picker\x20v-model=\x22props.search.','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</template>\x0a','mkdirSync','\x22\x20/>','\x20\x20\x20\x20<page-main>\x0a','/remove`)\x22\x20@click=\x22handlerRemove(scope.row)\x22\x20type=\x22danger\x22\x20text>\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</elplus-table>\x0a\x20\x20\x20\x20\x20\x20\x20\x20','/add`)\x22\x20@click=\x22','getEnum','.EditId({\x20pathParams:\x20{\x20','Detail,\x20','<script\x20lang=\x22ts\x22\x20setup>\x0a','/pages/apps/','\x22\x20:limit=\x225\x22\x20','<tinymce-editor\x20v-model=\x22formdata.','default','\x22\x20placeholder=\x22请选择','getProp','</el-popover>','2122vkBYbW','结束时间\x22\x20type=\x22datetime\x22\x20value-format=\x22YYYY-MM-DD\x20HH:mm:ss\x22/>','>=\x22>','add','.Add({\x20data:\x20item\x20}\x20as\x20any)','Add\x20}\x20from\x20\x27@/apis/','<el-input\x20v-model=\x22props.search.','List,\x20','\x22\x20target=\x22_blank\x22\x20title=\x22查看最大化图片\x22>','<elplus-search-select\x20v-model=\x22formdata.','\x20\x20\x20\x20\x20\x20\x20\x20<template\x20#footer>\x0a',')\x20{\x0a','created_at','<img\x20:src=\x22scope.row.','enum','toString','date','padEnd',',\x20{\x20[field]:\x20item[field]\x20})','\x27;\x0a','.then(res\x20=>\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20loading.value\x20=\x20false,\x20$notify.success(res?.message\x20||\x20\x27删除成功\x27),\x20LoadDatas();\x0a\x20\x20\x20\x20\x20\x20\x20\x20}).catch(err\x20=>\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20loading.value\x20=\x20false,\x20$notify.error(err\x20||\x20\x27删除失败\x27);\x0a\x20\x20\x20\x20\x20\x20\x20\x20})\x0a\x20\x20\x20\x20}).catch(()\x20=>\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20loading.value\x20=\x20false;\x0a\x20\x20\x20\x20})\x0a}\x0a\x0a/**\x0a\x20*\x20修改字段状态\x0a\x20*\x20**/\x0a\x20const\x20handlerFieldChange\x20=\x20(item:\x20any,\x20field:string)=>{\x0a\x20\x20\x20\x20if\x20(item.','.List({\x20params:\x20Object.assign({},\x20route?.query\x20||\x20{},\x20table.search\x20||\x20{},\x20sortable)\x20}\x20as\x20any)','.then(res\x20=>\x20{\x0a','\x20\x20\x20\x20\x20\x20\x20\x20</elplus-form>\x0a','<attachment-file\x20v-model=\x22formdata.','<el-input-number\x20v-model=\x22formdata.','\x22\x20value=\x22','$refs?.refDialogAdd?.open()','2634381wnMMdJ','import\x20dialogAddVue\x20from\x20\x27./components/dialog-add.vue\x27;','</template>','`)\x22\x20type=\x22primary\x22\x20@click=\x22handlerSave()\x22>保存</el-button>\x0a','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20loading.value\x20=\x20false,\x20formdata.value\x20=\x20res.data;\x0a','number',',\x20item)','30UBwELm','length','const\x20loading\x20=\x20ref(false),\x20router\x20=\x20useRouter(),\x20route\x20=\x20useRoute();\x0a\x0a','<el-form-item\x20label=\x22','\x20\x20\x20\x20</page-main>\x0a','Detail\x20}\x20from\x20\x27@/apis/','(((.+)+)+)+$','const\x20handlerSave\x20=\x20()=>{\x0a','__esModule','\x22\x20style=\x22cursor:pointer\x22/>','\x20\x20\x20\x20\x20\x20\x20\x20})\x0a','Rule\x22\x20:loading=\x22loading\x22\x20:disabled=\x22!$hasPrem(`post@/','907TFHPLy','import\x20{\x20','\x0a\x20\x20\x20\x20</page-main>\x0a</template>\x0a<script\x20lang=\x22ts\x22\x20setup>\x0aimport\x20search\x20from\x20\x27./components/search.vue\x27;\x0a','substr','tag','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<el-button\x20v-if=\x22$hasPrem(`post@/','<el-avatar\x20:src=\x22scope.row.','\x20\x20\x20\x20\x20\x20\x20\x20}).catch(err=>{\x0a','num','updated_at','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x22\x20class=\x22block\x22>','.List\x22','api=\x22','apps/','const\x20getDetail\x20=\x20(','\x20\x20\x20\x20\x20\x20\x20\x20','Detail(','<el-select\x20v-model=\x22props.search.','components/search.vue','.then(res=>{\x0a','edit','\x20},\x20data:\x20item\x20}\x20as\x20any)','//\x20获取详情\x0a','\x22\x20:min=\x221\x22\x20controls-position=\x22right\x22\x20clearable/>','\x20\x20\x20\x20\x20\x20\x20\x20<elplus-form\x20ref=\x22refForm\x22\x20title=\x22','\x22\x20:min=\x221\x22\x20controls-position=\x22right\x22\x20/>','\x20\x20\x20\x20refForm.value?.validate().then((item:\x20any)\x20=>\x20{\x0a','=${scope.row.','\x20\x20\x20\x20\x20\x20\x20\x20loading.value\x20=\x20true,\x20formdata.value\x20=\x20{};\x0a','dirname','writeFileSync','}`)','\x20}\x20}\x20as\x20any)','/pages/','</el-select>','img','Edit','54402lqUQec','Field','indexOf','\x22\x20align=\x22center\x22\x20fixed=\x22left\x22\x20/>','logo','</el-table-column>','\x22\x20clearable/>','Add(item)','\x22\x20type=\x22datetime\x22\x20value-format=\x22YYYY-MM-DD\x20HH:mm:ss\x22/>','deleted_at','$router.push(`edit?','\x22\x20type=\x22date\x22\x20value-format=\x22YYYY-MM-DD\x22/>','\x22\x20:limit=\x221\x22\x20','\x22\x20style=\x22width:\x20100%;max-width:500px\x22\x20/>','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20loading.value\x20=\x20false,\x20$notify.error(err\x20||\x20\x27网络请求错误\x27);\x0a','tags','<el-date-picker\x20v-model=\x22formdata.','thumb','Edit(item.','.DetailId({\x20pathParams:\x20{\x20','$router.push(`add`)','/list/','.then(res\x20=>\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20loading.value\x20=\x20false,\x20table.data\x20=\x20res.data\x20||\x20[],\x20table.search\x20=\x20{\x20...table.search,\x20...res?.extra?.pageinfo\x20||\x20{},\x20_count:\x20res?.extra?.pagetotal\x20||\x200\x20};\x0a\x20\x20\x20\x20}).catch(err\x20=>\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20loading.value\x20=\x20false,\x20$notify.error(err\x20||\x20\x27网络请求错误\x27);\x0a\x20\x20\x20\x20});\x0a}\x0a\x0a/**\x0a\x20*\x20删除数据\x0a\x20*\x20**/\x0aconst\x20handlerRemove\x20=\x20(item:any)\x20=>\x20{\x0a\x20\x20\x20\x20loading.value\x20=\x20true,\x20$confirm(`确定删除数据吗?`,\x20\x27提示\x27,\x20{\x20confirmButtonText:\x20\x27确定\x27,\x20cancelButtonText:\x20\x27取消\x27,\x20type:\x20\x27warning\x27\x20}).then(()\x20=>\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20','text','Comment','7ueALpA','<el-form-item\x20label=\x22排序\x22\x20prop=\x22displayorder\x22>','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20loading.value\x20=\x20false,\x20$notify.error(err\x20||\x20\x27网络请求错误\x27),\x20router.back();\x0a','<template\x20#default=\x22scope\x22>','\x20\x20\x20\x20\x20\x20\x20\x20router.back();\x0a','/index.vue','defineExpose({\x20open\x20})\x0a','//\x20保存数据\x0a','existsSync','displayorder','\x20\x20\x20\x20\x20\x20\x20\x20loading.value\x20=\x20true,\x20','\x22\x20placeholder=\x22选择','<template\x20#reference>','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','.vue','\x22\x20:model=\x22formdata\x22\x20:rules=\x22','66552vLoDVF','search','_id',':\x20item.','<el-input-number\x20v-model=\x22formdata.displayorder\x22\x20placeholder=\x22请输入排序权重\x22\x20controls-position=\x22right\x22/>','<el-select\x20v-model=\x22formdata.','`)\x22>\x0a','\x0a\x0aconst\x20loading\x20=\x20ref(false),\x20route\x20=\x20useRoute(),\x20table\x20=\x20reactive({\x0a\x20\x20\x20\x20data:\x20[],\x0a\x20\x20\x20\x20select:\x20[],\x0a\x20\x20\x20\x20search:\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20_page:\x201,\x0a\x20\x20\x20\x20\x20\x20\x20\x20_size:\x2020,\x0a\x20\x20\x20\x20\x20\x20\x20\x20_count:\x200,\x0a\x20\x20\x20\x20}\x0a})\x0a\x0a\x0a/**\x0a\x20*\x20获取数据列表\x0a\x20*\x20@param\x20page\x20分页-当前页\x0a\x20*\x20@param\x20size\x20分页-每页数量\x0a\x20*\x20**/\x0aconst\x20LoadDatas\x20=\x20(page?:\x20number,\x20size?:\x20number,\x20sortable\x20=\x20{})\x20=>\x20{\x0a\x20\x20\x20\x20loading.value\x20=\x20true,\x20page\x20&&\x20(table.search._page\x20=\x20page),\x20size\x20&&\x20(table.search._size\x20=\x20size);\x0a\x20\x20\x20\x20','\x20\x20\x20\x20','_end\x22\x20placeholder=\x22选择','</script>\x0a','path','imgs','\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{\x0a','结束时间\x22\x20type=\x22date\x22\x20value-format=\x22YYYY-MM-DD\x22/>','\x20\x20\x20\x20\x20\x20\x20\x20}).catch(err\x20=>\x20{\x0a','\x22\x20type=\x22textarea\x22\x20:rows=\x224\x22/>','endsWith','apply','<template>\x0a','datetime','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<el-table-column\x20label=\x22排序\x22\x20prop=\x22displayorder\x22\x20align=\x22center\x22\x20width=\x2280\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-input\x20v-model=\x22scope.row.displayorder\x22\x20type=\x22number\x22\x20@change=\x22handlerFieldChange(scope.row,\x27displayorder\x27)\x22></el-input>\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\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(`get@/','/components/dialog-','\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\x20split=\x22-\x22\x20clearable/>','\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})\x0a','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'];a13_0x553c=function(){return _0x383ec7;};return a13_0x553c();}async function createSearch({moduleName:_0x29b7f7,tablestartUpShort:_0x4fa147,tablestartUpShort2:_0x2c44d6,controller:_0x4cb44d,Primary:_0x14f8b7,Fields:_0x2d9de6,apporbasic:_0x428a15,vuedialog:_0x4157c7,vueapiprefix:_0x18e378}){const _0x2771aa=a13_0x4f4392;let _0xd1900e=process[_0x2771aa(0x11d)]()+'/vue'+(typeof _0x4cb44d==_0x2771aa(0x120)?'/'+_0x4cb44d:'');_0x29b7f7?_0xd1900e=_0xd1900e+(_0x2771aa(0x144)+_0x29b7f7+'/'+_0x2c44d6+(!_0x4157c7?_0x2771aa(0xcd):'/')+_0x2771aa(0xa5)):_0xd1900e=_0xd1900e+(_0x2771aa(0xb4)+_0x428a15+'/'+_0x2c44d6+(!_0x4157c7?_0x2771aa(0xcd):'/')+_0x2771aa(0xa5));if(!fs['existsSync'](_0xd1900e)){let _0x1d8bdb='';_0x1d8bdb+='\x0a'+'\x20\x20\x20\x20'+(_0x2771aa(0x171)+(_0x14f8b7[_0x2771aa(0xd0)]||'编号')+'\x22>'),_0x1d8bdb+='\x0a'+_0x2771aa(0xa2)+(_0x2771aa(0x151)+_0x14f8b7[_0x2771aa(0xb9)]+_0x2771aa(0x117)+(_0x14f8b7[_0x2771aa(0xd0)]||'编号')+_0x2771aa(0xbe)),_0x1d8bdb+='\x0a'+'\x20\x20\x20\x20'+_0x2771aa(0x137);for(let _0x2f31fa in _0x2d9de6){const _0x59d968=_0x2d9de6[_0x2f31fa];if([_0x2771aa(0x183),_0x2771aa(0xc1),'displayorder'][_0x2771aa(0xba)](_0x2f31fa)!=-0x1)continue;if(_0x2f31fa['substring'](_0x2f31fa[_0x2771aa(0x16f)]-0x3)==_0x2771aa(0xb6)||_0x2f31fa['substring'](_0x2f31fa[_0x2771aa(0x16f)]-0x5)=='thumb'||_0x2f31fa==_0x2771aa(0xc9)||_0x2f31fa[_0x2771aa(0x106)](_0x2f31fa[_0x2771aa(0x16f)]-0x4)==_0x2771aa(0xbc)||_0x2f31fa==_0x2771aa(0xbc))continue;if(_0x2f31fa[_0x2771aa(0x106)](_0x2f31fa[_0x2771aa(0x16f)]-0x3)=='num')_0x1d8bdb+='\x0a'+_0x2771aa(0xe9)+('<el-form-item\x20label=\x22'+(_0x59d968[_0x2771aa(0xd0)]||_0x59d968[_0x2771aa(0xb9)])+'\x22>'),_0x1d8bdb+='\x0a'+_0x2771aa(0xa2)+('<el-input-number\x20v-model=\x22props.search.'+_0x2f31fa+'\x22\x20placeholder=\x22请输入'+_0x59d968[_0x2771aa(0xd0)]+_0x2771aa(0xaa)),_0x1d8bdb+='\x0a'+_0x2771aa(0xe9)+_0x2771aa(0x137)+'\x0a';else{if(_0x2f31fa[_0x2771aa(0xf3)]('_id')){let _0x57bf3c=''+(typeof _0x4cb44d==_0x2771aa(0x120)?_0x4cb44d+'/':'')+(_0x29b7f7?_0x29b7f7+'/':'')+_0x2c44d6;_0x1d8bdb+='\x0a'+_0x2771aa(0xa2)+('<el-form-item\x20label=\x22'+(_0x59d968[_0x2771aa(0xd0)]||_0x59d968['Field'])+'\x22>'),_0x1d8bdb+='\x0a'+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x2771aa(0x12c)+_0x2f31fa+'\x22\x20'+(_0x18e378?':api=\x22$api.'+(_0x29b7f7?''+_0x29b7f7+_0x4fa147:_0x4fa147)+_0x2771aa(0x9e):_0x2771aa(0x9f)+_0x57bf3c+'\x22')+_0x2771aa(0x133)),_0x1d8bdb+='\x0a'+'\x20\x20\x20\x20\x20\x20\x20\x20'+_0x2771aa(0x137)+'\x0a';}else switch((0x0,helper_1[_0x2771aa(0x149)])(_0x59d968[_0x2771aa(0x10f)])){case _0x2771aa(0x159):_0x1d8bdb+='\x0a'+_0x2771aa(0xe9)+(_0x2771aa(0x171)+(_0x59d968[_0x2771aa(0xd0)]||_0x59d968['Field'])+'\x22>'),_0x1d8bdb+='\x0a'+'\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x2771aa(0xa4)+_0x2f31fa+_0x2771aa(0x148)+_0x59d968[_0x2771aa(0xd0)]+_0x2771aa(0x124));for(let _0x51dd2e of(0x0,helper_1[_0x2771aa(0x140)])(_0x59d968[_0x2771aa(0x10f)])){_0x1d8bdb+='\x0a'+_0x2771aa(0xfb)+(_0x2771aa(0x127)+_0x51dd2e+'\x22\x20value=\x22'+_0x51dd2e+_0x2771aa(0x13c));}_0x1d8bdb+='\x0a'+_0x2771aa(0xa2)+_0x2771aa(0xb5),_0x1d8bdb+='\x0a'+_0x2771aa(0xe9)+_0x2771aa(0x137)+'\x0a';break;case _0x2771aa(0x15b):_0x1d8bdb+='\x0a'+_0x2771aa(0xe9)+('<el-form-item\x20label=\x22'+(_0x59d968[_0x2771aa(0xd0)]||_0x59d968['Field'])+_0x2771aa(0x14d)),_0x1d8bdb+='\x0a'+'\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x2771aa(0x139)+_0x2f31fa+'_start\x22\x20placeholder=\x22选择'+_0x59d968[_0x2771aa(0xd0)]+'开始时间\x22\x20type=\x22date\x22\x20value-format=\x22YYYY-MM-DD\x22/>'),_0x1d8bdb+='\x0a'+_0x2771aa(0xe9)+_0x2771aa(0x137)+'\x0a',_0x1d8bdb+='\x0a'+'\x20\x20\x20\x20'+(_0x2771aa(0x171)+(_0x59d968[_0x2771aa(0xd0)]||_0x59d968[_0x2771aa(0xb9)])+'<=\x22>'),_0x1d8bdb+='\x0a'+'\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x2771aa(0x139)+_0x2f31fa+_0x2771aa(0xea)+_0x59d968['Comment']+_0x2771aa(0xf0)),_0x1d8bdb+='\x0a'+_0x2771aa(0xe9)+_0x2771aa(0x137)+'\x0a';break;case'datetime':_0x1d8bdb+='\x0a'+_0x2771aa(0xe9)+(_0x2771aa(0x171)+(_0x59d968[_0x2771aa(0xd0)]||_0x59d968[_0x2771aa(0xb9)])+'>=\x22>'),_0x1d8bdb+='\x0a'+_0x2771aa(0xa2)+('<el-date-picker\x20v-model=\x22props.search.'+_0x2f31fa+_0x2771aa(0x10d)+_0x59d968[_0x2771aa(0xd0)]+_0x2771aa(0x119)),_0x1d8bdb+='\x0a'+_0x2771aa(0xe9)+_0x2771aa(0x137)+'\x0a',_0x1d8bdb+='\x0a'+'\x20\x20\x20\x20'+('<el-form-item\x20label=\x22'+(_0x59d968[_0x2771aa(0xd0)]||_0x59d968[_0x2771aa(0xb9)])+_0x2771aa(0x113)),_0x1d8bdb+='\x0a'+_0x2771aa(0xa2)+(_0x2771aa(0x139)+_0x2f31fa+'_end\x22\x20placeholder=\x22选择'+_0x59d968[_0x2771aa(0xd0)]+_0x2771aa(0x14c)),_0x1d8bdb+='\x0a'+_0x2771aa(0xe9)+'</el-form-item>'+'\x0a';break;case _0x2771aa(0x115):_0x1d8bdb+='\x0a'+_0x2771aa(0xe9)+(_0x2771aa(0x171)+(_0x59d968[_0x2771aa(0xd0)]||_0x59d968[_0x2771aa(0xb9)])+'>=\x22>'),_0x1d8bdb+='\x0a'+'\x20\x20\x20\x20\x20\x20\x20\x20'+('<el-date-picker\x20v-model=\x22props.search.'+_0x2f31fa+_0x2771aa(0x10d)+_0x59d968[_0x2771aa(0xd0)]+_0x2771aa(0x119)),_0x1d8bdb+='\x0a'+_0x2771aa(0xe9)+_0x2771aa(0x137)+'\x0a',_0x1d8bdb+='\x0a'+_0x2771aa(0xe9)+(_0x2771aa(0x171)+(_0x59d968[_0x2771aa(0xd0)]||_0x59d968['Field'])+'<=\x22>'),_0x1d8bdb+='\x0a'+'\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x2771aa(0x139)+_0x2f31fa+_0x2771aa(0xea)+_0x59d968[_0x2771aa(0xd0)]+'结束时间\x22\x20type=\x22datetime\x22\x20value-format=\x22YYYY-MM-DD\x20HH:mm:ss\x22/>'),_0x1d8bdb+='\x0a'+_0x2771aa(0xe9)+_0x2771aa(0x137)+'\x0a';break;case _0x2771aa(0x120):_0x1d8bdb+='\x0a'+_0x2771aa(0xe9)+(_0x2771aa(0x171)+(_0x59d968[_0x2771aa(0xd0)]||_0x59d968[_0x2771aa(0xb9)])+'\x22>'),_0x1d8bdb+='\x0a'+_0x2771aa(0xa2)+('<el-input\x20v-model=\x22props.search.'+_0x2f31fa+_0x2771aa(0x117)+_0x59d968[_0x2771aa(0xd0)]+_0x2771aa(0xbe)),_0x1d8bdb+='\x0a'+_0x2771aa(0xe9)+_0x2771aa(0x137)+'\x0a';}}}fs[_0x2771aa(0x13b)]((0x0,path_1[_0x2771aa(0xb0)])(_0xd1900e),{'recursive':!![]}),fs[_0x2771aa(0xb1)](_0xd1900e,_0x2771aa(0x128)+_0x1d8bdb+_0x2771aa(0x116),'utf-8');}}async function createAddOrEdit({moduleName:_0x2e6251,controller:_0x221cc0,tablestart:_0x59733d,tablestartUpShort:_0x34a7f6,tablestartLowShort:_0x1b448f,tablestartUpShort2:_0x3d4cc3,Primary:_0x23f99b,Fields:_0x4de89e,apporbasic:_0x18ce10,Comment:_0x17616b,vueapiprefix:_0x22dc2c},_0x157b88='add'){const _0x33b50a=a13_0x4f4392;let _0x17223e=process[_0x33b50a(0x11d)]()+_0x33b50a(0x110)+(typeof _0x221cc0==_0x33b50a(0x120)?'/'+_0x221cc0:'');_0x2e6251?_0x17223e=_0x17223e+(_0x33b50a(0x144)+_0x2e6251+'/'+_0x3d4cc3+'/'+_0x157b88+_0x33b50a(0xd6)):_0x17223e=_0x17223e+(_0x33b50a(0xb4)+_0x18ce10+'/'+_0x3d4cc3+'/'+_0x157b88+_0x33b50a(0xd6));if(!fs[_0x33b50a(0xd9)](_0x17223e)){const _0x47b52c=[_0x33b50a(0xcf),_0x33b50a(0x10a),_0x33b50a(0x120)]['indexOf']((0x0,helper_1[_0x33b50a(0x149)])(_0x23f99b[_0x33b50a(0x10f)]))==-0x1,_0x1f5fd5=''+(typeof _0x221cc0=='string'?_0x221cc0+'/':'')+(_0x2e6251?_0x2e6251+'/':'')+_0x3d4cc3,_0x3d1793=_0x22dc2c?_0x22dc2c+'.'+(_0x2e6251?''+_0x2e6251+_0x34a7f6:_0x34a7f6):''+_0x34a7f6,_0x54b89f=_0x22dc2c?_0x3d1793+_0x33b50a(0xcb)+_0x23f99b[_0x33b50a(0xb9)]+_0x33b50a(0xb3):_0x34a7f6+_0x33b50a(0xa3)+_0x23f99b[_0x33b50a(0xb9)]+')',_0x59af45=_0x157b88==_0x33b50a(0x14e)?_0x22dc2c?_0x3d1793+_0x33b50a(0x14f):_0x34a7f6+_0x33b50a(0xbf):_0x22dc2c?_0x3d1793+'.EditId({\x20pathParams:\x20{\x20'+_0x23f99b[_0x33b50a(0xb9)]+_0x33b50a(0xe4)+_0x23f99b[_0x33b50a(0xb9)]+_0x33b50a(0xa8):_0x34a7f6+'Edit(item.'+_0x23f99b[_0x33b50a(0xb9)]+_0x33b50a(0x16d);let _0x3b1246='';for(let _0x339286 in _0x4de89e){const _0x33b365=_0x4de89e[_0x339286];if([_0x33b50a(0x157),_0x33b50a(0x183),_0x33b50a(0xc1),_0x33b50a(0xda)][_0x33b50a(0xba)](_0x339286)!=-0x1)continue;if(_0x339286[_0x33b50a(0x106)](_0x339286['length']-0x4)=='imgs'||_0x339286[_0x33b50a(0x106)](_0x339286[_0x33b50a(0x16f)]-0x6)==_0x33b50a(0x131))_0x3b1246+='\x0a'+_0x33b50a(0xfb)+(_0x33b50a(0x171)+(_0x33b365[_0x33b50a(0xd0)]||_0x33b365[_0x33b50a(0xb9)])+'\x22\x20prop=\x22'+_0x339286+_0x33b50a(0x185)),_0x3b1246+='\x0a'+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x33b50a(0x163)+_0x339286+_0x33b50a(0x145)+(_0x2e6251?_0x33b50a(0x11b)+_0x2e6251+'\x22':'')+'\x20/>'),_0x3b1246+='\x0a'+_0x33b50a(0xfb)+_0x33b50a(0x137)+'\x0a';else{if(_0x339286[_0x33b50a(0x106)](_0x339286[_0x33b50a(0x16f)]-0x3)==_0x33b50a(0xb6)||_0x339286[_0x33b50a(0x106)](_0x339286[_0x33b50a(0x16f)]-0x5)==_0x33b50a(0xc9)||_0x339286==_0x33b50a(0xc9)||_0x339286[_0x33b50a(0x106)](_0x339286[_0x33b50a(0x16f)]-0x4)==_0x33b50a(0xbc)||_0x339286=='logo')_0x3b1246+='\x0a'+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x33b50a(0x171)+(_0x33b365[_0x33b50a(0xd0)]||_0x33b365[_0x33b50a(0xb9)])+_0x33b50a(0x12a)+_0x339286+'\x22\x20class=\x22block\x22>'),_0x3b1246+='\x0a'+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x33b50a(0x163)+_0x339286+_0x33b50a(0xc4)+(_0x2e6251?_0x33b50a(0x11b)+_0x2e6251+'\x22':'')+'/>'),_0x3b1246+='\x0a'+_0x33b50a(0xfb)+'</el-form-item>'+'\x0a';else{if(_0x339286[_0x33b50a(0x106)](_0x339286[_0x33b50a(0x16f)]-0x4)=='tags'||_0x339286[_0x33b50a(0x106)](_0x339286['length']-0x3)==_0x33b50a(0x17e))_0x3b1246+='\x0a'+_0x33b50a(0xfb)+(_0x33b50a(0x171)+(_0x33b365[_0x33b50a(0xd0)]||_0x33b365[_0x33b50a(0xb9)])+_0x33b50a(0x12a)+_0x339286+'\x22>'),_0x3b1246+='\x0a'+_0x33b50a(0x184)+(_0x33b50a(0x121)+_0x339286+_0x33b50a(0x105)+_0x33b365[_0x33b50a(0xd0)]+_0x33b50a(0xfa)),_0x3b1246+='\x0a'+_0x33b50a(0xfb)+_0x33b50a(0x137)+'\x0a';else{if(_0x339286['substr'](-0x3)==_0x33b50a(0x182))_0x3b1246+='\x0a'+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+('<el-form-item\x20label=\x22'+(_0x33b365[_0x33b50a(0xd0)]||_0x33b365['Field'])+'\x22\x20prop=\x22'+_0x339286+'\x22>'),_0x3b1246+='\x0a'+_0x33b50a(0x184)+(_0x33b50a(0x164)+_0x339286+_0x33b50a(0x117)+_0x33b365[_0x33b50a(0xd0)]+_0x33b50a(0xac)),_0x3b1246+='\x0a'+_0x33b50a(0xfb)+_0x33b50a(0x137)+'\x0a';else{if(_0x339286['substr'](-0x4)==_0x33b50a(0x12e))_0x3b1246+='\x0a'+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x33b50a(0x171)+(_0x33b365[_0x33b50a(0xd0)]||_0x33b365['Field'])+'\x22\x20prop=\x22'+_0x339286+'\x22>'),_0x3b1246+='\x0a'+_0x33b50a(0x184)+(_0x33b50a(0x136)+_0x339286+_0x33b50a(0x117)+_0x33b365['Comment']+_0x33b50a(0xbe)),_0x3b1246+='\x0a'+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x33b50a(0x137)+'\x0a';else{if(_0x339286[_0x33b50a(0x17d)](-0x3)==_0x33b50a(0xe3)){let _0x26f453=''+(typeof _0x221cc0==_0x33b50a(0x120)?_0x221cc0+'/':'')+(_0x2e6251?_0x2e6251+'/':'')+_0x3d4cc3;_0x3b1246+='\x0a'+_0x33b50a(0xfb)+(_0x33b50a(0x171)+(_0x33b365[_0x33b50a(0xd0)]||_0x33b365[_0x33b50a(0xb9)])+'\x22\x20prop=\x22'+_0x339286+'\x22>'),_0x3b1246+='\x0a'+_0x33b50a(0x184)+(_0x33b50a(0x154)+_0x339286+'\x22\x20'+(_0x22dc2c?_0x33b50a(0x103)+(_0x2e6251?''+_0x2e6251+_0x34a7f6:_0x34a7f6)+_0x33b50a(0x9e):_0x33b50a(0x9f)+_0x26f453+'\x22')+'\x20lakey=\x22id\x22\x20\x20label=\x22id\x22\x20clearable/>'),_0x3b1246+='\x0a'+_0x33b50a(0xfb)+_0x33b50a(0x137)+'\x0a';}else switch((0x0,helper_1[_0x33b50a(0x149)])(_0x33b365[_0x33b50a(0x10f)])){case _0x33b50a(0x16c):_0x3b1246+='\x0a'+_0x33b50a(0xfb)+(_0x33b50a(0x171)+(_0x33b365[_0x33b50a(0xd0)]||_0x33b365[_0x33b50a(0xb9)])+_0x33b50a(0x12a)+_0x339286+'\x22>'),_0x3b1246+='\x0a'+_0x33b50a(0x184)+(_0x33b50a(0x164)+_0x339286+_0x33b50a(0x117)+_0x33b365[_0x33b50a(0xd0)]+_0x33b50a(0xac)),_0x3b1246+='\x0a'+_0x33b50a(0xfb)+_0x33b50a(0x137)+'\x0a';break;case _0x33b50a(0x159):_0x3b1246+='\x0a'+_0x33b50a(0xfb)+(_0x33b50a(0x171)+(_0x33b365[_0x33b50a(0xd0)]||_0x33b365[_0x33b50a(0xb9)])+_0x33b50a(0x12a)+_0x339286+'\x22>'),_0x3b1246+='\x0a'+_0x33b50a(0x184)+(_0x33b50a(0xe6)+_0x339286+'\x22\x20placeholder=\x22请选择'+_0x33b365['Comment']+_0x33b50a(0x124));for(let _0x287c64 of(0x0,helper_1[_0x33b50a(0x140)])(_0x33b365[_0x33b50a(0x10f)])){_0x3b1246+='\x0a'+_0x33b50a(0xff)+('<el-option\x20label=\x22'+_0x287c64+'\x22\x20value=\x22'+_0x287c64+'\x22\x20/>');}_0x3b1246+='\x0a'+_0x33b50a(0x184)+'</el-select>',_0x3b1246+='\x0a'+_0x33b50a(0xfb)+_0x33b50a(0x137)+'\x0a';break;case _0x33b50a(0xcf):_0x3b1246+='\x0a'+_0x33b50a(0xfb)+('<el-form-item\x20label=\x22'+(_0x33b365[_0x33b50a(0xd0)]||_0x33b365[_0x33b50a(0xb9)])+'\x22\x20prop=\x22'+_0x339286+_0x33b50a(0x185)),_0x3b1246+='\x0a'+_0x33b50a(0x184)+(_0x33b50a(0x136)+_0x339286+_0x33b50a(0x108)+_0x33b365[_0x33b50a(0xd0)]+_0x33b50a(0xf2)),_0x3b1246+='\x0a'+_0x33b50a(0xfb)+'</el-form-item>'+'\x0a';break;case _0x33b50a(0x107):_0x3b1246+='\x0a'+_0x33b50a(0xfb)+(_0x33b50a(0x171)+(_0x33b365[_0x33b50a(0xd0)]||_0x33b365[_0x33b50a(0xb9)])+_0x33b50a(0x12a)+_0x339286+_0x33b50a(0x185)),_0x3b1246+='\x0a'+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x33b50a(0x146)+_0x339286+'\x22\x20'+(_0x2e6251?'module=\x22'+_0x2e6251+'\x22':'')+'/>'),_0x3b1246+='\x0a'+_0x33b50a(0xfb)+_0x33b50a(0x137)+'\x0a';break;case _0x33b50a(0x10a):_0x3b1246+='\x0a'+_0x33b50a(0xfb)+(_0x33b50a(0x171)+(_0x33b365[_0x33b50a(0xd0)]||_0x33b365[_0x33b50a(0xb9)])+'\x22\x20prop=\x22'+_0x339286+'\x22\x20class=\x22block\x22>'),_0x3b1246+='\x0a'+_0x33b50a(0x184)+('<tinymce-editor\x20v-model=\x22formdata.'+_0x339286+'\x22\x20'+(_0x2e6251?_0x33b50a(0x11b)+_0x2e6251+'\x22':'')+'/>'),_0x3b1246+='\x0a'+_0x33b50a(0xfb)+_0x33b50a(0x137)+'\x0a';break;case _0x33b50a(0x15b):_0x3b1246+='\x0a'+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x33b50a(0x171)+(_0x33b365[_0x33b50a(0xd0)]||_0x33b365['Field'])+'\x22\x20prop=\x22'+_0x339286+'\x22>'),_0x3b1246+='\x0a'+_0x33b50a(0x184)+('<el-date-picker\x20v-model=\x22formdata.'+_0x339286+'\x22\x20placeholder=\x22选择'+_0x33b365[_0x33b50a(0xd0)]+_0x33b50a(0xc3)),_0x3b1246+='\x0a'+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x33b50a(0x137)+'\x0a';break;case _0x33b50a(0xf6):_0x3b1246+='\x0a'+_0x33b50a(0xfb)+(_0x33b50a(0x171)+(_0x33b365[_0x33b50a(0xd0)]||_0x33b365[_0x33b50a(0xb9)])+_0x33b50a(0x12a)+_0x339286+'\x22>'),_0x3b1246+='\x0a'+_0x33b50a(0x184)+(_0x33b50a(0xc8)+_0x339286+_0x33b50a(0xdc)+_0x33b365[_0x33b50a(0xd0)]+'\x22\x20type=\x22datetime\x22\x20value-format=\x22YYYY-MM-DD\x20HH:mm:ss\x22/>'),_0x3b1246+='\x0a'+_0x33b50a(0xfb)+_0x33b50a(0x137)+'\x0a';break;case _0x33b50a(0x115):_0x3b1246+='\x0a'+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+('<el-form-item\x20label=\x22'+(_0x33b365[_0x33b50a(0xd0)]||_0x33b365[_0x33b50a(0xb9)])+_0x33b50a(0x12a)+_0x339286+'\x22>'),_0x3b1246+='\x0a'+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x33b50a(0xc8)+_0x339286+_0x33b50a(0xdc)+_0x33b365['Comment']+'\x22\x20type=\x22datetime\x22\x20value-format=\x22YYYY-MM-DD\x20HH:mm:ss\x22/>'),_0x3b1246+='\x0a'+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x33b50a(0x137)+'\x0a';break;default:_0x3b1246+='\x0a'+_0x33b50a(0xfb)+(_0x33b50a(0x171)+(_0x33b365[_0x33b50a(0xd0)]||_0x33b365[_0x33b50a(0xb9)])+_0x33b50a(0x12a)+_0x339286+'\x22>'),_0x3b1246+='\x0a'+_0x33b50a(0x184)+('<el-input\x20v-model=\x22formdata.'+_0x339286+'\x22\x20placeholder=\x22请输入'+_0x33b365[_0x33b50a(0xd0)]+_0x33b50a(0xbe)),_0x3b1246+='\x0a'+_0x33b50a(0xfb)+_0x33b50a(0x137)+'\x0a';}}}}}}}_0x3b1246+='\x0a'+_0x33b50a(0xfb)+_0x33b50a(0xd2),_0x3b1246+='\x0a'+_0x33b50a(0x184)+_0x33b50a(0xe5),_0x3b1246+='\x0a'+_0x33b50a(0xfb)+_0x33b50a(0x137)+'\x0a';let _0x111193=_0x33b50a(0xf5);_0x111193+=_0x33b50a(0x13d),_0x111193+=_0x33b50a(0xab)+(_0x157b88==_0x33b50a(0x14e)?'添加'+_0x17616b:'编辑'+_0x17616b)+_0x33b50a(0xe0)+_0x34a7f6+(_0x157b88==_0x33b50a(0x14e)?_0x33b50a(0x12d):_0x33b50a(0xb7))+'Rule\x22\x20:loading=\x22loading\x22\x20:disabled=\x22!$hasPrem(`post@/'+_0x1f5fd5+'/'+(_0x157b88==_0x33b50a(0x14e)?'add':_0x33b50a(0x129)+_0x23f99b[_0x33b50a(0xb9)])+_0x33b50a(0xe7),_0x111193+=_0x33b50a(0xfb)+_0x3b1246+'\x0a\x0a',_0x111193+='\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<template\x20#footer>\x0a',_0x111193+='\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<el-button\x20v-if=\x22$hasPrem(`post@/'+_0x1f5fd5+'/'+(_0x157b88==_0x33b50a(0x14e)?_0x33b50a(0x14e):'edit/:'+_0x23f99b['Field'])+_0x33b50a(0x16a),_0x111193+=_0x33b50a(0x13a),_0x111193+=_0x33b50a(0x162),_0x111193+=_0x33b50a(0x172),_0x111193+='</template>\x0a',_0x111193+='<script\x20lang=\x22ts\x22\x20setup>\x0a';if(_0x157b88==_0x33b50a(0x14e)){_0x111193+=_0x33b50a(0x17b)+_0x34a7f6+'AddRule\x20}\x20from\x20\x27../interface\x27;\x0a';if(!_0x22dc2c)_0x111193+=_0x33b50a(0x17b)+_0x34a7f6+_0x33b50a(0x150)+(_0x2e6251?_0x33b50a(0xa0)+_0x2e6251:''+_0x18ce10)+'/'+_0x34a7f6+_0x33b50a(0x15e);}else{if(_0x157b88==_0x33b50a(0xa7)){_0x111193+=_0x33b50a(0x17b)+_0x34a7f6+'EditRule\x20}\x20from\x20\x27../interface\x27;\x0a';if(!_0x22dc2c)_0x111193+=_0x33b50a(0x17b)+_0x34a7f6+_0x33b50a(0x109)+_0x34a7f6+_0x33b50a(0x173)+(_0x2e6251?_0x33b50a(0xa0)+_0x2e6251:''+_0x18ce10)+'/'+_0x34a7f6+_0x33b50a(0x15e);}}_0x111193+='const\x20refForm\x20=\x20ref(),\x20formdata\x20=\x20ref<any>({});\x0a';if(_0x157b88=='add')_0x111193+='const\x20loading\x20=\x20ref(false),\x20router\x20=\x20useRouter();\x0a\x0a';else _0x157b88==_0x33b50a(0xa7)&&(_0x111193+=_0x33b50a(0x170));_0x111193+=_0x33b50a(0xd8),_0x111193+=_0x33b50a(0x175),_0x111193+=_0x33b50a(0xad),_0x111193+=_0x33b50a(0xdb)+_0x59af45+_0x33b50a(0xa6),_0x111193+='\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20loading.value\x20=\x20false,\x20$notify.success(res?.message\x20||\x20\x27操作成功\x27),\x20router.back();\x0a',_0x111193+=_0x33b50a(0x181),_0x111193+=_0x33b50a(0xc6),_0x111193+=_0x33b50a(0x178),_0x111193+=_0x33b50a(0xfe),_0x111193+=_0x33b50a(0x112),_0x157b88==_0x33b50a(0xa7)&&(_0x111193+=_0x33b50a(0xa9),_0x111193+=_0x33b50a(0xa1)+_0x23f99b[_0x33b50a(0xb9)]+':\x20'+(_0x47b52c?'number':_0x33b50a(0x120))+')\x20=>\x20{\x0a',_0x111193+='\x20\x20\x20\x20if\x20('+_0x23f99b[_0x33b50a(0xb9)]+_0x33b50a(0x156),_0x111193+=_0x33b50a(0xaf),_0x111193+='\x20\x20\x20\x20\x20\x20\x20\x20'+_0x54b89f+'.then(res\x20=>\x20{\x0a',_0x111193+=_0x33b50a(0x16b),_0x111193+=_0x33b50a(0xf1),_0x111193+=_0x33b50a(0xd3),_0x111193+='\x20\x20\x20\x20\x20\x20\x20\x20})\x0a',_0x111193+=_0x33b50a(0x11c),_0x111193+=_0x33b50a(0xd5),_0x111193+='\x20\x20\x20\x20}\x0a',_0x111193+='}\x0a\x0a\x0a',_0x111193+='getDetail(route?.query?.'+_0x23f99b[_0x33b50a(0xb9)]+'\x20as\x20unknown\x20as\x20'+(_0x47b52c?_0x33b50a(0x16c):_0x33b50a(0x120))+')\x0a'),_0x111193+=_0x33b50a(0xeb),fs[_0x33b50a(0x13b)]((0x0,path_1[_0x33b50a(0xb0)])(_0x17223e),{'recursive':!![]}),fs[_0x33b50a(0xb1)](_0x17223e,_0x111193,'utf-8');}}async function createAddOrEditDialog({moduleName:_0x7a756a,controller:_0x48ff1f,tablestart:_0x2288dd,tablestartUpShort:_0x27f69e,tablestartLowShort:_0x14d08a,tablestartUpShort2:_0x4b04b6,Primary:_0x59c3e4,Fields:_0x5a3312,apporbasic:_0x50c554,Comment:_0x1a00c8,vueapiprefix:_0x192fa2},_0x4a58aa='add'){const _0x46f5b3=a13_0x4f4392;let _0x3c435b=process[_0x46f5b3(0x11d)]()+_0x46f5b3(0x110)+(typeof _0x48ff1f==_0x46f5b3(0x120)?'/'+_0x48ff1f:'');_0x7a756a?_0x3c435b=_0x3c435b+(_0x46f5b3(0x144)+_0x7a756a+'/'+_0x4b04b6+_0x46f5b3(0xf8)+_0x4a58aa+'.vue'):_0x3c435b=_0x3c435b+(_0x46f5b3(0xb4)+_0x50c554+'/'+_0x4b04b6+_0x46f5b3(0xf8)+_0x4a58aa+_0x46f5b3(0xdf));if(!fs[_0x46f5b3(0xd9)](_0x3c435b)){const _0x5f3c03=''+(typeof _0x48ff1f==_0x46f5b3(0x120)?_0x48ff1f+'/':'')+(_0x7a756a?_0x7a756a+'/':'')+_0x4b04b6,_0x2f600f=_0x192fa2?_0x192fa2+'.'+(_0x7a756a?''+_0x7a756a+_0x27f69e:_0x27f69e):''+_0x27f69e,_0x51ae6d=_0x192fa2?_0x2f600f+_0x46f5b3(0xcb)+_0x59c3e4['Field']+'\x20}\x20}\x20as\x20any)':_0x27f69e+'Detail('+_0x59c3e4[_0x46f5b3(0xb9)]+')',_0x31ea95=_0x4a58aa==_0x46f5b3(0x14e)?_0x192fa2?_0x2f600f+_0x46f5b3(0x14f):_0x27f69e+_0x46f5b3(0xbf):_0x192fa2?_0x2f600f+_0x46f5b3(0x141)+_0x59c3e4[_0x46f5b3(0xb9)]+_0x46f5b3(0xe4)+_0x59c3e4['Field']+_0x46f5b3(0xa8):_0x27f69e+_0x46f5b3(0xca)+_0x59c3e4[_0x46f5b3(0xb9)]+_0x46f5b3(0x16d);let _0x41ff44='';for(let _0xce5f99 in _0x5a3312){const _0xe2f3ff=_0x5a3312[_0xce5f99];if([_0x46f5b3(0x157),'updated_at','deleted_at',_0x46f5b3(0xda)][_0x46f5b3(0xba)](_0xce5f99)!=-0x1)continue;if(_0xce5f99[_0x46f5b3(0x106)](_0xce5f99['length']-0x4)==_0x46f5b3(0xed)||_0xce5f99['substring'](_0xce5f99[_0x46f5b3(0x16f)]-0x6)==_0x46f5b3(0x131))_0x41ff44+='\x0a'+_0x46f5b3(0xfb)+(_0x46f5b3(0x171)+(_0xe2f3ff['Comment']||_0xe2f3ff[_0x46f5b3(0xb9)])+_0x46f5b3(0x12a)+_0xce5f99+'\x22\x20class=\x22block\x22>'),_0x41ff44+='\x0a'+_0x46f5b3(0x184)+(_0x46f5b3(0x163)+_0xce5f99+_0x46f5b3(0x145)+(_0x7a756a?_0x46f5b3(0x11b)+_0x7a756a+'\x22':'')+_0x46f5b3(0xfd)),_0x41ff44+='\x0a'+_0x46f5b3(0xfb)+'</el-form-item>'+'\x0a';else{if(_0xce5f99[_0x46f5b3(0x106)](_0xce5f99[_0x46f5b3(0x16f)]-0x3)=='img'||_0xce5f99['substring'](_0xce5f99['length']-0x5)=='thumb'||_0xce5f99==_0x46f5b3(0xc9)||_0xce5f99['substring'](_0xce5f99['length']-0x4)==_0x46f5b3(0xbc)||_0xce5f99==_0x46f5b3(0xbc))_0x41ff44+='\x0a'+_0x46f5b3(0xfb)+(_0x46f5b3(0x171)+(_0xe2f3ff[_0x46f5b3(0xd0)]||_0xe2f3ff[_0x46f5b3(0xb9)])+_0x46f5b3(0x12a)+_0xce5f99+_0x46f5b3(0x185)),_0x41ff44+='\x0a'+_0x46f5b3(0x184)+(_0x46f5b3(0x163)+_0xce5f99+'\x22\x20:limit=\x221\x22\x20'+(_0x7a756a?_0x46f5b3(0x11b)+_0x7a756a+'\x22':'')+'/>'),_0x41ff44+='\x0a'+_0x46f5b3(0xfb)+'</el-form-item>'+'\x0a';else{if(_0xce5f99[_0x46f5b3(0x106)](_0xce5f99['length']-0x4)==_0x46f5b3(0xc7)||_0xce5f99[_0x46f5b3(0x106)](_0xce5f99['length']-0x3)=='tag')_0x41ff44+='\x0a'+_0x46f5b3(0xfb)+('<el-form-item\x20label=\x22'+(_0xe2f3ff['Comment']||_0xe2f3ff['Field'])+_0x46f5b3(0x12a)+_0xce5f99+'\x22>'),_0x41ff44+='\x0a'+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x46f5b3(0x121)+_0xce5f99+_0x46f5b3(0x105)+_0xe2f3ff[_0x46f5b3(0xd0)]+_0x46f5b3(0xfa)),_0x41ff44+='\x0a'+_0x46f5b3(0xfb)+_0x46f5b3(0x137)+'\x0a';else{if(_0xce5f99[_0x46f5b3(0x17d)](-0x3)==_0x46f5b3(0x182))_0x41ff44+='\x0a'+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x46f5b3(0x171)+(_0xe2f3ff[_0x46f5b3(0xd0)]||_0xe2f3ff['Field'])+_0x46f5b3(0x12a)+_0xce5f99+'\x22>'),_0x41ff44+='\x0a'+_0x46f5b3(0x184)+(_0x46f5b3(0x164)+_0xce5f99+_0x46f5b3(0x117)+_0xe2f3ff[_0x46f5b3(0xd0)]+_0x46f5b3(0xac)),_0x41ff44+='\x0a'+_0x46f5b3(0xfb)+_0x46f5b3(0x137)+'\x0a';else{if(_0xce5f99['substr'](-0x4)==_0x46f5b3(0x12e))_0x41ff44+='\x0a'+_0x46f5b3(0xfb)+('<el-form-item\x20label=\x22'+(_0xe2f3ff[_0x46f5b3(0xd0)]||_0xe2f3ff['Field'])+_0x46f5b3(0x12a)+_0xce5f99+'\x22>'),_0x41ff44+='\x0a'+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x46f5b3(0x136)+_0xce5f99+'\x22\x20placeholder=\x22请输入'+_0xe2f3ff['Comment']+_0x46f5b3(0xbe)),_0x41ff44+='\x0a'+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x46f5b3(0x137)+'\x0a';else{if(_0xce5f99[_0x46f5b3(0x17d)](-0x3)==_0x46f5b3(0xe3)){let _0x2ffb03=''+(typeof _0x48ff1f==_0x46f5b3(0x120)?_0x48ff1f+'/':'')+(_0x7a756a?_0x7a756a+'/':'')+_0x4b04b6;_0x41ff44+='\x0a'+_0x46f5b3(0xfb)+(_0x46f5b3(0x171)+(_0xe2f3ff[_0x46f5b3(0xd0)]||_0xe2f3ff[_0x46f5b3(0xb9)])+_0x46f5b3(0x12a)+_0xce5f99+'\x22>'),_0x41ff44+='\x0a'+_0x46f5b3(0x184)+('<elplus-search-select\x20v-model=\x22formdata.'+_0xce5f99+'\x22\x20'+(_0x192fa2?_0x46f5b3(0x103)+(_0x7a756a?''+_0x7a756a+_0x27f69e:_0x27f69e)+_0x46f5b3(0x9e):_0x46f5b3(0x9f)+_0x2ffb03+'\x22')+_0x46f5b3(0x133)),_0x41ff44+='\x0a'+_0x46f5b3(0xfb)+'</el-form-item>'+'\x0a';}else switch((0x0,helper_1['getProp'])(_0xe2f3ff['Type'])){case'number':_0x41ff44+='\x0a'+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x46f5b3(0x171)+(_0xe2f3ff[_0x46f5b3(0xd0)]||_0xe2f3ff[_0x46f5b3(0xb9)])+'\x22\x20prop=\x22'+_0xce5f99+'\x22>'),_0x41ff44+='\x0a'+_0x46f5b3(0x184)+(_0x46f5b3(0x164)+_0xce5f99+'\x22\x20placeholder=\x22请输入'+_0xe2f3ff[_0x46f5b3(0xd0)]+_0x46f5b3(0xac)),_0x41ff44+='\x0a'+_0x46f5b3(0xfb)+_0x46f5b3(0x137)+'\x0a';break;case _0x46f5b3(0x159):_0x41ff44+='\x0a'+_0x46f5b3(0xfb)+('<el-form-item\x20label=\x22'+(_0xe2f3ff[_0x46f5b3(0xd0)]||_0xe2f3ff[_0x46f5b3(0xb9)])+_0x46f5b3(0x12a)+_0xce5f99+'\x22>'),_0x41ff44+='\x0a'+_0x46f5b3(0x184)+('<el-select\x20v-model=\x22formdata.'+_0xce5f99+_0x46f5b3(0x148)+_0xe2f3ff[_0x46f5b3(0xd0)]+_0x46f5b3(0x124));for(let _0x21b5cb of(0x0,helper_1['getEnum'])(_0xe2f3ff[_0x46f5b3(0x10f)])){_0x41ff44+='\x0a'+_0x46f5b3(0xff)+('<el-option\x20label=\x22'+_0x21b5cb+_0x46f5b3(0x165)+_0x21b5cb+_0x46f5b3(0x13c));}_0x41ff44+='\x0a'+_0x46f5b3(0x184)+_0x46f5b3(0xb5),_0x41ff44+='\x0a'+_0x46f5b3(0xfb)+_0x46f5b3(0x137)+'\x0a';break;case'text':_0x41ff44+='\x0a'+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+('<el-form-item\x20label=\x22'+(_0xe2f3ff['Comment']||_0xe2f3ff[_0x46f5b3(0xb9)])+'\x22\x20prop=\x22'+_0xce5f99+_0x46f5b3(0x185)),_0x41ff44+='\x0a'+_0x46f5b3(0x184)+('<el-input\x20v-model=\x22formdata.'+_0xce5f99+_0x46f5b3(0x108)+_0xe2f3ff[_0x46f5b3(0xd0)]+_0x46f5b3(0xf2)),_0x41ff44+='\x0a'+_0x46f5b3(0xfb)+_0x46f5b3(0x137)+'\x0a';break;case _0x46f5b3(0x107):_0x41ff44+='\x0a'+_0x46f5b3(0xfb)+(_0x46f5b3(0x171)+(_0xe2f3ff[_0x46f5b3(0xd0)]||_0xe2f3ff['Field'])+_0x46f5b3(0x12a)+_0xce5f99+'\x22\x20class=\x22block\x22>'),_0x41ff44+='\x0a'+_0x46f5b3(0x184)+('<tinymce-editor\x20v-model=\x22formdata.'+_0xce5f99+'\x22\x20'+(_0x7a756a?_0x46f5b3(0x11b)+_0x7a756a+'\x22':'')+'/>'),_0x41ff44+='\x0a'+_0x46f5b3(0xfb)+_0x46f5b3(0x137)+'\x0a';break;case _0x46f5b3(0x10a):_0x41ff44+='\x0a'+_0x46f5b3(0xfb)+('<el-form-item\x20label=\x22'+(_0xe2f3ff[_0x46f5b3(0xd0)]||_0xe2f3ff['Field'])+_0x46f5b3(0x12a)+_0xce5f99+'\x22\x20class=\x22block\x22>'),_0x41ff44+='\x0a'+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+('<tinymce-editor\x20v-model=\x22formdata.'+_0xce5f99+'\x22\x20'+(_0x7a756a?_0x46f5b3(0x11b)+_0x7a756a+'\x22':'')+'/>'),_0x41ff44+='\x0a'+_0x46f5b3(0xfb)+_0x46f5b3(0x137)+'\x0a';break;case _0x46f5b3(0x15b):_0x41ff44+='\x0a'+_0x46f5b3(0xfb)+(_0x46f5b3(0x171)+(_0xe2f3ff['Comment']||_0xe2f3ff[_0x46f5b3(0xb9)])+_0x46f5b3(0x12a)+_0xce5f99+'\x22>'),_0x41ff44+='\x0a'+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x46f5b3(0xc8)+_0xce5f99+_0x46f5b3(0xdc)+_0xe2f3ff[_0x46f5b3(0xd0)]+_0x46f5b3(0xc3)),_0x41ff44+='\x0a'+_0x46f5b3(0xfb)+'</el-form-item>'+'\x0a';break;case _0x46f5b3(0xf6):_0x41ff44+='\x0a'+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x46f5b3(0x171)+(_0xe2f3ff[_0x46f5b3(0xd0)]||_0xe2f3ff[_0x46f5b3(0xb9)])+_0x46f5b3(0x12a)+_0xce5f99+'\x22>'),_0x41ff44+='\x0a'+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x46f5b3(0xc8)+_0xce5f99+_0x46f5b3(0xdc)+_0xe2f3ff['Comment']+'\x22\x20type=\x22datetime\x22\x20value-format=\x22YYYY-MM-DD\x20HH:mm:ss\x22/>'),_0x41ff44+='\x0a'+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x46f5b3(0x137)+'\x0a';break;case _0x46f5b3(0x115):_0x41ff44+='\x0a'+_0x46f5b3(0xfb)+('<el-form-item\x20label=\x22'+(_0xe2f3ff[_0x46f5b3(0xd0)]||_0xe2f3ff[_0x46f5b3(0xb9)])+_0x46f5b3(0x12a)+_0xce5f99+'\x22>'),_0x41ff44+='\x0a'+_0x46f5b3(0x184)+('<el-date-picker\x20v-model=\x22formdata.'+_0xce5f99+_0x46f5b3(0xdc)+_0xe2f3ff[_0x46f5b3(0xd0)]+_0x46f5b3(0xc0)),_0x41ff44+='\x0a'+_0x46f5b3(0xfb)+'</el-form-item>'+'\x0a';break;default:_0x41ff44+='\x0a'+_0x46f5b3(0xfb)+(_0x46f5b3(0x171)+(_0xe2f3ff['Comment']||_0xe2f3ff[_0x46f5b3(0xb9)])+'\x22\x20prop=\x22'+_0xce5f99+'\x22>'),_0x41ff44+='\x0a'+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x46f5b3(0x136)+_0xce5f99+_0x46f5b3(0x117)+_0xe2f3ff['Comment']+_0x46f5b3(0xbe)),_0x41ff44+='\x0a'+_0x46f5b3(0xfb)+'</el-form-item>'+'\x0a';}}}}}}}_0x41ff44+='\x0a'+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x46f5b3(0xd2),_0x41ff44+='\x0a'+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x46f5b3(0xe5),_0x41ff44+='\x0a'+_0x46f5b3(0xfb)+_0x46f5b3(0x137)+'\x0a';let _0x5dd2ef='<template>\x0a';_0x5dd2ef+='\x20\x20\x20\x20<elplus-dialog\x20ref=\x22refDialog\x22\x20:loading=\x22loading\x22\x20title=\x22'+(_0x4a58aa=='add'?'添加'+_0x1a00c8:'编辑'+_0x1a00c8)+'\x22>\x0a',_0x5dd2ef+='\x20\x20\x20\x20\x20\x20\x20\x20<elplus-form\x20ref=\x22refForm\x22\x20:model=\x22formdata\x22\x20:rules=\x22'+_0x27f69e+(_0x4a58aa==_0x46f5b3(0x14e)?_0x46f5b3(0x12d):_0x46f5b3(0xb7))+_0x46f5b3(0x179)+_0x5f3c03+'/'+(_0x4a58aa==_0x46f5b3(0x14e)?'add':'edit/:'+_0x59c3e4[_0x46f5b3(0xb9)])+'`)\x22>\x0a',_0x5dd2ef+='\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x41ff44+'\x0a\x0a',_0x5dd2ef+=_0x46f5b3(0x162),_0x5dd2ef+=_0x46f5b3(0x155),_0x5dd2ef+=_0x46f5b3(0x17f)+_0x5f3c03+'/'+(_0x4a58aa=='add'?_0x46f5b3(0x14e):'edit/:'+_0x59c3e4[_0x46f5b3(0xb9)])+_0x46f5b3(0x16a),_0x5dd2ef+='\x20\x20\x20\x20\x20\x20\x20\x20</template>\x0a',_0x5dd2ef+='\x20\x20\x20\x20</elplus-dialog>\x0a',_0x5dd2ef+='</template>\x0a',_0x5dd2ef+=_0x46f5b3(0x143);if(_0x4a58aa==_0x46f5b3(0x14e)){_0x5dd2ef+='import\x20{\x20'+_0x27f69e+'AddRule\x20}\x20from\x20\x27../interface\x27;\x0a';if(!_0x192fa2)_0x5dd2ef+=_0x46f5b3(0x17b)+_0x27f69e+_0x46f5b3(0x150)+(_0x7a756a?_0x46f5b3(0xa0)+_0x7a756a:''+_0x50c554)+'/'+_0x27f69e+'\x27;\x0a';}else{if(_0x4a58aa==_0x46f5b3(0xa7)){_0x5dd2ef+=_0x46f5b3(0x17b)+_0x27f69e+'EditRule\x20}\x20from\x20\x27../interface\x27;\x0a';if(!_0x192fa2)_0x5dd2ef+='import\x20{\x20'+_0x27f69e+_0x46f5b3(0x142)+_0x27f69e+'Edit\x20}\x20from\x20\x27@/apis/'+(_0x7a756a?_0x46f5b3(0xa0)+_0x7a756a:''+_0x50c554)+'/'+_0x27f69e+_0x46f5b3(0x15e);}}if(_0x4a58aa=='add')_0x5dd2ef+='const\x20loading\x20=\x20ref(false),\x20refDialog\x20=\x20ref(null),\x20refForm\x20=\x20ref(null),\x20formdata\x20=\x20ref<any>({}),\x20emits\x20=\x20defineEmits([\x27save\x27]),\x20open\x20=\x20()\x20=>\x20{\x0a',_0x5dd2ef+='\x20\x20\x20\x20formdata.value\x20=\x20{},\x20refDialog?.value?.open();\x0a',_0x5dd2ef+=_0x46f5b3(0x112);else _0x4a58aa==_0x46f5b3(0xa7)&&(_0x5dd2ef+='const\x20loading\x20=\x20ref(false),\x20refDialog\x20=\x20ref(null),\x20refForm\x20=\x20ref(null),\x20formdata\x20=\x20ref<any>({}),\x20emits\x20=\x20defineEmits([\x27save\x27]),\x20open\x20=\x20('+_0x59c3e4['Field']+_0x46f5b3(0xef),_0x5dd2ef+='\x20\x20\x20\x20formdata.value\x20=\x20{},\x20'+_0x51ae6d+_0x46f5b3(0x161),_0x5dd2ef+='\x20\x20\x20\x20\x20\x20\x20\x20formdata.value\x20=\x20res?.data\x20||\x20{},\x20refDialog?.value?.open();\x0a',_0x5dd2ef+='\x20\x20\x20\x20}).catch(err\x20=>\x20{\x0a',_0x5dd2ef+='\x20\x20\x20\x20\x20\x20\x20\x20$notify.error(err\x20||\x20\x27网络请求错误\x27)\x0a',_0x5dd2ef+=_0x46f5b3(0xfe),_0x5dd2ef+=_0x46f5b3(0x112));;_0x5dd2ef+=_0x46f5b3(0xd8),_0x5dd2ef+='const\x20handlerSave\x20=\x20()=>{\x0a',_0x5dd2ef+='\x20\x20\x20\x20refForm.value?.validate().then((item:\x20any)\x20=>\x20{\x0a',_0x5dd2ef+=_0x46f5b3(0xdb)+_0x31ea95+_0x46f5b3(0xa6),_0x5dd2ef+=_0x46f5b3(0x11e),_0x5dd2ef+=_0x46f5b3(0x181),_0x5dd2ef+='\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20loading.value\x20=\x20false,\x20$notify.error(err\x20||\x20\x27网络请求错误\x27);\x0a',_0x5dd2ef+='\x20\x20\x20\x20\x20\x20\x20\x20})\x0a',_0x5dd2ef+=_0x46f5b3(0xfe),_0x5dd2ef+=_0x46f5b3(0x112),_0x5dd2ef+=_0x46f5b3(0xd7),_0x5dd2ef+=_0x46f5b3(0xeb),fs['mkdirSync']((0x0,path_1[_0x46f5b3(0xb0)])(_0x3c435b),{'recursive':!![]}),fs[_0x46f5b3(0xb1)](_0x3c435b,_0x5dd2ef,'utf-8');}}
@@ -0,0 +1,8 @@
1
+ export default function ({ tablestartUpShort2, moduleName, controller, Comment, apporbasic, vuedialog }: {
2
+ tablestartUpShort2: any;
3
+ moduleName: any;
4
+ controller: any;
5
+ Comment: any;
6
+ apporbasic: any;
7
+ vuedialog: any;
8
+ }): Promise<void>;
@@ -0,0 +1 @@
1
+ const a14_0x5f9147=a14_0x2989;(function(_0xe074c7,_0x215001){const _0x207717=a14_0x2989,_0x7a0e65=_0xe074c7();while(!![]){try{const _0x2c658d=-parseInt(_0x207717(0x1a0))/0x1*(parseInt(_0x207717(0x1c2))/0x2)+-parseInt(_0x207717(0x1c9))/0x3+-parseInt(_0x207717(0x1bb))/0x4+parseInt(_0x207717(0x1b9))/0x5+-parseInt(_0x207717(0x1c1))/0x6*(parseInt(_0x207717(0x1bf))/0x7)+parseInt(_0x207717(0x1bc))/0x8*(-parseInt(_0x207717(0x1ad))/0x9)+parseInt(_0x207717(0x1c7))/0xa*(parseInt(_0x207717(0x1ae))/0xb);if(_0x2c658d===_0x215001)break;else _0x7a0e65['push'](_0x7a0e65['shift']());}catch(_0x4a4525){_0x7a0e65['push'](_0x7a0e65['shift']());}}}(a14_0x86ff,0xb658a));function a14_0x2989(_0x33e34e,_0x5920e7){_0x33e34e=_0x33e34e-0x19d;const _0x9f27b3=a14_0x86ff();let _0x342b6e=_0x9f27b3[_0x33e34e];return _0x342b6e;}function a14_0x86ff(){const _0x4640ab=['\x20\x20\x20\x20//\x20redirect:\x20\x22/','export\x20default\x20{\x0a','constructor','1158939VBvxXt','131241XjIVxv','/list\x22','添加\x22,\x20isHidden:\x20true\x20}\x20},\x0a\x20\x20\x20\x20\x20\x20\x20\x20//\x20add\x20route\x20here','apps-','search','apply','padEnd','{\x20path:\x20\x22','//\x20add\x20route\x20here','\x20\x20\x20\x20meta:\x20{\x20title:\x20\x22','/list/index.vue\x27),\x20meta:\x20{\x20title:\x20\x22','3649310NrwBWW','/add\x22','2249624vDTmcG','16pBSCjk','/add/index.vue\x27),\x20meta:\x20{\x20title:\x20\x22','\x22\x20},\x0a','392QrYGDg','/pages/','141342kHAbDa','381142QGvenU','/index.vue\x27),\x20meta:\x20{\x20title:\x20\x22','/pages/apps/','(((.+)+)+)+$','defineProperty','2950BqtlXw','writeFileSync','2375292ctlFeS','\x20\x20\x20\x20path:\x20\x22/','replace','indexOf','/edit/index.vue\x27),\x20meta:\x20{\x20title:\x20\x22','readFileSync','cwd','__esModule','mkdirSync','toString','3yeNHRm',',\x20component:\x20()=>\x20import(\x27./',',\x0a\x20\x20\x20\x20\x20\x20\x20\x20//\x20add\x20route\x20here','default','\x22\x20}\x20}','\x20\x20\x20\x20children:[\x0a','\x22,\x0a','编辑\x22,\x20isHidden:\x20true\x20}\x20},\x0a\x0a\x20\x20\x20\x20\x20\x20\x20\x20//\x20add\x20route\x20here','dirname','utf-8'];a14_0x86ff=function(){return _0x4640ab;};return a14_0x86ff();}const a14_0x5a0f26=(function(){let _0x300a3f=!![];return function(_0x50f951,_0x571ff7){const _0x40226c=_0x300a3f?function(){const _0x1f8fa1=a14_0x2989;if(_0x571ff7){const _0x36d79e=_0x571ff7[_0x1f8fa1(0x1b3)](_0x50f951,arguments);return _0x571ff7=null,_0x36d79e;}}:function(){};return _0x300a3f=![],_0x40226c;};}()),a14_0x342b6e=a14_0x5a0f26(this,function(){const _0x41a455=a14_0x2989;return a14_0x342b6e[_0x41a455(0x19f)]()[_0x41a455(0x1b2)](_0x41a455(0x1c5))[_0x41a455(0x19f)]()[_0x41a455(0x1ac)](a14_0x342b6e)['search'](_0x41a455(0x1c5));});a14_0x342b6e();'use strict';Object[a14_0x5f9147(0x1c6)](exports,a14_0x5f9147(0x19d),{'value':!![]}),exports[a14_0x5f9147(0x1a3)]=default_1;const fs=require('fs'),path_1=require('path');async function default_1({tablestartUpShort2:_0x1e7e48,moduleName:_0x550159,controller:_0x4d5de7,Comment:_0x326ad3,apporbasic:_0x56549c,vuedialog:_0x261ced}){await createRoutes({'tablestartUpShort2':_0x1e7e48,'moduleName':_0x550159,'controller':_0x4d5de7,'Comment':_0x326ad3,'apporbasic':_0x56549c,'vuedialog':_0x261ced});}async function createRoutes({tablestartUpShort2:_0x35d1e5,moduleName:_0x21fb08,controller:_0x5378a2,Comment:_0x44d949,apporbasic:_0x417019,vuedialog:_0xe57ea8}){const _0x27dc22=a14_0x5f9147;let _0x2069ae=process[_0x27dc22(0x1cf)]()+'/vue'+(typeof _0x5378a2=='string'?'/'+_0x5378a2:'');_0x21fb08?_0x2069ae=_0x2069ae+(_0x27dc22(0x1c4)+_0x21fb08+'/routes.ts'):_0x2069ae=_0x2069ae+(_0x27dc22(0x1c0)+_0x417019+'/routes.ts');if(!fs['existsSync'](_0x2069ae)){let _0x33eaf9='';_0x33eaf9+=_0x27dc22(0x1ab),_0x33eaf9+=_0x27dc22(0x1ca)+(_0x21fb08?_0x27dc22(0x1b1)+_0x21fb08+'/':_0x417019+'/')+_0x27dc22(0x1a6),_0x33eaf9+=_0x27dc22(0x1aa)+(_0x21fb08?'apps-'+_0x21fb08+'/':_0x417019+'/')+_0x27dc22(0x1a6),_0x33eaf9+=_0x27dc22(0x1b7)+(_0x21fb08||_0x44d949)+_0x27dc22(0x1be),_0x33eaf9+=_0x27dc22(0x1a5),_0x33eaf9+='\x20\x20\x20\x20\x20\x20\x20\x20//\x20add\x20route\x20here\x0a',_0x33eaf9+='\x20\x20\x20\x20]\x0a',_0x33eaf9+='}\x0a',fs[_0x27dc22(0x19e)]((0x0,path_1[_0x27dc22(0x1a8)])(_0x2069ae),{'recursive':!![]}),fs[_0x27dc22(0x1c8)](_0x2069ae,_0x33eaf9,'utf-8');}const _0x1c5777=fs[_0x27dc22(0x1ce)](_0x2069ae,_0x27dc22(0x1a9));let _0x469d37;!_0xe57ea8?_0x469d37=_0x27dc22(0x1b5)+(_0x35d1e5+_0x27dc22(0x1af))[_0x27dc22(0x1b4)](0x14)+(',\x20component:\x20()=>\x20import(\x27./'+_0x35d1e5+_0x27dc22(0x1b8)+_0x44d949+_0x27dc22(0x1a4)):_0x469d37=_0x27dc22(0x1b5)+(_0x35d1e5+'\x22')[_0x27dc22(0x1b4)](0x14)+(_0x27dc22(0x1a1)+_0x35d1e5+_0x27dc22(0x1c3)+_0x44d949+_0x27dc22(0x1a4));if(_0x1c5777[_0x27dc22(0x1cc)](_0x469d37)==-0x1){let _0x4a8a9a=_0x1c5777[_0x27dc22(0x1cb)](_0x27dc22(0x1b6),_0x469d37+_0x27dc22(0x1a2));!_0xe57ea8&&(_0x4a8a9a=_0x4a8a9a[_0x27dc22(0x1cb)]('//\x20add\x20route\x20here',_0x27dc22(0x1b5)+(_0x35d1e5+_0x27dc22(0x1ba))[_0x27dc22(0x1b4)](0x14)+(_0x27dc22(0x1a1)+_0x35d1e5+_0x27dc22(0x1bd)+_0x44d949+_0x27dc22(0x1b0))),_0x4a8a9a=_0x4a8a9a[_0x27dc22(0x1cb)](_0x27dc22(0x1b6),'{\x20path:\x20\x22'+(_0x35d1e5+'/edit\x22')[_0x27dc22(0x1b4)](0x14)+(_0x27dc22(0x1a1)+_0x35d1e5+_0x27dc22(0x1cd)+_0x44d949+_0x27dc22(0x1a7)))),fs[_0x27dc22(0x1c8)](_0x2069ae,_0x4a8a9a);}}
@@ -0,0 +1,8 @@
1
+ export default function ({ tablestartUpShort, tablestartUpShort2, moduleName, controller, apporbasic, Fields }: {
2
+ tablestartUpShort: any;
3
+ tablestartUpShort2: any;
4
+ moduleName: any;
5
+ controller: any;
6
+ apporbasic: any;
7
+ Fields: any;
8
+ }): Promise<void>;
@@ -0,0 +1 @@
1
+ const a15_0x5e4267=a15_0x3c93;(function(_0x3bd9c7,_0x2fd109){const _0x378074=a15_0x3c93,_0x53e656=_0x3bd9c7();while(!![]){try{const _0x404a2e=-parseInt(_0x378074(0x1d5))/0x1+parseInt(_0x378074(0x1a7))/0x2+parseInt(_0x378074(0x1dc))/0x3*(parseInt(_0x378074(0x1d1))/0x4)+parseInt(_0x378074(0x1b4))/0x5+-parseInt(_0x378074(0x1a9))/0x6+parseInt(_0x378074(0x1c1))/0x7+-parseInt(_0x378074(0x1ae))/0x8;if(_0x404a2e===_0x2fd109)break;else _0x53e656['push'](_0x53e656['shift']());}catch(_0xd2104f){_0x53e656['push'](_0x53e656['shift']());}}}(a15_0x42b2,0x6a8fa));const a15_0xe16c5f=(function(){let _0x92b8be=!![];return function(_0x7c1821,_0x5bc48e){const _0x5ad774=_0x92b8be?function(){const _0x7534e5=a15_0x3c93;if(_0x5bc48e){const _0x4fd96f=_0x5bc48e[_0x7534e5(0x1aa)](_0x7c1821,arguments);return _0x5bc48e=null,_0x4fd96f;}}:function(){};return _0x92b8be=![],_0x5ad774;};}()),a15_0x2f7f9f=a15_0xe16c5f(this,function(){const _0x3fb51b=a15_0x3c93;return a15_0x2f7f9f['toString']()[_0x3fb51b(0x1df)](_0x3fb51b(0x1ad))[_0x3fb51b(0x19b)]()[_0x3fb51b(0x1c5)](a15_0x2f7f9f)[_0x3fb51b(0x1df)](_0x3fb51b(0x1ad));});function a15_0x3c93(_0x1d6e6e,_0x4ecf86){_0x1d6e6e=_0x1d6e6e-0x19a;const _0x3b6bd7=a15_0x42b2();let _0x2f7f9f=_0x3b6bd7[_0x1d6e6e];return _0x2f7f9f;}a15_0x2f7f9f();'use strict';Object['defineProperty'](exports,a15_0x5e4267(0x1b8),{'value':!![]}),exports[a15_0x5e4267(0x1b6)]=default_1;const fs=require('fs'),path=require(a15_0x5e4267(0x1c9)),helper_1=require(a15_0x5e4267(0x1bd));async function default_1({tablestartUpShort:_0x5258f4,tablestartUpShort2:_0x1a1674,moduleName:_0x364c9b,controller:_0x3c92c0,apporbasic:_0x485cf1,Fields:_0x331cb5}){const _0x57169d=a15_0x5e4267;let _0x5867c5=process[_0x57169d(0x1bc)]()+_0x57169d(0x1c7)+(typeof _0x3c92c0==_0x57169d(0x1e0)?'/'+_0x3c92c0:'');_0x364c9b?_0x5867c5=_0x5867c5+(_0x57169d(0x1cc)+_0x364c9b+'/'+_0x1a1674+_0x57169d(0x1ba)):_0x5867c5=_0x5867c5+('/pages/'+_0x485cf1+'/'+_0x1a1674+_0x57169d(0x1ba));const _0x53af16='\x0a/**\x0a\x20*\x20数据添加验证\x0a\x20*\x20**/\x0aexport\x20const\x20'+_0x5258f4+_0x57169d(0x1cd)+_0x5258f4+_0x57169d(0x1d9),_0x1f5c87=await createAddRuleColumn({'Fields':_0x331cb5}),_0x2f65d3=await createEditRuleColumn({'Fields':_0x331cb5});!fs[_0x57169d(0x1db)](path[_0x57169d(0x1d0)](_0x5867c5))&&fs[_0x57169d(0x1d3)](path[_0x57169d(0x1d0)](_0x5867c5),{'recursive':!![]}),fs[_0x57169d(0x1c6)](_0x5867c5,_0x53af16[_0x57169d(0x1dd)](_0x57169d(0x1bb),_0x1f5c87)['replace']('%EditRuleColumn%',_0x2f65d3),_0x57169d(0x1a5));}async function createAddRuleColumn({Fields:_0x20a8db}){const _0x7d39fa=a15_0x5e4267;let _0x57ce0a='';for(let _0x581b4c in _0x20a8db){let _0x1afa44=_0x20a8db[_0x581b4c],_0x5481a4=(0x0,helper_1['getProp'])(_0x1afa44[_0x7d39fa(0x1b3)]);if(_0x1afa44[_0x7d39fa(0x19a)]==_0x7d39fa(0x1be)||_0x1afa44[_0x7d39fa(0x19a)]==_0x7d39fa(0x1ca)||_0x1afa44[_0x7d39fa(0x19a)]==_0x7d39fa(0x1b1)||_0x1afa44[_0x7d39fa(0x19a)]==_0x7d39fa(0x1b0))continue;if([_0x7d39fa(0x1cf),_0x7d39fa(0x1a0),_0x7d39fa(0x1d4)][_0x7d39fa(0x19c)](_0x5481a4)!=-0x1)_0x57ce0a+='\x20\x20\x20\x20//\x20'+_0x1afa44[_0x7d39fa(0x1ce)]+'\x0a',_0x57ce0a+=_0x7d39fa(0x1c2)+_0x1afa44[_0x7d39fa(0x19a)]+_0x7d39fa(0x1d7),_0x1afa44[_0x7d39fa(0x1b7)]!=_0x7d39fa(0x1a8)&&(_0x57ce0a+=_0x7d39fa(0x1a3)+_0x1afa44[_0x7d39fa(0x1ce)]+'不能为空`,\x20required:\x20'+(_0x1afa44[_0x7d39fa(0x1b7)]!=_0x7d39fa(0x1a8)?_0x7d39fa(0x1b9):_0x7d39fa(0x19e))+_0x7d39fa(0x1bf)),_0x57ce0a+=_0x7d39fa(0x1b2);else{if(['float','double','decimal','number'][_0x7d39fa(0x19c)](_0x5481a4)!=-0x1)_0x57ce0a+=_0x7d39fa(0x1b5)+_0x1afa44[_0x7d39fa(0x1ce)]+'\x0a',_0x57ce0a+=_0x7d39fa(0x1c2)+_0x1afa44[_0x7d39fa(0x19a)]+':\x20[\x0a',_0x57ce0a+=_0x7d39fa(0x1c4)+_0x1afa44[_0x7d39fa(0x1ce)]+'`,\x20type:\x20\x22number\x22\x20},\x0a',_0x1afa44[_0x7d39fa(0x1b7)]!=_0x7d39fa(0x1a8)&&(_0x57ce0a+='\x20\x20\x20\x20\x20\x20\x20\x20{\x20message:\x20`'+_0x1afa44[_0x7d39fa(0x1ce)]+_0x7d39fa(0x1c3)+(_0x1afa44[_0x7d39fa(0x1b7)]!='YES'?_0x7d39fa(0x1b9):_0x7d39fa(0x19e))+_0x7d39fa(0x1bf)),_0x57ce0a+='\x20\x20\x20\x20],\x0a\x0a';else{if([_0x7d39fa(0x1c8)]['indexOf'](_0x5481a4)!=-0x1)_0x57ce0a+='\x20\x20\x20\x20//\x20'+_0x1afa44[_0x7d39fa(0x1ce)]+'\x0a',_0x57ce0a+='\x20\x20\x20\x20'+_0x1afa44[_0x7d39fa(0x19a)]+_0x7d39fa(0x1d7),_0x57ce0a+=_0x7d39fa(0x1c4)+_0x1afa44[_0x7d39fa(0x1ce)]+_0x7d39fa(0x19d),_0x1afa44[_0x7d39fa(0x1b7)]!=_0x7d39fa(0x1a8)&&(_0x57ce0a+='\x20\x20\x20\x20\x20\x20\x20\x20{\x20message:\x20`'+_0x1afa44[_0x7d39fa(0x1ce)]+_0x7d39fa(0x1c3)+(_0x1afa44[_0x7d39fa(0x1b7)]!=_0x7d39fa(0x1a8)?'false':_0x7d39fa(0x19e))+_0x7d39fa(0x1bf)),_0x57ce0a+=_0x7d39fa(0x1b2);else{if(_0x5481a4==_0x7d39fa(0x1d2))_0x57ce0a+=_0x7d39fa(0x1b5)+_0x1afa44[_0x7d39fa(0x1ce)]+'\x0a',_0x57ce0a+=_0x7d39fa(0x1c2)+_0x1afa44[_0x7d39fa(0x19a)]+':\x20[\x0a',_0x1afa44[_0x7d39fa(0x1b7)]!=_0x7d39fa(0x1a8)&&(_0x57ce0a+=_0x7d39fa(0x1a3)+_0x1afa44[_0x7d39fa(0x1ce)]+_0x7d39fa(0x1c3)+(_0x1afa44['Null']!=_0x7d39fa(0x1a8)?_0x7d39fa(0x1b9):'true')+_0x7d39fa(0x1bf)),_0x57ce0a+=_0x7d39fa(0x1b2);else{if(_0x5481a4==_0x7d39fa(0x1a1)){let _0x560549=(0x0,helper_1[_0x7d39fa(0x1ac)])(_0x1afa44['Type']);_0x57ce0a+=_0x7d39fa(0x1b5)+_0x1afa44[_0x7d39fa(0x1ce)]+'\x0a',_0x57ce0a+='\x20\x20\x20\x20'+_0x1afa44[_0x7d39fa(0x19a)]+_0x7d39fa(0x1d7),_0x57ce0a+=_0x7d39fa(0x1c4)+_0x1afa44[_0x7d39fa(0x1ce)]+'`,\x20type:\x20\x22enum\x22,\x20enum:\x20[\x27'+_0x560549[_0x7d39fa(0x19f)](_0x7d39fa(0x1da))+'\x27]\x20},\x0a',_0x1afa44[_0x7d39fa(0x1b7)]!=_0x7d39fa(0x1a8)&&(_0x57ce0a+=_0x7d39fa(0x1a3)+_0x1afa44['Comment']+_0x7d39fa(0x1c3)+(_0x1afa44[_0x7d39fa(0x1b7)]!=_0x7d39fa(0x1a8)?_0x7d39fa(0x1b9):'true')+'\x20},\x0a'),_0x57ce0a+=_0x7d39fa(0x1b2);}else[_0x7d39fa(0x1d8),_0x7d39fa(0x1de),_0x7d39fa(0x1a2)]['indexOf'](_0x5481a4)>-0x1?(_0x57ce0a+='\x20\x20\x20\x20//\x20'+_0x1afa44[_0x7d39fa(0x1ce)]+'\x0a',_0x57ce0a+=_0x7d39fa(0x1c2)+_0x1afa44['Field']+':\x20[\x0a',_0x57ce0a+=_0x7d39fa(0x1c4)+_0x1afa44['Comment']+_0x7d39fa(0x1ab),_0x1afa44['Null']!='YES'&&(_0x57ce0a+=_0x7d39fa(0x1a3)+_0x1afa44['Comment']+'不能为空`,\x20required:\x20'+(_0x1afa44[_0x7d39fa(0x1b7)]!='YES'?_0x7d39fa(0x1b9):_0x7d39fa(0x19e))+_0x7d39fa(0x1bf)),_0x57ce0a+=_0x7d39fa(0x1b2)):(_0x57ce0a+='\x20\x20\x20\x20//\x20'+_0x1afa44[_0x7d39fa(0x1ce)]+'\x0a',_0x57ce0a+='\x20\x20\x20\x20'+_0x1afa44['Field']+_0x7d39fa(0x1d7),_0x57ce0a+=_0x7d39fa(0x1c4)+_0x1afa44[_0x7d39fa(0x1ce)]+'`,\x20type:\x20\x22string\x22\x20},\x0a',_0x1afa44[_0x7d39fa(0x1b7)]!=_0x7d39fa(0x1a8)&&(_0x57ce0a+='\x20\x20\x20\x20\x20\x20\x20\x20{\x20message:\x20`'+_0x1afa44['Comment']+_0x7d39fa(0x1c3)+(_0x1afa44[_0x7d39fa(0x1b7)]!=_0x7d39fa(0x1a8)?_0x7d39fa(0x1b9):'true')+_0x7d39fa(0x1bf)),_0x57ce0a+='\x20\x20\x20\x20],\x0a\x0a');}}}}}return _0x57ce0a;}async function createEditRuleColumn({Fields:_0x488ed9}){const _0xdc2eba=a15_0x5e4267;let _0x2ff4b6='';for(let _0x8c3d8c in _0x488ed9){let _0x26eca8=_0x488ed9[_0x8c3d8c],_0x920bd8=(0x0,helper_1[_0xdc2eba(0x1a4)])(_0x26eca8[_0xdc2eba(0x1b3)]);if(_0x26eca8[_0xdc2eba(0x19a)]=='displayorder'||_0x26eca8[_0xdc2eba(0x19a)]==_0xdc2eba(0x1ca)||_0x26eca8['Field']==_0xdc2eba(0x1b1)||_0x26eca8[_0xdc2eba(0x19a)]=='deleted_at')continue;if([_0xdc2eba(0x1cf),_0xdc2eba(0x1a0),_0xdc2eba(0x1d4)][_0xdc2eba(0x19c)](_0x920bd8)!=-0x1)_0x2ff4b6+=_0xdc2eba(0x1b5)+_0x26eca8['Comment']+'\x0a',_0x2ff4b6+='\x20\x20\x20\x20'+_0x26eca8[_0xdc2eba(0x19a)]+_0xdc2eba(0x1d7),_0x26eca8[_0xdc2eba(0x1b7)]!='YES'&&(_0x2ff4b6+=_0xdc2eba(0x1a3)+_0x26eca8[_0xdc2eba(0x1ce)]+_0xdc2eba(0x1c3)+(_0x26eca8[_0xdc2eba(0x1b7)]!=_0xdc2eba(0x1a8)?_0xdc2eba(0x1b9):_0xdc2eba(0x19e))+'\x20},\x0a'),_0x2ff4b6+=_0xdc2eba(0x1b2);else{if(['float','double',_0xdc2eba(0x1af),_0xdc2eba(0x1d6)]['indexOf'](_0x920bd8)!=-0x1)_0x2ff4b6+=_0xdc2eba(0x1b5)+_0x26eca8[_0xdc2eba(0x1ce)]+'\x0a',_0x2ff4b6+=_0xdc2eba(0x1c2)+_0x26eca8[_0xdc2eba(0x19a)]+_0xdc2eba(0x1d7),_0x2ff4b6+=_0xdc2eba(0x1c4)+_0x26eca8[_0xdc2eba(0x1ce)]+'`,\x20type:\x20\x22number\x22\x20},\x0a',_0x26eca8['Null']!=_0xdc2eba(0x1a8)&&(_0x2ff4b6+=_0xdc2eba(0x1a3)+_0x26eca8['Comment']+_0xdc2eba(0x1c3)+(_0x26eca8['Null']!=_0xdc2eba(0x1a8)?_0xdc2eba(0x1b9):_0xdc2eba(0x19e))+_0xdc2eba(0x1bf)),_0x2ff4b6+=_0xdc2eba(0x1b2);else{if([_0xdc2eba(0x1c8)][_0xdc2eba(0x19c)](_0x920bd8)!=-0x1)_0x2ff4b6+=_0xdc2eba(0x1b5)+_0x26eca8[_0xdc2eba(0x1ce)]+'\x0a',_0x2ff4b6+=_0xdc2eba(0x1c2)+_0x26eca8['Field']+_0xdc2eba(0x1d7),_0x2ff4b6+='\x20\x20\x20\x20\x20\x20\x20\x20{\x20message:\x20`请输入正确的'+_0x26eca8[_0xdc2eba(0x1ce)]+_0xdc2eba(0x19d),_0x26eca8[_0xdc2eba(0x1b7)]!='YES'&&(_0x2ff4b6+=_0xdc2eba(0x1a3)+_0x26eca8[_0xdc2eba(0x1ce)]+'不能为空`,\x20required:\x20'+(_0x26eca8[_0xdc2eba(0x1b7)]!=_0xdc2eba(0x1a8)?'false':_0xdc2eba(0x19e))+_0xdc2eba(0x1bf)),_0x2ff4b6+=_0xdc2eba(0x1b2);else{if(_0x920bd8==_0xdc2eba(0x1d2))_0x2ff4b6+=_0xdc2eba(0x1b5)+_0x26eca8[_0xdc2eba(0x1ce)]+'\x0a',_0x2ff4b6+=_0xdc2eba(0x1c2)+_0x26eca8['Field']+_0xdc2eba(0x1d7),_0x26eca8[_0xdc2eba(0x1b7)]!=_0xdc2eba(0x1a8)&&(_0x2ff4b6+=_0xdc2eba(0x1a3)+_0x26eca8['Comment']+_0xdc2eba(0x1c3)+(_0x26eca8[_0xdc2eba(0x1b7)]!=_0xdc2eba(0x1a8)?_0xdc2eba(0x1b9):'true')+'\x20},\x0a'),_0x2ff4b6+=_0xdc2eba(0x1b2);else{if(_0x920bd8==_0xdc2eba(0x1a1)){let _0x5cb516=(0x0,helper_1[_0xdc2eba(0x1ac)])(_0x26eca8[_0xdc2eba(0x1b3)]);_0x2ff4b6+=_0xdc2eba(0x1b5)+_0x26eca8['Comment']+'\x0a',_0x2ff4b6+='\x20\x20\x20\x20'+_0x26eca8[_0xdc2eba(0x19a)]+_0xdc2eba(0x1d7),_0x2ff4b6+=_0xdc2eba(0x1c4)+_0x26eca8[_0xdc2eba(0x1ce)]+_0xdc2eba(0x1c0)+_0x5cb516[_0xdc2eba(0x19f)](_0xdc2eba(0x1da))+_0xdc2eba(0x1a6),_0x26eca8[_0xdc2eba(0x1b7)]!='YES'&&(_0x2ff4b6+='\x20\x20\x20\x20\x20\x20\x20\x20{\x20message:\x20`'+_0x26eca8[_0xdc2eba(0x1ce)]+_0xdc2eba(0x1c3)+(_0x26eca8[_0xdc2eba(0x1b7)]!=_0xdc2eba(0x1a8)?'false':_0xdc2eba(0x19e))+'\x20},\x0a'),_0x2ff4b6+=_0xdc2eba(0x1b2);}else[_0xdc2eba(0x1d8),_0xdc2eba(0x1de),_0xdc2eba(0x1a2)]['indexOf'](_0x920bd8)>-0x1?(_0x2ff4b6+=_0xdc2eba(0x1b5)+_0x26eca8[_0xdc2eba(0x1ce)]+'\x0a',_0x2ff4b6+=_0xdc2eba(0x1c2)+_0x26eca8[_0xdc2eba(0x19a)]+':\x20[\x0a',_0x2ff4b6+='\x20\x20\x20\x20\x20\x20\x20\x20{\x20message:\x20`请输入正确的'+_0x26eca8[_0xdc2eba(0x1ce)]+_0xdc2eba(0x1ab),_0x26eca8[_0xdc2eba(0x1b7)]!=_0xdc2eba(0x1a8)&&(_0x2ff4b6+=_0xdc2eba(0x1a3)+_0x26eca8[_0xdc2eba(0x1ce)]+_0xdc2eba(0x1c3)+(_0x26eca8[_0xdc2eba(0x1b7)]!=_0xdc2eba(0x1a8)?_0xdc2eba(0x1b9):'true')+_0xdc2eba(0x1bf)),_0x2ff4b6+=_0xdc2eba(0x1b2)):(_0x2ff4b6+=_0xdc2eba(0x1b5)+_0x26eca8[_0xdc2eba(0x1ce)]+'\x0a',_0x2ff4b6+='\x20\x20\x20\x20'+_0x26eca8['Field']+_0xdc2eba(0x1d7),_0x2ff4b6+=_0xdc2eba(0x1c4)+_0x26eca8[_0xdc2eba(0x1ce)]+_0xdc2eba(0x1cb),_0x26eca8[_0xdc2eba(0x1b7)]!='YES'&&(_0x2ff4b6+=_0xdc2eba(0x1a3)+_0x26eca8[_0xdc2eba(0x1ce)]+_0xdc2eba(0x1c3)+(_0x26eca8[_0xdc2eba(0x1b7)]!='YES'?_0xdc2eba(0x1b9):_0xdc2eba(0x19e))+_0xdc2eba(0x1bf)),_0x2ff4b6+=_0xdc2eba(0x1b2));}}}}}return _0x2ff4b6;}function a15_0x42b2(){const _0x104440=['\x20\x20\x20\x20\x20\x20\x20\x20{\x20message:\x20`请输入正确的','constructor','writeFileSync','/vue','tinyint','path','created_at','`,\x20type:\x20\x22string\x22\x20},\x0a','/pages/apps/','AddRule\x20=\x20{\x0a%AddRuleColumn%\x0a}\x0a\x0a/**\x0a\x20*\x20数据修改验证\x0a\x20*\x20**/\x0aexport\x20const\x20','Comment','text','dirname','216408MWycfI','json','mkdirSync','mediumtext','607320uefNsl','number',':\x20[\x0a','date','EditRule\x20=\x20{\x0a%EditRuleColumn%\x0a}','\x27,\x20\x27','existsSync','9YVmgOB','replace','datetime','search','string','Field','toString','indexOf','`,\x20type:\x20\x22number\x22\x20},\x0a','true','join','longtext','enum','timestamp','\x20\x20\x20\x20\x20\x20\x20\x20{\x20message:\x20`','getProp','utf-8','\x27]\x20},\x0a','1576558GTvqGN','YES','2473866NBlnpN','apply','`,\x20type:\x20\x22date\x22\x20},\x0a','getEnum','(((.+)+)+)+$','8988840SSeTcg','decimal','deleted_at','updated_at','\x20\x20\x20\x20],\x0a\x0a','Type','4230390QpUJZB','\x20\x20\x20\x20//\x20','default','Null','__esModule','false','/interface.ts','%AddRuleColumn%','cwd','../helper','displayorder','\x20},\x0a','`,\x20type:\x20\x22enum\x22,\x20enum:\x20[\x27','5481329BTLeLD','\x20\x20\x20\x20','不能为空`,\x20required:\x20'];a15_0x42b2=function(){return _0x104440;};return a15_0x42b2();}
@@ -0,0 +1,19 @@
1
+ export interface IApicreate {
2
+ table?: string;
3
+ substr?: number;
4
+ hasvue?: boolean;
5
+ vuedialog?: boolean;
6
+ vueapiprefix?: string;
7
+ controller?: boolean | string | string[];
8
+ connection?: string;
9
+ tableprefix?: string;
10
+ }
11
+ export interface IApicreateApp extends IApicreate {
12
+ apporbasic?: 'app' | 'basic';
13
+ }
14
+ export interface IApicreateBasic extends IApicreate {
15
+ apporbasic?: 'app' | 'basic';
16
+ }
17
+ export interface IApicreatePlugin extends IApicreate {
18
+ module?: boolean;
19
+ }
@@ -0,0 +1 @@
1
+ var a16_0x7969cd=a16_0x1ac3;function a16_0x3286(){var _0x3b5331=['search','apply','constructor','6243kgEmNS','342465HsgvFT','1940iqzXry','toString','24kvvWlg','14275437ShLwDx','5838759FSogrq','7850160NETEHD','25302DjNzsU','6541OYhJGE','244TPyBTO','defineProperty','2219VArHzS','(((.+)+)+)+$'];a16_0x3286=function(){return _0x3b5331;};return a16_0x3286();}(function(_0x38ec35,_0x7134f9){var _0x3b730f=a16_0x1ac3,_0x4fae39=_0x38ec35();while(!![]){try{var _0x5679ee=-parseInt(_0x3b730f(0x8e))/0x1*(-parseInt(_0x3b730f(0x8f))/0x2)+-parseInt(_0x3b730f(0x85))/0x3*(parseInt(_0x3b730f(0x87))/0x4)+parseInt(_0x3b730f(0x86))/0x5+-parseInt(_0x3b730f(0x8d))/0x6*(parseInt(_0x3b730f(0x91))/0x7)+parseInt(_0x3b730f(0x89))/0x8*(parseInt(_0x3b730f(0x8b))/0x9)+-parseInt(_0x3b730f(0x8c))/0xa+parseInt(_0x3b730f(0x8a))/0xb;if(_0x5679ee===_0x7134f9)break;else _0x4fae39['push'](_0x4fae39['shift']());}catch(_0x2b9ff1){_0x4fae39['push'](_0x4fae39['shift']());}}}(a16_0x3286,0xef1e1));var a16_0x336e9c=(function(){var _0x442622=!![];return function(_0x49c052,_0x2bd40f){var _0x2da683=_0x442622?function(){var _0x2b2e6f=a16_0x1ac3;if(_0x2bd40f){var _0x1c2220=_0x2bd40f[_0x2b2e6f(0x83)](_0x49c052,arguments);return _0x2bd40f=null,_0x1c2220;}}:function(){};return _0x442622=![],_0x2da683;};}()),a16_0x52a334=a16_0x336e9c(this,function(){var _0x4630d2=a16_0x1ac3;return a16_0x52a334[_0x4630d2(0x88)]()['search'](_0x4630d2(0x92))[_0x4630d2(0x88)]()[_0x4630d2(0x84)](a16_0x52a334)[_0x4630d2(0x93)](_0x4630d2(0x92));});a16_0x52a334();'use strict';function a16_0x1ac3(_0x103afe,_0x5ae258){_0x103afe=_0x103afe-0x83;var _0x122398=a16_0x3286();var _0x52a334=_0x122398[_0x103afe];return _0x52a334;}Object[a16_0x7969cd(0x90)](exports,'__esModule',{'value':!![]});
package/package.json CHANGED
@@ -1,6 +1,29 @@
1
- {
2
- "name": "anvero-apihelper",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
1
+ {
2
+ "name": "anvero-apihelper",
3
+ "version": "3.0.0",
4
+ "main": "./dist/index.js",
5
+ "files": [
6
+ "dist"
7
+ ],
8
+ "license": "MIT",
9
+ "publishConfig": {
10
+ "access": "public",
11
+ "registry": "https://registry.npmjs.org/"
12
+ },
13
+ "scripts": {
14
+ "build2": "tsc",
15
+ "build": "tsc && javascript-obfuscator ./dist --output ./dist --config obfuscator.json"
16
+ },
17
+ "dependencies": {
18
+ "@midwayjs/core": "^4.2.6",
19
+ "@midwayjs/typeorm": "^4.2.6",
20
+ "@midwayjs/commander": "^4.2.6",
21
+ "@anveroapi/typeorm": "workspace:^"
22
+ },
23
+ "devDependencies": {
24
+ "typescript": "~5.9.3",
25
+ "@types/node": "20.10.0",
26
+ "javascript-obfuscator": "^4.0.2"
27
+ },
28
+ "gitHead": "f7d4644d5e0591c4b383021edab6db20d1714880"
29
+ }
package/README.md DELETED
@@ -1,3 +0,0 @@
1
- # Temporary Holding Version
2
-
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.