anvero-apihelper 0.0.0-stage → 3.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/command/AnveroGen.command.d.ts +15 -0
- package/dist/command/AnveroGen.command.js +1 -0
- package/dist/configuration.d.ts +7 -0
- package/dist/configuration.js +1 -0
- package/dist/helper.d.ts +2 -0
- package/dist/helper.js +1 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +1 -0
- package/dist/service/ApicreateService.d.ts +15 -0
- package/dist/service/ApicreateService.js +1 -0
- package/dist/templateFun/Action.d.ts +10 -0
- package/dist/templateFun/Action.js +1 -0
- package/dist/templateFun/Common.d.ts +7 -0
- package/dist/templateFun/Common.js +1 -0
- package/dist/templateFun/Entities.d.ts +11 -0
- package/dist/templateFun/Entities.js +1 -0
- package/dist/templateFun/Event.d.ts +7 -0
- package/dist/templateFun/Event.js +1 -0
- package/dist/templateFun/Handler.d.ts +9 -0
- package/dist/templateFun/Handler.js +1 -0
- package/dist/templateFun/Search.d.ts +7 -0
- package/dist/templateFun/Search.js +1 -0
- package/dist/templateFun/Validator.d.ts +11 -0
- package/dist/templateFun/Validator.js +1 -0
- package/dist/templateVue/Api.d.ts +9 -0
- package/dist/templateVue/Api.js +1 -0
- package/dist/templateVue/LayoutVue.d.ts +14 -0
- package/dist/templateVue/LayoutVue.js +1 -0
- package/dist/templateVue/Router.d.ts +8 -0
- package/dist/templateVue/Router.js +1 -0
- package/dist/templateVue/Validator.d.ts +8 -0
- package/dist/templateVue/Validator.js +1 -0
- package/dist/types/index.d.ts +19 -0
- package/dist/types/index.js +1 -0
- package/package.json +26 -3
- package/README.md +0 -3
|
@@ -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_0x5c99eb=a0_0x35d7;(function(_0x237fea,_0x39e362){const _0x2f934c=a0_0x35d7,_0x49454f=_0x237fea();while(!![]){try{const _0x39e274=-parseInt(_0x2f934c(0x108))/0x1*(parseInt(_0x2f934c(0xef))/0x2)+-parseInt(_0x2f934c(0xfa))/0x3*(-parseInt(_0x2f934c(0xdb))/0x4)+parseInt(_0x2f934c(0xe3))/0x5+parseInt(_0x2f934c(0xcc))/0x6+parseInt(_0x2f934c(0x100))/0x7*(parseInt(_0x2f934c(0xde))/0x8)+parseInt(_0x2f934c(0xf9))/0x9+-parseInt(_0x2f934c(0xf0))/0xa;if(_0x39e274===_0x39e362)break;else _0x49454f['push'](_0x49454f['shift']());}catch(_0x41583c){_0x49454f['push'](_0x49454f['shift']());}}}(a0_0x175c,0xd9175));const a0_0x46aa74=(function(){let _0x3b9f40=!![];return function(_0x127d96,_0x4587b9){const _0x388929=_0x3b9f40?function(){const _0x2abcdf=a0_0x35d7;if(_0x4587b9){const _0x5d6b2d=_0x4587b9[_0x2abcdf(0xee)](_0x127d96,arguments);return _0x4587b9=null,_0x5d6b2d;}}:function(){};return _0x3b9f40=![],_0x388929;};}()),a0_0x58c63a=a0_0x46aa74(this,function(){const _0x41ca41=a0_0x35d7;return a0_0x58c63a[_0x41ca41(0xe2)]()[_0x41ca41(0xd0)](_0x41ca41(0xc5))[_0x41ca41(0xe2)]()[_0x41ca41(0xc6)](a0_0x58c63a)['search']('(((.+)+)+)+$');});a0_0x58c63a();function a0_0x35d7(_0x4e3522,_0x4313be){_0x4e3522=_0x4e3522-0xba;const _0x19d788=a0_0x175c();let _0x58c63a=_0x19d788[_0x4e3522];return _0x58c63a;}'use strict';var __decorate=this&&this[a0_0x5c99eb(0xd5)]||function(_0x46b201,_0x266a86,_0x2124b0,_0x28e9f9){const _0x11c680=a0_0x5c99eb;var _0x536d39=arguments['length'],_0x1a3b64=_0x536d39<0x3?_0x266a86:_0x28e9f9===null?_0x28e9f9=Object[_0x11c680(0xcf)](_0x266a86,_0x2124b0):_0x28e9f9,_0x5acca7;if(typeof Reflect===_0x11c680(0xd7)&&typeof Reflect[_0x11c680(0x107)]===_0x11c680(0xba))_0x1a3b64=Reflect['decorate'](_0x46b201,_0x266a86,_0x2124b0,_0x28e9f9);else{for(var _0x3af6a4=_0x46b201[_0x11c680(0xc0)]-0x1;_0x3af6a4>=0x0;_0x3af6a4--)if(_0x5acca7=_0x46b201[_0x3af6a4])_0x1a3b64=(_0x536d39<0x3?_0x5acca7(_0x1a3b64):_0x536d39>0x3?_0x5acca7(_0x266a86,_0x2124b0,_0x1a3b64):_0x5acca7(_0x266a86,_0x2124b0))||_0x1a3b64;}return _0x536d39>0x3&&_0x1a3b64&&Object[_0x11c680(0x109)](_0x266a86,_0x2124b0,_0x1a3b64),_0x1a3b64;},__metadata=this&&this['__metadata']||function(_0x4679ab,_0x36cd5a){if(typeof Reflect==='object'&&typeof Reflect['metadata']==='function')return Reflect['metadata'](_0x4679ab,_0x36cd5a);};Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports['anveroGenCommand']=void 0x0;const core_1=require(a0_0x5c99eb(0xf5)),commander_1=require(a0_0x5c99eb(0xf1)),ApicreateService_1=require(a0_0x5c99eb(0xcd));let anveroGenCommand=class anveroGenCommand{['parseMode'](_0x38b469){return _0x38b469;}['parseTables'](_0x1c8d1e){const _0x502c09=a0_0x5c99eb;return(_0x1c8d1e||'')[_0x502c09(0xbf)](',')[_0x502c09(0x104)](_0x592b20=>_0x592b20[_0x502c09(0xfc)]())[_0x502c09(0xc7)](Boolean);}[a0_0x5c99eb(0xf3)](_0x5a5c77){const _0xbb87e0=a0_0x5c99eb;return typeof _0x5a5c77===_0xbb87e0(0xe4)?_0x5a5c77:undefined;}['parseSubstr'](_0x1568b3){const _0x26cb50=a0_0x5c99eb;return typeof _0x1568b3===_0x26cb50(0xe4)&&_0x1568b3!==''&&Number[_0x26cb50(0xfd)](Number(_0x1568b3))?Number(_0x1568b3):undefined;}[a0_0x5c99eb(0xbe)](_0x319dff){const _0x245251=a0_0x5c99eb;if(_0x319dff===undefined)return!![];return(_0x319dff||'')[_0x245251(0xbf)](',')[_0x245251(0x104)](_0x226117=>_0x226117['trim']())['filter'](Boolean);}[a0_0x5c99eb(0xd1)](){return!![];}[a0_0x5c99eb(0xc8)](){return!![];}['parseVueapiprefix'](_0x18893b){return typeof _0x18893b==='string'&&_0x18893b?_0x18893b:undefined;}[a0_0x5c99eb(0xe9)](_0x4b5596){const _0x3e5936=a0_0x5c99eb;return typeof _0x4b5596===_0x3e5936(0xe4)&&_0x4b5596?_0x4b5596:undefined;}async['run'](_0x562e50,_0x3f4e4f){const _0x32d385=a0_0x5c99eb,_0x2d157a=_0x3f4e4f['mode']||_0x32d385(0xf6);![_0x32d385(0xf6),'basic',_0x32d385(0x101)][_0x32d385(0xed)](_0x2d157a)&&(console[_0x32d385(0xe0)]('[gen:api]\x20未知模式\x20'+_0x2d157a+',可选\x20app\x20|\x20basic\x20|\x20plugin'),process[_0x32d385(0xcb)](0x1));const _0x2e8b35={'app':{'tableprefix':_0x32d385(0xda),'substr':0x4},'basic':{'tableprefix':'basic_','substr':0x6},'plugin':{'tableprefix':'','substr':0x0}},_0x4310c0=typeof _0x3f4e4f[_0x32d385(0xdf)]===_0x32d385(0xe4)?_0x3f4e4f[_0x32d385(0xdf)]:_0x2e8b35[_0x2d157a][_0x32d385(0xdf)],_0x3ee5ae=Number[_0x32d385(0xfd)](_0x3f4e4f[_0x32d385(0xff)])?_0x3f4e4f[_0x32d385(0xff)]:_0x2e8b35[_0x2d157a][_0x32d385(0xff)],_0x1a75fa=_0x3f4e4f[_0x32d385(0x103)]===undefined?[_0x32d385(0xf4)]:_0x3f4e4f[_0x32d385(0x103)],_0x236c6b=typeof _0x3f4e4f[_0x32d385(0xd9)]==='string'?_0x3f4e4f[_0x32d385(0xd9)]:_0x32d385(0xd6),_0x49bc72={'substr':_0x3ee5ae,'tableprefix':_0x4310c0,'controller':_0x1a75fa,'connection':_0x236c6b,'hasvue':_0x3f4e4f[_0x32d385(0xf7)],'vuedialog':!!_0x3f4e4f['vuedialog'],'vueapiprefix':_0x3f4e4f['vueapiprefix']},_0xc2f0f5=_0x3f4e4f['tables']||[],_0x514674=_0xc2f0f5[_0x32d385(0xc0)]?_0xc2f0f5:[''];for(const _0x2569a5 of _0x514674){const _0x5bedc9={..._0x49bc72,..._0x2569a5?{'table':_0x2569a5}:{}};if(_0x2d157a==='basic')await this[_0x32d385(0xd4)][_0x32d385(0xd3)](_0x5bedc9);else _0x2d157a===_0x32d385(0x101)?await this[_0x32d385(0xd4)]['createPlugin'](_0x5bedc9):await this[_0x32d385(0xd4)][_0x32d385(0x102)](_0x5bedc9);console[_0x32d385(0xc4)]('[gen:api]\x20完成:'+(_0x2569a5||_0x32d385(0xe1)+(_0x4310c0||'*')+'\x20全量匹配'));}console[_0x32d385(0xc4)](_0x32d385(0x106)+(_0x2d157a==='plugin'?_0x32d385(0xfb):'src/'+_0x2d157a)),process[_0x32d385(0xcb)](0x0);}};function a0_0x175c(){const _0x388bec=['10522722elRBjr','../service/ApicreateService','design:returntype','getOwnPropertyDescriptor','search','parseHasvue','Option','createBasic','ApicreateService','__decorate','default','object','-s,\x20--substr\x20[substr]','connection','app_','3436rcxDKy','表前缀过滤,默认\x20app\x20模式\x20\x27app_\x27、basic\x20模式\x20\x27basic_\x27、plugin\x20模式\x20\x27\x27(全表)','按数据库表生成分层\x20API\x20代码(--mode\x20app|basic|plugin,默认\x20app:表前缀\x20app_,控制器\x20admin,输出\x20src/app)','19056OcxLEa','tableprefix','error','按前缀\x20','toString','2242550PuTtUb','string','--vueapiprefix\x20[vueapiprefix]','-p,\x20--tableprefix\x20[tableprefix]','生成前端代码到\x20./vue;不带此参数不生成前端','anvero:gen','parseConnection','前端生成弹窗形态标记(配合\x20--hasvue)','design:type','-c,\x20--controller\x20[controller]','includes','apply','2iIzZKh','12629290qFIgaJ','@midwayjs/commander','parseSubstr','parseTableprefix','admin','@midwayjs/core','app','hasvue','parseVueapiprefix','4766742CJOiuu','2334iKmapB','src/apps/<模块>','trim','isFinite','--vuedialog','substr','1078jVaJkG','plugin','createApp','controller','map','prototype','[gen:api]\x20产物目录:','decorate','1614931Kwbkdg','defineProperty','--hasvue','parseMode','function','parseTables','Inject','生成模式\x20app|basic|plugin,默认\x20app(产物依次为\x20src/app、src/basic、src/apps/<模块>)','parseController','split','length','anveroGenCommand','-m,\x20--mode\x20[mode]','控制器目录名,逗号分隔多个,默认\x20admin;裸\x20flag\x20落\x20app/basic\x20根目录;空串只生成基础分层','log','(((.+)+)+)+$','constructor','filter','parseVuedialog','--connection\x20[connection]','design:paramtypes','exit'];a0_0x175c=function(){return _0x388bec;};return a0_0x175c();}exports[a0_0x5c99eb(0xc1)]=anveroGenCommand,__decorate([(0x0,core_1[a0_0x5c99eb(0xbc)])(),__metadata(a0_0x5c99eb(0xeb),ApicreateService_1['ApicreateService'])],anveroGenCommand[a0_0x5c99eb(0x105)],'ApicreateService',void 0x0),__decorate([(0x0,commander_1[a0_0x5c99eb(0xd2)])({'flags':a0_0x5c99eb(0xc2),'description':a0_0x5c99eb(0xbd)}),__metadata(a0_0x5c99eb(0xeb),Function),__metadata(a0_0x5c99eb(0xca),[String]),__metadata(a0_0x5c99eb(0xce),void 0x0)],anveroGenCommand[a0_0x5c99eb(0x105)],a0_0x5c99eb(0x10b),null),__decorate([(0x0,commander_1[a0_0x5c99eb(0xd2)])({'flags':'-t,\x20--tables\x20[tables]','description':'精确表名,逗号分隔多个;缺省按\x20tableprefix\x20全量匹配'}),__metadata(a0_0x5c99eb(0xeb),Function),__metadata(a0_0x5c99eb(0xca),[String]),__metadata('design:returntype',void 0x0)],anveroGenCommand['prototype'],a0_0x5c99eb(0xbb),null),__decorate([(0x0,commander_1['Option'])({'flags':a0_0x5c99eb(0xe6),'description':a0_0x5c99eb(0xdc)}),__metadata(a0_0x5c99eb(0xeb),Function),__metadata('design:paramtypes',[String]),__metadata('design:returntype',void 0x0)],anveroGenCommand[a0_0x5c99eb(0x105)],a0_0x5c99eb(0xf3),null),__decorate([(0x0,commander_1[a0_0x5c99eb(0xd2)])({'flags':a0_0x5c99eb(0xd8),'description':'表名截断长度,默认\x20app\x20模式\x204(去\x20app_)、basic\x20模式\x206(去\x20basic_)、plugin\x20模式\x200'}),__metadata(a0_0x5c99eb(0xeb),Function),__metadata(a0_0x5c99eb(0xca),[String]),__metadata('design:returntype',void 0x0)],anveroGenCommand[a0_0x5c99eb(0x105)],a0_0x5c99eb(0xf2),null),__decorate([(0x0,commander_1[a0_0x5c99eb(0xd2)])({'flags':a0_0x5c99eb(0xec),'description':a0_0x5c99eb(0xc3)}),__metadata(a0_0x5c99eb(0xeb),Function),__metadata(a0_0x5c99eb(0xca),[String]),__metadata(a0_0x5c99eb(0xce),void 0x0)],anveroGenCommand[a0_0x5c99eb(0x105)],a0_0x5c99eb(0xbe),null),__decorate([(0x0,commander_1['Option'])({'flags':a0_0x5c99eb(0x10a),'description':a0_0x5c99eb(0xe7)}),__metadata(a0_0x5c99eb(0xeb),Function),__metadata(a0_0x5c99eb(0xca),[]),__metadata(a0_0x5c99eb(0xce),void 0x0)],anveroGenCommand['prototype'],a0_0x5c99eb(0xd1),null),__decorate([(0x0,commander_1[a0_0x5c99eb(0xd2)])({'flags':a0_0x5c99eb(0xfe),'description':a0_0x5c99eb(0xea)}),__metadata(a0_0x5c99eb(0xeb),Function),__metadata(a0_0x5c99eb(0xca),[]),__metadata(a0_0x5c99eb(0xce),void 0x0)],anveroGenCommand[a0_0x5c99eb(0x105)],a0_0x5c99eb(0xc8),null),__decorate([(0x0,commander_1[a0_0x5c99eb(0xd2)])({'flags':a0_0x5c99eb(0xe5),'description':'前端全局\x20api\x20前缀(配合\x20--hasvue,如\x20$api):设置时不生成独立\x20api\x20文件,页面直接调\x20${前缀}.${模块}${表Pascal}.${方法}($api.Order.List\x20/\x20$api.helloincshOrders.List)适配\x20alova;缺省按原规则生成\x20vue/apis\x20独立\x20api\x20文件'}),__metadata(a0_0x5c99eb(0xeb),Function),__metadata('design:paramtypes',[String]),__metadata('design:returntype',void 0x0)],anveroGenCommand['prototype'],a0_0x5c99eb(0xf8),null),__decorate([(0x0,commander_1[a0_0x5c99eb(0xd2)])({'flags':a0_0x5c99eb(0xc9),'description':'typeorm\x20数据源名,默认\x20default'}),__metadata(a0_0x5c99eb(0xeb),Function),__metadata(a0_0x5c99eb(0xca),[String]),__metadata('design:returntype',void 0x0)],anveroGenCommand[a0_0x5c99eb(0x105)],a0_0x5c99eb(0xe9),null),exports[a0_0x5c99eb(0xc1)]=anveroGenCommand=__decorate([(0x0,commander_1['Command'])({'name':a0_0x5c99eb(0xe8),'description':a0_0x5c99eb(0xdd)})],anveroGenCommand);
|
|
@@ -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_0x3d5702=a1_0x1ec0;(function(_0x5488a4,_0x553ad8){var _0x54588a=a1_0x1ec0,_0x3f400f=_0x5488a4();while(!![]){try{var _0x498196=parseInt(_0x54588a(0x148))/0x1+-parseInt(_0x54588a(0x13d))/0x2+-parseInt(_0x54588a(0x145))/0x3+-parseInt(_0x54588a(0x134))/0x4*(parseInt(_0x54588a(0x131))/0x5)+-parseInt(_0x54588a(0x14b))/0x6+-parseInt(_0x54588a(0x143))/0x7+-parseInt(_0x54588a(0x12e))/0x8*(-parseInt(_0x54588a(0x14e))/0x9);if(_0x498196===_0x553ad8)break;else _0x3f400f['push'](_0x3f400f['shift']());}catch(_0x206a70){_0x3f400f['push'](_0x3f400f['shift']());}}}(a1_0x2a70,0x5f95a));function a1_0x1ec0(_0x23e2c6,_0x578449){_0x23e2c6=_0x23e2c6-0x12d;var _0x6367e3=a1_0x2a70();var _0x286d9c=_0x6367e3[_0x23e2c6];return _0x286d9c;}var a1_0x366ccb=(function(){var _0x1df5be=!![];return function(_0x2ac812,_0x49a9c8){var _0x313a24=_0x1df5be?function(){if(_0x49a9c8){var _0x823a31=_0x49a9c8['apply'](_0x2ac812,arguments);return _0x49a9c8=null,_0x823a31;}}:function(){};return _0x1df5be=![],_0x313a24;};}()),a1_0x286d9c=a1_0x366ccb(this,function(){var _0x2c804c=a1_0x1ec0;return a1_0x286d9c[_0x2c804c(0x137)]()[_0x2c804c(0x130)](_0x2c804c(0x13e))[_0x2c804c(0x137)]()[_0x2c804c(0x149)](a1_0x286d9c)['search'](_0x2c804c(0x13e));});a1_0x286d9c();'use strict';var __decorate=this&&this[a1_0x3d5702(0x146)]||function(_0x41a6ee,_0x15841f,_0x2642c8,_0x275efd){var _0x1e4b86=a1_0x3d5702,_0x37e88d=arguments[_0x1e4b86(0x13b)],_0x177061=_0x37e88d<0x3?_0x15841f:_0x275efd===null?_0x275efd=Object[_0x1e4b86(0x12d)](_0x15841f,_0x2642c8):_0x275efd,_0x54fa89;if(typeof Reflect===_0x1e4b86(0x139)&&typeof Reflect[_0x1e4b86(0x14c)]===_0x1e4b86(0x144))_0x177061=Reflect[_0x1e4b86(0x14c)](_0x41a6ee,_0x15841f,_0x2642c8,_0x275efd);else{for(var _0x18ad87=_0x41a6ee['length']-0x1;_0x18ad87>=0x0;_0x18ad87--)if(_0x54fa89=_0x41a6ee[_0x18ad87])_0x177061=(_0x37e88d<0x3?_0x54fa89(_0x177061):_0x37e88d>0x3?_0x54fa89(_0x15841f,_0x2642c8,_0x177061):_0x54fa89(_0x15841f,_0x2642c8))||_0x177061;}return _0x37e88d>0x3&&_0x177061&&Object[_0x1e4b86(0x140)](_0x15841f,_0x2642c8,_0x177061),_0x177061;},__metadata=this&&this['__metadata']||function(_0x5e4369,_0x45e9e5){var _0x52c86d=a1_0x3d5702;if(typeof Reflect==='object'&&typeof Reflect[_0x52c86d(0x14d)]===_0x52c86d(0x144))return Reflect[_0x52c86d(0x14d)](_0x5e4369,_0x45e9e5);};Object[a1_0x3d5702(0x140)](exports,a1_0x3d5702(0x132),{'value':!![]}),exports[a1_0x3d5702(0x135)]=void 0x0;function a1_0x2a70(){var _0x2f5885=['39518mvEffg','(((.+)+)+)+$','anvero-apihelper','defineProperty','@midwayjs/core','MidwayDecoratorService','554148saapau','function','794637fohfyS','__decorate','Configuration','434973YSSkBK','constructor','Inject','415362ZIwXYl','decorate','metadata','18ilaXTE','getOwnPropertyDescriptor','4631160RKEZZs','MidwayConfigService','search','960275zazIPS','__esModule','prototype','16gPaXQX','CustomConfiguration','@midwayjs/commander','toString','onReady','object','decorator','length','application'];a1_0x2a70=function(){return _0x2f5885;};return a1_0x2a70();}const core_1=require(a1_0x3d5702(0x141)),core_2=require(a1_0x3d5702(0x141)),typeorm=require('@anveroapi/typeorm'),commander=require(a1_0x3d5702(0x136));let CustomConfiguration=class CustomConfiguration{async[a1_0x3d5702(0x138)](){}};exports['CustomConfiguration']=CustomConfiguration,__decorate([(0x0,core_1['Inject'])(),__metadata('design:type',core_2[a1_0x3d5702(0x12f)])],CustomConfiguration[a1_0x3d5702(0x133)],'config',void 0x0),__decorate([(0x0,core_1[a1_0x3d5702(0x14a)])(),__metadata('design:type',core_2[a1_0x3d5702(0x142)])],CustomConfiguration[a1_0x3d5702(0x133)],a1_0x3d5702(0x13a),void 0x0),__decorate([(0x0,core_1['Inject'])(),__metadata('design:type',core_2['MidwayApplicationManager'])],CustomConfiguration['prototype'],a1_0x3d5702(0x13c),void 0x0),exports[a1_0x3d5702(0x135)]=CustomConfiguration=__decorate([(0x0,core_1[a1_0x3d5702(0x147)])({'imports':[typeorm,commander],'namespace':a1_0x3d5702(0x13f)})],CustomConfiguration);
|
package/dist/helper.d.ts
ADDED
package/dist/helper.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const a2_0x47eb02=a2_0x34b6;(function(_0x42c0d7,_0x33ae2b){const _0x2ee4c2=a2_0x34b6,_0x43571a=_0x42c0d7();while(!![]){try{const _0x26b907=parseInt(_0x2ee4c2(0x12c))/0x1+parseInt(_0x2ee4c2(0x129))/0x2*(-parseInt(_0x2ee4c2(0x145))/0x3)+-parseInt(_0x2ee4c2(0x142))/0x4*(parseInt(_0x2ee4c2(0x13d))/0x5)+parseInt(_0x2ee4c2(0x131))/0x6+parseInt(_0x2ee4c2(0x135))/0x7*(parseInt(_0x2ee4c2(0x12e))/0x8)+-parseInt(_0x2ee4c2(0x12a))/0x9+-parseInt(_0x2ee4c2(0x138))/0xa*(parseInt(_0x2ee4c2(0x147))/0xb);if(_0x26b907===_0x33ae2b)break;else _0x43571a['push'](_0x43571a['shift']());}catch(_0x15593b){_0x43571a['push'](_0x43571a['shift']());}}}(a2_0x2a7c,0xc8156));const a2_0x3e2c90=(function(){let _0x3f5c6c=!![];return function(_0x10f434,_0x41a127){const _0x38b832=_0x3f5c6c?function(){const _0x14afcb=a2_0x34b6;if(_0x41a127){const _0x42b748=_0x41a127[_0x14afcb(0x141)](_0x10f434,arguments);return _0x41a127=null,_0x42b748;}}:function(){};return _0x3f5c6c=![],_0x38b832;};}()),a2_0x46ee80=a2_0x3e2c90(this,function(){const _0x1a1814=a2_0x34b6;return a2_0x46ee80[_0x1a1814(0x13c)]()[_0x1a1814(0x136)](_0x1a1814(0x134))[_0x1a1814(0x13c)]()[_0x1a1814(0x144)](a2_0x46ee80)[_0x1a1814(0x136)]('(((.+)+)+)+$');});a2_0x46ee80();'use strict';Object['defineProperty'](exports,a2_0x47eb02(0x13e),{'value':!![]}),exports[a2_0x47eb02(0x148)]=getProp,exports[a2_0x47eb02(0x140)]=getEnum;function a2_0x34b6(_0x41296b,_0x55eb67){_0x41296b=_0x41296b-0x127;const _0x3e7aff=a2_0x2a7c();let _0x46ee80=_0x3e7aff[_0x41296b];return _0x46ee80;}const columnTypes={'json':a2_0x47eb02(0x130),'char':'string','varchar':'string','text':a2_0x47eb02(0x143),'longtext':a2_0x47eb02(0x13a),'mediumtext':a2_0x47eb02(0x12f),'int':a2_0x47eb02(0x137),'float':a2_0x47eb02(0x13b),'double':a2_0x47eb02(0x13b),'decimal':a2_0x47eb02(0x146),'date':a2_0x47eb02(0x12b),'time':a2_0x47eb02(0x149),'datetime':'datetime','timestamp':a2_0x47eb02(0x139),'tinyint':a2_0x47eb02(0x128)};function getProp(_0x22708a){const _0x17e4b5=a2_0x47eb02;if(columnTypes[_0x17e4b5(0x132)](_0x22708a))return columnTypes[_0x22708a];else return _0x22708a['indexOf']('(')>-0x1||_0x22708a[_0x17e4b5(0x13f)]('\x20')>-0x1?(_0x22708a=_0x22708a['substr'](0x0,_0x22708a['indexOf']('(')>-0x1?_0x22708a[_0x17e4b5(0x13f)]('('):_0x22708a[_0x17e4b5(0x13f)]('\x20')),columnTypes[_0x22708a]||_0x22708a):_0x17e4b5(0x14a);}function a2_0x2a7c(){const _0x1f951e=['longtext','float','toString','45bVhyZO','__esModule','indexOf','getEnum','apply','688628XJkBNP','text','constructor','9ZrkrXv','decimal','11lsFJzw','getProp','datetime','string','replace','tinyint','50314GqcBPj','4125942EDoYrD','date','1282611zZJGWS','length','2400WzsGiD','mediumtext','json','2858484UukCsI','hasOwnProperty','split','(((.+)+)+)+$','29701FxHVbU','search','number','1290610jBbTlG','timestamp'];a2_0x2a7c=function(){return _0x1f951e;};return a2_0x2a7c();}function getEnum(_0x4f040d){const _0x1712bd=a2_0x47eb02;if(getProp(_0x4f040d)=='enum')return _0x4f040d['substr'](0x5,_0x4f040d[_0x1712bd(0x12d)]-0x6)[_0x1712bd(0x127)](/[\'|\"]/g,'')[_0x1712bd(0x133)](',');return[];}
|
package/dist/index.d.ts
ADDED
package/dist/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function a3_0x216e(_0x2f0f12,_0xe68d34){_0x2f0f12=_0x2f0f12-0x127;var _0x66a248=a3_0x51b7();var _0x2c6eea=_0x66a248[_0x2f0f12];return _0x2c6eea;}var a3_0x46e2ad=a3_0x216e;(function(_0x24dfd7,_0x47368c){var _0x1e7116=a3_0x216e,_0x442907=_0x24dfd7();while(!![]){try{var _0x1e4da3=parseInt(_0x1e7116(0x13e))/0x1*(parseInt(_0x1e7116(0x134))/0x2)+parseInt(_0x1e7116(0x137))/0x3*(parseInt(_0x1e7116(0x13d))/0x4)+parseInt(_0x1e7116(0x12a))/0x5+parseInt(_0x1e7116(0x138))/0x6+-parseInt(_0x1e7116(0x12c))/0x7*(-parseInt(_0x1e7116(0x127))/0x8)+-parseInt(_0x1e7116(0x131))/0x9*(parseInt(_0x1e7116(0x129))/0xa)+-parseInt(_0x1e7116(0x136))/0xb;if(_0x1e4da3===_0x47368c)break;else _0x442907['push'](_0x442907['shift']());}catch(_0x16fdb5){_0x442907['push'](_0x442907['shift']());}}}(a3_0x51b7,0x3c8ac));var a3_0x31836b=(function(){var _0x4f2bf4=!![];return function(_0x23b530,_0x5eeda7){var _0x43a64b=_0x4f2bf4?function(){var _0x392ce9=a3_0x216e;if(_0x5eeda7){var _0x4d1b6e=_0x5eeda7[_0x392ce9(0x13c)](_0x23b530,arguments);return _0x5eeda7=null,_0x4d1b6e;}}:function(){};return _0x4f2bf4=![],_0x43a64b;};}()),a3_0x2c6eea=a3_0x31836b(this,function(){var _0x4cd980=a3_0x216e;return a3_0x2c6eea[_0x4cd980(0x13b)]()['search'](_0x4cd980(0x12f))[_0x4cd980(0x13b)]()['constructor'](a3_0x2c6eea)[_0x4cd980(0x132)](_0x4cd980(0x12f));});a3_0x2c6eea();'use strict';Object['defineProperty'](exports,a3_0x46e2ad(0x128),{'value':!![]}),exports[a3_0x46e2ad(0x12e)]=exports[a3_0x46e2ad(0x12b)]=exports['ApicreateService']=void 0x0;var ApicreateService_1=require(a3_0x46e2ad(0x13a));Object[a3_0x46e2ad(0x12d)](exports,a3_0x46e2ad(0x133),{'enumerable':!![],'get':function(){var _0x40595a=a3_0x46e2ad;return ApicreateService_1[_0x40595a(0x133)];}});function a3_0x51b7(){var _0x1c1e6f=['ApicreateService','2JntqUx','./command/anverogen.command','5807593MlZqob','12NHrvkI','1939248qAMtck','CustomConfiguration','./service/ApicreateService','toString','apply','355468GMNuKP','247306NkUgqz','599240bCNdOT','__esModule','4080990aLZhTT','541250epoHnz','anveroGenCommand','14GzpHCR','defineProperty','Configuration','(((.+)+)+)+$','./configuration','9PTAtGr','search'];a3_0x51b7=function(){return _0x1c1e6f;};return a3_0x51b7();}var anverogen_command_1=require(a3_0x46e2ad(0x135));Object[a3_0x46e2ad(0x12d)](exports,a3_0x46e2ad(0x12b),{'enumerable':!![],'get':function(){var _0x260230=a3_0x46e2ad;return anverogen_command_1[_0x260230(0x12b)];}});var configuration_1=require(a3_0x46e2ad(0x130));Object['defineProperty'](exports,a3_0x46e2ad(0x12e),{'enumerable':!![],'get':function(){var _0x41f348=a3_0x46e2ad;return configuration_1[_0x41f348(0x139)];}});
|
|
@@ -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_0x351360=a4_0x26b2;function a4_0x30e6(){const _0x7018cb=['startsWith','string','../templateFun/Action','tablestartLow','getConfig','query','21BxGHae','createBasic','ScopeEnum','tablestartUp','/apis/apps/','.ts','replace','database','/config.ts','@midwayjs/core','map','tablestartUpShort','/apis/','existsSync','Singleton','environment','toString','basedir','../templateVue/Router','isArray','defineProperty','__esModule','prototype','table','tablestartLowShort','2172weizeh','join','dataSource','substring','connection','MidwayEnvironmentService','split','basic','../templateFun/Search','MainApp','../templateVue/Api','typeorm','\x22\x20AND\x20table_name\x20=\x20\x27','../templateFun/Event','5387120XQWtEx','match','/index.vue','metadata','Field','trim','2481nOwTiL','/pages/apps/','createPlugin','SHOW\x20FULL\x20COLUMNS\x20FROM\x20`','app','mkdirSync','../templateFun/Common','\x20未连接','/apps/','(((.+)+)+)+$','SELECT\x20TABLE_NAME\x20as\x20`table`\x20FROM\x20information_schema.TABLES\x20WHERE\x20TABLE_SCHEMA=\x22','997840qZSgjT','.js','design:type','decorate','moduleName','\x20不存在','filter','Scope','CreateModuleConfig','module','isConnected','typeorm\x20数据源\x20','substr','object','getOwnPropertyDescriptor','function','16chrsyg','234660bRHcmR','tablestart','vueapiprefix','Provide','comment','getBaseDir','901174roCTNK','toLowerCase','dataSourceManager','createAction','PRI','length','ApicreateService','47553370qOGCSB','controllers','../templateFun/Validator','Inject','__metadata','dirname','utf-8','7651764mrehSm','/pages/','../templateFun/Entities','controller','config','Config','apporbasic','tablestartUpShort2','__decorate','Comment','default','=\x20\x22','tableprefix','error','SELECT\x20TABLE_COMMENT\x20as\x20`comment`\x20FROM\x20information_schema.TABLES\x20WHERE\x20TABLE_SCHEMA=\x22','../templateFun/Handler','apitest','checkOption','isDevelopmentEnvironment','export\x20default\x20{\x0a\x20\x20\x20\x20name:\x20\x27'];a4_0x30e6=function(){return _0x7018cb;};return a4_0x30e6();}(function(_0x370061,_0x1a7f0b){const _0xcf040f=a4_0x26b2,_0x13c464=_0x370061();while(!![]){try{const _0x372789=-parseInt(_0xcf040f(0x201))/0x1+-parseInt(_0xcf040f(0x218))/0x2+-parseInt(_0xcf040f(0x1f6))/0x3*(-parseInt(_0xcf040f(0x1e2))/0x4)+-parseInt(_0xcf040f(0x1f0))/0x5+parseInt(_0xcf040f(0x212))/0x6*(-parseInt(_0xcf040f(0x1c9))/0x7)+-parseInt(_0xcf040f(0x211))/0x8*(parseInt(_0xcf040f(0x226))/0x9)+parseInt(_0xcf040f(0x21f))/0xa;if(_0x372789===_0x1a7f0b)break;else _0x13c464['push'](_0x13c464['shift']());}catch(_0x2a1abb){_0x13c464['push'](_0x13c464['shift']());}}}(a4_0x30e6,0xd2299));const a4_0x48b8e1=(function(){let _0x585ef1=!![];return function(_0x449746,_0x8396c){const _0x5b50fd=_0x585ef1?function(){if(_0x8396c){const _0x4f6fb4=_0x8396c['apply'](_0x449746,arguments);return _0x8396c=null,_0x4f6fb4;}}:function(){};return _0x585ef1=![],_0x5b50fd;};}()),a4_0x24453e=a4_0x48b8e1(this,function(){const _0x51b3bf=a4_0x26b2;return a4_0x24453e[_0x51b3bf(0x1d9)]()['search'](_0x51b3bf(0x1ff))[_0x51b3bf(0x1d9)]()['constructor'](a4_0x24453e)['search'](_0x51b3bf(0x1ff));});function a4_0x26b2(_0x38fa0b,_0x13f4d2){_0x38fa0b=_0x38fa0b-0x1b6;const _0xed9207=a4_0x30e6();let _0x24453e=_0xed9207[_0x38fa0b];return _0x24453e;}a4_0x24453e();'use strict';var __decorate=this&&this[a4_0x351360(0x1b7)]||function(_0x396ea4,_0x32532c,_0x38ce8d,_0x3f750e){const _0x58207f=a4_0x351360;var _0x4fbf9a=arguments['length'],_0xb78ec0=_0x4fbf9a<0x3?_0x32532c:_0x3f750e===null?_0x3f750e=Object[_0x58207f(0x20f)](_0x32532c,_0x38ce8d):_0x3f750e,_0x1a4a38;if(typeof Reflect==='object'&&typeof Reflect['decorate']===_0x58207f(0x210))_0xb78ec0=Reflect[_0x58207f(0x204)](_0x396ea4,_0x32532c,_0x38ce8d,_0x3f750e);else{for(var _0x2e469e=_0x396ea4[_0x58207f(0x21d)]-0x1;_0x2e469e>=0x0;_0x2e469e--)if(_0x1a4a38=_0x396ea4[_0x2e469e])_0xb78ec0=(_0x4fbf9a<0x3?_0x1a4a38(_0xb78ec0):_0x4fbf9a>0x3?_0x1a4a38(_0x32532c,_0x38ce8d,_0xb78ec0):_0x1a4a38(_0x32532c,_0x38ce8d))||_0xb78ec0;}return _0x4fbf9a>0x3&&_0xb78ec0&&Object['defineProperty'](_0x32532c,_0x38ce8d,_0xb78ec0),_0xb78ec0;},__metadata=this&&this[a4_0x351360(0x223)]||function(_0x34857a,_0x99a652){const _0x1b06cc=a4_0x351360;if(typeof Reflect===_0x1b06cc(0x20e)&&typeof Reflect[_0x1b06cc(0x1f3)]===_0x1b06cc(0x210))return Reflect['metadata'](_0x34857a,_0x99a652);};Object[a4_0x351360(0x1dd)](exports,a4_0x351360(0x1de),{'value':!![]}),exports['ApicreateService']=void 0x0;const fs=require('fs'),path=require('path'),core_1=require(a4_0x351360(0x1d2)),typeorm_1=require('@midwayjs/typeorm'),core_2=require(a4_0x351360(0x1d2)),Common_1=require(a4_0x351360(0x1fc)),Event_1=require(a4_0x351360(0x1ef)),Search_1=require(a4_0x351360(0x1ea)),Entities_1=require(a4_0x351360(0x228)),Handler_1=require(a4_0x351360(0x1be)),Validator_1=require(a4_0x351360(0x221)),Action_1=require(a4_0x351360(0x1c5)),Api_1=require(a4_0x351360(0x1ec)),Router_1=require(a4_0x351360(0x1db)),LayoutVue_1=require('../templateVue/LayoutVue'),Validator_2=require('../templateVue/Validator');let ApicreateService=class ApicreateService{async['createApp'](_0x593e21){const _0x23e8df=a4_0x351360;return await this['checkOption'](_0x593e21),await this[_0x23e8df(0x21b)]({..._0x593e21,'apporbasic':'app'});}async[a4_0x351360(0x1ca)](_0x4b5cad){const _0x26b722=a4_0x351360;return await this['checkOption'](_0x4b5cad),await this[_0x26b722(0x21b)]({..._0x4b5cad,'apporbasic':_0x26b722(0x1e9)});}async[a4_0x351360(0x1f8)](_0x3d4902){const _0x1f52f1=a4_0x351360;return await this[_0x1f52f1(0x1c0)](_0x3d4902),await this[_0x1f52f1(0x21b)]({..._0x3d4902,'module':!![]});}async['createAction'](_0x247ba2){const _0x3a55ad=a4_0x351360;var _0x1118de,_0x1850ea;!_0x247ba2[_0x3a55ad(0x1e6)]&&(_0x247ba2[_0x3a55ad(0x1e6)]=_0x3a55ad(0x1b9));!_0x247ba2[_0x3a55ad(0x22c)]&&(_0x247ba2[_0x3a55ad(0x22c)]='app');const _0x5eec72=this[_0x3a55ad(0x1fa)][_0x3a55ad(0x217)](),_0x59ad1f=this[_0x3a55ad(0x21a)]['getDataSource'](_0x247ba2[_0x3a55ad(0x1e6)]),_0x2e44b4=await _0x59ad1f['query'](_0x3a55ad(0x200)+this[_0x3a55ad(0x22a)]['dataSource'][_0x247ba2[_0x3a55ad(0x1e6)]][_0x3a55ad(0x1d0)]+'\x22\x20AND\x20table_name\x20'+((_0x247ba2===null||_0x247ba2===void 0x0?void 0x0:_0x247ba2['table'])?_0x3a55ad(0x1ba)+_0x247ba2[_0x3a55ad(0x1e0)]+'\x22':'LIKE\x20\x22'+(_0x247ba2['tableprefix']||'')+'%\x22'))||[];for(let _0x2c0b90=0x0;_0x2c0b90<_0x2e44b4[_0x3a55ad(0x21d)];_0x2c0b90++){const _0xbe74c=_0x2e44b4[_0x2c0b90]['table'];if((_0x247ba2===null||_0x247ba2===void 0x0?void 0x0:_0x247ba2['table'])&&(_0x247ba2===null||_0x247ba2===void 0x0?void 0x0:_0x247ba2[_0x3a55ad(0x1e0)])!=_0xbe74c)continue;if((_0x247ba2===null||_0x247ba2===void 0x0?void 0x0:_0x247ba2[_0x3a55ad(0x1bb)])&&!(_0xbe74c===null||_0xbe74c===void 0x0?void 0x0:_0xbe74c[_0x3a55ad(0x1c3)](_0x247ba2['tableprefix'])))continue;const _0x1e006e=await _0x59ad1f['query'](_0x3a55ad(0x1bd)+this[_0x3a55ad(0x22a)][_0x3a55ad(0x1e4)][_0x247ba2[_0x3a55ad(0x1e6)]]['database']+_0x3a55ad(0x1ee)+_0xbe74c+'\x27')||[];if((_0x1118de=_0x1e006e[0x0])===null||_0x1118de===void 0x0?void 0x0:_0x1118de[_0x3a55ad(0x216)]){const _0x546ceb={'tablename':_0xbe74c,'Primary':{},'Fields':{},'Comment':(_0x1850ea=_0x1e006e[0x0])===null||_0x1850ea===void 0x0?void 0x0:_0x1850ea[_0x3a55ad(0x216)],'vuedialog':_0x247ba2['vuedialog'],'vueapiprefix':_0x247ba2[_0x3a55ad(0x214)],'apporbasic':_0x247ba2[_0x3a55ad(0x22c)]};_0x546ceb[_0x3a55ad(0x213)]=_0xbe74c[_0x3a55ad(0x20d)]((_0x247ba2===null||_0x247ba2===void 0x0?void 0x0:_0x247ba2[_0x3a55ad(0x20d)])||0x0,_0xbe74c[_0x3a55ad(0x21d)]),_0x546ceb[_0x3a55ad(0x1da)]=(_0x247ba2===null||_0x247ba2===void 0x0?void 0x0:_0x247ba2[_0x3a55ad(0x20a)])?_0x5eec72+_0x3a55ad(0x1fe)+_0x546ceb['tablestart'][_0x3a55ad(0x1e8)]('_')[0x0][_0x3a55ad(0x219)]():_0x5eec72+'/'+_0x247ba2[_0x3a55ad(0x22c)];const _0x1979f9=_0x546ceb[_0x3a55ad(0x213)]['split']('_')[_0x3a55ad(0x207)](_0x17ecba=>_0x17ecba&&_0x17ecba[_0x3a55ad(0x1f5)]());(_0x247ba2===null||_0x247ba2===void 0x0?void 0x0:_0x247ba2[_0x3a55ad(0x20a)])&&(await this[_0x3a55ad(0x209)](_0x546ceb),_0x546ceb[_0x3a55ad(0x205)]=_0x1979f9[0x0][_0x3a55ad(0x219)]());_0x546ceb[_0x3a55ad(0x1c6)]=_0x1979f9[_0x3a55ad(0x1d3)](_0xf51a58=>_0xf51a58[_0x3a55ad(0x219)]())[_0x3a55ad(0x1e3)](''),_0x546ceb[_0x3a55ad(0x1cc)]=_0x1979f9[_0x3a55ad(0x1d3)](_0x244aff=>''+_0x244aff[_0x3a55ad(0x1e5)](0x0,0x1)['toUpperCase']()+_0x244aff[_0x3a55ad(0x1e5)](0x1)[_0x3a55ad(0x219)]())['join']('');(_0x546ceb===null||_0x546ceb===void 0x0?void 0x0:_0x546ceb[_0x3a55ad(0x205)])&&_0x1979f9[_0x3a55ad(0x21d)]>0x1&&_0x1979f9[0x0]['toLowerCase']()==_0x546ceb['moduleName']?(_0x546ceb[_0x3a55ad(0x1d4)]=_0x546ceb['tablestartUp']['substring'](_0x546ceb[_0x3a55ad(0x205)][_0x3a55ad(0x21d)],_0x546ceb['tablestartUp']['length']),_0x546ceb[_0x3a55ad(0x1e1)]=_0x546ceb[_0x3a55ad(0x1c6)][_0x3a55ad(0x1e5)](_0x546ceb[_0x3a55ad(0x205)][_0x3a55ad(0x21d)],_0x546ceb['tablestartLow'][_0x3a55ad(0x21d)])):(_0x546ceb[_0x3a55ad(0x1d4)]=_0x546ceb['tablestartUp'],_0x546ceb[_0x3a55ad(0x1e1)]=_0x546ceb['tablestartLow']);_0x546ceb[_0x3a55ad(0x1b6)]=_0x546ceb[_0x3a55ad(0x1d4)][_0x3a55ad(0x1cf)](/\/{2,}/g,'/')[_0x3a55ad(0x1f1)](/[\/|A-Z]*[^A-Z]+/g)['join']('-')['toLowerCase']()[_0x3a55ad(0x1cf)](/\/\-/g,'/');for(let _0x922234 of await _0x59ad1f[_0x3a55ad(0x1c8)](_0x3a55ad(0x1f9)+_0xbe74c+'`')){_0x922234['Key']==_0x3a55ad(0x21c)?_0x546ceb['Primary']=_0x922234:_0x546ceb['Fields'][_0x922234[_0x3a55ad(0x1f4)]]=_0x922234;}if((_0x247ba2===null||_0x247ba2===void 0x0?void 0x0:_0x247ba2[_0x3a55ad(0x229)])&&!fs['existsSync'](_0x546ceb['basedir']+'/exceptions/'+_0x546ceb[_0x3a55ad(0x1d4)]+_0x3a55ad(0x1ce))){var _0x110628=[];if(typeof(_0x247ba2===null||_0x247ba2===void 0x0?void 0x0:_0x247ba2[_0x3a55ad(0x229)])=='string')_0x110628=[_0x247ba2===null||_0x247ba2===void 0x0?void 0x0:_0x247ba2[_0x3a55ad(0x229)]];else Array[_0x3a55ad(0x1dc)](_0x247ba2===null||_0x247ba2===void 0x0?void 0x0:_0x247ba2[_0x3a55ad(0x229)])?_0x110628=_0x247ba2===null||_0x247ba2===void 0x0?void 0x0:_0x247ba2[_0x3a55ad(0x229)]:_0x110628=[!![]];_0x546ceb[_0x3a55ad(0x220)]=_0x110628,await(0x0,Search_1[_0x3a55ad(0x1b9)])(_0x546ceb),await(0x0,Entities_1[_0x3a55ad(0x1b9)])(_0x546ceb),await(0x0,Common_1[_0x3a55ad(0x1b9)])(_0x546ceb),await(0x0,Event_1[_0x3a55ad(0x1b9)])(_0x546ceb),await(0x0,Handler_1[_0x3a55ad(0x1b9)])(_0x546ceb),await(0x0,Validator_1['default'])(_0x546ceb);for(let _0xf1c070 of _0x110628){_0x546ceb['controller']=_0xf1c070,await(0x0,Action_1[_0x3a55ad(0x1b9)])(_0x546ceb);}}if(_0x247ba2===null||_0x247ba2===void 0x0?void 0x0:_0x247ba2['hasvue']){var _0x110628=[];if(typeof(_0x247ba2===null||_0x247ba2===void 0x0?void 0x0:_0x247ba2[_0x3a55ad(0x229)])==_0x3a55ad(0x1c4))_0x110628=[_0x247ba2===null||_0x247ba2===void 0x0?void 0x0:_0x247ba2[_0x3a55ad(0x229)]];else Array[_0x3a55ad(0x1dc)](_0x247ba2===null||_0x247ba2===void 0x0?void 0x0:_0x247ba2[_0x3a55ad(0x229)])?_0x110628=_0x247ba2===null||_0x247ba2===void 0x0?void 0x0:_0x247ba2[_0x3a55ad(0x229)]:_0x110628=[!![]];for(let _0x52af0d of _0x110628){_0x546ceb['controller']=_0x52af0d;let _0x1be50a=process['cwd']()+'/vue'+(typeof _0x546ceb[_0x3a55ad(0x229)]==_0x3a55ad(0x1c4)?'/'+_0x546ceb[_0x3a55ad(0x229)]:'');if(_0x546ceb['vueapiprefix'])_0x1be50a=_0x1be50a+(_0x546ceb[_0x3a55ad(0x205)]?_0x3a55ad(0x1f7)+_0x546ceb[_0x3a55ad(0x205)]+'/'+_0x546ceb[_0x3a55ad(0x1b6)]+_0x3a55ad(0x1f2):_0x3a55ad(0x227)+_0x546ceb[_0x3a55ad(0x22c)]+'/'+_0x546ceb[_0x3a55ad(0x1b6)]+'/index.vue');else _0x546ceb[_0x3a55ad(0x205)]?_0x1be50a=_0x1be50a+(_0x3a55ad(0x1cd)+_0x546ceb[_0x3a55ad(0x205)]+_0x3a55ad(0x1d5)+_0x546ceb[_0x3a55ad(0x1d4)]+_0x3a55ad(0x202)):_0x1be50a=_0x1be50a+(_0x3a55ad(0x1d5)+_0x546ceb['apporbasic']+_0x3a55ad(0x1d5)+_0x546ceb[_0x3a55ad(0x1d4)]+_0x3a55ad(0x202));!fs[_0x3a55ad(0x1d6)](_0x1be50a)&&(!_0x546ceb[_0x3a55ad(0x214)]&&await(0x0,Api_1[_0x3a55ad(0x1b9)])(_0x546ceb),await(0x0,Router_1[_0x3a55ad(0x1b9)])(_0x546ceb),await(0x0,LayoutVue_1[_0x3a55ad(0x1b9)])(_0x546ceb),await(0x0,Validator_2[_0x3a55ad(0x1b9)])(_0x546ceb));}}}else console[_0x3a55ad(0x1bc)]('表:'+_0xbe74c+'\x20表注释不存在');}return'die';}async['checkOption'](_0x1510db){const _0x420f1b=a4_0x351360;var _0x30bc76,_0x28864b,_0x1490e5;if(!this[_0x420f1b(0x1d8)][_0x420f1b(0x1c1)]()||!((_0x30bc76=this['config'])===null||_0x30bc76===void 0x0?void 0x0:_0x30bc76['dataSource'])||!this['app'][_0x420f1b(0x1c7)](_0x420f1b(0x1bf)))throw new Error('无法生成');!_0x1510db[_0x420f1b(0x1e6)]&&(_0x1510db[_0x420f1b(0x1e6)]=_0x420f1b(0x1b9));if(!((_0x1490e5=(_0x28864b=this['config'])===null||_0x28864b===void 0x0?void 0x0:_0x28864b[_0x420f1b(0x1e4)])===null||_0x1490e5===void 0x0?void 0x0:_0x1490e5[_0x1510db[_0x420f1b(0x1e6)]]))throw new Error('typeorm\x20未配置数据源\x20'+_0x1510db[_0x420f1b(0x1e6)]);if(!this[_0x420f1b(0x21a)]['hasDataSource'](_0x1510db[_0x420f1b(0x1e6)]))throw new Error('typeorm\x20数据源\x20'+_0x1510db[_0x420f1b(0x1e6)]+_0x420f1b(0x206));if(!this[_0x420f1b(0x21a)][_0x420f1b(0x20b)](_0x1510db['connection']))throw new Error(_0x420f1b(0x20c)+_0x1510db[_0x420f1b(0x1e6)]+_0x420f1b(0x1fd));return!![];}async[a4_0x351360(0x209)](_0x590997){const _0x39fce9=a4_0x351360,_0x315f4d=_0x590997['tablestart'][_0x39fce9(0x1e8)]('_')[0x0][_0x39fce9(0x219)]();if(!fs[_0x39fce9(0x1d6)](_0x590997[_0x39fce9(0x1da)]+_0x39fce9(0x1d1))){let _0x568826=_0x39fce9(0x1c2)+(_0x590997[_0x39fce9(0x1b8)]||_0x315f4d)+'\x27,\x0a\x20\x20\x20\x20description:\x20\x27\x27,\x0a\x20\x20\x20\x20middleware:\x20[],\x0a}';fs[_0x39fce9(0x1fb)](path[_0x39fce9(0x224)](_0x590997['basedir']+_0x39fce9(0x1d1)),{'recursive':!![]}),fs['writeFileSync'](_0x590997[_0x39fce9(0x1da)]+_0x39fce9(0x1d1),_0x568826,_0x39fce9(0x225));}}};exports[a4_0x351360(0x21e)]=ApicreateService,__decorate([(0x0,core_2[a4_0x351360(0x1eb)])(),__metadata(a4_0x351360(0x203),Object)],ApicreateService[a4_0x351360(0x1df)],a4_0x351360(0x1fa),void 0x0),__decorate([(0x0,core_2[a4_0x351360(0x22b)])(a4_0x351360(0x1ed)),__metadata(a4_0x351360(0x203),Object)],ApicreateService[a4_0x351360(0x1df)],a4_0x351360(0x22a),void 0x0),__decorate([(0x0,core_2[a4_0x351360(0x222)])(),__metadata(a4_0x351360(0x203),core_1[a4_0x351360(0x1e7)])],ApicreateService[a4_0x351360(0x1df)],a4_0x351360(0x1d8),void 0x0),__decorate([(0x0,core_2['Inject'])(),__metadata('design:type',typeorm_1['TypeORMDataSourceManager'])],ApicreateService[a4_0x351360(0x1df)],a4_0x351360(0x21a),void 0x0),exports['ApicreateService']=ApicreateService=__decorate([(0x0,core_2[a4_0x351360(0x215)])('ApicreateService'),(0x0,core_2[a4_0x351360(0x208)])(core_2[a4_0x351360(0x1cb)][a4_0x351360(0x1d7)])],ApicreateService);
|
|
@@ -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
|
+
const a5_0x1758c3=a5_0x34f6;function a5_0x5a34(){const _0x3cfbd0=['Field','\x20\x20\x20\x20async\x20create(params:\x20','DTOCreate\x20}\x20from\x20\x27','\x20\x20\x20\x20@Inject()\x20protected\x20','\x20\x20\x20\x20\x20\x20\x20\x20const\x20[pagelist,\x20pagetotal]\x20=\x20await\x20this.','2389310SxyDTi','mediumtext','\x20\x20\x20\x20}\x0a\x0a\x0a','getProp','\x27;\x0a','substring','Type','number','existsSync','path','\x20\x20\x20\x20\x20\x20\x20\x20return\x20this.ctx.ok(pagelist,\x20{\x20pageinfo,\x20pagetotal\x20});\x0a','/Search\x27;\x0a','\x20\x20\x20\x20@Action.post(\x27修改\x27,\x20\x27edit/:','DTOUpdate)\x20{\x0a','text','\x20\x20\x20\x20\x20\x20\x20\x20const\x20conditions:\x20','\x20};\x0a\x0a','.ts','DTOSearch)\x20{\x0a\x0a','defineProperty','\x20\x20\x20\x20\x20\x20\x20\x20return\x20this.ctx.ok(tmpModel);\x0a','search','constructor','6lqApMc','\x20\x20\x20\x20@Action.get(\x27详情\x27,\x20\x27detail/:','/Create\x27;\x0a','string','mkdirSync','231427zFJZkE','\x20\x20\x20\x20async\x20update(','/controller/','Controller\x20{\x0a\x0a','@/apps/','import\x20{\x20','Handler.create(params);\x0a\x0a','/handlers/','/Update\x27;\x0a\x0a','DTOSearch\x20=\x20{\x20','Handler\x0a\x0a\x0a','Handler:\x20','DTOSearch,\x20pageinfo:\x20PageDTO)\x20{\x0a\x0a','export\x20class\x20','Handler.update(conditions,\x20params);\x0a\x0a','/validators/','../helper','5300526VngsBz','DTOSearch\x20}\x20from\x20\x27','toUpperCase','dirname','\x20\x20\x20\x20\x20\x20\x20\x20return\x20this.ctx.ok(removes);\x0a','toString',')\x20{\x0a','\x27)\x0a','365640zIRbIM','\x20\x20\x20\x20@Action.post(\x22删除\x22,\x20\x27remove\x27)\x0a','\x20\x20\x20\x20\x20\x20\x20\x20const\x20removes\x20=\x20await\x20this.','\x20\x20\x20\x20async\x20remove(conditions:\x20','\x20\x20\x20\x20\x20\x20\x20\x20const\x20tmpModel\x20=\x20await\x20this.','745YfmiuC','writeFileSync','63VBmVdQ','Handler.list(conditions,\x20pageinfo);\x0a\x0a','import\x20{\x20Context\x20}\x20from\x20\x27@midwayjs/koa\x27;\x0a','DTOCreate)\x20{\x0a\x0a','(((.+)+)+)+$','468417qsldIy','285274uAOxfg','12ZVXyDd','\x20\x20\x20\x20async\x20detail(','1204ViKxym'];a5_0x5a34=function(){return _0x3cfbd0;};return a5_0x5a34();}(function(_0x133510,_0x400eb2){const _0xe5ee4b=a5_0x34f6,_0x512bb1=_0x133510();while(!![]){try{const _0x7ca5e4=parseInt(_0xe5ee4b(0x187))/0x1+parseInt(_0xe5ee4b(0x188))/0x2*(-parseInt(_0xe5ee4b(0x1a8))/0x3)+-parseInt(_0xe5ee4b(0x18b))/0x4*(-parseInt(_0xe5ee4b(0x180))/0x5)+-parseInt(_0xe5ee4b(0x189))/0x6*(parseInt(_0xe5ee4b(0x1ad))/0x7)+-parseInt(_0xe5ee4b(0x17b))/0x8*(-parseInt(_0xe5ee4b(0x182))/0x9)+parseInt(_0xe5ee4b(0x191))/0xa+-parseInt(_0xe5ee4b(0x173))/0xb;if(_0x7ca5e4===_0x400eb2)break;else _0x512bb1['push'](_0x512bb1['shift']());}catch(_0x5218a0){_0x512bb1['push'](_0x512bb1['shift']());}}}(a5_0x5a34,0x3a516));const a5_0x5bbfb2=(function(){let _0x36b7ac=!![];return function(_0x35ec34,_0x27165a){const _0x2f31e9=_0x36b7ac?function(){if(_0x27165a){const _0x3fb767=_0x27165a['apply'](_0x35ec34,arguments);return _0x27165a=null,_0x3fb767;}}:function(){};return _0x36b7ac=![],_0x2f31e9;};}()),a5_0x351df4=a5_0x5bbfb2(this,function(){const _0x109bc3=a5_0x34f6;return a5_0x351df4[_0x109bc3(0x178)]()[_0x109bc3(0x1a6)](_0x109bc3(0x186))[_0x109bc3(0x178)]()[_0x109bc3(0x1a7)](a5_0x351df4)[_0x109bc3(0x1a6)](_0x109bc3(0x186));});a5_0x351df4();'use strict';Object[a5_0x1758c3(0x1a4)](exports,'__esModule',{'value':!![]}),exports['default']=default_1;const fs=require('fs'),path_1=require(a5_0x1758c3(0x19a)),helper_1=require(a5_0x1758c3(0x172));function a5_0x34f6(_0x26a62e,_0x3dba27){_0x26a62e=_0x26a62e-0x16c;const _0x11d7e4=a5_0x5a34();let _0x351df4=_0x11d7e4[_0x26a62e];return _0x351df4;}async function default_1({controller:_0x168e9d,tablestartUp:_0x4f4d27,tablestartUpShort:_0x325d31,basedir:_0xd6dee0,Primary:_0x19d3f9,Comment:_0x26b456,moduleName:_0x2d1836,apporbasic:_0x3bee7b}){const _0x3408eb=a5_0x1758c3;if(_0x168e9d){const _0x134128=_0xd6dee0+(typeof _0x168e9d==_0x3408eb(0x1ab)?'/controller/'+_0x168e9d+'/'+_0x325d31+_0x3408eb(0x1a2):_0x3408eb(0x1af)+_0x325d31+_0x3408eb(0x1a2));if(!fs[_0x3408eb(0x199)](_0x134128)){let _0x58c3ae='',_0x4c4ed4=[_0x3408eb(0x19f),_0x3408eb(0x192),'string']['indexOf']((0x0,helper_1[_0x3408eb(0x194)])(_0x19d3f9[_0x3408eb(0x197)]))==-0x1;_0x58c3ae+=_0x3408eb(0x184),_0x58c3ae+='import\x20{\x20Inject,\x20Action,\x20PageDTO\x20}\x20from\x20\x27anvero-api\x27;\x0a\x0a',_0x58c3ae+=_0x3408eb(0x1b2)+_0x4f4d27+'Handler\x20}\x20from\x20\x27'+(typeof _0x2d1836==_0x3408eb(0x1ab)?_0x3408eb(0x1b1)+_0x2d1836:'@/'+_0x3bee7b)+_0x3408eb(0x1b4)+_0x325d31+_0x3408eb(0x195),_0x58c3ae+=_0x3408eb(0x1b2)+_0x4f4d27+_0x3408eb(0x174)+(typeof _0x2d1836=='string'?_0x3408eb(0x1b1)+_0x2d1836:'@/'+_0x3bee7b)+_0x3408eb(0x171)+_0x325d31+_0x3408eb(0x19c),_0x58c3ae+=_0x3408eb(0x1b2)+_0x4f4d27+_0x3408eb(0x18e)+(typeof _0x2d1836==_0x3408eb(0x1ab)?'@/apps/'+_0x2d1836:'@/'+_0x3bee7b)+_0x3408eb(0x171)+_0x325d31+_0x3408eb(0x1aa),_0x58c3ae+='import\x20{\x20'+_0x4f4d27+'DTOUpdate\x20}\x20from\x20\x27'+(typeof _0x2d1836==_0x3408eb(0x1ab)?'@/apps/'+_0x2d1836:'@/'+_0x3bee7b)+_0x3408eb(0x171)+_0x325d31+_0x3408eb(0x1b5),_0x58c3ae+='@Action(__filename,\x20\x27'+_0x26b456+_0x3408eb(0x17a),_0x58c3ae+=_0x3408eb(0x16f)+(typeof _0x168e9d==_0x3408eb(0x1ab)?_0x168e9d['substring'](0x0,0x1)[_0x3408eb(0x175)]()+_0x168e9d[_0x3408eb(0x196)](0x1):'')+_0x4f4d27+_0x3408eb(0x1b0),_0x58c3ae+='\x20\x20\x20\x20@Inject()\x20protected\x20ctx:\x20Context;\x0a\x0a',_0x58c3ae+=_0x3408eb(0x18f)+_0x4f4d27+_0x3408eb(0x16d)+_0x4f4d27+_0x3408eb(0x16c),_0x58c3ae+='\x20\x20\x20\x20@Action.get(\x27列表\x27,\x20\x27list\x27)\x0a',_0x58c3ae+='\x20\x20\x20\x20async\x20index(conditions:\x20'+_0x4f4d27+_0x3408eb(0x16e),_0x58c3ae+=_0x3408eb(0x190)+_0x4f4d27+_0x3408eb(0x183),_0x58c3ae+=_0x3408eb(0x19b),_0x58c3ae+=_0x3408eb(0x193),_0x58c3ae+=_0x3408eb(0x1a9)+_0x19d3f9[_0x3408eb(0x18c)]+_0x3408eb(0x17a),_0x58c3ae+=_0x3408eb(0x18a)+_0x19d3f9[_0x3408eb(0x18c)]+':\x20'+(_0x4c4ed4?_0x3408eb(0x198):_0x3408eb(0x1ab))+_0x3408eb(0x179),_0x58c3ae+=_0x3408eb(0x1a0)+_0x4f4d27+_0x3408eb(0x1b6)+_0x19d3f9[_0x3408eb(0x18c)]+_0x3408eb(0x1a1),_0x58c3ae+='\x20\x20\x20\x20\x20\x20\x20\x20const\x20tmpModel\x20=\x20await\x20this.'+_0x4f4d27+'Handler.detail(conditions);\x0a\x0a',_0x58c3ae+=_0x3408eb(0x1a5),_0x58c3ae+=_0x3408eb(0x193),_0x58c3ae+='\x20\x20\x20\x20@Action.post(\x27添加\x27,\x20\x27add\x27)\x0a',_0x58c3ae+=_0x3408eb(0x18d)+_0x4f4d27+_0x3408eb(0x185),_0x58c3ae+=_0x3408eb(0x17f)+_0x4f4d27+_0x3408eb(0x1b3),_0x58c3ae+=_0x3408eb(0x1a5),_0x58c3ae+=_0x3408eb(0x193),_0x58c3ae+=_0x3408eb(0x19d)+_0x19d3f9['Field']+'\x27)\x0a',_0x58c3ae+=_0x3408eb(0x1ae)+_0x19d3f9['Field']+':\x20'+(_0x4c4ed4?'number':_0x3408eb(0x1ab))+',\x20params:\x20'+_0x4f4d27+_0x3408eb(0x19e),_0x58c3ae+=_0x3408eb(0x1a0)+_0x4f4d27+'DTOSearch\x20=\x20{\x20'+_0x19d3f9[_0x3408eb(0x18c)]+_0x3408eb(0x1a1),_0x58c3ae+=_0x3408eb(0x17f)+_0x4f4d27+_0x3408eb(0x170),_0x58c3ae+=_0x3408eb(0x1a5),_0x58c3ae+=_0x3408eb(0x193),_0x58c3ae+=_0x3408eb(0x17c),_0x58c3ae+=_0x3408eb(0x17e)+_0x4f4d27+_0x3408eb(0x1a3),_0x58c3ae+=_0x3408eb(0x17d)+_0x4f4d27+'Handler.remove(conditions);\x0a\x0a',_0x58c3ae+=_0x3408eb(0x177),_0x58c3ae+=_0x3408eb(0x193),_0x58c3ae+='}',!fs[_0x3408eb(0x199)]((0x0,path_1[_0x3408eb(0x176)])(_0x134128))&&fs[_0x3408eb(0x1ac)]((0x0,path_1[_0x3408eb(0x176)])(_0x134128),{'recursive':!![]}),fs[_0x3408eb(0x181)](_0x134128,_0x58c3ae,'utf-8');}}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const a6_0x5141e0=a6_0x57bc;(function(_0x11b5e9,_0x3e9dc3){const _0x24784b=a6_0x57bc,_0x1a83f6=_0x11b5e9();while(!![]){try{const _0x36cc8c=parseInt(_0x24784b(0xfb))/0x1*(-parseInt(_0x24784b(0x10e))/0x2)+parseInt(_0x24784b(0x10b))/0x3*(parseInt(_0x24784b(0x112))/0x4)+parseInt(_0x24784b(0xfd))/0x5+parseInt(_0x24784b(0x100))/0x6+parseInt(_0x24784b(0xf0))/0x7*(-parseInt(_0x24784b(0xfa))/0x8)+-parseInt(_0x24784b(0x111))/0x9*(parseInt(_0x24784b(0xee))/0xa)+parseInt(_0x24784b(0x10c))/0xb*(parseInt(_0x24784b(0xf4))/0xc);if(_0x36cc8c===_0x3e9dc3)break;else _0x1a83f6['push'](_0x1a83f6['shift']());}catch(_0x4eac1b){_0x1a83f6['push'](_0x1a83f6['shift']());}}}(a6_0x5799,0x76cd1));const a6_0x545d0c=(function(){let _0x252c3b=!![];return function(_0x1ed0ff,_0x1c620c){const _0x1f2092=_0x252c3b?function(){if(_0x1c620c){const _0x7f9ba2=_0x1c620c['apply'](_0x1ed0ff,arguments);return _0x1c620c=null,_0x7f9ba2;}}:function(){};return _0x252c3b=![],_0x1f2092;};}()),a6_0x257c3e=a6_0x545d0c(this,function(){const _0xb57bcb=a6_0x57bc;return a6_0x257c3e['toString']()[_0xb57bcb(0x10f)]('(((.+)+)+)+$')[_0xb57bcb(0xeb)]()[_0xb57bcb(0xfe)](a6_0x257c3e)[_0xb57bcb(0x10f)]('(((.+)+)+)+$');});a6_0x257c3e();'use strict';function a6_0x57bc(_0x143d4a,_0xa5c447){_0x143d4a=_0x143d4a-0xe7;const _0x2e1b34=a6_0x5799();let _0x257c3e=_0x2e1b34[_0x143d4a];return _0x257c3e;}Object[a6_0x5141e0(0x115)](exports,a6_0x5141e0(0x102),{'value':!![]}),exports[a6_0x5141e0(0xe9)]=default_1;const fs=require('fs'),path=require(a6_0x5141e0(0xff)),helper_1=require(a6_0x5141e0(0x114));function a6_0x5799(){const _0x4adeb3=['\x27,\x20\x27关闭','toString','getProp','tinyint','30400stKcTe','Error\x20extends\x20AnnError\x20{\x0a\x0a','147VojniL','/**\x0a','Type','\x27)\x0a','5556TAOoSm','_OFF:\x20number\x20=\x200;\x0a\x0a\x0a','/exceptions/','-常量设置\x0a','writeFileSync','-错误信息设置\x0a','16912WEWpLc','794999GYqkWn','_ON:\x20number\x20=\x201;\x0a\x0a','3403945JFUkKv','constructor','path','1817988uovrvW','indexOf','__esModule','existsSync','\x20*\x20**/\x0a','\x20\x20\x20\x20static\x20readonly\x20','mkdirSync','.ts','export\x20class\x20','\x20*\x20','utf-8','2437431tEgAvZ','11506aFqlgQ','dirname','2EQLCfG','search','\x20\x20\x20\x20@AnnEnumMsg(\x27','2826DQLdWh','4nEHkvi','Comment','../helper','defineProperty','/enums/','toUpperCase','default'];a6_0x5799=function(){return _0x4adeb3;};return a6_0x5799();}async function default_1({tablestartUp:_0x27176d,tablestartUpShort:_0x391368,basedir:_0x24498a,Comment:_0x3390fe,Fields:_0x5a1fd5}){await entity_emum({'tablestartUp':_0x27176d,'tablestartUpShort':_0x391368,'basedir':_0x24498a,'Comment':_0x3390fe,'Fields':_0x5a1fd5}),await entity_exceptions({'tablestartUp':_0x27176d,'tablestartUpShort':_0x391368,'basedir':_0x24498a,'Comment':_0x3390fe});}async function entity_emum({tablestartUp:_0x48eb02,tablestartUpShort:_0x1870dc,basedir:_0x14e5f5,Comment:_0x3ced7d,Fields:_0x244aac}){const _0x29eb1a=a6_0x5141e0,_0x52f92c=_0x14e5f5+(_0x29eb1a(0xe7)+_0x1870dc+_0x29eb1a(0x107));if(!fs[_0x29eb1a(0x103)](_0x52f92c)){let _0x46c472='';_0x46c472+=_0x29eb1a(0xf1),_0x46c472+='\x20*\x20'+_0x3ced7d+_0x29eb1a(0xf7),_0x46c472+=_0x29eb1a(0x104),_0x46c472+=_0x29eb1a(0x108)+_0x48eb02+'Enum\x20{\x0a\x0a';for(let _0x5174c1 in _0x244aac){let _0x418e31=_0x244aac[_0x5174c1],_0x325fce=(0x0,helper_1[_0x29eb1a(0xec)])(_0x418e31[_0x29eb1a(0xf2)]);[_0x29eb1a(0xed)][_0x29eb1a(0x101)](_0x325fce)!=-0x1&&(_0x46c472+=_0x29eb1a(0x110)+_0x5174c1+'\x27,\x20\x27开启'+_0x418e31[_0x29eb1a(0x113)]+_0x29eb1a(0xf3),_0x46c472+='\x20\x20\x20\x20static\x20readonly\x20'+_0x5174c1[_0x29eb1a(0xe8)]()+_0x29eb1a(0xfc),_0x46c472+=_0x29eb1a(0x110)+_0x5174c1+_0x29eb1a(0xea)+_0x418e31[_0x29eb1a(0x113)]+_0x29eb1a(0xf3),_0x46c472+=_0x29eb1a(0x105)+_0x5174c1[_0x29eb1a(0xe8)]()+_0x29eb1a(0xf5));}_0x46c472+='}',!fs['existsSync'](path[_0x29eb1a(0x10d)](_0x52f92c))&&fs['mkdirSync'](path[_0x29eb1a(0x10d)](_0x52f92c),{'recursive':!![]}),fs['writeFileSync'](_0x52f92c,_0x46c472,_0x29eb1a(0x10a));}}async function entity_exceptions({tablestartUp:_0x4e8b75,tablestartUpShort:_0x55c21e,basedir:_0x3b9bd0,Comment:_0x5d15ea}){const _0x4b467d=a6_0x5141e0,_0x3541c5=_0x3b9bd0+(_0x4b467d(0xf6)+_0x55c21e+_0x4b467d(0x107));if(!fs[_0x4b467d(0x103)](_0x3541c5)){let _0x14d0ab='';_0x14d0ab+=_0x4b467d(0xf1),_0x14d0ab+=_0x4b467d(0x109)+_0x5d15ea+_0x4b467d(0xf9),_0x14d0ab+=_0x4b467d(0x104),_0x14d0ab+=_0x4b467d(0x108)+_0x4e8b75+_0x4b467d(0xef),_0x14d0ab+='}',!fs[_0x4b467d(0x103)](path['dirname'](_0x3541c5))&&fs[_0x4b467d(0x106)](path['dirname'](_0x3541c5),{'recursive':!![]}),fs[_0x4b467d(0xf8)](_0x3541c5,_0x14d0ab,_0x4b467d(0x10a));}}
|
|
@@ -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
|
+
const a7_0x1dca85=a7_0x18b3;(function(_0x4c61a1,_0x353076){const _0x2e20a6=a7_0x18b3,_0x59ffa7=_0x4c61a1();while(!![]){try{const _0xc69cf8=-parseInt(_0x2e20a6(0x225))/0x1*(-parseInt(_0x2e20a6(0x202))/0x2)+parseInt(_0x2e20a6(0x211))/0x3+parseInt(_0x2e20a6(0x1e9))/0x4+parseInt(_0x2e20a6(0x219))/0x5+parseInt(_0x2e20a6(0x1df))/0x6*(parseInt(_0x2e20a6(0x1f1))/0x7)+-parseInt(_0x2e20a6(0x1cf))/0x8*(-parseInt(_0x2e20a6(0x1f2))/0x9)+-parseInt(_0x2e20a6(0x1e7))/0xa;if(_0xc69cf8===_0x353076)break;else _0x59ffa7['push'](_0x59ffa7['shift']());}catch(_0x4b805d){_0x59ffa7['push'](_0x59ffa7['shift']());}}}(a7_0x1010,0x33f4f));const a7_0x25b286=(function(){let _0xf42227=!![];return function(_0x5a3240,_0xc7d74b){const _0x5b5e70=_0xf42227?function(){const _0x49182b=a7_0x18b3;if(_0xc7d74b){const _0x598c77=_0xc7d74b[_0x49182b(0x22a)](_0x5a3240,arguments);return _0xc7d74b=null,_0x598c77;}}:function(){};return _0xf42227=![],_0x5b5e70;};}()),a7_0xa79fb2=a7_0x25b286(this,function(){const _0x3825ce=a7_0x18b3;return a7_0xa79fb2[_0x3825ce(0x1e4)]()[_0x3825ce(0x227)]('(((.+)+)+)+$')[_0x3825ce(0x1e4)]()[_0x3825ce(0x209)](a7_0xa79fb2)['search'](_0x3825ce(0x1db));});a7_0xa79fb2();'use strict';Object[a7_0x1dca85(0x234)](exports,a7_0x1dca85(0x1f4),{'value':!![]}),exports[a7_0x1dca85(0x1d0)]=default_1;const fs=require('fs'),path_1=require(a7_0x1dca85(0x1e3)),helper_1=require(a7_0x1dca85(0x222));async function default_1({tablename:_0xf981d0,tablestartUp:_0x57685b,tablestartUpShort:_0x23f1ed,basedir:_0x132f5f,Primary:_0x4e6f4e,Fields:_0x3d56f1,Comment:_0xf41a59,moduleName:_0x2393b9,apporbasic:_0x5cb749}){await entity({'tablename':_0xf981d0,'tablestartUp':_0x57685b,'tablestartUpShort':_0x23f1ed,'basedir':_0x132f5f,'Primary':_0x4e6f4e,'Fields':_0x3d56f1,'Comment':_0xf41a59,'moduleName':_0x2393b9,'apporbasic':_0x5cb749}),await repository({'tablestartUp':_0x57685b,'tablestartUpShort':_0x23f1ed,'basedir':_0x132f5f,'Comment':_0xf41a59,'moduleName':_0x2393b9,'apporbasic':_0x5cb749});}function a7_0x1010(){const _0x219e0f=['\x27,\x20precision:\x2010,\x20scale:\x202,\x20default:\x200.00,\x20nullable:\x20','\x20\x20\x20\x20@Column(\x27timestamp\x27,\x20{\x20comment:\x20\x27','getProp','-实体处理器\x0a','date','\x27\x20|\x20\x27','\x20\x20\x20\x20@Column(\x27text\x27,\x20{\x20comment:\x20\x27','existsSync','\x27,\x20enum:\x20[\x27','6dfXnMS','decimal','text','\x20\x20\x20\x20@PrimaryColumn({\x20comment:\x20\x27','\x20*\x20**/\x0a','Type','number','constructor','false','double','-实体\x0a','\x20\x20\x20\x20@CreateDateColumn({\x20comment:\x20\x27创建时间\x27,\x20type:\x20\x27timestamp\x27\x20})\x0a','mediumtext','datetime','\x27;\x0a\x0a','285132FfUzyK','\x20\x20\x20\x20@Column(\x27decimal\x27,\x20{\x20comment:\x20\x27','/entity.ts','\x20\x20\x20\x20@Column(\x27json\x27,\x20{\x20comment:\x20\x27','\x20})\x0a','writeFileSync','import\x20{\x20ProvideEntity,\x20ProvideSearch,\x20','@/apps/','1001495YcqNwp','/entities/','join','/searchs/','updated_at','\x20\x20\x20\x20@Column(\x27date\x27,\x20{\x20comment:\x20\x27','\x20extends\x20Repository<','\x20*\x20','string','../helper',':\x20number;\x0a\x0a','\x27\x20},\x20{\x20orderBy:\x20{\x20displayorder:\x20\x27DESC\x27\x20}\x20})\x0a','76805UFgANu','\x20\x20\x20\x20updated_at:\x20Date;\x0a\x0a','search','Null','tinyint','apply','@ProvideSearch(','\x20\x20\x20\x20','import\x20{\x20CreateDateColumn,\x20UpdateDateColumn,\x20DeleteDateColumn\x20}\x20from\x20\x27@anveroapi/typeorm\x27;\x0a','dirname','PrimaryGeneratedColumn','import\x20{\x20','\x20\x20\x20\x20@Column(\x27double\x27,\x20{\x20comment:\x20\x27','getEnum','%column%','defineProperty','\x20\x20\x20\x20@Column(\x27float\x27,\x20{\x20comment:\x20\x27','\x27]\x20})\x0a','enum',':\x20any\x20|\x20any[];\x0a\x0a','Search)\x0a','\x20\x20\x20\x20created_at:\x20Date;\x0a\x0a','YES','import\x20{\x20ProvideRepository,\x20Repository\x20}\x20from\x20\x27@anveroapi/typeorm\x27;\x0a','displayorder','export\x20class\x20','33408dFuiSe','default','\x27,\x20\x27','\x27,\x20nullable:\x20',',\x20unique:\x20false\x20})\x0a',',\x20Column\x20}\x20from\x20\x27@anveroapi/typeorm\x27;\x0a\x0a','/**\x0a','\x20\x20\x20\x20@PrimaryGeneratedColumn()\x0a','indexOf','//\x20import\x20{\x20ManyToOne,\x20JoinColumn\x20}\x20from\x20\x27@anveroapi/typeorm\x27;\x0a','true','deleted_at','(((.+)+)+)+$','/index.ts','\x20\x20\x20\x20@DeleteDateColumn({\x20comment:\x20\x27删除时间\x27,\x20type:\x20\x27timestamp\x27,\x20select:\x20false\x20})\x0a','Entity\x20}\x20from\x20\x27','4458OlRVzD','Entity)\x0a','Field','\x20\x20\x20\x20@Column({\x20comment:\x20\x27','path','toString','@ProvideEntity({\x20tableName:\x20\x27',':\x20string;\x0a\x0a','4074250FFFtTk','json','206788SiZuZy','\x20\x20\x20\x20@Column(\x27enum\x27,\x20{\x20comment:\x20\x27','/entity\x27;\x0a\x0a','created_at','Entity>{\x0a\x0a','PrimaryColumn','@ProvideRepository(','mkdirSync','49fdsCUh','81wbepvI','\x20\x20\x20\x20displayorder:\x20number;\x0a\x0a','__esModule','Comment','timestamp','utf-8','\x20\x20\x20\x20@Column({\x20comment:\x20\x27默认显示排序\x27,\x20nullable:\x20true,\x20unique:\x20false\x20})\x0a'];a7_0x1010=function(){return _0x219e0f;};return a7_0x1010();}function a7_0x18b3(_0x53cd9d,_0x7411fd){_0x53cd9d=_0x53cd9d-0x1c7;const _0x2d0733=a7_0x1010();let _0xa79fb2=_0x2d0733[_0x53cd9d];return _0xa79fb2;}async function entity({tablename:_0x2b30ab,tablestartUp:_0x239d8a,tablestartUpShort:_0x9ad81d,basedir:_0x438828,Primary:_0x2af537,Fields:_0x3b5a32,Comment:_0x22b9cc,moduleName:_0x31b595,apporbasic:_0x1ac118}){const _0x4296bc=a7_0x1dca85,_0x5193b4=_0x438828+(_0x4296bc(0x21a)+_0x9ad81d+_0x4296bc(0x213));if(!fs[_0x4296bc(0x200)](_0x5193b4)){let _0x1e07f9='',_0x95d36f='',_0x4d5093=[_0x4296bc(0x204),_0x4296bc(0x20e),_0x4296bc(0x221)][_0x4296bc(0x1d7)]((0x0,helper_1[_0x4296bc(0x1fb)])(_0x2af537[_0x4296bc(0x207)]))==-0x1;_0x4d5093?(_0x1e07f9+=_0x4296bc(0x1d6),_0x1e07f9+='\x20\x20\x20\x20'+_0x2af537[_0x4296bc(0x1e1)]+':\x20number;\x0a\x0a'):(_0x1e07f9+=_0x4296bc(0x205)+(_0x2af537[_0x4296bc(0x1f5)]||'标识')+'\x27,\x20length:\x20188\x20})\x0a',_0x1e07f9+=_0x4296bc(0x22c)+_0x2af537[_0x4296bc(0x1e1)]+':\x20string;\x0a\x0a');for(let _0x1cbce1 in _0x3b5a32){let _0x35fb62=_0x3b5a32[_0x1cbce1],_0x4e28bd=(0x0,helper_1[_0x4296bc(0x1fb)])(_0x35fb62[_0x4296bc(0x207)]);if(_0x35fb62['Field']==_0x4296bc(0x1cd)||_0x35fb62[_0x4296bc(0x1e1)]==_0x4296bc(0x1ec)||_0x35fb62['Field']==_0x4296bc(0x21d)||_0x35fb62['Field']==_0x4296bc(0x1da))continue;if(_0x4e28bd==_0x4296bc(0x1e8))_0x1e07f9+=_0x4296bc(0x214)+_0x35fb62[_0x4296bc(0x1f5)]+'\x27,\x20nullable:\x20'+(_0x35fb62[_0x4296bc(0x228)]==_0x4296bc(0x1cb)?_0x4296bc(0x1d9):_0x4296bc(0x20a))+_0x4296bc(0x1d3),_0x1e07f9+=_0x4296bc(0x22c)+_0x35fb62[_0x4296bc(0x1e1)]+_0x4296bc(0x1c8);else{if(_0x4e28bd==_0x4296bc(0x1c7)){let _0x4f24b3=(0x0,helper_1[_0x4296bc(0x232)])(_0x35fb62[_0x4296bc(0x207)]);_0x1e07f9+=_0x4296bc(0x1ea)+_0x35fb62[_0x4296bc(0x1f5)]+'\x27,\x20default:\x20\x27'+(_0x4f24b3[0x0]||'')+_0x4296bc(0x201)+_0x4f24b3[_0x4296bc(0x21b)](_0x4296bc(0x1d1))+_0x4296bc(0x236),_0x1e07f9+='\x20\x20\x20\x20'+_0x35fb62[_0x4296bc(0x1e1)]+':\x20\x27'+_0x4f24b3[_0x4296bc(0x21b)](_0x4296bc(0x1fe))+_0x4296bc(0x210);}else{if(_0x4e28bd=='float')_0x1e07f9+=_0x4296bc(0x235)+_0x35fb62[_0x4296bc(0x1f5)]+_0x4296bc(0x1f9)+(_0x35fb62[_0x4296bc(0x228)]==_0x4296bc(0x1cb)?_0x4296bc(0x1d9):'false')+'\x20})\x0a',_0x1e07f9+=_0x4296bc(0x22c)+_0x35fb62['Field']+':\x20number;\x0a\x0a';else{if(_0x4e28bd==_0x4296bc(0x20b))_0x1e07f9+=_0x4296bc(0x231)+_0x35fb62[_0x4296bc(0x1f5)]+'\x27,\x20precision:\x2010,\x20scale:\x202,\x20default:\x200.00,\x20nullable:\x20'+(_0x35fb62[_0x4296bc(0x228)]==_0x4296bc(0x1cb)?_0x4296bc(0x1d9):_0x4296bc(0x20a))+_0x4296bc(0x215),_0x1e07f9+=_0x4296bc(0x22c)+_0x35fb62[_0x4296bc(0x1e1)]+_0x4296bc(0x223);else{if(_0x4e28bd==_0x4296bc(0x203))_0x1e07f9+=_0x4296bc(0x212)+_0x35fb62[_0x4296bc(0x1f5)]+'\x27,\x20precision:\x2024,\x20scale:\x202,\x20default:\x200.00,\x20nullable:\x20'+(_0x35fb62[_0x4296bc(0x228)]==_0x4296bc(0x1cb)?_0x4296bc(0x1d9):'false')+'\x20})\x0a',_0x1e07f9+=_0x4296bc(0x22c)+_0x35fb62[_0x4296bc(0x1e1)]+_0x4296bc(0x223);else{if(_0x4e28bd==_0x4296bc(0x208))_0x1e07f9+=_0x4296bc(0x1e2)+_0x35fb62[_0x4296bc(0x1f5)]+'\x27,\x20nullable:\x20'+(_0x35fb62[_0x4296bc(0x228)]=='YES'?'true':_0x4296bc(0x20a))+_0x4296bc(0x1d3),_0x1e07f9+=_0x4296bc(0x22c)+_0x35fb62['Field']+_0x4296bc(0x223);else{if(_0x4e28bd==_0x4296bc(0x229))_0x1e07f9+='\x20\x20\x20\x20@Column(\x27tinyint\x27,\x20{\x20comment:\x20\x27'+_0x35fb62[_0x4296bc(0x1f5)]+_0x4296bc(0x1d2)+(_0x35fb62[_0x4296bc(0x228)]==_0x4296bc(0x1cb)?_0x4296bc(0x1d9):'false')+',\x20unique:\x20false\x20})\x0a',_0x1e07f9+=_0x4296bc(0x22c)+_0x35fb62[_0x4296bc(0x1e1)]+_0x4296bc(0x223);else{if(_0x4e28bd==_0x4296bc(0x1fd))_0x1e07f9+=_0x4296bc(0x21e)+_0x35fb62['Comment']+_0x4296bc(0x1d2)+(_0x35fb62[_0x4296bc(0x228)]==_0x4296bc(0x1cb)?'true':_0x4296bc(0x20a))+'\x20})\x0a',_0x1e07f9+=_0x4296bc(0x22c)+_0x35fb62[_0x4296bc(0x1e1)]+':\x20string;\x0a\x0a';else{if(_0x4e28bd==_0x4296bc(0x20f))_0x1e07f9+='\x20\x20\x20\x20@Column(\x27timestamp\x27,\x20{\x20comment:\x20\x27'+_0x35fb62[_0x4296bc(0x1f5)]+_0x4296bc(0x1d2)+(_0x35fb62[_0x4296bc(0x228)]=='YES'?_0x4296bc(0x1d9):'false')+'\x20})\x0a',_0x1e07f9+=_0x4296bc(0x22c)+_0x35fb62[_0x4296bc(0x1e1)]+':\x20string;\x0a\x0a';else{if(_0x4e28bd==_0x4296bc(0x1f6))_0x1e07f9+=_0x4296bc(0x1fa)+_0x35fb62[_0x4296bc(0x1f5)]+_0x4296bc(0x1d2)+(_0x35fb62[_0x4296bc(0x228)]==_0x4296bc(0x1cb)?_0x4296bc(0x1d9):_0x4296bc(0x20a))+_0x4296bc(0x215),_0x1e07f9+='\x20\x20\x20\x20'+_0x35fb62[_0x4296bc(0x1e1)]+_0x4296bc(0x1e6);else{if(_0x4e28bd==_0x4296bc(0x204))_0x1e07f9+=_0x4296bc(0x1ff)+_0x35fb62[_0x4296bc(0x1f5)]+_0x4296bc(0x1d2)+(_0x35fb62['Null']=='YES'?_0x4296bc(0x1d9):_0x4296bc(0x20a))+_0x4296bc(0x1d3),_0x1e07f9+=_0x4296bc(0x22c)+_0x35fb62[_0x4296bc(0x1e1)]+_0x4296bc(0x1e6);else{if(_0x4e28bd=='longtext')_0x1e07f9+='\x20\x20\x20\x20@Column(\x27longtext\x27,\x20{\x20comment:\x20\x27'+_0x35fb62['Comment']+_0x4296bc(0x1d2)+(_0x35fb62[_0x4296bc(0x228)]==_0x4296bc(0x1cb)?_0x4296bc(0x1d9):_0x4296bc(0x20a))+',\x20unique:\x20false\x20})\x0a',_0x1e07f9+=_0x4296bc(0x22c)+_0x35fb62[_0x4296bc(0x1e1)]+':\x20string;\x0a\x0a';else _0x4e28bd==_0x4296bc(0x20e)?(_0x1e07f9+='\x20\x20\x20\x20@Column(\x27mediumtext\x27,\x20{\x20comment:\x20\x27'+_0x35fb62['Comment']+_0x4296bc(0x1d2)+(_0x35fb62[_0x4296bc(0x228)]==_0x4296bc(0x1cb)?_0x4296bc(0x1d9):_0x4296bc(0x20a))+_0x4296bc(0x1d3),_0x1e07f9+=_0x4296bc(0x22c)+_0x35fb62['Field']+_0x4296bc(0x1e6)):(_0x1e07f9+=_0x4296bc(0x1e2)+_0x35fb62[_0x4296bc(0x1f5)]+_0x4296bc(0x1d2)+(_0x35fb62[_0x4296bc(0x228)]==_0x4296bc(0x1cb)?_0x4296bc(0x1d9):_0x4296bc(0x20a))+_0x4296bc(0x1d3),_0x1e07f9+=_0x4296bc(0x22c)+_0x35fb62[_0x4296bc(0x1e1)]+':\x20string;\x0a\x0a');}}}}}}}}}}}}_0x95d36f+=_0x4296bc(0x1d8),_0x95d36f+=_0x4296bc(0x22d),_0x95d36f+=_0x4296bc(0x217)+(_0x4d5093?_0x4296bc(0x22f):_0x4296bc(0x1ee))+_0x4296bc(0x1d4),_0x95d36f+=_0x4296bc(0x230)+_0x239d8a+'Search\x20}\x20from\x20\x27'+(typeof _0x31b595=='string'?'@/apps/'+_0x31b595:'@/'+_0x1ac118)+_0x4296bc(0x21c)+_0x9ad81d+_0x4296bc(0x210),_0x95d36f+=_0x4296bc(0x1d5),_0x95d36f+=_0x4296bc(0x220)+_0x22b9cc+_0x4296bc(0x20c),_0x95d36f+=_0x4296bc(0x206),_0x95d36f+=_0x4296bc(0x22b)+_0x239d8a+_0x4296bc(0x1c9),_0x95d36f+=_0x4296bc(0x1e5)+_0x2b30ab+_0x4296bc(0x224),_0x95d36f+=_0x4296bc(0x1ce)+_0x239d8a+'Entity\x20{\x0a\x0a',_0x95d36f+=_0x4296bc(0x233),_0x95d36f+=_0x4296bc(0x1f8),_0x95d36f+=_0x4296bc(0x1f3),_0x95d36f+=_0x4296bc(0x20d),_0x95d36f+=_0x4296bc(0x1ca),_0x95d36f+='\x20\x20\x20\x20@UpdateDateColumn({\x20comment:\x20\x27修改时间\x27,\x20type:\x20\x27timestamp\x27\x20})\x0a',_0x95d36f+=_0x4296bc(0x226),_0x95d36f+=_0x4296bc(0x1dd),_0x95d36f+='\x20\x20\x20\x20deleted_at:\x20Date;\x0a\x0a',_0x95d36f+='}',_0x95d36f=_0x95d36f['replace'](_0x4296bc(0x233),_0x1e07f9),!fs[_0x4296bc(0x200)]((0x0,path_1[_0x4296bc(0x22e)])(_0x5193b4))&&fs[_0x4296bc(0x1f0)]((0x0,path_1['dirname'])(_0x5193b4),{'recursive':!![]}),fs[_0x4296bc(0x216)](_0x5193b4,_0x95d36f,_0x4296bc(0x1f7));}}async function repository({tablestartUp:_0x4c5efa,tablestartUpShort:_0x52b0e5,basedir:_0x5c1aa1,Comment:_0x3376fe,moduleName:_0x28a76f,apporbasic:_0x192dc1}){const _0x4e365c=a7_0x1dca85,_0x72cd95=_0x5c1aa1+('/entities/'+_0x52b0e5+_0x4e365c(0x1dc));if(!fs[_0x4e365c(0x200)](_0x72cd95)){let _0x553db8='';_0x553db8+=_0x4e365c(0x1d5),_0x553db8+=_0x4e365c(0x220)+_0x3376fe+_0x4e365c(0x1fc),_0x553db8+='\x20*\x20**/\x0a',_0x553db8+=_0x4e365c(0x1cc),_0x553db8+=_0x4e365c(0x230)+_0x4c5efa+_0x4e365c(0x1de)+(typeof _0x28a76f==_0x4e365c(0x221)?_0x4e365c(0x218)+_0x28a76f:'@/'+_0x192dc1)+_0x4e365c(0x21a)+_0x52b0e5+_0x4e365c(0x1eb),_0x553db8+=_0x4e365c(0x1ef)+_0x4c5efa+_0x4e365c(0x1e0),_0x553db8+='export\x20class\x20'+_0x4c5efa+_0x4e365c(0x21f)+_0x4c5efa+_0x4e365c(0x1ed),_0x553db8+='}',!fs[_0x4e365c(0x200)]((0x0,path_1['dirname'])(_0x72cd95))&&fs[_0x4e365c(0x1f0)]((0x0,path_1[_0x4e365c(0x22e)])(_0x72cd95),{'recursive':!![]}),fs['writeFileSync'](_0x72cd95,_0x553db8,_0x4e365c(0x1f7));}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const a8_0x2e0473=a8_0x600f;(function(_0x2680d8,_0x3c25db){const _0x1e8766=a8_0x600f,_0x700230=_0x2680d8();while(!![]){try{const _0x2e96d3=-parseInt(_0x1e8766(0x182))/0x1+-parseInt(_0x1e8766(0x18b))/0x2+-parseInt(_0x1e8766(0x189))/0x3+-parseInt(_0x1e8766(0x192))/0x4+parseInt(_0x1e8766(0x181))/0x5+-parseInt(_0x1e8766(0x193))/0x6+parseInt(_0x1e8766(0x184))/0x7;if(_0x2e96d3===_0x3c25db)break;else _0x700230['push'](_0x700230['shift']());}catch(_0x41a338){_0x700230['push'](_0x700230['shift']());}}}(a8_0x2b6e,0x6af67));const a8_0x3f1eaa=(function(){let _0x484f13=!![];return function(_0x334a4f,_0xa71ea6){const _0x2bf835=_0x484f13?function(){const _0x150284=a8_0x600f;if(_0xa71ea6){const _0x57cb9b=_0xa71ea6[_0x150284(0x17f)](_0x334a4f,arguments);return _0xa71ea6=null,_0x57cb9b;}}:function(){};return _0x484f13=![],_0x2bf835;};}()),a8_0xad6dcb=a8_0x3f1eaa(this,function(){const _0x50232c=a8_0x600f;return a8_0xad6dcb['toString']()[_0x50232c(0x18f)](_0x50232c(0x18d))[_0x50232c(0x185)]()[_0x50232c(0x18c)](a8_0xad6dcb)[_0x50232c(0x18f)]('(((.+)+)+)+$');});a8_0xad6dcb();function a8_0x2b6e(){const _0x337146=[';\x0a\x0a\x0a','@/apps/',')\x20protected\x20','import\x20{\x20Inject,\x20InjectRepository\x20}\x20from\x20\x27@anveroapi/typeorm\x27;\x0a\x0a','@Event()\x0a','import\x20{\x20Event,\x20EventService\x20}\x20from\x20\x27@anveroapi/event\x27;\x0a','defineProperty','\x20}\x20from\x20\x27','\x27;\x0a\x0a','import\x20{\x20','Event\x20{\x0a\x0a','apply','writeFileSync','698070nCLJSG','863580vRjREG','existsSync','22237061NpkWwW','toString','\x20\x20\x20\x20@Inject()\x20protected\x20EventService:\x20EventService;\x0a\x0a','/entities/','dirname','2284968caAwLD','__esModule','873170JXTfhk','constructor','(((.+)+)+)+$','mkdirSync','search','string','\x20\x20\x20\x20@InjectRepository(','875796hRziHk','3584688aLYzjP'];a8_0x2b6e=function(){return _0x337146;};return a8_0x2b6e();}'use strict';function a8_0x600f(_0x2ef5ae,_0xd55118){_0x2ef5ae=_0x2ef5ae-0x179;const _0x325d2d=a8_0x2b6e();let _0xad6dcb=_0x325d2d[_0x2ef5ae];return _0xad6dcb;}Object[a8_0x2e0473(0x17a)](exports,a8_0x2e0473(0x18a),{'value':!![]}),exports['default']=default_1;const fs=require('fs'),path_1=require('path');async function default_1({tablestartUp:_0x266ca5,tablestartUpShort:_0x238c76,basedir:_0x19fc48,moduleName:_0x13a10c,apporbasic:_0x36dbbd}){const _0x130b25=a8_0x2e0473,_0x344fec=_0x19fc48+('/listeners/'+_0x238c76+'.ts');if(!fs[_0x130b25(0x183)](_0x344fec)){let _0x4750c9='';_0x4750c9+=_0x130b25(0x179),_0x4750c9+=_0x130b25(0x197),_0x4750c9+=_0x130b25(0x17d)+_0x266ca5+_0x130b25(0x17b)+(typeof _0x13a10c==_0x130b25(0x190)?_0x130b25(0x195)+_0x13a10c:'@/'+_0x36dbbd)+_0x130b25(0x187)+_0x238c76+_0x130b25(0x17c),_0x4750c9+=_0x130b25(0x198),_0x4750c9+='export\x20class\x20'+_0x266ca5+_0x130b25(0x17e),_0x4750c9+=_0x130b25(0x186),_0x4750c9+=_0x130b25(0x191)+_0x266ca5+_0x130b25(0x196)+_0x266ca5+':\x20'+_0x266ca5+_0x130b25(0x194),_0x4750c9+='}',!fs[_0x130b25(0x183)]((0x0,path_1[_0x130b25(0x188)])(_0x344fec))&&fs[_0x130b25(0x18e)]((0x0,path_1[_0x130b25(0x188)])(_0x344fec),{'recursive':!![]}),fs[_0x130b25(0x180)](_0x344fec,_0x4750c9,'utf-8');}}
|
|
@@ -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
|
+
const a9_0x1c2678=a9_0x377e;(function(_0x4e53b7,_0x5cbbd2){const _0x4e8480=a9_0x377e,_0x281a34=_0x4e53b7();while(!![]){try{const _0x29f591=parseInt(_0x4e8480(0x1e9))/0x1+parseInt(_0x4e8480(0x1e5))/0x2+-parseInt(_0x4e8480(0x213))/0x3*(parseInt(_0x4e8480(0x209))/0x4)+-parseInt(_0x4e8480(0x1ff))/0x5*(-parseInt(_0x4e8480(0x1dc))/0x6)+-parseInt(_0x4e8480(0x221))/0x7+-parseInt(_0x4e8480(0x205))/0x8*(-parseInt(_0x4e8480(0x1f5))/0x9)+parseInt(_0x4e8480(0x1de))/0xa*(parseInt(_0x4e8480(0x21d))/0xb);if(_0x29f591===_0x5cbbd2)break;else _0x281a34['push'](_0x281a34['shift']());}catch(_0x3175e3){_0x281a34['push'](_0x281a34['shift']());}}}(a9_0x1fae,0xcb9bd));const a9_0xbd77c0=(function(){let _0x2cda35=!![];return function(_0x4cdeb8,_0x2e59f3){const _0x462d6e=_0x2cda35?function(){if(_0x2e59f3){const _0x38e7f0=_0x2e59f3['apply'](_0x4cdeb8,arguments);return _0x2e59f3=null,_0x38e7f0;}}:function(){};return _0x2cda35=![],_0x462d6e;};}()),a9_0x35f747=a9_0xbd77c0(this,function(){const _0x5dbea1=a9_0x377e;return a9_0x35f747[_0x5dbea1(0x217)]()[_0x5dbea1(0x228)](_0x5dbea1(0x22d))[_0x5dbea1(0x217)]()[_0x5dbea1(0x1df)](a9_0x35f747)[_0x5dbea1(0x228)](_0x5dbea1(0x22d));});a9_0x35f747();function a9_0x1fae(){const _0x391f27=['\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20search.withDeleted().andWhere(`${search.alias}.deleted_at\x20IS\x20NOT\x20NULL`);\x0a','\x20\x20\x20\x20\x20\x20\x20\x20const\x20[pagelist,\x20pagetotal]\x20=\x20await\x20this.','.save(tmpModel);\x0a','1577062qzHgUN',';\x0a\x0a\x0a','\x20\x20\x20\x20\x20\x20\x20\x20}\x0a','Error(','path','import\x20{\x20Inject,\x20Singleton\x20}\x20from\x20\x27anvero-api\x27;\x0a','Entity>,\x20pageinfo?:\x20SearchPaginate,\x20options:\x20SearchOptions\x20=\x20{}):\x20Promise<[','Entity[],\x20number]>\x20{\x0a','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20return\x20search.getOneOrFail().catch(()\x20=>\x20{\x0a','@/apps/','\x20\x20\x20\x20\x20\x20\x20\x20for\x20(let\x20tmpModel\x20of\x20tmpModels)\x20{\x0a','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20restores.push(await\x20this.','18fZMrdJ','import\x20{\x20InjectRepository,\x20SearchParams,\x20SearchPaginate,\x20SearchOptions\x20}\x20from\x20\x27@anveroapi/typeorm\x27;\x0a\x0a','\x20\x20\x20\x20\x20\x20\x20\x20return\x20await\x20this.','\x20\x20\x20\x20\x20*\x20**/\x0a','string','.softRemove(tmpModel))\x0a','DTOUpdate\x20}\x20from\x20\x27','.search(conditions,\x20pageinfo,\x20options).then(async\x20search\x20=>\x20{\x0a\x0a','@Singleton()\x0a','\x20\x20\x20\x20\x20\x20\x20\x20return\x20tmpModel\x0a','2290315dumryw','import\x20{\x20CacheService,\x20EventService,\x20ValidatorService\x20}\x20from\x20\x27anvero-api\x27;\x0a','dirname','Entity>,\x20options:\x20SearchOptions\x20=\x20{})\x20{\x0a','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20return\x20search.getManyAndCount();\x0a','\x20\x20\x20\x20/**\x0a','1093616zeyoZb','\x20\x20\x20\x20\x20\x20\x20\x20this.','\x20}\x20from\x20\x27','existsSync','8WySuhL','DTOCreate)\x20{\x0a','.search(conditions,\x20{},\x20options).then(async\x20search\x20=>\x20{\x0a\x0a','\x20\x20\x20\x20\x20*\x20数据列表\x0a','\x20\x20\x20\x20\x20\x20\x20\x20});\x0a\x0a','Error._NOTFIND_,\x20{\x20message:\x20\x27','\x20\x20\x20\x20\x20\x20\x20\x20const\x20restores:\x20any\x20=\x20[],\x20tmpModels\x20=\x20await\x20this.','mkdirSync','\x20\x20\x20\x20\x20*\x20添加数据\x0a','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20return\x20search.getMany();\x0a','1898439UhsgYj','\x20\x20\x20\x20async\x20restores(conditions:\x20SearchParams<','/entities/','\x20*\x20','toString','\x20\x20\x20\x20}\x0a\x0a\x0a','import\x20{\x20','/validators/','\x20\x20\x20\x20async\x20detail(conditions?:\x20SearchParams<','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20throw\x20new\x20','11KsMkKN','.merge(tmpModel,\x20params);\x0a','\x20\x20\x20\x20@Inject()\x20CacheService:\x20CacheService;\x0a','\x20\x20\x20\x20\x20\x20\x20\x20const\x20tmpModel\x20=\x20await\x20this.','10932712KUEcVO','\x20\x20\x20\x20\x20*\x20数据详情\x0a','Entity\x20}\x20from\x20\x27','\x20\x20\x20\x20\x20*\x20删除数据\x0a','\x20\x20\x20\x20@Inject()\x20EventService:\x20EventService;\x0a','.create(params)\x0a\x0a','Handler\x20{\x0a\x0a','search','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20});\x0a','/Update\x27;\x0a','\x20\x20\x20\x20@InjectRepository(','\x20\x20\x20\x20\x20\x20\x20\x20return\x20[pagelist,\x20pagetotal];\x0a','(((.+)+)+)+$','\x20*\x20**/\x0a','default','6xvKTkJ','\x20\x20\x20\x20async\x20update(conditions:\x20SearchParams<','1516090nMgpSu','constructor','不存在\x27\x20})\x0a','\x20\x20\x20\x20\x20*\x20修改数据\x0a','defineProperty','\x20\x20\x20\x20\x20\x20\x20\x20return\x20deletes\x0a','.ts','2402570wdhifN'];a9_0x1fae=function(){return _0x391f27;};return a9_0x1fae();}'use strict';Object[a9_0x1c2678(0x1e2)](exports,'__esModule',{'value':!![]}),exports[a9_0x1c2678(0x1db)]=default_1;function a9_0x377e(_0x4433c2,_0x34d707){_0x4433c2=_0x4433c2-0x1db;const _0x1684e5=a9_0x1fae();let _0x35f747=_0x1684e5[_0x4433c2];return _0x35f747;}const fs=require('fs'),path_1=require(a9_0x1c2678(0x1ed));async function default_1({tablestartUp:_0x48eaaf,tablestartUpShort:_0x12622e,basedir:_0x2c724c,Primary:_0x537fb1,Comment:_0x278202,moduleName:_0x54f6c3,apporbasic:_0x443829}){const _0x29dc4a=a9_0x1c2678,_0x4e51aa=_0x2c724c+('/handlers/'+_0x12622e+_0x29dc4a(0x1e4));if(!fs[_0x29dc4a(0x208)](_0x4e51aa)){let _0xc800b1='';_0xc800b1+=_0x29dc4a(0x1ee),_0xc800b1+=_0x29dc4a(0x200),_0xc800b1+=_0x29dc4a(0x1f6),_0xc800b1+=_0x29dc4a(0x219)+_0x48eaaf+_0x29dc4a(0x207)+(typeof _0x54f6c3==_0x29dc4a(0x1f9)?_0x29dc4a(0x1f2)+_0x54f6c3:'@/'+_0x443829)+_0x29dc4a(0x215)+_0x12622e+'\x27;\x0a',_0xc800b1+='import\x20{\x20'+_0x48eaaf+'Error\x20}\x20from\x20\x27'+(typeof _0x54f6c3=='string'?_0x29dc4a(0x1f2)+_0x54f6c3:'@/'+_0x443829)+'/exceptions/'+_0x12622e+'\x27;\x0a',_0xc800b1+='import\x20{\x20'+_0x48eaaf+_0x29dc4a(0x223)+(typeof _0x54f6c3==_0x29dc4a(0x1f9)?_0x29dc4a(0x1f2)+_0x54f6c3:'@/'+_0x443829)+'/entities/'+_0x12622e+'/entity\x27;\x0a',_0xc800b1+=_0x29dc4a(0x219)+_0x48eaaf+'DTOCreate\x20}\x20from\x20\x27'+(typeof _0x54f6c3==_0x29dc4a(0x1f9)?'@/apps/'+_0x54f6c3:'@/'+_0x443829)+'/validators/'+_0x12622e+'/Create\x27;\x0a',_0xc800b1+=_0x29dc4a(0x219)+_0x48eaaf+_0x29dc4a(0x1fb)+(typeof _0x54f6c3==_0x29dc4a(0x1f9)?_0x29dc4a(0x1f2)+_0x54f6c3:'@/'+_0x443829)+_0x29dc4a(0x21a)+_0x12622e+_0x29dc4a(0x22a),_0xc800b1+='\x0a',_0xc800b1+='/**\x0a',_0xc800b1+=_0x29dc4a(0x216)+_0x278202+'\x0a',_0xc800b1+=_0x29dc4a(0x22e),_0xc800b1+=_0x29dc4a(0x1fd),_0xc800b1+='export\x20class\x20'+_0x48eaaf+_0x29dc4a(0x227),_0xc800b1+=_0x29dc4a(0x21f),_0xc800b1+=_0x29dc4a(0x225),_0xc800b1+='\x20\x20\x20\x20@Inject()\x20ValidatorService:\x20ValidatorService;\x0a\x0a',_0xc800b1+=_0x29dc4a(0x22b)+_0x48eaaf+')\x20'+_0x12622e+':\x20'+_0x48eaaf+_0x29dc4a(0x1ea),_0xc800b1+=_0x29dc4a(0x204),_0xc800b1+=_0x29dc4a(0x20c),_0xc800b1+=_0x29dc4a(0x1f8),_0xc800b1+='\x20\x20\x20\x20async\x20list(conditions?:\x20SearchParams<'+_0x48eaaf+_0x29dc4a(0x1ef)+_0x48eaaf+_0x29dc4a(0x1f0),_0xc800b1+=_0x29dc4a(0x1e7)+_0x12622e+_0x29dc4a(0x1fc),_0xc800b1+=_0x29dc4a(0x203),_0xc800b1+=_0x29dc4a(0x20d),_0xc800b1+=_0x29dc4a(0x22c),_0xc800b1+=_0x29dc4a(0x218),_0xc800b1+=_0x29dc4a(0x204),_0xc800b1+=_0x29dc4a(0x222),_0xc800b1+=_0x29dc4a(0x1f8),_0xc800b1+=_0x29dc4a(0x21b)+_0x48eaaf+_0x29dc4a(0x202),_0xc800b1+='\x20\x20\x20\x20\x20\x20\x20\x20const\x20tmpModel\x20=\x20await\x20this.'+_0x12622e+_0x29dc4a(0x20b),_0xc800b1+=_0x29dc4a(0x1f1),_0xc800b1+=_0x29dc4a(0x21c)+_0x48eaaf+'Error('+_0x48eaaf+_0x29dc4a(0x20e)+_0x278202+_0x29dc4a(0x1e0),_0xc800b1+=_0x29dc4a(0x229),_0xc800b1+='\x20\x20\x20\x20\x20\x20\x20\x20});\x0a\x0a',_0xc800b1+=_0x29dc4a(0x1fe),_0xc800b1+=_0x29dc4a(0x218),_0xc800b1+=_0x29dc4a(0x204),_0xc800b1+=_0x29dc4a(0x211),_0xc800b1+=_0x29dc4a(0x1f8),_0xc800b1+='\x20\x20\x20\x20async\x20create(params:\x20'+_0x48eaaf+_0x29dc4a(0x20a),_0xc800b1+='\x20\x20\x20\x20\x20\x20\x20\x20const\x20tmpModel\x20=\x20this.'+_0x12622e+_0x29dc4a(0x226),_0xc800b1+=_0x29dc4a(0x1f7)+_0x12622e+'.save(tmpModel);\x0a',_0xc800b1+=_0x29dc4a(0x218),_0xc800b1+=_0x29dc4a(0x204),_0xc800b1+=_0x29dc4a(0x1e1),_0xc800b1+=_0x29dc4a(0x1f8),_0xc800b1+=_0x29dc4a(0x1dd)+_0x48eaaf+'Entity>,\x20params:\x20'+_0x48eaaf+'DTOUpdate,\x20options:\x20SearchOptions\x20=\x20{})\x20{\x0a',_0xc800b1+=_0x29dc4a(0x220)+_0x12622e+'.search(conditions,\x20{},\x20options).then(async\x20search\x20=>\x20{\x0a\x0a',_0xc800b1+='\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20return\x20search.getOneOrFail().catch(()\x20=>\x20{\x0a',_0xc800b1+='\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20throw\x20new\x20'+_0x48eaaf+_0x29dc4a(0x1ec)+_0x48eaaf+'Error._NOTFIND_,\x20{\x20message:\x20\x27'+_0x278202+_0x29dc4a(0x1e0),_0xc800b1+=_0x29dc4a(0x229),_0xc800b1+=_0x29dc4a(0x20d),_0xc800b1+=_0x29dc4a(0x206)+_0x12622e+_0x29dc4a(0x21e),_0xc800b1+=_0x29dc4a(0x1f7)+_0x12622e+_0x29dc4a(0x1e8),_0xc800b1+=_0x29dc4a(0x218),_0xc800b1+='\x20\x20\x20\x20/**\x0a',_0xc800b1+=_0x29dc4a(0x224),_0xc800b1+=_0x29dc4a(0x1f8),_0xc800b1+='\x20\x20\x20\x20async\x20remove(conditions:\x20SearchParams<'+_0x48eaaf+_0x29dc4a(0x202),_0xc800b1+='\x20\x20\x20\x20\x20\x20\x20\x20const\x20deletes:\x20any\x20=\x20[],\x20tmpModels\x20=\x20await\x20this.'+_0x12622e+_0x29dc4a(0x20b),_0xc800b1+=_0x29dc4a(0x212),_0xc800b1+=_0x29dc4a(0x20d),_0xc800b1+='\x20\x20\x20\x20\x20\x20\x20\x20for\x20(let\x20tmpModel\x20of\x20tmpModels)\x20{\x0a',_0xc800b1+='\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20deletes.push(await\x20this.'+_0x12622e+_0x29dc4a(0x1fa),_0xc800b1+=_0x29dc4a(0x1eb),_0xc800b1+=_0x29dc4a(0x1e3),_0xc800b1+='\x20\x20\x20\x20}\x0a\x0a\x0a',_0xc800b1+=_0x29dc4a(0x204),_0xc800b1+='\x20\x20\x20\x20\x20*\x20恢复删除的数据\x0a',_0xc800b1+=_0x29dc4a(0x1f8),_0xc800b1+=_0x29dc4a(0x214)+_0x48eaaf+'Entity>,\x20options:\x20SearchOptions\x20=\x20{})\x20{\x0a',_0xc800b1+=_0x29dc4a(0x20f)+_0x12622e+'.search(conditions,\x20{},\x20options).then(async\x20search\x20=>\x20{\x0a\x0a',_0xc800b1+=_0x29dc4a(0x1e6),_0xc800b1+='\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20return\x20search.getMany();\x0a',_0xc800b1+=_0x29dc4a(0x20d),_0xc800b1+=_0x29dc4a(0x1f3),_0xc800b1+=_0x29dc4a(0x1f4)+_0x12622e+'.recover(tmpModel))\x0a',_0xc800b1+=_0x29dc4a(0x1eb),_0xc800b1+='\x20\x20\x20\x20\x20\x20\x20\x20return\x20restores\x0a',_0xc800b1+=_0x29dc4a(0x218),_0xc800b1+='}',!fs[_0x29dc4a(0x208)]((0x0,path_1[_0x29dc4a(0x201)])(_0x4e51aa))&&fs[_0x29dc4a(0x210)]((0x0,path_1[_0x29dc4a(0x201)])(_0x4e51aa),{'recursive':!![]}),fs['writeFileSync'](_0x4e51aa,_0xc800b1,'utf-8');}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const a10_0x43ee22=a10_0x8999;(function(_0xbac27,_0x5c2d31){const _0x27721e=a10_0x8999,_0x40bce1=_0xbac27();while(!![]){try{const _0xa9b106=-parseInt(_0x27721e(0x106))/0x1+-parseInt(_0x27721e(0xeb))/0x2+parseInt(_0x27721e(0xd2))/0x3*(parseInt(_0x27721e(0xc1))/0x4)+-parseInt(_0x27721e(0x101))/0x5+-parseInt(_0x27721e(0xe6))/0x6+parseInt(_0x27721e(0xcc))/0x7*(-parseInt(_0x27721e(0xe8))/0x8)+parseInt(_0x27721e(0xc8))/0x9;if(_0xa9b106===_0x5c2d31)break;else _0x40bce1['push'](_0x40bce1['shift']());}catch(_0x45cabf){_0x40bce1['push'](_0x40bce1['shift']());}}}(a10_0x5a66,0xca0ec));const a10_0x222557=(function(){let _0x308410=!![];return function(_0xab5008,_0x106974){const _0x668c58=_0x308410?function(){const _0x15a17d=a10_0x8999;if(_0x106974){const _0x17ee91=_0x106974[_0x15a17d(0xe5)](_0xab5008,arguments);return _0x106974=null,_0x17ee91;}}:function(){};return _0x308410=![],_0x668c58;};}()),a10_0x2cbe94=a10_0x222557(this,function(){const _0x318d68=a10_0x8999;return a10_0x2cbe94[_0x318d68(0xef)]()['search'](_0x318d68(0xc9))[_0x318d68(0xef)]()[_0x318d68(0xc2)](a10_0x2cbe94)[_0x318d68(0xfd)](_0x318d68(0xc9));});a10_0x2cbe94();'use strict';Object[a10_0x43ee22(0xca)](exports,a10_0x43ee22(0xc6),{'value':!![]}),exports[a10_0x43ee22(0xba)]=default_1;const fs=require('fs'),path_1=require(a10_0x43ee22(0xf8)),helper_1=require(a10_0x43ee22(0x100));function a10_0x5a66(){const _0x318938=['2595312NCfeuV','\x20\x20\x20\x20async\x20updated_at_start(query:\x20SelectQueryBuilder<ObjectLiteral>,\x20updated_at_start:\x20string)\x20{\x0a','8YsHxaM','existsSync','\x20\x20\x20\x20\x20\x20\x20\x20query.andWhere(`${query.alias}.created_at\x20>=\x20:created_at_start`,\x20{\x20created_at_start\x20})\x0a','1224664JPCrLn','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20this.updated_at_start(query,\x20dayjs(updated_at_between[0]).format(\x27YYYY-MM-DD\x20HH:mm:ss\x27))\x0a','_end\x20})\x0a','\x20\x20\x20\x20}\x0a\x0a','toString','\x20\x20\x20\x20\x20\x20\x20\x20if(\x20','_end:\x20string)\x20{\x0a','mkdirSync','_end`,\x20{\x20','replace','_between:\x20string[])\x20{\x0a','writeFileSync','export\x20class\x20','path','text','updated_at','_start:\x20string)\x20{\x0a','_between[0]).format(\x27YYYY-MM-DD\x20HH:mm:ss\x27))\x0a','search','Search\x20{\x0a\x0a','utf-8','../helper','4954215juFzln','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20this.created_at_end(query,\x20dayjs(created_at_between[1]).format(\x27YYYY-MM-DD\x20HH:mm:ss\x27))\x0a','deleted_at','\x20\x20\x20\x20@Search(\x27','_start(query:\x20SelectQueryBuilder<ObjectLiteral>,\x20','313226ADyUZe','\x20\x20\x20\x20async\x20','default','\x20*\x20','json','\x20*\x20**/\x0a','_start\x27,\x20\x27','/searchs/','\x20\x20\x20\x20@Search(\x27created_at_end\x27,\x20\x27创建时间:<=\x20起始时间(之前)\x27)\x0a','648456uwmpET','constructor','Field','\x20\x20\x20\x20@Search(\x27created_at_between\x27,\x20\x27创建时间在选定时间之内\x27)\x0a','-自定义检索\x0a','__esModule','@Provide()\x0a','32827032hJPKXx','(((.+)+)+)+$','defineProperty','dirname','7835261NOblLQ','\x20<=\x20:','\x20\x20\x20\x20async\x20created_at_end(query:\x20SelectQueryBuilder<ObjectLiteral>,\x20created_at_end:\x20string)\x20{\x0a','\x20\x20\x20\x20async\x20updated_at_end(query:\x20SelectQueryBuilder<ObjectLiteral>,\x20updated_at_end:\x20string)\x20{\x0a','_between.length\x20==\x202\x20){\x0a','_start`,\x20{\x20','12FZkjSV','timestamp','_between[1]).format(\x27YYYY-MM-DD\x20HH:mm:ss\x27))\x0a','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20this.created_at_start(query,\x20dayjs(created_at_between[0]).format(\x27YYYY-MM-DD\x20HH:mm:ss\x27))\x0a','\x20\x20\x20\x20@Search(\x27updated_at_between\x27,\x20\x27修改时间在选定时间之内\x27)\x0a','datetime','Comment','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20this.','_end(query:\x20SelectQueryBuilder<ObjectLiteral>,\x20','在选定时间之内\x27)\x0a','\x20\x20\x20\x20async\x20created_at_between(query:\x20SelectQueryBuilder<ObjectLiteral>,\x20created_at_between:\x20string[])\x20{\x0a',':<=\x20起始时间(之前)\x27)\x0a','displayorder','\x20\x20\x20\x20\x20\x20\x20\x20}\x0a','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20this.updated_at_end(query,\x20dayjs(updated_at_between[1]).format(\x27YYYY-MM-DD\x20HH:mm:ss\x27))\x0a','\x20\x20\x20\x20\x20\x20\x20\x20if(\x20updated_at_between.length\x20==\x202\x20){\x0a','date','\x20\x20\x20\x20\x20\x20\x20\x20query.andWhere(`${query.alias}.','%column%','apply'];a10_0x5a66=function(){return _0x318938;};return a10_0x5a66();}function a10_0x8999(_0x1e3f45,_0x45e032){_0x1e3f45=_0x1e3f45-0xba;const _0x413885=a10_0x5a66();let _0x2cbe94=_0x413885[_0x1e3f45];return _0x2cbe94;}async function default_1({tablestartUp:_0x548243,tablestartUpShort:_0x434b96,basedir:_0x48cb18,Fields:_0x1be2e4,Comment:_0x36b921}){const _0x2d5f43=a10_0x43ee22,_0x39740b=_0x48cb18+(_0x2d5f43(0xbf)+_0x434b96+'.ts');if(!fs[_0x2d5f43(0xe9)](_0x39740b)){let _0x2e879d='',_0x332f70='';for(let _0x55adc0 in _0x1be2e4){let _0x227849=_0x1be2e4[_0x55adc0],_0x1ec089=(0x0,helper_1['getProp'])(_0x227849['Type']);if(_0x227849[_0x2d5f43(0xc3)]==_0x2d5f43(0xde)||_0x227849['Field']=='created_at'||_0x227849[_0x2d5f43(0xc3)]==_0x2d5f43(0xfa)||_0x227849['Field']==_0x2d5f43(0x103))continue;if(_0x1ec089==_0x2d5f43(0xbc)){}else{if(_0x1ec089==_0x2d5f43(0xf9)){}else{if(_0x1ec089=='longtext'){}else[_0x2d5f43(0xe2),_0x2d5f43(0xd7),_0x2d5f43(0xd3)]['indexOf'](_0x1ec089)>-0x1&&(_0x2e879d+='\x20\x20\x20\x20@Search(\x27'+_0x227849[_0x2d5f43(0xc3)]+'_between\x27,\x20\x27'+_0x227849[_0x2d5f43(0xd8)]+_0x2d5f43(0xdb),_0x2e879d+=_0x2d5f43(0x107)+_0x227849[_0x2d5f43(0xc3)]+'_between(query:\x20SelectQueryBuilder<ObjectLiteral>,\x20'+_0x227849[_0x2d5f43(0xc3)]+_0x2d5f43(0xf5),_0x2e879d+=_0x2d5f43(0xf0)+_0x227849[_0x2d5f43(0xc3)]+_0x2d5f43(0xd0),_0x2e879d+='\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20this.'+_0x227849[_0x2d5f43(0xc3)]+'_end(query,\x20dayjs('+_0x227849['Field']+_0x2d5f43(0xd4),_0x2e879d+=_0x2d5f43(0xd9)+_0x227849[_0x2d5f43(0xc3)]+'_start(query,\x20dayjs('+_0x227849['Field']+_0x2d5f43(0xfc),_0x2e879d+='\x20\x20\x20\x20\x20\x20\x20\x20}\x0a',_0x2e879d+='\x20\x20\x20\x20}\x0a\x0a',_0x2e879d+='\x20\x20\x20\x20@Search(\x27'+_0x227849['Field']+_0x2d5f43(0xbe)+_0x227849[_0x2d5f43(0xd8)]+':>=\x20起始时间(之后)\x27)\x0a',_0x2e879d+='\x20\x20\x20\x20async\x20'+_0x227849[_0x2d5f43(0xc3)]+_0x2d5f43(0x105)+_0x227849['Field']+_0x2d5f43(0xfb),_0x2e879d+=_0x2d5f43(0xe3)+_0x227849[_0x2d5f43(0xc3)]+'\x20>=\x20:'+_0x227849[_0x2d5f43(0xc3)]+_0x2d5f43(0xd1)+_0x227849[_0x2d5f43(0xc3)]+'_start\x20})\x0a',_0x2e879d+=_0x2d5f43(0xee),_0x2e879d+=_0x2d5f43(0x104)+_0x227849[_0x2d5f43(0xc3)]+'_end\x27,\x20\x27'+_0x227849['Comment']+_0x2d5f43(0xdd),_0x2e879d+='\x20\x20\x20\x20async\x20'+_0x227849['Field']+_0x2d5f43(0xda)+_0x227849[_0x2d5f43(0xc3)]+_0x2d5f43(0xf1),_0x2e879d+='\x20\x20\x20\x20\x20\x20\x20\x20query.andWhere(`${query.alias}.'+_0x227849[_0x2d5f43(0xc3)]+_0x2d5f43(0xcd)+_0x227849['Field']+_0x2d5f43(0xf3)+_0x227849['Field']+_0x2d5f43(0xed),_0x2e879d+=_0x2d5f43(0xee));}}}_0x2e879d+=_0x2d5f43(0xc4),_0x2e879d+=_0x2d5f43(0xdc),_0x2e879d+='\x20\x20\x20\x20\x20\x20\x20\x20if(\x20created_at_between.length\x20==\x202\x20){\x0a',_0x2e879d+=_0x2d5f43(0x102),_0x2e879d+=_0x2d5f43(0xd5),_0x2e879d+=_0x2d5f43(0xdf),_0x2e879d+='\x20\x20\x20\x20}\x0a\x0a',_0x2e879d+='\x20\x20\x20\x20@Search(\x27created_at_start\x27,\x20\x27创建时间:>=\x20起始时间(之后)\x27)\x0a',_0x2e879d+='\x20\x20\x20\x20async\x20created_at_start(query:\x20SelectQueryBuilder<ObjectLiteral>,\x20created_at_start:\x20string)\x20{\x0a',_0x2e879d+=_0x2d5f43(0xea),_0x2e879d+='\x20\x20\x20\x20}\x0a\x0a',_0x2e879d+=_0x2d5f43(0xc0),_0x2e879d+=_0x2d5f43(0xce),_0x2e879d+='\x20\x20\x20\x20\x20\x20\x20\x20query.andWhere(`${query.alias}.created_at\x20<=\x20:created_at_end`,\x20{\x20created_at_end\x20})\x0a',_0x2e879d+=_0x2d5f43(0xee),_0x2e879d+=_0x2d5f43(0xd6),_0x2e879d+='\x20\x20\x20\x20async\x20updated_at_between(query:\x20SelectQueryBuilder<ObjectLiteral>,\x20updated_at_between:\x20string[])\x20{\x0a',_0x2e879d+=_0x2d5f43(0xe1),_0x2e879d+=_0x2d5f43(0xe0),_0x2e879d+=_0x2d5f43(0xec),_0x2e879d+=_0x2d5f43(0xdf),_0x2e879d+=_0x2d5f43(0xee),_0x2e879d+='\x20\x20\x20\x20@Search(\x27updated_at_start\x27,\x20\x27修改时间:>=\x20起始时间(之后)\x27)\x0a',_0x2e879d+=_0x2d5f43(0xe7),_0x2e879d+='\x20\x20\x20\x20\x20\x20\x20\x20query.andWhere(`${query.alias}.updated_at\x20>=\x20:updated_at_start`,\x20{\x20updated_at_start\x20})\x0a',_0x2e879d+=_0x2d5f43(0xee),_0x2e879d+='\x20\x20\x20\x20@Search(\x27updated_at_end\x27,\x20\x27修改时间:<=\x20起始时间(之前)\x27)\x0a',_0x2e879d+=_0x2d5f43(0xcf),_0x2e879d+='\x20\x20\x20\x20\x20\x20\x20\x20query.andWhere(`${query.alias}.updated_at\x20<=\x20:updated_at_end`,\x20{\x20updated_at_end\x20})\x0a',_0x2e879d+=_0x2d5f43(0xee),_0x332f70+='import\x20{\x20Provide,\x20Search,\x20ObjectLiteral,\x20SelectQueryBuilder\x20}\x20from\x20\x27@anveroapi/typeorm\x27;\x0a\x0a',_0x332f70+='/**\x0a',_0x332f70+=_0x2d5f43(0xbb)+_0x36b921+_0x2d5f43(0xc5),_0x332f70+=_0x2d5f43(0xbd),_0x332f70+=_0x2d5f43(0xc7),_0x332f70+=_0x2d5f43(0xf7)+_0x548243+_0x2d5f43(0xfe),_0x332f70+=_0x2d5f43(0xe4),_0x332f70+='}',_0x332f70=_0x332f70[_0x2d5f43(0xf4)]('%column%',_0x2e879d),!fs[_0x2d5f43(0xe9)]((0x0,path_1[_0x2d5f43(0xcb)])(_0x39740b))&&fs[_0x2d5f43(0xf2)]((0x0,path_1['dirname'])(_0x39740b),{'recursive':!![]}),fs[_0x2d5f43(0xf6)](_0x39740b,_0x332f70,_0x2d5f43(0xff));}}
|
|
@@ -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_0x370a6e=a11_0x2eba;(function(_0x3f0544,_0x5abae6){const _0x502b43=a11_0x2eba,_0x3b2c67=_0x3f0544();while(!![]){try{const _0x3f5032=parseInt(_0x502b43(0xea))/0x1*(parseInt(_0x502b43(0x10c))/0x2)+parseInt(_0x502b43(0x99))/0x3*(-parseInt(_0x502b43(0xf7))/0x4)+parseInt(_0x502b43(0xef))/0x5+parseInt(_0x502b43(0xe8))/0x6+parseInt(_0x502b43(0xb1))/0x7+-parseInt(_0x502b43(0xcc))/0x8+-parseInt(_0x502b43(0xcb))/0x9;if(_0x3f5032===_0x5abae6)break;else _0x3b2c67['push'](_0x3b2c67['shift']());}catch(_0x37845){_0x3b2c67['push'](_0x3b2c67['shift']());}}}(a11_0x3ab5,0xd1e94));const a11_0x2881d1=(function(){let _0x5309df=!![];return function(_0x5ccbef,_0x3960c6){const _0x5ea528=_0x5309df?function(){const _0x1bb27a=a11_0x2eba;if(_0x3960c6){const _0x35d8bb=_0x3960c6[_0x1bb27a(0x10a)](_0x5ccbef,arguments);return _0x3960c6=null,_0x35d8bb;}}:function(){};return _0x5309df=![],_0x5ea528;};}()),a11_0x38a2c0=a11_0x2881d1(this,function(){const _0x1c3f73=a11_0x2eba;return a11_0x38a2c0[_0x1c3f73(0xc3)]()['search'](_0x1c3f73(0xf1))[_0x1c3f73(0xc3)]()['constructor'](a11_0x38a2c0)[_0x1c3f73(0xb4)](_0x1c3f73(0xf1));});a11_0x38a2c0();'use strict';Object[a11_0x370a6e(0xcf)](exports,a11_0x370a6e(0xf3),{'value':!![]}),exports['default']=default_1;const fs=require('fs'),helper_1=require('../helper');async function default_1({controllers:_0xe989e8,tablestartUp:_0x13f120,tablestartUpShort:_0x27368a,basedir:_0x3184ae,Primary:_0x2fed47,Fields:_0x1d55dd,Comment:_0x4b7fd6,moduleName:_0x1279e2,apporbasic:_0x3c0b5e}){const _0x2bcb8f=a11_0x370a6e,_0x5425f8=_0x3184ae+('/validators/'+_0x27368a);!fs[_0x2bcb8f(0xca)](_0x5425f8)&&fs[_0x2bcb8f(0xd4)](_0x5425f8,{'recursive':!![]}),await DTOCreate({'controllers':_0xe989e8,'tablestartUp':_0x13f120,'tablestartUpShort':_0x27368a,'basedir':_0x3184ae,'Fields':_0x1d55dd,'Comment':_0x4b7fd6,'moduleName':_0x1279e2,'apporbasic':_0x3c0b5e}),await DTOUpdate({'controllers':_0xe989e8,'tablestartUp':_0x13f120,'tablestartUpShort':_0x27368a,'basedir':_0x3184ae,'Fields':_0x1d55dd,'Comment':_0x4b7fd6,'moduleName':_0x1279e2,'apporbasic':_0x3c0b5e}),await DTOSearch({'controllers':_0xe989e8,'tablestartUp':_0x13f120,'tablestartUpShort':_0x27368a,'basedir':_0x3184ae,'Fields':_0x1d55dd,'Primary':_0x2fed47,'Comment':_0x4b7fd6,'moduleName':_0x1279e2,'apporbasic':_0x3c0b5e});}async function DTOCreate({controllers:_0x12fe39,tablestartUp:_0x5bfda1,tablestartUpShort:_0x4bd29b,basedir:_0x5862c7,Fields:_0x4e0097,Comment:_0x38003b,moduleName:_0x283ddd,apporbasic:_0x59d0d2}){const _0x3791b9=a11_0x370a6e,_0x17275b=_0x5862c7+(_0x3791b9(0x109)+_0x4bd29b+_0x3791b9(0xa6));if(!fs['existsSync'](_0x17275b)){let _0x53ae63='',_0x2583f3='',_0x1ae62f=![];for(let _0x465507 in _0x4e0097){let _0x5f4ae2=_0x4e0097[_0x465507],_0x2a1ac5=(0x0,helper_1[_0x3791b9(0xc9)])(_0x5f4ae2[_0x3791b9(0x104)]);if(_0x5f4ae2['Field']=='displayorder'||_0x5f4ae2[_0x3791b9(0x9e)]==_0x3791b9(0xc1)||_0x5f4ae2['Field']==_0x3791b9(0x10b)||_0x5f4ae2[_0x3791b9(0x9e)]==_0x3791b9(0xbf))continue;if([_0x3791b9(0xd8),_0x3791b9(0xfd),_0x3791b9(0x9b)]['indexOf'](_0x2a1ac5)!=-0x1)_0x53ae63+=_0x3791b9(0xb3)+_0x5f4ae2[_0x3791b9(0x102)]+_0x3791b9(0x9c),_0x53ae63+=_0x3791b9(0xd5)+_0x5f4ae2[_0x3791b9(0x9e)]+_0x3791b9(0xc8);else{if([_0x3791b9(0xe9),_0x3791b9(0xec),_0x3791b9(0xbc),_0x3791b9(0xc5)][_0x3791b9(0xcd)](_0x2a1ac5)!=-0x1)_0x53ae63+=_0x3791b9(0xb3)+_0x5f4ae2['Comment']+_0x3791b9(0xa4)+(_0x5f4ae2[_0x3791b9(0xdf)]!=_0x3791b9(0xda)?_0x3791b9(0xf4):'')+')\x0a',_0x53ae63+=_0x3791b9(0xd5)+_0x5f4ae2['Field']+(_0x5f4ae2['Null']!='YES'?'?':'')+_0x3791b9(0xf6);else{if([_0x3791b9(0x108)][_0x3791b9(0xcd)](_0x2a1ac5)!=-0x1)_0x1ae62f=!![],_0x53ae63+=_0x3791b9(0xb3)+_0x5f4ae2[_0x3791b9(0x102)]+'\x27,\x20RuleType.number().valid(...getAnnEnumArray('+_0x5bfda1+_0x3791b9(0x103)+_0x5f4ae2[_0x3791b9(0x9e)]+_0x3791b9(0xb9)+(_0x5f4ae2[_0x3791b9(0xdf)]!='YES'?'.required()':'')+')\x0a',_0x53ae63+=_0x3791b9(0xd5)+_0x5f4ae2[_0x3791b9(0x9e)]+(_0x5f4ae2['Null']!=_0x3791b9(0xda)?'?':'')+_0x3791b9(0xf6);else{if(_0x2a1ac5==_0x3791b9(0xd9))_0x53ae63+=_0x3791b9(0xb3)+_0x5f4ae2[_0x3791b9(0x102)]+'\x27,\x20RuleType.any())\x0a',_0x53ae63+=_0x3791b9(0xd5)+_0x5f4ae2[_0x3791b9(0x9e)]+(_0x5f4ae2['Null']!=_0x3791b9(0xda)?'?':'')+_0x3791b9(0xdd);else{if(_0x2a1ac5==_0x3791b9(0xbe)){let _0xc32e34=(0x0,helper_1[_0x3791b9(0xfc)])(_0x5f4ae2[_0x3791b9(0x104)]);_0x53ae63+='\x20\x20\x20\x20@Rule(\x27'+_0x5f4ae2[_0x3791b9(0x102)]+'\x27,\x20RuleType.string().valid(\x27'+_0xc32e34[_0x3791b9(0xfa)](_0x3791b9(0x10e))+'\x27)'+(_0x5f4ae2[_0x3791b9(0xdf)]!=_0x3791b9(0xda)?_0x3791b9(0xf4):'')+')\x0a',_0x53ae63+=_0x3791b9(0xd5)+_0x5f4ae2[_0x3791b9(0x9e)]+(_0x5f4ae2['Null']!=_0x3791b9(0xda)?'?':'')+_0x3791b9(0xf2)+_0xc32e34[_0x3791b9(0xfa)]('\x27\x20|\x20\x27')+_0x3791b9(0xff);}else[_0x3791b9(0xbb),'datetime',_0x3791b9(0xd0)][_0x3791b9(0xcd)](_0x2a1ac5)>-0x1?(_0x53ae63+=_0x3791b9(0xb3)+_0x5f4ae2[_0x3791b9(0x102)]+_0x3791b9(0xd2)+(_0x5f4ae2[_0x3791b9(0xdf)]!='YES'?'.required()':'')+')\x0a',_0x53ae63+=_0x3791b9(0xd5)+_0x5f4ae2[_0x3791b9(0x9e)]+(_0x5f4ae2[_0x3791b9(0xdf)]!=_0x3791b9(0xda)?'?':'')+_0x3791b9(0x107)):(_0x53ae63+='\x20\x20\x20\x20@Rule(\x27'+_0x5f4ae2[_0x3791b9(0x102)]+_0x3791b9(0xf8)+(_0x5f4ae2[_0x3791b9(0xdf)]!=_0x3791b9(0xda)?_0x3791b9(0xf4):'')+')\x0a',_0x53ae63+=_0x3791b9(0xd5)+_0x5f4ae2[_0x3791b9(0x9e)]+(_0x5f4ae2[_0x3791b9(0xdf)]!=_0x3791b9(0xda)?'?':'')+_0x3791b9(0x107));}}}}}_0x53ae63+=_0x3791b9(0xed),_0x53ae63+=_0x3791b9(0xbd);(_0x12fe39===null||_0x12fe39===void 0x0?void 0x0:_0x12fe39['find'](_0x56e9a9=>typeof _0x56e9a9!=_0x3791b9(0xd1)))?_0x2583f3+=_0x3791b9(0xaa):_0x2583f3+=_0x3791b9(0x9f);_0x1ae62f&&(_0x2583f3+=_0x3791b9(0xb2)+_0x5bfda1+'Enum\x20}\x20from\x20\x27'+(typeof _0x283ddd=='string'?_0x3791b9(0xe1)+_0x283ddd:'@/'+_0x59d0d2)+_0x3791b9(0xa5)+_0x4bd29b+_0x3791b9(0x100));_0x2583f3+='\x0a',_0x2583f3+='/**\x0a',_0x2583f3+='\x20*\x20'+_0x38003b+'\x0a',_0x2583f3+=_0x3791b9(0x106),_0x2583f3+=_0x3791b9(0xba),_0x2583f3+=_0x3791b9(0xe4)+_0x5bfda1+_0x3791b9(0xe5),_0x2583f3+=_0x3791b9(0xd3),_0x2583f3+=_0x3791b9(0xe7);for(const _0x421671 of _0x12fe39){typeof _0x421671==_0x3791b9(0xd6)&&(_0x2583f3+=_0x3791b9(0xe4)+_0x421671[_0x3791b9(0xb0)](0x0,0x1)[_0x3791b9(0x10d)]()+_0x421671['substring'](0x1)[_0x3791b9(0xa3)]()+_0x5bfda1+_0x3791b9(0xa7)+_0x5bfda1+_0x3791b9(0xa1),_0x2583f3+=_0x3791b9(0xe7));}_0x2583f3=_0x2583f3[_0x3791b9(0xeb)]('%DtoColumn%',_0x53ae63),fs[_0x3791b9(0xf0)](_0x17275b,_0x2583f3,_0x3791b9(0xb8));}}function a11_0x2eba(_0x1e46bf,_0x4e0851){_0x1e46bf=_0x1e46bf-0x99;const _0x649d58=a11_0x3ab5();let _0x38a2c0=_0x649d58[_0x1e46bf];return _0x38a2c0;}async function DTOUpdate({controllers:_0xb4dc72,tablestartUp:_0x42c856,tablestartUpShort:_0x1a1e88,basedir:_0x3f1ad5,Fields:_0x11ca16,Comment:_0x4459ef,moduleName:_0x10bee9,apporbasic:_0x5ce884}){const _0x51a8db=a11_0x370a6e,_0x49ab1c=_0x3f1ad5+(_0x51a8db(0x109)+_0x1a1e88+_0x51a8db(0xde));if(!fs[_0x51a8db(0xca)](_0x49ab1c)){let _0x3287dd='',_0x343f97='',_0x33a5b9=![];for(let _0xd3cb1b in _0x11ca16){let _0xc7e8bb=_0x11ca16[_0xd3cb1b],_0xb35cd4=(0x0,helper_1[_0x51a8db(0xc9)])(_0xc7e8bb[_0x51a8db(0x104)]);if(_0xc7e8bb[_0x51a8db(0x9e)]==_0x51a8db(0xfe)||_0xc7e8bb[_0x51a8db(0x9e)]==_0x51a8db(0xc1)||_0xc7e8bb[_0x51a8db(0x9e)]==_0x51a8db(0x10b)||_0xc7e8bb['Field']=='deleted_at')continue;if(['text',_0x51a8db(0xfd),'mediumtext'][_0x51a8db(0xcd)](_0xb35cd4)!=-0x1)_0x3287dd+=_0x51a8db(0xb3)+_0xc7e8bb[_0x51a8db(0x102)]+_0x51a8db(0x9c),_0x3287dd+='\x20\x20\x20\x20'+_0xc7e8bb['Field']+_0x51a8db(0xc8);else{if(['float',_0x51a8db(0xec),'decimal',_0x51a8db(0xc5)]['indexOf'](_0xb35cd4)!=-0x1)_0x3287dd+='\x20\x20\x20\x20@Rule(\x27'+_0xc7e8bb[_0x51a8db(0x102)]+'\x27,\x20RuleType.number())\x0a',_0x3287dd+=_0x51a8db(0xd5)+_0xc7e8bb['Field']+'?:\x20number;\x0a\x0a';else{if([_0x51a8db(0x108)][_0x51a8db(0xcd)](_0xb35cd4)!=-0x1)_0x33a5b9=!![],_0x3287dd+=_0x51a8db(0xb3)+_0xc7e8bb['Comment']+_0x51a8db(0xad)+_0x42c856+_0x51a8db(0x103)+_0xc7e8bb[_0x51a8db(0x9e)]+_0x51a8db(0xa9),_0x3287dd+=_0x51a8db(0xd5)+_0xc7e8bb[_0x51a8db(0x9e)]+_0x51a8db(0xc6);else{if(_0xb35cd4=='json')_0x3287dd+='\x20\x20\x20\x20@Rule(\x27'+_0xc7e8bb[_0x51a8db(0x102)]+_0x51a8db(0xb6),_0x3287dd+=_0x51a8db(0xd5)+_0xc7e8bb[_0x51a8db(0x9e)]+'?:\x20any\x20|\x20any[];\x0a\x0a';else{if(_0xb35cd4=='enum'){let _0x30fccc=(0x0,helper_1[_0x51a8db(0xfc)])(_0xc7e8bb['Type']);_0x3287dd+=_0x51a8db(0xb3)+_0xc7e8bb['Comment']+_0x51a8db(0xf9)+_0x30fccc[_0x51a8db(0xfa)](_0x51a8db(0x10e))+_0x51a8db(0xee),_0x3287dd+=_0x51a8db(0xd5)+_0xc7e8bb[_0x51a8db(0x9e)]+'?:\x20\x27'+_0x30fccc[_0x51a8db(0xfa)]('\x27\x20|\x20\x27')+_0x51a8db(0xff);}else[_0x51a8db(0xbb),_0x51a8db(0xa8),_0x51a8db(0xd0)][_0x51a8db(0xcd)](_0xb35cd4)>-0x1?(_0x3287dd+='\x20\x20\x20\x20@Rule(\x27'+_0xc7e8bb[_0x51a8db(0x102)]+_0x51a8db(0xdc),_0x3287dd+=_0x51a8db(0xd5)+_0xc7e8bb[_0x51a8db(0x9e)]+'?:\x20string;\x0a\x0a'):(_0x3287dd+=_0x51a8db(0xb3)+_0xc7e8bb['Comment']+_0x51a8db(0x9c),_0x3287dd+=_0x51a8db(0xd5)+_0xc7e8bb['Field']+_0x51a8db(0xc8));}}}}}_0x3287dd+=_0x51a8db(0xed),_0x3287dd+=_0x51a8db(0xbd);(_0xb4dc72===null||_0xb4dc72===void 0x0?void 0x0:_0xb4dc72[_0x51a8db(0x9d)](_0x4bb04=>typeof _0x4bb04!=_0x51a8db(0xd1)))?_0x343f97+=_0x51a8db(0xaa):_0x343f97+=_0x51a8db(0x9f);_0x33a5b9&&(_0x343f97+=_0x51a8db(0xb2)+_0x42c856+_0x51a8db(0xb7)+(typeof _0x10bee9==_0x51a8db(0xd6)?'@/apps/'+_0x10bee9:'@/'+_0x5ce884)+_0x51a8db(0xa5)+_0x1a1e88+_0x51a8db(0x100));_0x343f97+='\x0a',_0x343f97+='/**\x0a',_0x343f97+=_0x51a8db(0xa0)+_0x4459ef+'\x0a',_0x343f97+=_0x51a8db(0xac),_0x343f97+=_0x51a8db(0xba),_0x343f97+=_0x51a8db(0xe4)+_0x42c856+'DTOUpdate\x20{\x0a\x0a',_0x343f97+=_0x51a8db(0xd3),_0x343f97+=_0x51a8db(0xe7);for(const _0x3bdd8b of _0xb4dc72){typeof _0x3bdd8b==_0x51a8db(0xd6)&&(_0x343f97+=_0x51a8db(0xe4)+_0x3bdd8b['substring'](0x0,0x1)[_0x51a8db(0x10d)]()+_0x3bdd8b[_0x51a8db(0xb0)](0x1)['toLowerCase']()+_0x42c856+_0x51a8db(0xe0)+_0x42c856+'DTOUpdate,\x20[\x27displayorder\x27])\x20{\x0a\x0a',_0x343f97+=_0x51a8db(0xe7));}_0x343f97=_0x343f97[_0x51a8db(0xeb)](_0x51a8db(0xd3),_0x3287dd),fs[_0x51a8db(0xf0)](_0x49ab1c,_0x343f97,_0x51a8db(0xb8));}}function a11_0x3ab5(){const _0x1efa0e=['DTOCreate\x20extends\x20OmitDto(','datetime','\x27)))\x0a','import\x20{\x20Rule,\x20RuleType,\x20OmitDto\x20}\x20from\x20\x27@anveroapi/validator\x27;\x0a\x0a','\x20\x20\x20\x20@Rule(\x27创建时间\x27,\x20RuleType.date(),\x20\x27>=\x20起始时间(之后)\x27)\x0a','\x20*\x20数据更新验证\x0a','\x27,\x20RuleType.number().valid(...getAnnEnumArray(','DTOSearch,\x20[\x27displayorder\x27])\x20{\x0a\x0a','/Search.ts','substring','4439197IHlSFS','import\x20{\x20','\x20\x20\x20\x20@Rule(\x27','search','\x20\x20\x20\x20created_at_between?:\x20string[];\x0a\x0a','\x27,\x20RuleType.any())\x0a','Enum\x20}\x20from\x20\x27','utf-8','\x27))','\x20*\x20**/\x0a','date','decimal','\x20\x20\x20\x20displayorder?:\x20number;\x0a\x0a','enum','deleted_at','DTOSearch\x20extends\x20OmitDto(','created_at','\x27,\x20RuleType.number())\x0a','toString','\x20\x20\x20\x20@Rule(\x27修改时间\x27,\x20RuleType.date(),\x20\x27>=\x20起始时间(之后)\x27)\x0a','number','?:\x20number;\x0a\x0a','\x20\x20\x20\x20created_at_start?:\x20string;\x0a\x0a','?:\x20string;\x0a\x0a','getProp','existsSync','6717024lJAwnh','6703504LzIatI','indexOf','/**\x0a','defineProperty','timestamp','boolean','\x27,\x20RuleType.date()','%DtoColumn%','mkdirSync','\x20\x20\x20\x20','string','\x20\x20\x20\x20@Rule(\x27创建时间\x27,\x20RuleType.date(),\x20\x27<\x20起始时间(之前)\x27)\x0a','text','json','YES','\x20\x20\x20\x20created_at_end?:\x20string;\x0a\x0a','\x27,\x20RuleType.date())\x0a',':\x20any\x20|\x20any[];\x0a\x0a','/Update.ts','Null','DTOUpdate\x20extends\x20OmitDto(','@/apps/','_between?:\x20string[];\x0a\x0a','?:\x20\x27','export\x20class\x20','DTOCreate\x20{\x0a\x0a','\x20\x20\x20\x20@Rule(\x27修改时间\x27,\x20RuleType.array().items(RuleType.string()),\x20\x27在选定时间之内\x27)\x0a','}\x0a\x0a','5604210IfXceV','float','119aXgGCW','replace','double','\x20\x20\x20\x20@Rule(\x27默认排序\x27,\x20RuleType.number())\x0a','\x27))\x0a','4225075JDdeEb','writeFileSync','(((.+)+)+)+$',':\x20\x27','__esModule','.required()','\x20\x20\x20\x20updated_at_start?:\x20string;\x0a\x0a',':\x20number;\x0a\x0a','48632qvluxk','\x27,\x20RuleType.string()','\x27,\x20RuleType.string().valid(\x27','join','\x27,\x20RuleType.array().items(RuleType.string()),\x20\x27在选定时间之内\x27)\x0a','getEnum','longtext','displayorder','\x27;\x0a\x0a','\x27;\x0a','DTOSearch\x20{\x0a\x0a','Comment','Enum,\x20\x27','Type','\x20\x20\x20\x20updated_at_between?:\x20string[];\x0a\x0a','\x20*\x20数据添加验证\x0a',':\x20string;\x0a\x0a','tinyint','/validators/','apply','updated_at','14822yyuPAS','toUpperCase','\x27,\x20\x27','\x27\x20|\x20\x27','210WEAoXf','\x27,\x20RuleType.string(),\x20\x27>=\x20起始时间(之后)\x27)\x0a','mediumtext','\x27,\x20RuleType.string())\x0a','find','Field','import\x20{\x20Rule,\x20RuleType\x20}\x20from\x20\x27@anveroapi/validator\x27;\x0a\x0a','\x20*\x20','DTOCreate,\x20[\x27displayorder\x27])\x20{\x0a\x0a','_end?:\x20string;\x0a\x0a','toLowerCase','\x27,\x20RuleType.number()','/enums/','/Create.ts'];a11_0x3ab5=function(){return _0x1efa0e;};return a11_0x3ab5();}async function DTOSearch({controllers:_0xc1644d,tablestartUp:_0x9c9d0,tablestartUpShort:_0x58fda4,basedir:_0x1f3d20,Fields:_0x575c59,Primary:_0x152259,Comment:_0x4fb78b,moduleName:_0xe288cc,apporbasic:_0x434348}){const _0x2835ec=a11_0x370a6e,_0x17f0bf=_0x1f3d20+(_0x2835ec(0x109)+_0x58fda4+_0x2835ec(0xaf));if(!fs[_0x2835ec(0xca)](_0x17f0bf)){let _0x4f62d7='',_0x58bf8f='',_0x1d66f0=![];for(let _0x277494 of[{[_0x152259[_0x2835ec(0x9e)]]:_0x152259},_0x575c59]){for(let _0xd34fe7 in _0x277494){let _0x11971a=_0x277494[_0xd34fe7],_0x4d4674=(0x0,helper_1['getProp'])(_0x11971a[_0x2835ec(0x104)]);if(_0x11971a[_0x2835ec(0x9e)]==_0x2835ec(0xfe)||_0x11971a['Field']==_0x2835ec(0xc1)||_0x11971a['Field']=='updated_at'||_0x11971a['Field']=='deleted_at')continue;if([_0x2835ec(0xd8),'longtext','mediumtext'][_0x2835ec(0xcd)](_0x4d4674)!=-0x1){}else{if([_0x2835ec(0xe9),_0x2835ec(0xec),_0x2835ec(0xbc),_0x2835ec(0xc5)]['indexOf'](_0x4d4674)!=-0x1)_0x4f62d7+='\x20\x20\x20\x20@Rule(\x27'+_0x11971a[_0x2835ec(0x102)]+_0x2835ec(0xc2),_0x4f62d7+=_0x2835ec(0xd5)+_0x11971a[_0x2835ec(0x9e)]+_0x2835ec(0xc6);else{if([_0x2835ec(0x108)]['indexOf'](_0x4d4674)!=-0x1)_0x1d66f0=!![],_0x4f62d7+=_0x2835ec(0xb3)+_0x11971a[_0x2835ec(0x102)]+_0x2835ec(0xad)+_0x9c9d0+_0x2835ec(0x103)+_0x11971a['Field']+_0x2835ec(0xa9),_0x4f62d7+=_0x2835ec(0xd5)+_0x11971a[_0x2835ec(0x9e)]+_0x2835ec(0xc6);else{if(_0x4d4674==_0x2835ec(0xd9)){}else{if(_0x4d4674==_0x2835ec(0xbe)){let _0x31e38c=(0x0,helper_1['getEnum'])(_0x11971a[_0x2835ec(0x104)]);_0x4f62d7+='\x20\x20\x20\x20@Rule(\x27'+_0x11971a[_0x2835ec(0x102)]+_0x2835ec(0xf9)+_0x31e38c[_0x2835ec(0xfa)](_0x2835ec(0x10e))+'\x27))\x0a',_0x4f62d7+='\x20\x20\x20\x20'+_0x11971a[_0x2835ec(0x9e)]+_0x2835ec(0xe3)+_0x31e38c[_0x2835ec(0xfa)](_0x2835ec(0x10f))+_0x2835ec(0xff);}else[_0x2835ec(0xbb),_0x2835ec(0xa8),'timestamp'][_0x2835ec(0xcd)](_0x4d4674)>-0x1?(_0x4f62d7+='\x20\x20\x20\x20@Rule(\x27'+_0x11971a[_0x2835ec(0x102)]+'\x27,\x20RuleType.string())\x0a',_0x4f62d7+=_0x2835ec(0xd5)+_0x11971a[_0x2835ec(0x9e)]+'?:\x20string;\x0a\x0a',_0x4f62d7+=_0x2835ec(0xb3)+_0x11971a[_0x2835ec(0x102)]+_0x2835ec(0xfb),_0x4f62d7+='\x20\x20\x20\x20'+_0x11971a[_0x2835ec(0x9e)]+_0x2835ec(0xe2),_0x4f62d7+=_0x2835ec(0xb3)+_0x11971a['Comment']+_0x2835ec(0x9a),_0x4f62d7+=_0x2835ec(0xd5)+_0x11971a[_0x2835ec(0x9e)]+'_start?:\x20string;\x0a\x0a',_0x4f62d7+=_0x2835ec(0xb3)+_0x11971a['Comment']+'\x27,\x20RuleType.string(),\x20\x27<\x20起始时间(之前)\x27)\x0a',_0x4f62d7+='\x20\x20\x20\x20'+_0x11971a[_0x2835ec(0x9e)]+_0x2835ec(0xa2)):(_0x4f62d7+=_0x2835ec(0xb3)+_0x11971a[_0x2835ec(0x102)]+'\x27,\x20RuleType.string())\x0a',_0x4f62d7+=_0x2835ec(0xd5)+_0x11971a[_0x2835ec(0x9e)]+_0x2835ec(0xc8));}}}}}}_0x4f62d7+=_0x2835ec(0xed),_0x4f62d7+=_0x2835ec(0xbd),_0x4f62d7+='\x20\x20\x20\x20@Rule(\x27创建时间\x27,\x20RuleType.array().items(RuleType.string()),\x20\x27在选定时间之内\x27)\x0a',_0x4f62d7+=_0x2835ec(0xb5),_0x4f62d7+=_0x2835ec(0xab),_0x4f62d7+=_0x2835ec(0xc7),_0x4f62d7+=_0x2835ec(0xd7),_0x4f62d7+=_0x2835ec(0xdb),_0x4f62d7+=_0x2835ec(0xe6),_0x4f62d7+=_0x2835ec(0x105),_0x4f62d7+=_0x2835ec(0xc4),_0x4f62d7+=_0x2835ec(0xf5),_0x4f62d7+='\x20\x20\x20\x20@Rule(\x27修改时间\x27,\x20RuleType.date(),\x20\x27<\x20起始时间(之前)\x27)\x0a',_0x4f62d7+='\x20\x20\x20\x20updated_at_end?:\x20string;\x0a\x0a';(_0xc1644d===null||_0xc1644d===void 0x0?void 0x0:_0xc1644d[_0x2835ec(0x9d)](_0x1ffd0a=>typeof _0x1ffd0a!=_0x2835ec(0xd1)))?_0x58bf8f+=_0x2835ec(0xaa):_0x58bf8f+='import\x20{\x20Rule,\x20RuleType\x20}\x20from\x20\x27@anveroapi/validator\x27;\x0a\x0a';_0x1d66f0&&(_0x58bf8f+=_0x2835ec(0xb2)+_0x9c9d0+'Enum\x20}\x20from\x20\x27'+(typeof _0xe288cc==_0x2835ec(0xd6)?'@/apps/'+_0xe288cc:'@/'+_0x434348)+_0x2835ec(0xa5)+_0x58fda4+_0x2835ec(0x100));_0x58bf8f+='\x0a',_0x58bf8f+=_0x2835ec(0xce),_0x58bf8f+='\x20*\x20'+_0x4fb78b+'\x0a',_0x58bf8f+='\x20*\x20数据检索验证\x0a',_0x58bf8f+=_0x2835ec(0xba),_0x58bf8f+=_0x2835ec(0xe4)+_0x9c9d0+_0x2835ec(0x101),_0x58bf8f+='%SearchDtoColumn%',_0x58bf8f+='}\x0a\x0a';for(const _0x2c78f5 of _0xc1644d){typeof _0x2c78f5=='string'&&(_0x58bf8f+=_0x2835ec(0xe4)+_0x2c78f5['substring'](0x0,0x1)['toUpperCase']()+_0x2c78f5['substring'](0x1)['toLowerCase']()+_0x9c9d0+_0x2835ec(0xc0)+_0x9c9d0+_0x2835ec(0xae),_0x58bf8f+=_0x2835ec(0xe7));}_0x58bf8f=_0x58bf8f[_0x2835ec(0xeb)]('%SearchDtoColumn%',_0x4f62d7),fs[_0x2835ec(0xf0)](_0x17f0bf,_0x58bf8f,_0x2835ec(0xb8));}}
|
|
@@ -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
|
+
function a12_0x31d9(_0xa4356a,_0x4df25a){_0xa4356a=_0xa4356a-0x106;const _0x2bfc92=a12_0x3442();let _0x5cdeee=_0x2bfc92[_0xa4356a];return _0x5cdeee;}const a12_0x11f83a=a12_0x31d9;(function(_0x428596,_0x4844c7){const _0x27ab18=a12_0x31d9,_0x1af478=_0x428596();while(!![]){try{const _0x5e9186=parseInt(_0x27ab18(0x130))/0x1*(-parseInt(_0x27ab18(0x126))/0x2)+parseInt(_0x27ab18(0x12a))/0x3*(-parseInt(_0x27ab18(0x120))/0x4)+-parseInt(_0x27ab18(0x13b))/0x5+-parseInt(_0x27ab18(0x115))/0x6*(parseInt(_0x27ab18(0x131))/0x7)+parseInt(_0x27ab18(0x125))/0x8*(-parseInt(_0x27ab18(0x132))/0x9)+-parseInt(_0x27ab18(0x138))/0xa+-parseInt(_0x27ab18(0x12e))/0xb*(-parseInt(_0x27ab18(0x13a))/0xc);if(_0x5e9186===_0x4844c7)break;else _0x1af478['push'](_0x1af478['shift']());}catch(_0x36f00a){_0x1af478['push'](_0x1af478['shift']());}}}(a12_0x3442,0xcac76));const a12_0x3cbfa3=(function(){let _0x503a5c=!![];return function(_0x1ceeab,_0x10bd8d){const _0x3713dd=_0x503a5c?function(){const _0x143d50=a12_0x31d9;if(_0x10bd8d){const _0x1b8fd5=_0x10bd8d[_0x143d50(0x10f)](_0x1ceeab,arguments);return _0x10bd8d=null,_0x1b8fd5;}}:function(){};return _0x503a5c=![],_0x3713dd;};}()),a12_0x5cdeee=a12_0x3cbfa3(this,function(){const _0x3b4f5e=a12_0x31d9;return a12_0x5cdeee[_0x3b4f5e(0x108)]()[_0x3b4f5e(0x113)](_0x3b4f5e(0x128))['toString']()[_0x3b4f5e(0x135)](a12_0x5cdeee)[_0x3b4f5e(0x113)](_0x3b4f5e(0x128));});a12_0x5cdeee();'use strict';Object[a12_0x11f83a(0x121)](exports,a12_0x11f83a(0x134),{'value':!![]}),exports[a12_0x11f83a(0x112)]=default_1;const fs=require('fs'),path_1=require('path'),helper_1=require(a12_0x11f83a(0x110));async function default_1({tablestartUpShort:_0x66ef5b,tablestartUpShort2:_0x378931,moduleName:_0x5d1480,controller:_0x1c571b,Comment:_0x45c27c,apporbasic:_0x540aa3,Primary:_0x459dce}){const _0x4bc419=a12_0x11f83a;let _0x37ee12=process[_0x4bc419(0x123)]()+_0x4bc419(0x117)+(typeof _0x1c571b==_0x4bc419(0x137)?'/'+_0x1c571b:'');_0x5d1480?_0x37ee12=_0x37ee12+('/apis/apps/'+_0x5d1480+'/'+_0x66ef5b+_0x4bc419(0x118)):_0x37ee12=_0x37ee12+(_0x4bc419(0x11e)+_0x540aa3+'/'+_0x66ef5b+_0x4bc419(0x118));if(!fs[_0x4bc419(0x111)](_0x37ee12)){const _0x78bb07=['text',_0x4bc419(0x106),_0x4bc419(0x137)]['indexOf']((0x0,helper_1[_0x4bc419(0x116)])(_0x459dce[_0x4bc419(0x10e)]))==-0x1,_0x28d724=''+(typeof _0x1c571b==_0x4bc419(0x137)?_0x1c571b+'/':'')+(_0x5d1480?_0x5d1480+'/':'')+_0x378931;let _0x18a743='import\x20{\x20request\x20}\x20from\x20\x27'+(_0x5d1480?_0x4bc419(0x107):'../')+'request\x27;\x0a\x0a';_0x18a743+=_0x4bc419(0x139)+_0x45c27c+_0x4bc419(0x11b),_0x18a743+='export\x20function\x20'+_0x66ef5b+'Detail('+_0x459dce[_0x4bc419(0x11a)]+':\x20'+(_0x78bb07?'number':'string')+_0x4bc419(0x10d),_0x18a743+=_0x4bc419(0x11f)+_0x28d724+'/detail/${'+_0x459dce['Field']+_0x4bc419(0x11c),_0x18a743+='}\x0a\x0a',_0x18a743+=_0x4bc419(0x139)+_0x45c27c+_0x4bc419(0x127),_0x18a743+='export\x20function\x20'+_0x66ef5b+_0x4bc419(0x136),_0x18a743+='\x20\x20\x20\x20return\x20request(`POST`,\x20`'+_0x28d724+_0x4bc419(0x12b),_0x18a743+=_0x4bc419(0x124),_0x18a743+=_0x4bc419(0x139)+_0x45c27c+'@修改\x0a',_0x18a743+=_0x4bc419(0x12d)+_0x66ef5b+_0x4bc419(0x122)+_0x459dce[_0x4bc419(0x11a)]+':\x20'+(_0x78bb07?'number':_0x4bc419(0x137))+',\x20params:\x20{\x20[key:\x20string]:\x20any\x20}\x20=\x20{})\x20{\x0a',_0x18a743+='\x20\x20\x20\x20return\x20request(`POST`,\x20`'+_0x28d724+'/edit/${'+_0x459dce[_0x4bc419(0x11a)]+_0x4bc419(0x12f),_0x18a743+=_0x4bc419(0x124),_0x18a743+=_0x4bc419(0x139)+_0x45c27c+_0x4bc419(0x10a),_0x18a743+=_0x4bc419(0x12d)+_0x66ef5b+_0x4bc419(0x129),_0x18a743+=_0x4bc419(0x11f)+_0x28d724+_0x4bc419(0x10b),_0x18a743+=_0x4bc419(0x124),_0x18a743+='//\x20'+_0x45c27c+_0x4bc419(0x109),_0x18a743+='export\x20function\x20'+_0x66ef5b+_0x4bc419(0x119),_0x18a743+='\x20\x20\x20\x20return\x20request(`POST`,\x20`'+_0x28d724+_0x4bc419(0x12c),_0x18a743+=_0x4bc419(0x124),fs[_0x4bc419(0x114)]((0x0,path_1[_0x4bc419(0x10c)])(_0x37ee12),{'recursive':!![]}),fs[_0x4bc419(0x11d)](_0x37ee12,_0x18a743,_0x4bc419(0x133));}}function a12_0x3442(){const _0x363bf6=['@列表\x0a','/list`,\x20params)\x0a','dirname',')\x20{\x0a','Type','apply','../helper','existsSync','default','search','mkdirSync','558bSagyI','getProp','/vue','.ts','Remove(params:\x20{\x20[key:\x20string]:\x20any\x20}\x20=\x20{})\x20{\x0a','Field','@详情\x0a','}`)\x0a','writeFileSync','/apis/','\x20\x20\x20\x20return\x20request(`GET`,\x20`','4fkkzWD','defineProperty','Edit(','cwd','}\x0a\x0a','39536cFAueL','397432lVMpTo','@添加\x0a','(((.+)+)+)+$','List(params:\x20{\x20[key:\x20string]:\x20any\x20}\x20=\x20{})\x20{\x0a','3725565OlCHeM','/add`,\x20params)\x0a','/remove`,\x20params)\x0a','export\x20function\x20','53855329eZLUQm','}`,\x20params)\x0a','7Xcifng','30863ltsqxA','297qZTSId','utf-8','__esModule','constructor','Add(params:\x20{\x20[key:\x20string]:\x20any\x20}\x20=\x20{})\x20{\x0a','string','2542690DsZmZV','//\x20','12Tujdhc','3025490KiFrUy','mediumtext','../../','toString','@删除\x0a'];a12_0x3442=function(){return _0x363bf6;};return a12_0x3442();}
|
|
@@ -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_0x52d3ce=a13_0x5ba2;function a13_0x5ba2(_0x1983d6,_0x169b2a){_0x1983d6=_0x1983d6-0x165;const _0x36ed48=a13_0x55dd();let _0x5a16b7=_0x36ed48[_0x1983d6];return _0x5a16b7;}(function(_0x23dd5e,_0x1fb458){const _0x3ec466=a13_0x5ba2,_0x47283c=_0x23dd5e();while(!![]){try{const _0x328116=-parseInt(_0x3ec466(0x222))/0x1*(-parseInt(_0x3ec466(0x23e))/0x2)+-parseInt(_0x3ec466(0x1ca))/0x3+parseInt(_0x3ec466(0x204))/0x4+-parseInt(_0x3ec466(0x167))/0x5*(parseInt(_0x3ec466(0x1d5))/0x6)+-parseInt(_0x3ec466(0x16f))/0x7*(parseInt(_0x3ec466(0x21f))/0x8)+parseInt(_0x3ec466(0x22a))/0x9*(parseInt(_0x3ec466(0x1da))/0xa)+-parseInt(_0x3ec466(0x17c))/0xb*(-parseInt(_0x3ec466(0x21a))/0xc);if(_0x328116===_0x1fb458)break;else _0x47283c['push'](_0x47283c['shift']());}catch(_0x3ec5cf){_0x47283c['push'](_0x47283c['shift']());}}}(a13_0x55dd,0x75730));const a13_0xb2c792=(function(){let _0xe9e94f=!![];return function(_0x1ecea1,_0x462dfe){const _0x5f11b1=_0xe9e94f?function(){const _0x579d81=a13_0x5ba2;if(_0x462dfe){const _0x1bce2e=_0x462dfe[_0x579d81(0x166)](_0x1ecea1,arguments);return _0x462dfe=null,_0x1bce2e;}}:function(){};return _0xe9e94f=![],_0x5f11b1;};}()),a13_0x5a16b7=a13_0xb2c792(this,function(){const _0x50eedb=a13_0x5ba2;return a13_0x5a16b7[_0x50eedb(0x1e0)]()['search'](_0x50eedb(0x17f))[_0x50eedb(0x1e0)]()['constructor'](a13_0x5a16b7)[_0x50eedb(0x1a1)](_0x50eedb(0x17f));});a13_0x5a16b7();'use strict';Object['defineProperty'](exports,a13_0x52d3ce(0x206),{'value':!![]}),exports[a13_0x52d3ce(0x20f)]=default_1;const fs=require('fs'),path_1=require(a13_0x52d3ce(0x194)),helper_1=require('../helper');async function default_1({moduleName:_0x2bb55c,controller:_0x53a6bb,tablestart:_0x43f9c,tablestartUpShort:_0x3b006c,tablestartLowShort:_0x1ba5b9,tablestartUpShort2:_0x476ba0,Primary:_0x521c39,Fields:_0x2cbdf5,apporbasic:_0x895654,Comment:_0x10773a,vuedialog:_0x5154bc,vueapiprefix:_0x2649e7}){const _0x16e08b=a13_0x52d3ce;await createIndex({'moduleName':_0x2bb55c,'controller':_0x53a6bb,'tablestart':_0x43f9c,'tablestartUpShort':_0x3b006c,'tablestartLowShort':_0x1ba5b9,'tablestartUpShort2':_0x476ba0,'Primary':_0x521c39,'Fields':_0x2cbdf5,'apporbasic':_0x895654,'vuedialog':_0x5154bc,'vueapiprefix':_0x2649e7}),await createSearch({'moduleName':_0x2bb55c,'controller':_0x53a6bb,'tablestartUpShort':_0x3b006c,'tablestartUpShort2':_0x476ba0,'Primary':_0x521c39,'Fields':_0x2cbdf5,'apporbasic':_0x895654,'vuedialog':_0x5154bc,'vueapiprefix':_0x2649e7}),!_0x5154bc?(await createAddOrEdit({'moduleName':_0x2bb55c,'controller':_0x53a6bb,'tablestart':_0x43f9c,'tablestartUpShort':_0x3b006c,'tablestartLowShort':_0x1ba5b9,'tablestartUpShort2':_0x476ba0,'Primary':_0x521c39,'Fields':_0x2cbdf5,'apporbasic':_0x895654,'Comment':_0x10773a,'vueapiprefix':_0x2649e7},_0x16e08b(0x1a8)),await createAddOrEdit({'moduleName':_0x2bb55c,'controller':_0x53a6bb,'tablestart':_0x43f9c,'tablestartUpShort':_0x3b006c,'tablestartLowShort':_0x1ba5b9,'tablestartUpShort2':_0x476ba0,'Primary':_0x521c39,'Fields':_0x2cbdf5,'apporbasic':_0x895654,'Comment':_0x10773a,'vueapiprefix':_0x2649e7},_0x16e08b(0x216))):(await createAddOrEditDialog({'moduleName':_0x2bb55c,'controller':_0x53a6bb,'tablestart':_0x43f9c,'tablestartUpShort':_0x3b006c,'tablestartLowShort':_0x1ba5b9,'tablestartUpShort2':_0x476ba0,'Primary':_0x521c39,'Fields':_0x2cbdf5,'apporbasic':_0x895654,'Comment':_0x10773a,'vueapiprefix':_0x2649e7},_0x16e08b(0x1a8)),await createAddOrEditDialog({'moduleName':_0x2bb55c,'controller':_0x53a6bb,'tablestart':_0x43f9c,'tablestartUpShort':_0x3b006c,'tablestartLowShort':_0x1ba5b9,'tablestartUpShort2':_0x476ba0,'Primary':_0x521c39,'Fields':_0x2cbdf5,'apporbasic':_0x895654,'Comment':_0x10773a,'vueapiprefix':_0x2649e7},_0x16e08b(0x216)));}function a13_0x55dd(){const _0x21b94f=['\x20\x20\x20\x20\x20\x20\x20\x20','`)\x22>\x0a','Add(item)','.EditId({\x20pathParams:\x20{\x20','edit/:','apply','1746755SaYfVn','Detail,\x20','</a>','/pages/apps/','indexOf','mkdirSync','.DetailId({\x20pathParams:\x20{\x20','const\x20refForm\x20=\x20ref(),\x20formdata\x20=\x20ref<any>({});\x0a','77FENSXI','img','$refs?.refDialogEdit?.open(scope.row.id)','<el-date-picker\x20v-model=\x22props.search.','$router.push(`add`)','getProp',':api=\x22$api.','.Add({\x20data:\x20item\x20}\x20as\x20any)','<template\x20#reference>','.then(res=>{\x0a','\x22\x20type=\x22textarea\x22\x20:rows=\x224\x22/>','import\x20{\x20','\x22\x20placeholder=\x22请输入','11HkVBSm','<el-input-number\x20v-model=\x22props.search.','<elplus-search-select\x20v-model=\x22props.search.','(((.+)+)+)+$','displayorder','\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','开始时间\x22\x20type=\x22date\x22\x20value-format=\x22YYYY-MM-DD\x22/>','_ids','\x22\x20placeholder=\x22选择','\x20\x20\x20\x20}).catch(err\x20=>\x20{\x0a','AddRule\x20}\x20from\x20\x27../interface\x27;\x0a','Comment','.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>','\x20\x20\x20\x20\x20\x20\x20\x20formdata.value\x20=\x20res?.data\x20||\x20{},\x20refDialog?.value?.open();\x0a','\x22>\x0a','<el-avatar\x20:src=\x22scope.row.',')\x20=>\x20{\x0a','=${scope.row.','\x20\x20\x20\x20}\x20else\x20{\x0a','apps/','\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','enum','substring','\x20\x20\x20\x20\x20\x20\x20\x20loading.value\x20=\x20true,\x20formdata.value\x20=\x20{};\x0a','path','\x22\x20value=\x22','结束时间\x22\x20type=\x22date\x22\x20value-format=\x22YYYY-MM-DD\x22/>','dirname','Remove({\x20','\x20\x20\x20\x20\x20\x20\x20\x20}).catch(err=>{\x0a','<template\x20#default=\x22scope\x22>','/pages/','getEnum','</el-table-column>','tag','\x22\x20clearable/>','`)\x22\x20@click=\x22','search','writeFileSync','\x27;\x0a','<template>\x0a\x20\x20\x20\x20','Add\x20}\x20from\x20\x27@/apis/','<elplus-switch\x20v-model=\x22scope.row\x22\x20field=\x22','\x20\x20\x20\x20}\x0a','add','\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>','</el-form-item>','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','<dialog-add-vue\x20ref=\x22refDialogAdd\x22\x20@save=\x22LoadDatas()\x22\x20/>','.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.','\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','\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@/','_id','}\x0a\x0a','<el-form-item\x20label=\x22排序\x22\x20prop=\x22displayorder\x22>','timestamp','endsWith','\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','_start\x22\x20placeholder=\x22选择','substr','开始时间\x22\x20type=\x22datetime\x22\x20value-format=\x22YYYY-MM-DD\x20HH:mm:ss\x22/>','const\x20loading\x20=\x20ref(false),\x20router\x20=\x20useRouter();\x0a\x0a','.then(res\x20=>\x20{\x0a','</template>\x0a','/edit/:','/components/dialog-','deleted_at','<elplus-search-select\x20v-model=\x22formdata.','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','`)\x22\x20type=\x22primary\x22\x20@click=\x22handlerSave()\x22>保存</el-button>\x0a','\x22\x20type=\x22datetime\x22\x20value-format=\x22YYYY-MM-DD\x20HH:mm:ss\x22/>','length','thumb','\x22\x20class=\x22block\x22>','\x20\x20\x20\x20</elplus-dialog>\x0a','\x0a\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20\x20\x20\x20\x20\x20\x20$notify.error(err\x20||\x20\x27网络请求错误\x27)\x0a','EditRule\x20}\x20from\x20\x27../interface\x27;\x0a','1724193ujpaXY','\x20\x20\x20\x20<elplus-dialog\x20ref=\x22refDialog\x22\x20:loading=\x22loading\x22\x20title=\x22','.List({\x20params:\x20Object.assign({},\x20route?.query\x20||\x20{},\x20table.search\x20||\x20{},\x20sortable)\x20}\x20as\x20any)','mediumtext','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x22\x20align=\x27center\x27\x20sortable=\x22custom\x22\x20show-overflow-tooltip\x20/>','\x20\x20\x20\x20\x20\x20\x20\x20</elplus-form>\x0a','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<template\x20#footer>\x0a','\x22\x20type=\x22date\x22\x20value-format=\x22YYYY-MM-DD\x22/>',')\x20{\x0a','\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','12QYfNHO','/index.vue','date','longtext','/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','10sDnGkN','Type','\x20\x20\x20\x20</page-main>\x0a','\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@/','Edit\x20}\x20from\x20\x27@/apis/','\x20\x20\x20\x20\x20\x20\x20\x20}).catch(err\x20=>\x20{\x0a','toString','\x22\x20align=\x27center\x27\x20sortable=\x22custom\x22>','<tinymce-editor\x20v-model=\x22formdata.','tinyint','<el-select\x20v-model=\x22props.search.','.Remove({\x20data:\x20{\x20','module=\x22','<el-input-number\x20v-model=\x22formdata.','\x22\x20split=\x22-\x22\x20clearable/>','Edit','\x20\x20\x20\x20','\x20as\x20unknown\x20as\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','List(Object.assign({},\x20route?.query\x20||\x20{},\x20table.search\x20||\x20{},\x20sortable))','<el-date-picker\x20v-model=\x22formdata.','<el-input\x20v-model=\x22props.search.','\x22\x20target=\x22_blank\x22\x20title=\x22查看最大化图片\x22>','\x22\x20placeholder=\x22请选择',',\x20item)','\x20\x20\x20\x20})\x0a','.List\x22','\x22\x20:min=\x221\x22\x20controls-position=\x22right\x22\x20clearable/>','<el-popover\x20placement=\x22bottom\x22\x20trigger=\x22click\x22>','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','Detail(','\x20\x20\x20\x20<page-main>\x0a','\x20},\x20data:\x20item\x20}\x20as\x20any)','\x20\x20\x20\x20formdata.value\x20=\x20{},\x20refDialog?.value?.open();\x0a','<el-select\x20v-model=\x22formdata.','\x20},\x20data:\x20{\x20[field]:\x20item[field]\x20}\x20}\x20as\x20any)','updated_at','</el-select>','<=\x22>','Edit(item.','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<el-button\x20v-if=\x22$hasPrem(`post@/','\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','3492116IjcpVY','\x22\x20align=\x27center\x27\x20show-overflow-tooltip>','__esModule','\x20\x20\x20\x20\x20\x20\x20\x20})\x0a','Field','</template>','<attachment-file\x20v-model=\x22formdata.','api=\x22','\x22\x20align=\x22center\x22\x20fixed=\x22left\x22\x20/>','$router.push(`edit?','<el-table-column\x20prop=','default','\x20/>','Add','created_at','//\x20保存数据\x0a','<template>\x0a','\x20label=\x22','edit',')\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20loading.value\x20=\x20true,\x20','\x20}\x20}\x20as\x20any)','结束时间\x22\x20type=\x22datetime\x22\x20value-format=\x22YYYY-MM-DD\x20HH:mm:ss\x22/>','4713288HhvFRj','Rule\x22\x20:loading=\x22loading\x22\x20:disabled=\x22!$hasPrem(`post@/','\x20lakey=\x22id\x22\x20\x20label=\x22id\x22\x20clearable/>',',\x20{\x20[field]:\x20item[field]\x20})','number','50040twvJUQ','\x20\x20\x20\x20refForm.value?.validate().then((item:\x20any)\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','1vhZyxn','datetime','tags','string','existsSync','num','\x22\x20clearable>','<el-input\x20v-model=\x22formdata.','3083049hGFwth','\x22\x20:min=\x221\x22\x20controls-position=\x22right\x22\x20/>','defineExpose({\x20open\x20})\x0a','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','const\x20handlerSave\x20=\x20()=>{\x0a','imgs','\x22\x20/>','\x22\x20:model=\x22formdata\x22\x20:rules=\x22','\x22\x20\x20placeholder=\x22请输入','utf-8','>=\x22>','<el-form-item\x20label=\x22','<elplus-select-tags\x20v-model=\x22formdata.','\x22\x20prop=\x22','index.vue','\x20\x20\x20\x20\x20\x20\x20\x20<elplus-form\x20ref=\x22refForm\x22\x20:model=\x22formdata\x22\x20:rules=\x22','components/search.vue','<el-input-number\x20v-model=\x22formdata.displayorder\x22\x20placeholder=\x22请输入排序权重\x22\x20controls-position=\x22right\x22/>','logo','padEnd','429892dcypUu','\x20})','<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@/','cwd','import\x20dialogEditVue\x20from\x20\x27./components/dialog-edit.vue\x27;',':\x20item.','\x22\x20active-text=\x22启用\x22\x20inactive-text=\x22禁用\x22\x20@change=\x22handlerFieldChange\x22\x20/>','_end\x22\x20placeholder=\x22选择','\x20\x20\x20\x20\x20\x20\x20\x20loading.value\x20=\x20true,\x20','<el-option\x20label=\x22','\x22\x20:limit=\x225\x22\x20','\x22\x20style=\x22width:\x20100%;max-width:500px\x22\x20/>','/vue','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(','<script\x20lang=\x22ts\x22\x20setup>\x0a','<img\x20:src=\x22scope.row.','\x20\x20\x20\x20formdata.value\x20=\x20{},\x20','\x22\x20:limit=\x221\x22\x20','text'];a13_0x55dd=function(){return _0x21b94f;};return a13_0x55dd();}async function createIndex({moduleName:_0x533fdf,controller:_0x53d63a,tablestart:_0x250cc1,tablestartUpShort:_0x5a2b8b,tablestartLowShort:_0x32e839,tablestartUpShort2:_0x5a6460,Primary:_0x3d4cf2,Fields:_0x369959,apporbasic:_0x53d609,vuedialog:_0x2a3d64,vueapiprefix:_0x3782f5}){const _0x1c9e07=a13_0x52d3ce;let _0x31d799=process[_0x1c9e07(0x241)]()+_0x1c9e07(0x24a)+(typeof _0x53d63a==_0x1c9e07(0x225)?'/'+_0x53d63a:'');_0x533fdf?_0x31d799=_0x31d799+(_0x1c9e07(0x16a)+_0x533fdf+'/'+_0x5a6460+(!_0x2a3d64?'/list/':'/')+_0x1c9e07(0x238)):_0x31d799=_0x31d799+(_0x1c9e07(0x19b)+_0x53d609+'/'+_0x5a6460+(!_0x2a3d64?'/list/':'/')+_0x1c9e07(0x238));if(!fs['existsSync'](_0x31d799)){let _0x3def1b=_0x1c9e07(0x20e)+('\x22'+_0x3d4cf2['Field']+'\x22')[_0x1c9e07(0x23d)](0x14)+(_0x1c9e07(0x215)+(_0x3d4cf2[_0x1c9e07(0x187)]||'编号')+_0x1c9e07(0x20c));for(let _0x5bca43 in _0x369959){const _0x5efd01=_0x369959[_0x5bca43];if([_0x1c9e07(0x212),_0x1c9e07(0x1fe),'deleted_at',_0x1c9e07(0x180)][_0x1c9e07(0x16b)](_0x5bca43)!=-0x1)continue;if(_0x5bca43[_0x1c9e07(0x192)](_0x5bca43[_0x1c9e07(0x1c3)]-0x3)==_0x1c9e07(0x170)||_0x5bca43[_0x1c9e07(0x192)](_0x5bca43[_0x1c9e07(0x1c3)]-0x5)==_0x1c9e07(0x1c4)||_0x5bca43==_0x1c9e07(0x1c4)||_0x5bca43['substring'](_0x5bca43[_0x1c9e07(0x1c3)]-0x4)==_0x1c9e07(0x23c)||_0x5bca43==_0x1c9e07(0x23c))_0x3def1b+='\x0a'+_0x1c9e07(0x1c0)+_0x1c9e07(0x20e)+('\x22'+_0x5bca43+'\x22')[_0x1c9e07(0x23d)](0x14)+(_0x1c9e07(0x215)+(_0x5efd01['Comment']||_0x5efd01[_0x1c9e07(0x208)])+_0x1c9e07(0x205)),_0x3def1b+='\x0a'+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x1c9e07(0x19a),_0x3def1b+='\x0a'+_0x1c9e07(0x221)+_0x1c9e07(0x1f6),_0x3def1b+='\x0a'+_0x1c9e07(0x1f7)+('<a\x20:href=\x22scope.row.'+_0x5bca43+_0x1c9e07(0x1f0)),_0x3def1b+='\x0a'+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x1c9e07(0x24d)+_0x5bca43+_0x1c9e07(0x249)),_0x3def1b+='\x0a'+_0x1c9e07(0x1f7)+_0x1c9e07(0x169),_0x3def1b+='\x0a'+_0x1c9e07(0x1f7)+_0x1c9e07(0x177),_0x3def1b+='\x0a'+_0x1c9e07(0x1b5)+(_0x1c9e07(0x18b)+_0x5bca43+'\x22\x20style=\x22cursor:pointer\x22/>'),_0x3def1b+='\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'+_0x1c9e07(0x209),_0x3def1b+='\x0a'+_0x1c9e07(0x221)+'</el-popover>',_0x3def1b+='\x0a'+_0x1c9e07(0x1ce)+'</template>',_0x3def1b+='\x0a'+_0x1c9e07(0x1c0)+_0x1c9e07(0x19d);else{if([_0x1c9e07(0x1e3)][_0x1c9e07(0x16b)]((0x0,helper_1[_0x1c9e07(0x174)])(_0x5efd01[_0x1c9e07(0x1db)]))!=-0x1)_0x3def1b+='\x0a'+_0x1c9e07(0x1c0)+_0x1c9e07(0x20e)+('\x22'+_0x5bca43+'\x22')[_0x1c9e07(0x23d)](0x14)+(_0x1c9e07(0x215)+(_0x5efd01[_0x1c9e07(0x187)]||_0x5efd01[_0x1c9e07(0x208)])+_0x1c9e07(0x1e1)),_0x3def1b+='\x0a'+_0x1c9e07(0x1ce)+_0x1c9e07(0x19a),_0x3def1b+='\x0a'+_0x1c9e07(0x221)+(_0x1c9e07(0x1a6)+_0x5bca43+_0x1c9e07(0x244)),_0x3def1b+='\x0a'+_0x1c9e07(0x1ce)+_0x1c9e07(0x209),_0x3def1b+='\x0a'+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+'</el-table-column>';else[_0x1c9e07(0x250)]['indexOf']((0x0,helper_1[_0x1c9e07(0x174)])(_0x5efd01[_0x1c9e07(0x1db)]))==-0x1&&(_0x3def1b+='\x0a'+_0x1c9e07(0x1c0)+_0x1c9e07(0x20e)+('\x22'+_0x5bca43+'\x22')[_0x1c9e07(0x23d)](0x14)+(_0x1c9e07(0x215)+(_0x5efd01[_0x1c9e07(0x187)]||_0x5efd01[_0x1c9e07(0x208)])+_0x1c9e07(0x1cf)));}}const _0xb1c3b0=''+(typeof _0x53d63a==_0x1c9e07(0x225)?_0x53d63a+'/':'')+(_0x533fdf?_0x533fdf+'/':'')+_0x5a6460,_0x455805=_0x3782f5?_0x3782f5+'.'+(_0x533fdf?''+_0x533fdf+_0x5a2b8b:_0x5a2b8b):''+_0x5a2b8b,_0x1ec753=_0x3782f5?'':_0x1c9e07(0x17a)+_0x5a2b8b+'List,\x20'+_0x5a2b8b+'Remove,\x20'+_0x5a2b8b+_0x1c9e07(0x1de)+(_0x533fdf?_0x1c9e07(0x18f)+_0x533fdf:''+_0x53d609)+'/'+_0x5a2b8b+'\x27;\x0a',_0x34655a=_0x3782f5?_0x455805+_0x1c9e07(0x1cc):_0x5a2b8b+_0x1c9e07(0x1ed),_0x525451=_0x3782f5?_0x455805+_0x1c9e07(0x1e5)+_0x3d4cf2[_0x1c9e07(0x208)]+_0x1c9e07(0x243)+_0x3d4cf2[_0x1c9e07(0x208)]+_0x1c9e07(0x218):_0x5a2b8b+_0x1c9e07(0x198)+_0x3d4cf2['Field']+':\x20item.'+_0x3d4cf2[_0x1c9e07(0x208)]+_0x1c9e07(0x23f),_0x425a98=_0x3782f5?_0x455805+_0x1c9e07(0x254)+_0x3d4cf2['Field']+':\x20item.'+_0x3d4cf2[_0x1c9e07(0x208)]+_0x1c9e07(0x1fd):_0x5a2b8b+_0x1c9e07(0x201)+_0x3d4cf2[_0x1c9e07(0x208)]+_0x1c9e07(0x21d);fs['mkdirSync']((0x0,path_1['dirname'])(_0x31d799),{'recursive':!![]}),fs[_0x1c9e07(0x1a2)](_0x31d799,_0x1c9e07(0x240)+_0xb1c3b0+'/add`)\x22\x20@click=\x22'+(!_0x2a3d64?_0x1c9e07(0x173):'$refs?.refDialogAdd?.open()')+_0x1c9e07(0x203)+_0x3def1b+_0x1c9e07(0x1af)+_0xb1c3b0+_0x1c9e07(0x1bc)+_0x3d4cf2[_0x1c9e07(0x208)]+_0x1c9e07(0x1a0)+(!_0x2a3d64?_0x1c9e07(0x20d)+_0x3d4cf2[_0x1c9e07(0x208)]+_0x1c9e07(0x18d)+_0x3d4cf2[_0x1c9e07(0x208)]+'}`)':_0x1c9e07(0x171))+_0x1c9e07(0x1dd)+_0xb1c3b0+_0x1c9e07(0x1d9)+(!_0x2a3d64?'':_0x1c9e07(0x1ac))+_0x1c9e07(0x1c7)+(!_0x2a3d64?'':'<dialog-edit-vue\x20ref=\x22refDialogEdit\x22\x20@save=\x22LoadDatas()\x22/>')+_0x1c9e07(0x1d4)+(!_0x2a3d64?'':'import\x20dialogAddVue\x20from\x20\x27./components/dialog-add.vue\x27;')+'\x0a'+(!_0x2a3d64?'':_0x1c9e07(0x242))+'\x0a'+_0x1ec753+_0x1c9e07(0x181)+_0x34655a+'.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'+_0x525451+_0x1c9e07(0x1ad)+_0x3d4cf2['Field']+_0x1c9e07(0x217)+_0x425a98+_0x1c9e07(0x188),_0x1c9e07(0x233));}}async function createSearch({moduleName:_0xeb6eed,tablestartUpShort:_0x55f298,tablestartUpShort2:_0x3d98c8,controller:_0x511396,Primary:_0x35d7a9,Fields:_0x38cc94,apporbasic:_0x45669a,vuedialog:_0x4d0feb,vueapiprefix:_0x43ea2e}){const _0x1639de=a13_0x52d3ce;let _0xf24c5e=process[_0x1639de(0x241)]()+'/vue'+(typeof _0x511396=='string'?'/'+_0x511396:'');_0xeb6eed?_0xf24c5e=_0xf24c5e+(_0x1639de(0x16a)+_0xeb6eed+'/'+_0x3d98c8+(!_0x4d0feb?'/list/':'/')+_0x1639de(0x23a)):_0xf24c5e=_0xf24c5e+(_0x1639de(0x19b)+_0x45669a+'/'+_0x3d98c8+(!_0x4d0feb?'/list/':'/')+_0x1639de(0x23a));if(!fs[_0x1639de(0x226)](_0xf24c5e)){let _0x4ce6dc='';_0x4ce6dc+='\x0a'+_0x1639de(0x1ea)+('<el-form-item\x20label=\x22'+(_0x35d7a9[_0x1639de(0x187)]||'编号')+'\x22>'),_0x4ce6dc+='\x0a'+_0x1639de(0x251)+(_0x1639de(0x1ef)+_0x35d7a9[_0x1639de(0x208)]+_0x1639de(0x17b)+(_0x35d7a9['Comment']||'编号')+_0x1639de(0x19f)),_0x4ce6dc+='\x0a'+'\x20\x20\x20\x20'+'</el-form-item>';for(let _0x1e08c7 in _0x38cc94){const _0x463652=_0x38cc94[_0x1e08c7];if([_0x1639de(0x1fe),_0x1639de(0x1be),_0x1639de(0x180)][_0x1639de(0x16b)](_0x1e08c7)!=-0x1)continue;if(_0x1e08c7[_0x1639de(0x192)](_0x1e08c7[_0x1639de(0x1c3)]-0x3)=='img'||_0x1e08c7[_0x1639de(0x192)](_0x1e08c7[_0x1639de(0x1c3)]-0x5)==_0x1639de(0x1c4)||_0x1e08c7==_0x1639de(0x1c4)||_0x1e08c7[_0x1639de(0x192)](_0x1e08c7['length']-0x4)=='logo'||_0x1e08c7==_0x1639de(0x23c))continue;if(_0x1e08c7[_0x1639de(0x192)](_0x1e08c7[_0x1639de(0x1c3)]-0x3)==_0x1639de(0x227))_0x4ce6dc+='\x0a'+_0x1639de(0x1ea)+(_0x1639de(0x235)+(_0x463652['Comment']||_0x463652[_0x1639de(0x208)])+'\x22>'),_0x4ce6dc+='\x0a'+_0x1639de(0x251)+(_0x1639de(0x17d)+_0x1e08c7+'\x22\x20placeholder=\x22请输入'+_0x463652[_0x1639de(0x187)]+_0x1639de(0x1f5)),_0x4ce6dc+='\x0a'+_0x1639de(0x1ea)+_0x1639de(0x1aa)+'\x0a';else{if(_0x1e08c7[_0x1639de(0x1b4)](_0x1639de(0x1b0))){let _0x57b06d=''+(typeof _0x511396==_0x1639de(0x225)?_0x511396+'/':'')+(_0xeb6eed?_0xeb6eed+'/':'')+_0x3d98c8;_0x4ce6dc+='\x0a'+_0x1639de(0x251)+(_0x1639de(0x235)+(_0x463652[_0x1639de(0x187)]||_0x463652[_0x1639de(0x208)])+'\x22>'),_0x4ce6dc+='\x0a'+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x1639de(0x17e)+_0x1e08c7+'\x22\x20'+(_0x43ea2e?_0x1639de(0x175)+(_0xeb6eed?''+_0xeb6eed+_0x55f298:_0x55f298)+'.List\x22':_0x1639de(0x20b)+_0x57b06d+'\x22')+_0x1639de(0x21c)),_0x4ce6dc+='\x0a'+_0x1639de(0x251)+_0x1639de(0x1aa)+'\x0a';}else switch((0x0,helper_1[_0x1639de(0x174)])(_0x463652[_0x1639de(0x1db)])){case _0x1639de(0x191):_0x4ce6dc+='\x0a'+'\x20\x20\x20\x20'+(_0x1639de(0x235)+(_0x463652[_0x1639de(0x187)]||_0x463652['Field'])+'\x22>'),_0x4ce6dc+='\x0a'+_0x1639de(0x251)+(_0x1639de(0x1e4)+_0x1e08c7+_0x1639de(0x1f1)+_0x463652['Comment']+_0x1639de(0x228));for(let _0x39374d of(0x0,helper_1[_0x1639de(0x19c)])(_0x463652[_0x1639de(0x1db)])){_0x4ce6dc+='\x0a'+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x1639de(0x247)+_0x39374d+'\x22\x20value=\x22'+_0x39374d+'\x22\x20/>');}_0x4ce6dc+='\x0a'+_0x1639de(0x251)+_0x1639de(0x1ff),_0x4ce6dc+='\x0a'+_0x1639de(0x1ea)+'</el-form-item>'+'\x0a';break;case _0x1639de(0x1d7):_0x4ce6dc+='\x0a'+'\x20\x20\x20\x20'+('<el-form-item\x20label=\x22'+(_0x463652[_0x1639de(0x187)]||_0x463652[_0x1639de(0x208)])+_0x1639de(0x234)),_0x4ce6dc+='\x0a'+_0x1639de(0x251)+(_0x1639de(0x172)+_0x1e08c7+'_start\x22\x20placeholder=\x22选择'+_0x463652['Comment']+_0x1639de(0x182)),_0x4ce6dc+='\x0a'+'\x20\x20\x20\x20'+_0x1639de(0x1aa)+'\x0a',_0x4ce6dc+='\x0a'+_0x1639de(0x1ea)+(_0x1639de(0x235)+(_0x463652[_0x1639de(0x187)]||_0x463652[_0x1639de(0x208)])+_0x1639de(0x200)),_0x4ce6dc+='\x0a'+_0x1639de(0x251)+(_0x1639de(0x172)+_0x1e08c7+_0x1639de(0x245)+_0x463652[_0x1639de(0x187)]+_0x1639de(0x196)),_0x4ce6dc+='\x0a'+_0x1639de(0x1ea)+_0x1639de(0x1aa)+'\x0a';break;case _0x1639de(0x223):_0x4ce6dc+='\x0a'+'\x20\x20\x20\x20'+('<el-form-item\x20label=\x22'+(_0x463652['Comment']||_0x463652['Field'])+_0x1639de(0x234)),_0x4ce6dc+='\x0a'+_0x1639de(0x251)+(_0x1639de(0x172)+_0x1e08c7+'_start\x22\x20placeholder=\x22选择'+_0x463652[_0x1639de(0x187)]+_0x1639de(0x1b8)),_0x4ce6dc+='\x0a'+_0x1639de(0x1ea)+_0x1639de(0x1aa)+'\x0a',_0x4ce6dc+='\x0a'+_0x1639de(0x1ea)+(_0x1639de(0x235)+(_0x463652['Comment']||_0x463652['Field'])+_0x1639de(0x200)),_0x4ce6dc+='\x0a'+_0x1639de(0x251)+(_0x1639de(0x172)+_0x1e08c7+_0x1639de(0x245)+_0x463652[_0x1639de(0x187)]+_0x1639de(0x219)),_0x4ce6dc+='\x0a'+_0x1639de(0x1ea)+_0x1639de(0x1aa)+'\x0a';break;case'timestamp':_0x4ce6dc+='\x0a'+_0x1639de(0x1ea)+(_0x1639de(0x235)+(_0x463652['Comment']||_0x463652[_0x1639de(0x208)])+_0x1639de(0x234)),_0x4ce6dc+='\x0a'+_0x1639de(0x251)+(_0x1639de(0x172)+_0x1e08c7+_0x1639de(0x1b6)+_0x463652[_0x1639de(0x187)]+_0x1639de(0x1b8)),_0x4ce6dc+='\x0a'+_0x1639de(0x1ea)+'</el-form-item>'+'\x0a',_0x4ce6dc+='\x0a'+'\x20\x20\x20\x20'+(_0x1639de(0x235)+(_0x463652[_0x1639de(0x187)]||_0x463652[_0x1639de(0x208)])+_0x1639de(0x200)),_0x4ce6dc+='\x0a'+_0x1639de(0x251)+(_0x1639de(0x172)+_0x1e08c7+_0x1639de(0x245)+_0x463652[_0x1639de(0x187)]+_0x1639de(0x219)),_0x4ce6dc+='\x0a'+_0x1639de(0x1ea)+_0x1639de(0x1aa)+'\x0a';break;case _0x1639de(0x225):_0x4ce6dc+='\x0a'+_0x1639de(0x1ea)+(_0x1639de(0x235)+(_0x463652[_0x1639de(0x187)]||_0x463652[_0x1639de(0x208)])+'\x22>'),_0x4ce6dc+='\x0a'+_0x1639de(0x251)+(_0x1639de(0x1ef)+_0x1e08c7+_0x1639de(0x17b)+_0x463652['Comment']+_0x1639de(0x19f)),_0x4ce6dc+='\x0a'+_0x1639de(0x1ea)+_0x1639de(0x1aa)+'\x0a';}}}fs[_0x1639de(0x16c)]((0x0,path_1['dirname'])(_0xf24c5e),{'recursive':!![]}),fs[_0x1639de(0x1a2)](_0xf24c5e,_0x1639de(0x1a4)+_0x4ce6dc+_0x1639de(0x1a9),_0x1639de(0x233));}}async function createAddOrEdit({moduleName:_0x21f35c,controller:_0x24e43a,tablestart:_0x2e17f8,tablestartUpShort:_0x598db5,tablestartLowShort:_0x3e5deb,tablestartUpShort2:_0x2872fb,Primary:_0x4384cb,Fields:_0x12983a,apporbasic:_0x1c5c2e,Comment:_0x333f9b,vueapiprefix:_0x1e9450},_0x399f4e=a13_0x52d3ce(0x1a8)){const _0x162c0f=a13_0x52d3ce;let _0x3f0e62=process[_0x162c0f(0x241)]()+_0x162c0f(0x24a)+(typeof _0x24e43a==_0x162c0f(0x225)?'/'+_0x24e43a:'');_0x21f35c?_0x3f0e62=_0x3f0e62+(_0x162c0f(0x16a)+_0x21f35c+'/'+_0x2872fb+'/'+_0x399f4e+_0x162c0f(0x1d6)):_0x3f0e62=_0x3f0e62+(_0x162c0f(0x19b)+_0x1c5c2e+'/'+_0x2872fb+'/'+_0x399f4e+_0x162c0f(0x1d6));if(!fs[_0x162c0f(0x226)](_0x3f0e62)){const _0x58b958=['text',_0x162c0f(0x1cd),_0x162c0f(0x225)][_0x162c0f(0x16b)]((0x0,helper_1[_0x162c0f(0x174)])(_0x4384cb[_0x162c0f(0x1db)]))==-0x1,_0x5e961e=''+(typeof _0x24e43a==_0x162c0f(0x225)?_0x24e43a+'/':'')+(_0x21f35c?_0x21f35c+'/':'')+_0x2872fb,_0x534693=_0x1e9450?_0x1e9450+'.'+(_0x21f35c?''+_0x21f35c+_0x598db5:_0x598db5):''+_0x598db5,_0x1e2d21=_0x1e9450?_0x534693+'.DetailId({\x20pathParams:\x20{\x20'+_0x4384cb['Field']+_0x162c0f(0x218):_0x598db5+'Detail('+_0x4384cb[_0x162c0f(0x208)]+')',_0x3a4c05=_0x399f4e==_0x162c0f(0x1a8)?_0x1e9450?_0x534693+'.Add({\x20data:\x20item\x20}\x20as\x20any)':_0x598db5+_0x162c0f(0x253):_0x1e9450?_0x534693+_0x162c0f(0x254)+_0x4384cb[_0x162c0f(0x208)]+_0x162c0f(0x243)+_0x4384cb[_0x162c0f(0x208)]+'\x20},\x20data:\x20item\x20}\x20as\x20any)':_0x598db5+'Edit(item.'+_0x4384cb['Field']+_0x162c0f(0x1f2);let _0x56baf8='';for(let _0x428ea4 in _0x12983a){const _0x1cb3dc=_0x12983a[_0x428ea4];if([_0x162c0f(0x212),_0x162c0f(0x1fe),_0x162c0f(0x1be),'displayorder'][_0x162c0f(0x16b)](_0x428ea4)!=-0x1)continue;if(_0x428ea4[_0x162c0f(0x192)](_0x428ea4[_0x162c0f(0x1c3)]-0x4)==_0x162c0f(0x22f)||_0x428ea4[_0x162c0f(0x192)](_0x428ea4[_0x162c0f(0x1c3)]-0x6)=='thumbs')_0x56baf8+='\x0a'+_0x162c0f(0x22d)+(_0x162c0f(0x235)+(_0x1cb3dc[_0x162c0f(0x187)]||_0x1cb3dc[_0x162c0f(0x208)])+_0x162c0f(0x237)+_0x428ea4+_0x162c0f(0x1c5)),_0x56baf8+='\x0a'+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+('<attachment-file\x20v-model=\x22formdata.'+_0x428ea4+_0x162c0f(0x248)+(_0x21f35c?_0x162c0f(0x1e6)+_0x21f35c+'\x22':'')+_0x162c0f(0x210)),_0x56baf8+='\x0a'+_0x162c0f(0x22d)+_0x162c0f(0x1aa)+'\x0a';else{if(_0x428ea4['substring'](_0x428ea4[_0x162c0f(0x1c3)]-0x3)==_0x162c0f(0x170)||_0x428ea4['substring'](_0x428ea4[_0x162c0f(0x1c3)]-0x5)==_0x162c0f(0x1c4)||_0x428ea4==_0x162c0f(0x1c4)||_0x428ea4[_0x162c0f(0x192)](_0x428ea4[_0x162c0f(0x1c3)]-0x4)=='logo'||_0x428ea4==_0x162c0f(0x23c))_0x56baf8+='\x0a'+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x162c0f(0x235)+(_0x1cb3dc[_0x162c0f(0x187)]||_0x1cb3dc[_0x162c0f(0x208)])+_0x162c0f(0x237)+_0x428ea4+_0x162c0f(0x1c5)),_0x56baf8+='\x0a'+_0x162c0f(0x1c0)+(_0x162c0f(0x20a)+_0x428ea4+'\x22\x20:limit=\x221\x22\x20'+(_0x21f35c?_0x162c0f(0x1e6)+_0x21f35c+'\x22':'')+'/>'),_0x56baf8+='\x0a'+_0x162c0f(0x22d)+_0x162c0f(0x1aa)+'\x0a';else{if(_0x428ea4[_0x162c0f(0x192)](_0x428ea4['length']-0x4)==_0x162c0f(0x224)||_0x428ea4[_0x162c0f(0x192)](_0x428ea4['length']-0x3)==_0x162c0f(0x19e))_0x56baf8+='\x0a'+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x162c0f(0x235)+(_0x1cb3dc[_0x162c0f(0x187)]||_0x1cb3dc[_0x162c0f(0x208)])+_0x162c0f(0x237)+_0x428ea4+'\x22>'),_0x56baf8+='\x0a'+_0x162c0f(0x1c0)+(_0x162c0f(0x236)+_0x428ea4+'\x22\x20placeholder=\x22请输入或选择'+_0x1cb3dc[_0x162c0f(0x187)]+_0x162c0f(0x1e8)),_0x56baf8+='\x0a'+_0x162c0f(0x22d)+_0x162c0f(0x1aa)+'\x0a';else{if(_0x428ea4['substr'](-0x3)=='num')_0x56baf8+='\x0a'+_0x162c0f(0x22d)+(_0x162c0f(0x235)+(_0x1cb3dc[_0x162c0f(0x187)]||_0x1cb3dc[_0x162c0f(0x208)])+_0x162c0f(0x237)+_0x428ea4+'\x22>'),_0x56baf8+='\x0a'+_0x162c0f(0x1c0)+(_0x162c0f(0x1e7)+_0x428ea4+_0x162c0f(0x17b)+_0x1cb3dc[_0x162c0f(0x187)]+'\x22\x20:min=\x221\x22\x20controls-position=\x22right\x22\x20/>'),_0x56baf8+='\x0a'+_0x162c0f(0x22d)+_0x162c0f(0x1aa)+'\x0a';else{if(_0x428ea4[_0x162c0f(0x1b7)](-0x4)==_0x162c0f(0x183))_0x56baf8+='\x0a'+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x162c0f(0x235)+(_0x1cb3dc[_0x162c0f(0x187)]||_0x1cb3dc['Field'])+_0x162c0f(0x237)+_0x428ea4+'\x22>'),_0x56baf8+='\x0a'+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+('<el-input\x20v-model=\x22formdata.'+_0x428ea4+_0x162c0f(0x17b)+_0x1cb3dc[_0x162c0f(0x187)]+_0x162c0f(0x19f)),_0x56baf8+='\x0a'+_0x162c0f(0x22d)+_0x162c0f(0x1aa)+'\x0a';else{if(_0x428ea4[_0x162c0f(0x1b7)](-0x3)==_0x162c0f(0x1b0)){let _0x1bc1f0=''+(typeof _0x24e43a==_0x162c0f(0x225)?_0x24e43a+'/':'')+(_0x21f35c?_0x21f35c+'/':'')+_0x2872fb;_0x56baf8+='\x0a'+_0x162c0f(0x22d)+(_0x162c0f(0x235)+(_0x1cb3dc[_0x162c0f(0x187)]||_0x1cb3dc[_0x162c0f(0x208)])+_0x162c0f(0x237)+_0x428ea4+'\x22>'),_0x56baf8+='\x0a'+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x162c0f(0x1bf)+_0x428ea4+'\x22\x20'+(_0x1e9450?_0x162c0f(0x175)+(_0x21f35c?''+_0x21f35c+_0x598db5:_0x598db5)+'.List\x22':'api=\x22'+_0x1bc1f0+'\x22')+'\x20lakey=\x22id\x22\x20\x20label=\x22id\x22\x20clearable/>'),_0x56baf8+='\x0a'+_0x162c0f(0x22d)+_0x162c0f(0x1aa)+'\x0a';}else switch((0x0,helper_1[_0x162c0f(0x174)])(_0x1cb3dc[_0x162c0f(0x1db)])){case _0x162c0f(0x21e):_0x56baf8+='\x0a'+_0x162c0f(0x22d)+(_0x162c0f(0x235)+(_0x1cb3dc[_0x162c0f(0x187)]||_0x1cb3dc['Field'])+_0x162c0f(0x237)+_0x428ea4+'\x22>'),_0x56baf8+='\x0a'+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x162c0f(0x1e7)+_0x428ea4+_0x162c0f(0x17b)+_0x1cb3dc[_0x162c0f(0x187)]+_0x162c0f(0x22b)),_0x56baf8+='\x0a'+_0x162c0f(0x22d)+'</el-form-item>'+'\x0a';break;case _0x162c0f(0x191):_0x56baf8+='\x0a'+_0x162c0f(0x22d)+('<el-form-item\x20label=\x22'+(_0x1cb3dc['Comment']||_0x1cb3dc[_0x162c0f(0x208)])+_0x162c0f(0x237)+_0x428ea4+'\x22>'),_0x56baf8+='\x0a'+_0x162c0f(0x1c0)+('<el-select\x20v-model=\x22formdata.'+_0x428ea4+_0x162c0f(0x1f1)+_0x1cb3dc[_0x162c0f(0x187)]+_0x162c0f(0x228));for(let _0x179f7d of(0x0,helper_1[_0x162c0f(0x19c)])(_0x1cb3dc[_0x162c0f(0x1db)])){_0x56baf8+='\x0a'+_0x162c0f(0x1ce)+(_0x162c0f(0x247)+_0x179f7d+_0x162c0f(0x195)+_0x179f7d+_0x162c0f(0x230));}_0x56baf8+='\x0a'+_0x162c0f(0x1c0)+_0x162c0f(0x1ff),_0x56baf8+='\x0a'+_0x162c0f(0x22d)+_0x162c0f(0x1aa)+'\x0a';break;case _0x162c0f(0x250):_0x56baf8+='\x0a'+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x162c0f(0x235)+(_0x1cb3dc[_0x162c0f(0x187)]||_0x1cb3dc[_0x162c0f(0x208)])+_0x162c0f(0x237)+_0x428ea4+_0x162c0f(0x1c5)),_0x56baf8+='\x0a'+_0x162c0f(0x1c0)+(_0x162c0f(0x229)+_0x428ea4+_0x162c0f(0x232)+_0x1cb3dc[_0x162c0f(0x187)]+_0x162c0f(0x179)),_0x56baf8+='\x0a'+_0x162c0f(0x22d)+_0x162c0f(0x1aa)+'\x0a';break;case _0x162c0f(0x1d8):_0x56baf8+='\x0a'+_0x162c0f(0x22d)+(_0x162c0f(0x235)+(_0x1cb3dc[_0x162c0f(0x187)]||_0x1cb3dc[_0x162c0f(0x208)])+_0x162c0f(0x237)+_0x428ea4+'\x22\x20class=\x22block\x22>'),_0x56baf8+='\x0a'+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x162c0f(0x1e2)+_0x428ea4+'\x22\x20'+(_0x21f35c?_0x162c0f(0x1e6)+_0x21f35c+'\x22':'')+'/>'),_0x56baf8+='\x0a'+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+'</el-form-item>'+'\x0a';break;case'mediumtext':_0x56baf8+='\x0a'+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x162c0f(0x235)+(_0x1cb3dc[_0x162c0f(0x187)]||_0x1cb3dc[_0x162c0f(0x208)])+_0x162c0f(0x237)+_0x428ea4+_0x162c0f(0x1c5)),_0x56baf8+='\x0a'+_0x162c0f(0x1c0)+(_0x162c0f(0x1e2)+_0x428ea4+'\x22\x20'+(_0x21f35c?_0x162c0f(0x1e6)+_0x21f35c+'\x22':'')+'/>'),_0x56baf8+='\x0a'+_0x162c0f(0x22d)+'</el-form-item>'+'\x0a';break;case _0x162c0f(0x1d7):_0x56baf8+='\x0a'+_0x162c0f(0x22d)+(_0x162c0f(0x235)+(_0x1cb3dc[_0x162c0f(0x187)]||_0x1cb3dc[_0x162c0f(0x208)])+'\x22\x20prop=\x22'+_0x428ea4+'\x22>'),_0x56baf8+='\x0a'+_0x162c0f(0x1c0)+(_0x162c0f(0x1ee)+_0x428ea4+_0x162c0f(0x184)+_0x1cb3dc[_0x162c0f(0x187)]+_0x162c0f(0x1d2)),_0x56baf8+='\x0a'+_0x162c0f(0x22d)+_0x162c0f(0x1aa)+'\x0a';break;case _0x162c0f(0x223):_0x56baf8+='\x0a'+_0x162c0f(0x22d)+('<el-form-item\x20label=\x22'+(_0x1cb3dc[_0x162c0f(0x187)]||_0x1cb3dc[_0x162c0f(0x208)])+'\x22\x20prop=\x22'+_0x428ea4+'\x22>'),_0x56baf8+='\x0a'+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x162c0f(0x1ee)+_0x428ea4+_0x162c0f(0x184)+_0x1cb3dc['Comment']+_0x162c0f(0x1c2)),_0x56baf8+='\x0a'+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x162c0f(0x1aa)+'\x0a';break;case _0x162c0f(0x1b3):_0x56baf8+='\x0a'+_0x162c0f(0x22d)+(_0x162c0f(0x235)+(_0x1cb3dc[_0x162c0f(0x187)]||_0x1cb3dc['Field'])+'\x22\x20prop=\x22'+_0x428ea4+'\x22>'),_0x56baf8+='\x0a'+_0x162c0f(0x1c0)+(_0x162c0f(0x1ee)+_0x428ea4+_0x162c0f(0x184)+_0x1cb3dc[_0x162c0f(0x187)]+_0x162c0f(0x1c2)),_0x56baf8+='\x0a'+_0x162c0f(0x22d)+_0x162c0f(0x1aa)+'\x0a';break;default:_0x56baf8+='\x0a'+_0x162c0f(0x22d)+(_0x162c0f(0x235)+(_0x1cb3dc[_0x162c0f(0x187)]||_0x1cb3dc[_0x162c0f(0x208)])+_0x162c0f(0x237)+_0x428ea4+'\x22>'),_0x56baf8+='\x0a'+_0x162c0f(0x1c0)+('<el-input\x20v-model=\x22formdata.'+_0x428ea4+_0x162c0f(0x17b)+_0x1cb3dc[_0x162c0f(0x187)]+'\x22\x20clearable/>'),_0x56baf8+='\x0a'+_0x162c0f(0x22d)+_0x162c0f(0x1aa)+'\x0a';}}}}}}}_0x56baf8+='\x0a'+_0x162c0f(0x22d)+_0x162c0f(0x1b2),_0x56baf8+='\x0a'+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x162c0f(0x23b),_0x56baf8+='\x0a'+_0x162c0f(0x22d)+_0x162c0f(0x1aa)+'\x0a';let _0x57a19c=_0x162c0f(0x214);_0x57a19c+=_0x162c0f(0x1f9),_0x57a19c+='\x20\x20\x20\x20\x20\x20\x20\x20<elplus-form\x20ref=\x22refForm\x22\x20title=\x22'+(_0x399f4e==_0x162c0f(0x1a8)?'添加'+_0x333f9b:'编辑'+_0x333f9b)+_0x162c0f(0x231)+_0x598db5+(_0x399f4e==_0x162c0f(0x1a8)?_0x162c0f(0x211):'Edit')+'Rule\x22\x20:loading=\x22loading\x22\x20:disabled=\x22!$hasPrem(`post@/'+_0x5e961e+'/'+(_0x399f4e==_0x162c0f(0x1a8)?_0x162c0f(0x1a8):_0x162c0f(0x165)+_0x4384cb['Field'])+'`)\x22>\x0a',_0x57a19c+='\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x56baf8+'\x0a\x0a',_0x57a19c+=_0x162c0f(0x1d1),_0x57a19c+='\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<el-button\x20v-if=\x22$hasPrem(`post@/'+_0x5e961e+'/'+(_0x399f4e==_0x162c0f(0x1a8)?_0x162c0f(0x1a8):_0x162c0f(0x165)+_0x4384cb[_0x162c0f(0x208)])+_0x162c0f(0x1c1),_0x57a19c+='\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</template>\x0a',_0x57a19c+=_0x162c0f(0x1d0),_0x57a19c+=_0x162c0f(0x1dc),_0x57a19c+=_0x162c0f(0x1bb),_0x57a19c+=_0x162c0f(0x24c);if(_0x399f4e==_0x162c0f(0x1a8)){_0x57a19c+=_0x162c0f(0x17a)+_0x598db5+_0x162c0f(0x186);if(!_0x1e9450)_0x57a19c+='import\x20{\x20'+_0x598db5+_0x162c0f(0x1a5)+(_0x21f35c?_0x162c0f(0x18f)+_0x21f35c:''+_0x1c5c2e)+'/'+_0x598db5+_0x162c0f(0x1a3);}else{if(_0x399f4e==_0x162c0f(0x216)){_0x57a19c+='import\x20{\x20'+_0x598db5+'EditRule\x20}\x20from\x20\x27../interface\x27;\x0a';if(!_0x1e9450)_0x57a19c+=_0x162c0f(0x17a)+_0x598db5+'Edit,\x20'+_0x598db5+'Detail\x20}\x20from\x20\x27@/apis/'+(_0x21f35c?_0x162c0f(0x18f)+_0x21f35c:''+_0x1c5c2e)+'/'+_0x598db5+_0x162c0f(0x1a3);}}_0x57a19c+=_0x162c0f(0x16e);if(_0x399f4e==_0x162c0f(0x1a8))_0x57a19c+=_0x162c0f(0x1b9);else _0x399f4e=='edit'&&(_0x57a19c+='const\x20loading\x20=\x20ref(false),\x20router\x20=\x20useRouter(),\x20route\x20=\x20useRoute();\x0a\x0a');_0x57a19c+=_0x162c0f(0x213),_0x57a19c+=_0x162c0f(0x22e),_0x57a19c+=_0x162c0f(0x220),_0x57a19c+=_0x162c0f(0x246)+_0x3a4c05+_0x162c0f(0x178),_0x57a19c+=_0x162c0f(0x1ae),_0x57a19c+='\x20\x20\x20\x20\x20\x20\x20\x20}).catch(err=>{\x0a',_0x57a19c+=_0x162c0f(0x1ec),_0x57a19c+=_0x162c0f(0x207),_0x57a19c+='\x20\x20\x20\x20})\x0a',_0x57a19c+='}\x0a\x0a',_0x399f4e=='edit'&&(_0x57a19c+='//\x20获取详情\x0a',_0x57a19c+='const\x20getDetail\x20=\x20('+_0x4384cb[_0x162c0f(0x208)]+':\x20'+(_0x58b958?_0x162c0f(0x21e):_0x162c0f(0x225))+_0x162c0f(0x18c),_0x57a19c+='\x20\x20\x20\x20if\x20('+_0x4384cb[_0x162c0f(0x208)]+_0x162c0f(0x1d3),_0x57a19c+=_0x162c0f(0x193),_0x57a19c+=_0x162c0f(0x251)+_0x1e2d21+_0x162c0f(0x1ba),_0x57a19c+='\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20loading.value\x20=\x20false,\x20formdata.value\x20=\x20res.data;\x0a',_0x57a19c+=_0x162c0f(0x1df),_0x57a19c+=_0x162c0f(0x190),_0x57a19c+=_0x162c0f(0x207),_0x57a19c+=_0x162c0f(0x18e),_0x57a19c+='\x20\x20\x20\x20\x20\x20\x20\x20router.back();\x0a',_0x57a19c+=_0x162c0f(0x1a7),_0x57a19c+='}\x0a\x0a\x0a',_0x57a19c+='getDetail(route?.query?.'+_0x4384cb['Field']+_0x162c0f(0x1eb)+(_0x58b958?_0x162c0f(0x21e):'string')+')\x0a'),_0x57a19c+='</script>\x0a',fs[_0x162c0f(0x16c)]((0x0,path_1[_0x162c0f(0x197)])(_0x3f0e62),{'recursive':!![]}),fs[_0x162c0f(0x1a2)](_0x3f0e62,_0x57a19c,_0x162c0f(0x233));}}async function createAddOrEditDialog({moduleName:_0x526b39,controller:_0x2de47e,tablestart:_0x3b9c0d,tablestartUpShort:_0x198452,tablestartLowShort:_0x131fe1,tablestartUpShort2:_0xbb4f84,Primary:_0x58925a,Fields:_0x4c9f66,apporbasic:_0x1d1cdc,Comment:_0x407e71,vueapiprefix:_0x4a5449},_0x2bf013=a13_0x52d3ce(0x1a8)){const _0x384cf4=a13_0x52d3ce;let _0x19b0f7=process[_0x384cf4(0x241)]()+_0x384cf4(0x24a)+(typeof _0x2de47e=='string'?'/'+_0x2de47e:'');_0x526b39?_0x19b0f7=_0x19b0f7+('/pages/apps/'+_0x526b39+'/'+_0xbb4f84+_0x384cf4(0x1bd)+_0x2bf013+'.vue'):_0x19b0f7=_0x19b0f7+(_0x384cf4(0x19b)+_0x1d1cdc+'/'+_0xbb4f84+_0x384cf4(0x1bd)+_0x2bf013+'.vue');if(!fs[_0x384cf4(0x226)](_0x19b0f7)){const _0x3f945f=''+(typeof _0x2de47e==_0x384cf4(0x225)?_0x2de47e+'/':'')+(_0x526b39?_0x526b39+'/':'')+_0xbb4f84,_0x44f99b=_0x4a5449?_0x4a5449+'.'+(_0x526b39?''+_0x526b39+_0x198452:_0x198452):''+_0x198452,_0x21d08f=_0x4a5449?_0x44f99b+_0x384cf4(0x16d)+_0x58925a[_0x384cf4(0x208)]+'\x20}\x20}\x20as\x20any)':_0x198452+_0x384cf4(0x1f8)+_0x58925a[_0x384cf4(0x208)]+')',_0x3f725d=_0x2bf013==_0x384cf4(0x1a8)?_0x4a5449?_0x44f99b+_0x384cf4(0x176):_0x198452+_0x384cf4(0x253):_0x4a5449?_0x44f99b+_0x384cf4(0x254)+_0x58925a[_0x384cf4(0x208)]+':\x20item.'+_0x58925a['Field']+_0x384cf4(0x1fa):_0x198452+_0x384cf4(0x201)+_0x58925a[_0x384cf4(0x208)]+',\x20item)';let _0x44d086='';for(let _0x1f4f13 in _0x4c9f66){const _0x59d2d6=_0x4c9f66[_0x1f4f13];if([_0x384cf4(0x212),_0x384cf4(0x1fe),_0x384cf4(0x1be),_0x384cf4(0x180)][_0x384cf4(0x16b)](_0x1f4f13)!=-0x1)continue;if(_0x1f4f13['substring'](_0x1f4f13[_0x384cf4(0x1c3)]-0x4)==_0x384cf4(0x22f)||_0x1f4f13[_0x384cf4(0x192)](_0x1f4f13['length']-0x6)=='thumbs')_0x44d086+='\x0a'+_0x384cf4(0x22d)+('<el-form-item\x20label=\x22'+(_0x59d2d6[_0x384cf4(0x187)]||_0x59d2d6[_0x384cf4(0x208)])+'\x22\x20prop=\x22'+_0x1f4f13+_0x384cf4(0x1c5)),_0x44d086+='\x0a'+_0x384cf4(0x1c0)+(_0x384cf4(0x20a)+_0x1f4f13+_0x384cf4(0x248)+(_0x526b39?'module=\x22'+_0x526b39+'\x22':'')+_0x384cf4(0x210)),_0x44d086+='\x0a'+_0x384cf4(0x22d)+_0x384cf4(0x1aa)+'\x0a';else{if(_0x1f4f13[_0x384cf4(0x192)](_0x1f4f13[_0x384cf4(0x1c3)]-0x3)==_0x384cf4(0x170)||_0x1f4f13[_0x384cf4(0x192)](_0x1f4f13['length']-0x5)==_0x384cf4(0x1c4)||_0x1f4f13==_0x384cf4(0x1c4)||_0x1f4f13[_0x384cf4(0x192)](_0x1f4f13['length']-0x4)=='logo'||_0x1f4f13==_0x384cf4(0x23c))_0x44d086+='\x0a'+_0x384cf4(0x22d)+(_0x384cf4(0x235)+(_0x59d2d6['Comment']||_0x59d2d6[_0x384cf4(0x208)])+_0x384cf4(0x237)+_0x1f4f13+_0x384cf4(0x1c5)),_0x44d086+='\x0a'+_0x384cf4(0x1c0)+('<attachment-file\x20v-model=\x22formdata.'+_0x1f4f13+_0x384cf4(0x24f)+(_0x526b39?_0x384cf4(0x1e6)+_0x526b39+'\x22':'')+'/>'),_0x44d086+='\x0a'+_0x384cf4(0x22d)+_0x384cf4(0x1aa)+'\x0a';else{if(_0x1f4f13[_0x384cf4(0x192)](_0x1f4f13[_0x384cf4(0x1c3)]-0x4)=='tags'||_0x1f4f13[_0x384cf4(0x192)](_0x1f4f13[_0x384cf4(0x1c3)]-0x3)=='tag')_0x44d086+='\x0a'+_0x384cf4(0x22d)+('<el-form-item\x20label=\x22'+(_0x59d2d6['Comment']||_0x59d2d6[_0x384cf4(0x208)])+_0x384cf4(0x237)+_0x1f4f13+'\x22>'),_0x44d086+='\x0a'+_0x384cf4(0x1c0)+(_0x384cf4(0x236)+_0x1f4f13+'\x22\x20placeholder=\x22请输入或选择'+_0x59d2d6['Comment']+_0x384cf4(0x1e8)),_0x44d086+='\x0a'+_0x384cf4(0x22d)+'</el-form-item>'+'\x0a';else{if(_0x1f4f13[_0x384cf4(0x1b7)](-0x3)==_0x384cf4(0x227))_0x44d086+='\x0a'+_0x384cf4(0x22d)+('<el-form-item\x20label=\x22'+(_0x59d2d6[_0x384cf4(0x187)]||_0x59d2d6['Field'])+_0x384cf4(0x237)+_0x1f4f13+'\x22>'),_0x44d086+='\x0a'+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+('<el-input-number\x20v-model=\x22formdata.'+_0x1f4f13+_0x384cf4(0x17b)+_0x59d2d6[_0x384cf4(0x187)]+'\x22\x20:min=\x221\x22\x20controls-position=\x22right\x22\x20/>'),_0x44d086+='\x0a'+_0x384cf4(0x22d)+'</el-form-item>'+'\x0a';else{if(_0x1f4f13[_0x384cf4(0x1b7)](-0x4)==_0x384cf4(0x183))_0x44d086+='\x0a'+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+('<el-form-item\x20label=\x22'+(_0x59d2d6[_0x384cf4(0x187)]||_0x59d2d6['Field'])+'\x22\x20prop=\x22'+_0x1f4f13+'\x22>'),_0x44d086+='\x0a'+_0x384cf4(0x1c0)+(_0x384cf4(0x229)+_0x1f4f13+_0x384cf4(0x17b)+_0x59d2d6[_0x384cf4(0x187)]+_0x384cf4(0x19f)),_0x44d086+='\x0a'+_0x384cf4(0x22d)+_0x384cf4(0x1aa)+'\x0a';else{if(_0x1f4f13['substr'](-0x3)=='_id'){let _0x524a03=''+(typeof _0x2de47e=='string'?_0x2de47e+'/':'')+(_0x526b39?_0x526b39+'/':'')+_0xbb4f84;_0x44d086+='\x0a'+_0x384cf4(0x22d)+(_0x384cf4(0x235)+(_0x59d2d6[_0x384cf4(0x187)]||_0x59d2d6[_0x384cf4(0x208)])+_0x384cf4(0x237)+_0x1f4f13+'\x22>'),_0x44d086+='\x0a'+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+('<elplus-search-select\x20v-model=\x22formdata.'+_0x1f4f13+'\x22\x20'+(_0x4a5449?_0x384cf4(0x175)+(_0x526b39?''+_0x526b39+_0x198452:_0x198452)+_0x384cf4(0x1f4):'api=\x22'+_0x524a03+'\x22')+_0x384cf4(0x21c)),_0x44d086+='\x0a'+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x384cf4(0x1aa)+'\x0a';}else switch((0x0,helper_1[_0x384cf4(0x174)])(_0x59d2d6[_0x384cf4(0x1db)])){case _0x384cf4(0x21e):_0x44d086+='\x0a'+_0x384cf4(0x22d)+(_0x384cf4(0x235)+(_0x59d2d6[_0x384cf4(0x187)]||_0x59d2d6[_0x384cf4(0x208)])+_0x384cf4(0x237)+_0x1f4f13+'\x22>'),_0x44d086+='\x0a'+_0x384cf4(0x1c0)+(_0x384cf4(0x1e7)+_0x1f4f13+_0x384cf4(0x17b)+_0x59d2d6[_0x384cf4(0x187)]+'\x22\x20:min=\x221\x22\x20controls-position=\x22right\x22\x20/>'),_0x44d086+='\x0a'+_0x384cf4(0x22d)+_0x384cf4(0x1aa)+'\x0a';break;case'enum':_0x44d086+='\x0a'+_0x384cf4(0x22d)+(_0x384cf4(0x235)+(_0x59d2d6[_0x384cf4(0x187)]||_0x59d2d6['Field'])+'\x22\x20prop=\x22'+_0x1f4f13+'\x22>'),_0x44d086+='\x0a'+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x384cf4(0x1fc)+_0x1f4f13+'\x22\x20placeholder=\x22请选择'+_0x59d2d6[_0x384cf4(0x187)]+'\x22\x20clearable>');for(let _0x551fad of(0x0,helper_1[_0x384cf4(0x19c)])(_0x59d2d6['Type'])){_0x44d086+='\x0a'+_0x384cf4(0x1ce)+(_0x384cf4(0x247)+_0x551fad+'\x22\x20value=\x22'+_0x551fad+'\x22\x20/>');}_0x44d086+='\x0a'+_0x384cf4(0x1c0)+'</el-select>',_0x44d086+='\x0a'+_0x384cf4(0x22d)+'</el-form-item>'+'\x0a';break;case'text':_0x44d086+='\x0a'+_0x384cf4(0x22d)+(_0x384cf4(0x235)+(_0x59d2d6[_0x384cf4(0x187)]||_0x59d2d6['Field'])+_0x384cf4(0x237)+_0x1f4f13+_0x384cf4(0x1c5)),_0x44d086+='\x0a'+_0x384cf4(0x1c0)+(_0x384cf4(0x229)+_0x1f4f13+_0x384cf4(0x232)+_0x59d2d6[_0x384cf4(0x187)]+_0x384cf4(0x179)),_0x44d086+='\x0a'+_0x384cf4(0x22d)+'</el-form-item>'+'\x0a';break;case'longtext':_0x44d086+='\x0a'+_0x384cf4(0x22d)+(_0x384cf4(0x235)+(_0x59d2d6['Comment']||_0x59d2d6[_0x384cf4(0x208)])+_0x384cf4(0x237)+_0x1f4f13+_0x384cf4(0x1c5)),_0x44d086+='\x0a'+_0x384cf4(0x1c0)+('<tinymce-editor\x20v-model=\x22formdata.'+_0x1f4f13+'\x22\x20'+(_0x526b39?_0x384cf4(0x1e6)+_0x526b39+'\x22':'')+'/>'),_0x44d086+='\x0a'+_0x384cf4(0x22d)+'</el-form-item>'+'\x0a';break;case _0x384cf4(0x1cd):_0x44d086+='\x0a'+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x384cf4(0x235)+(_0x59d2d6[_0x384cf4(0x187)]||_0x59d2d6[_0x384cf4(0x208)])+_0x384cf4(0x237)+_0x1f4f13+'\x22\x20class=\x22block\x22>'),_0x44d086+='\x0a'+_0x384cf4(0x1c0)+(_0x384cf4(0x1e2)+_0x1f4f13+'\x22\x20'+(_0x526b39?_0x384cf4(0x1e6)+_0x526b39+'\x22':'')+'/>'),_0x44d086+='\x0a'+_0x384cf4(0x22d)+_0x384cf4(0x1aa)+'\x0a';break;case'date':_0x44d086+='\x0a'+_0x384cf4(0x22d)+(_0x384cf4(0x235)+(_0x59d2d6[_0x384cf4(0x187)]||_0x59d2d6[_0x384cf4(0x208)])+_0x384cf4(0x237)+_0x1f4f13+'\x22>'),_0x44d086+='\x0a'+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x384cf4(0x1ee)+_0x1f4f13+'\x22\x20placeholder=\x22选择'+_0x59d2d6[_0x384cf4(0x187)]+_0x384cf4(0x1d2)),_0x44d086+='\x0a'+_0x384cf4(0x22d)+_0x384cf4(0x1aa)+'\x0a';break;case'datetime':_0x44d086+='\x0a'+_0x384cf4(0x22d)+(_0x384cf4(0x235)+(_0x59d2d6['Comment']||_0x59d2d6[_0x384cf4(0x208)])+_0x384cf4(0x237)+_0x1f4f13+'\x22>'),_0x44d086+='\x0a'+_0x384cf4(0x1c0)+(_0x384cf4(0x1ee)+_0x1f4f13+'\x22\x20placeholder=\x22选择'+_0x59d2d6[_0x384cf4(0x187)]+_0x384cf4(0x1c2)),_0x44d086+='\x0a'+_0x384cf4(0x22d)+_0x384cf4(0x1aa)+'\x0a';break;case _0x384cf4(0x1b3):_0x44d086+='\x0a'+_0x384cf4(0x22d)+('<el-form-item\x20label=\x22'+(_0x59d2d6[_0x384cf4(0x187)]||_0x59d2d6[_0x384cf4(0x208)])+_0x384cf4(0x237)+_0x1f4f13+'\x22>'),_0x44d086+='\x0a'+_0x384cf4(0x1c0)+(_0x384cf4(0x1ee)+_0x1f4f13+_0x384cf4(0x184)+_0x59d2d6[_0x384cf4(0x187)]+'\x22\x20type=\x22datetime\x22\x20value-format=\x22YYYY-MM-DD\x20HH:mm:ss\x22/>'),_0x44d086+='\x0a'+_0x384cf4(0x22d)+_0x384cf4(0x1aa)+'\x0a';break;default:_0x44d086+='\x0a'+_0x384cf4(0x22d)+(_0x384cf4(0x235)+(_0x59d2d6[_0x384cf4(0x187)]||_0x59d2d6['Field'])+'\x22\x20prop=\x22'+_0x1f4f13+'\x22>'),_0x44d086+='\x0a'+_0x384cf4(0x1c0)+(_0x384cf4(0x229)+_0x1f4f13+_0x384cf4(0x17b)+_0x59d2d6[_0x384cf4(0x187)]+_0x384cf4(0x19f)),_0x44d086+='\x0a'+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x384cf4(0x1aa)+'\x0a';}}}}}}}_0x44d086+='\x0a'+_0x384cf4(0x22d)+_0x384cf4(0x1b2),_0x44d086+='\x0a'+_0x384cf4(0x1c0)+_0x384cf4(0x23b),_0x44d086+='\x0a'+_0x384cf4(0x22d)+_0x384cf4(0x1aa)+'\x0a';let _0x284506=_0x384cf4(0x214);_0x284506+=_0x384cf4(0x1cb)+(_0x2bf013=='add'?'添加'+_0x407e71:'编辑'+_0x407e71)+_0x384cf4(0x18a),_0x284506+=_0x384cf4(0x239)+_0x198452+(_0x2bf013==_0x384cf4(0x1a8)?_0x384cf4(0x211):_0x384cf4(0x1e9))+_0x384cf4(0x21b)+_0x3f945f+'/'+(_0x2bf013==_0x384cf4(0x1a8)?_0x384cf4(0x1a8):'edit/:'+_0x58925a[_0x384cf4(0x208)])+_0x384cf4(0x252),_0x284506+=_0x384cf4(0x22d)+_0x44d086+'\x0a\x0a',_0x284506+=_0x384cf4(0x1d0),_0x284506+='\x20\x20\x20\x20\x20\x20\x20\x20<template\x20#footer>\x0a',_0x284506+=_0x384cf4(0x202)+_0x3f945f+'/'+(_0x2bf013==_0x384cf4(0x1a8)?_0x384cf4(0x1a8):_0x384cf4(0x165)+_0x58925a[_0x384cf4(0x208)])+_0x384cf4(0x1c1),_0x284506+='\x20\x20\x20\x20\x20\x20\x20\x20</template>\x0a',_0x284506+=_0x384cf4(0x1c6),_0x284506+=_0x384cf4(0x1bb),_0x284506+=_0x384cf4(0x24c);if(_0x2bf013==_0x384cf4(0x1a8)){_0x284506+=_0x384cf4(0x17a)+_0x198452+_0x384cf4(0x186);if(!_0x4a5449)_0x284506+='import\x20{\x20'+_0x198452+_0x384cf4(0x1a5)+(_0x526b39?_0x384cf4(0x18f)+_0x526b39:''+_0x1d1cdc)+'/'+_0x198452+_0x384cf4(0x1a3);}else{if(_0x2bf013=='edit'){_0x284506+='import\x20{\x20'+_0x198452+_0x384cf4(0x1c9);if(!_0x4a5449)_0x284506+=_0x384cf4(0x17a)+_0x198452+_0x384cf4(0x168)+_0x198452+_0x384cf4(0x1de)+(_0x526b39?_0x384cf4(0x18f)+_0x526b39:''+_0x1d1cdc)+'/'+_0x198452+_0x384cf4(0x1a3);}}if(_0x2bf013==_0x384cf4(0x1a8))_0x284506+=_0x384cf4(0x1ab),_0x284506+=_0x384cf4(0x1fb),_0x284506+=_0x384cf4(0x1b1);else _0x2bf013==_0x384cf4(0x216)&&(_0x284506+=_0x384cf4(0x24b)+_0x58925a[_0x384cf4(0x208)]+_0x384cf4(0x18c),_0x284506+=_0x384cf4(0x24e)+_0x21d08f+'.then(res\x20=>\x20{\x0a',_0x284506+=_0x384cf4(0x189),_0x284506+=_0x384cf4(0x185),_0x284506+=_0x384cf4(0x1c8),_0x284506+=_0x384cf4(0x1f3),_0x284506+=_0x384cf4(0x1b1));;_0x284506+=_0x384cf4(0x213),_0x284506+=_0x384cf4(0x22e),_0x284506+=_0x384cf4(0x220),_0x284506+=_0x384cf4(0x246)+_0x3f725d+'.then(res=>{\x0a',_0x284506+='\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',_0x284506+=_0x384cf4(0x199),_0x284506+=_0x384cf4(0x1ec),_0x284506+='\x20\x20\x20\x20\x20\x20\x20\x20})\x0a',_0x284506+=_0x384cf4(0x1f3),_0x284506+=_0x384cf4(0x1b1),_0x284506+=_0x384cf4(0x22c),_0x284506+='</script>\x0a',fs[_0x384cf4(0x16c)]((0x0,path_1[_0x384cf4(0x197)])(_0x19b0f7),{'recursive':!![]}),fs[_0x384cf4(0x1a2)](_0x19b0f7,_0x284506,_0x384cf4(0x233));}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const a14_0x4809c8=a14_0x4411;function a14_0x4411(_0x2335ae,_0x4ba4a0){_0x2335ae=_0x2335ae-0x11f;const _0x4654c5=a14_0x5a81();let _0x1842eb=_0x4654c5[_0x2335ae];return _0x1842eb;}(function(_0x1c5f4c,_0x2d1803){const _0x45dffe=a14_0x4411,_0x19fbc8=_0x1c5f4c();while(!![]){try{const _0x57e7d8=parseInt(_0x45dffe(0x141))/0x1+parseInt(_0x45dffe(0x136))/0x2*(parseInt(_0x45dffe(0x133))/0x3)+parseInt(_0x45dffe(0x128))/0x4*(-parseInt(_0x45dffe(0x138))/0x5)+parseInt(_0x45dffe(0x13b))/0x6+parseInt(_0x45dffe(0x12e))/0x7*(parseInt(_0x45dffe(0x11f))/0x8)+parseInt(_0x45dffe(0x14c))/0x9+-parseInt(_0x45dffe(0x125))/0xa;if(_0x57e7d8===_0x2d1803)break;else _0x19fbc8['push'](_0x19fbc8['shift']());}catch(_0x9687bc){_0x19fbc8['push'](_0x19fbc8['shift']());}}}(a14_0x5a81,0x45401));const a14_0x45f816=(function(){let _0x5a4fd5=!![];return function(_0x3fec21,_0x4ab71b){const _0x2111ce=_0x5a4fd5?function(){const _0x5d93d3=a14_0x4411;if(_0x4ab71b){const _0x5bcd4a=_0x4ab71b[_0x5d93d3(0x146)](_0x3fec21,arguments);return _0x4ab71b=null,_0x5bcd4a;}}:function(){};return _0x5a4fd5=![],_0x2111ce;};}()),a14_0x1842eb=a14_0x45f816(this,function(){const _0x28a59a=a14_0x4411;return a14_0x1842eb['toString']()[_0x28a59a(0x14b)](_0x28a59a(0x12d))['toString']()[_0x28a59a(0x13a)](a14_0x1842eb)['search']('(((.+)+)+)+$');});a14_0x1842eb();'use strict';function a14_0x5a81(){const _0x4e1fdd=['search','4838247RXoZyx','cwd','utf-8','1168sBuWze','/index.vue\x27),\x20meta:\x20{\x20title:\x20\x22','replace','/list\x22','dirname','path','11027860moMcbv','\x20\x20\x20\x20meta:\x20{\x20title:\x20\x22','readFileSync','16nfGMYV','__esModule','\x20\x20\x20\x20//\x20redirect:\x20\x22/','indexOf','\x20\x20\x20\x20\x20\x20\x20\x20//\x20add\x20route\x20here\x0a','(((.+)+)+)+$','777aKUzET','/vue','编辑\x22,\x20isHidden:\x20true\x20}\x20},\x0a\x0a\x20\x20\x20\x20\x20\x20\x20\x20//\x20add\x20route\x20here','writeFileSync','\x20\x20\x20\x20path:\x20\x22/','1053tjptOP','/add/index.vue\x27),\x20meta:\x20{\x20title:\x20\x22','/pages/','450gxyLwZ','\x20\x20\x20\x20]\x0a','107240kfLqsV','mkdirSync','constructor','1749834ePUTfC','//\x20add\x20route\x20here','/edit/index.vue\x27),\x20meta:\x20{\x20title:\x20\x22','/edit\x22','padEnd','/pages/apps/','547824SmVtws','string','/list/index.vue\x27),\x20meta:\x20{\x20title:\x20\x22',',\x20component:\x20()=>\x20import(\x27./','\x22\x20},\x0a','apply','{\x20path:\x20\x22','\x22,\x0a','default','apps-'];a14_0x5a81=function(){return _0x4e1fdd;};return a14_0x5a81();}Object['defineProperty'](exports,a14_0x4809c8(0x129),{'value':!![]}),exports[a14_0x4809c8(0x149)]=default_1;const fs=require('fs'),path_1=require(a14_0x4809c8(0x124));async function default_1({tablestartUpShort2:_0x2cca02,moduleName:_0x4d77c1,controller:_0x5f18c9,Comment:_0x3a6464,apporbasic:_0x5beaac,vuedialog:_0x36ce73}){await createRoutes({'tablestartUpShort2':_0x2cca02,'moduleName':_0x4d77c1,'controller':_0x5f18c9,'Comment':_0x3a6464,'apporbasic':_0x5beaac,'vuedialog':_0x36ce73});}async function createRoutes({tablestartUpShort2:_0x3df799,moduleName:_0x3f189a,controller:_0x3407e2,Comment:_0x33ecfb,apporbasic:_0x6cbaf1,vuedialog:_0x144482}){const _0x55f06d=a14_0x4809c8;let _0x3fb0b8=process[_0x55f06d(0x14d)]()+_0x55f06d(0x12f)+(typeof _0x3407e2==_0x55f06d(0x142)?'/'+_0x3407e2:'');_0x3f189a?_0x3fb0b8=_0x3fb0b8+(_0x55f06d(0x140)+_0x3f189a+'/routes.ts'):_0x3fb0b8=_0x3fb0b8+(_0x55f06d(0x135)+_0x6cbaf1+'/routes.ts');if(!fs['existsSync'](_0x3fb0b8)){let _0x2b86d8='';_0x2b86d8+='export\x20default\x20{\x0a',_0x2b86d8+=_0x55f06d(0x132)+(_0x3f189a?_0x55f06d(0x14a)+_0x3f189a+'/':_0x6cbaf1+'/')+_0x55f06d(0x148),_0x2b86d8+=_0x55f06d(0x12a)+(_0x3f189a?_0x55f06d(0x14a)+_0x3f189a+'/':_0x6cbaf1+'/')+'\x22,\x0a',_0x2b86d8+=_0x55f06d(0x126)+(_0x3f189a||_0x33ecfb)+_0x55f06d(0x145),_0x2b86d8+='\x20\x20\x20\x20children:[\x0a',_0x2b86d8+=_0x55f06d(0x12c),_0x2b86d8+=_0x55f06d(0x137),_0x2b86d8+='}\x0a',fs[_0x55f06d(0x139)]((0x0,path_1[_0x55f06d(0x123)])(_0x3fb0b8),{'recursive':!![]}),fs[_0x55f06d(0x131)](_0x3fb0b8,_0x2b86d8,'utf-8');}const _0x4861ce=fs[_0x55f06d(0x127)](_0x3fb0b8,_0x55f06d(0x14e));let _0x25067a;!_0x144482?_0x25067a=_0x55f06d(0x147)+(_0x3df799+_0x55f06d(0x122))['padEnd'](0x14)+(',\x20component:\x20()=>\x20import(\x27./'+_0x3df799+_0x55f06d(0x143)+_0x33ecfb+'\x22\x20}\x20}'):_0x25067a=_0x55f06d(0x147)+(_0x3df799+'\x22')[_0x55f06d(0x13f)](0x14)+(_0x55f06d(0x144)+_0x3df799+_0x55f06d(0x120)+_0x33ecfb+'\x22\x20}\x20}');if(_0x4861ce[_0x55f06d(0x12b)](_0x25067a)==-0x1){let _0x5c2775=_0x4861ce[_0x55f06d(0x121)](_0x55f06d(0x13c),_0x25067a+',\x0a\x20\x20\x20\x20\x20\x20\x20\x20//\x20add\x20route\x20here');!_0x144482&&(_0x5c2775=_0x5c2775[_0x55f06d(0x121)]('//\x20add\x20route\x20here',_0x55f06d(0x147)+(_0x3df799+'/add\x22')[_0x55f06d(0x13f)](0x14)+(_0x55f06d(0x144)+_0x3df799+_0x55f06d(0x134)+_0x33ecfb+'添加\x22,\x20isHidden:\x20true\x20}\x20},\x0a\x20\x20\x20\x20\x20\x20\x20\x20//\x20add\x20route\x20here')),_0x5c2775=_0x5c2775[_0x55f06d(0x121)](_0x55f06d(0x13c),_0x55f06d(0x147)+(_0x3df799+_0x55f06d(0x13e))[_0x55f06d(0x13f)](0x14)+(_0x55f06d(0x144)+_0x3df799+_0x55f06d(0x13d)+_0x33ecfb+_0x55f06d(0x130)))),fs[_0x55f06d(0x131)](_0x3fb0b8,_0x5c2775);}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const a15_0x5eb793=a15_0x4d88;(function(_0x45e741,_0x20ec35){const _0x38bca7=a15_0x4d88,_0x275b84=_0x45e741();while(!![]){try{const _0x30aeb1=-parseInt(_0x38bca7(0x13e))/0x1*(parseInt(_0x38bca7(0x158))/0x2)+-parseInt(_0x38bca7(0x146))/0x3*(-parseInt(_0x38bca7(0x150))/0x4)+parseInt(_0x38bca7(0x133))/0x5+-parseInt(_0x38bca7(0x151))/0x6+parseInt(_0x38bca7(0x147))/0x7+-parseInt(_0x38bca7(0x140))/0x8+parseInt(_0x38bca7(0x15c))/0x9;if(_0x30aeb1===_0x20ec35)break;else _0x275b84['push'](_0x275b84['shift']());}catch(_0x48c415){_0x275b84['push'](_0x275b84['shift']());}}}(a15_0x5a59,0x41b52));function a15_0x5a59(){const _0x4492b9=['/vue','timestamp','text','不能为空`,\x20required:\x20','362XKoqpW','/interface.ts','YES','replace','3014289AvOrbD','`,\x20type:\x20\x22enum\x22,\x20enum:\x20[\x27','\x20\x20\x20\x20\x20\x20\x20\x20{\x20message:\x20`','existsSync','EditRule\x20=\x20{\x0a%EditRuleColumn%\x0a}','(((.+)+)+)+$','apply','writeFileSync','cwd','Null',':\x20[\x0a','join','getEnum','search','Comment','\x20\x20\x20\x20\x20\x20\x20\x20{\x20message:\x20`请输入正确的','defineProperty','constructor','longtext','created_at','false','true','updated_at','/pages/','Field','indexOf','mkdirSync','__esModule','\x20\x20\x20\x20','enum','\x20},\x0a','utf-8','default','1450870ajyYpB','`,\x20type:\x20\x22date\x22\x20},\x0a','Type','date','deleted_at','\x20\x20\x20\x20//\x20','\x0a/**\x0a\x20*\x20数据添加验证\x0a\x20*\x20**/\x0aexport\x20const\x20','%AddRuleColumn%','dirname','\x27]\x20},\x0a','toString','2688igPqNt','AddRule\x20=\x20{\x0a%AddRuleColumn%\x0a}\x0a\x0a/**\x0a\x20*\x20数据修改验证\x0a\x20*\x20**/\x0aexport\x20const\x20','194248cXTEln','json','\x27,\x20\x27','number','path','string','114705GZIkzZ','1028083MBGhwe','decimal','displayorder','\x20\x20\x20\x20],\x0a\x0a','double','mediumtext','`,\x20type:\x20\x22string\x22\x20},\x0a','%EditRuleColumn%','`,\x20type:\x20\x22number\x22\x20},\x0a','56lGjRRp','3163842rBibEH','getProp','tinyint'];a15_0x5a59=function(){return _0x4492b9;};return a15_0x5a59();}const a15_0x3f8a32=(function(){let _0x35d9c0=!![];return function(_0x4724e0,_0x810296){const _0x3184dd=_0x35d9c0?function(){const _0xb2dc25=a15_0x4d88;if(_0x810296){const _0x152739=_0x810296[_0xb2dc25(0x162)](_0x4724e0,arguments);return _0x810296=null,_0x152739;}}:function(){};return _0x35d9c0=![],_0x3184dd;};}()),a15_0x2fa593=a15_0x3f8a32(this,function(){const _0x2547c9=a15_0x4d88;return a15_0x2fa593[_0x2547c9(0x13d)]()['search'](_0x2547c9(0x161))[_0x2547c9(0x13d)]()[_0x2547c9(0x16d)](a15_0x2fa593)[_0x2547c9(0x169)](_0x2547c9(0x161));});a15_0x2fa593();'use strict';Object[a15_0x5eb793(0x16c)](exports,a15_0x5eb793(0x12d),{'value':!![]}),exports[a15_0x5eb793(0x132)]=default_1;const fs=require('fs'),path=require(a15_0x5eb793(0x144)),helper_1=require('../helper');function a15_0x4d88(_0x56abbe,_0x4de524){_0x56abbe=_0x56abbe-0x129;const _0x10a049=a15_0x5a59();let _0x2fa593=_0x10a049[_0x56abbe];return _0x2fa593;}async function default_1({tablestartUpShort:_0x5117a6,tablestartUpShort2:_0x520ab6,moduleName:_0x2e1a9b,controller:_0x40beac,apporbasic:_0x91010c,Fields:_0x1070bd}){const _0x1ca190=a15_0x5eb793;let _0xfa6cc1=process[_0x1ca190(0x164)]()+_0x1ca190(0x154)+(typeof _0x40beac==_0x1ca190(0x145)?'/'+_0x40beac:'');_0x2e1a9b?_0xfa6cc1=_0xfa6cc1+('/pages/apps/'+_0x2e1a9b+'/'+_0x520ab6+'/interface.ts'):_0xfa6cc1=_0xfa6cc1+(_0x1ca190(0x129)+_0x91010c+'/'+_0x520ab6+_0x1ca190(0x159));const _0x49eacc=_0x1ca190(0x139)+_0x5117a6+_0x1ca190(0x13f)+_0x5117a6+_0x1ca190(0x160),_0xc93b0e=await createAddRuleColumn({'Fields':_0x1070bd}),_0x4ef3bd=await createEditRuleColumn({'Fields':_0x1070bd});!fs[_0x1ca190(0x15f)](path['dirname'](_0xfa6cc1))&&fs[_0x1ca190(0x12c)](path[_0x1ca190(0x13b)](_0xfa6cc1),{'recursive':!![]}),fs[_0x1ca190(0x163)](_0xfa6cc1,_0x49eacc[_0x1ca190(0x15b)](_0x1ca190(0x13a),_0xc93b0e)[_0x1ca190(0x15b)](_0x1ca190(0x14e),_0x4ef3bd),_0x1ca190(0x131));}async function createAddRuleColumn({Fields:_0x12f16a}){const _0x26072b=a15_0x5eb793;let _0x46ddd5='';for(let _0x55b842 in _0x12f16a){let _0x15a488=_0x12f16a[_0x55b842],_0x4e31e8=(0x0,helper_1[_0x26072b(0x152)])(_0x15a488[_0x26072b(0x135)]);if(_0x15a488[_0x26072b(0x12a)]==_0x26072b(0x149)||_0x15a488[_0x26072b(0x12a)]=='created_at'||_0x15a488[_0x26072b(0x12a)]==_0x26072b(0x172)||_0x15a488['Field']==_0x26072b(0x137))continue;if([_0x26072b(0x156),_0x26072b(0x16e),'mediumtext']['indexOf'](_0x4e31e8)!=-0x1)_0x46ddd5+=_0x26072b(0x138)+_0x15a488[_0x26072b(0x16a)]+'\x0a',_0x46ddd5+=_0x26072b(0x12e)+_0x15a488[_0x26072b(0x12a)]+_0x26072b(0x166),_0x15a488[_0x26072b(0x165)]!=_0x26072b(0x15a)&&(_0x46ddd5+='\x20\x20\x20\x20\x20\x20\x20\x20{\x20message:\x20`'+_0x15a488[_0x26072b(0x16a)]+_0x26072b(0x157)+(_0x15a488['Null']!=_0x26072b(0x15a)?_0x26072b(0x170):_0x26072b(0x171))+_0x26072b(0x130)),_0x46ddd5+=_0x26072b(0x14a);else{if(['float',_0x26072b(0x14b),_0x26072b(0x148),_0x26072b(0x143)][_0x26072b(0x12b)](_0x4e31e8)!=-0x1)_0x46ddd5+=_0x26072b(0x138)+_0x15a488['Comment']+'\x0a',_0x46ddd5+=_0x26072b(0x12e)+_0x15a488['Field']+':\x20[\x0a',_0x46ddd5+=_0x26072b(0x16b)+_0x15a488[_0x26072b(0x16a)]+_0x26072b(0x14f),_0x15a488['Null']!='YES'&&(_0x46ddd5+=_0x26072b(0x15e)+_0x15a488[_0x26072b(0x16a)]+_0x26072b(0x157)+(_0x15a488['Null']!=_0x26072b(0x15a)?_0x26072b(0x170):_0x26072b(0x171))+'\x20},\x0a'),_0x46ddd5+=_0x26072b(0x14a);else{if([_0x26072b(0x153)]['indexOf'](_0x4e31e8)!=-0x1)_0x46ddd5+=_0x26072b(0x138)+_0x15a488[_0x26072b(0x16a)]+'\x0a',_0x46ddd5+=_0x26072b(0x12e)+_0x15a488[_0x26072b(0x12a)]+_0x26072b(0x166),_0x46ddd5+=_0x26072b(0x16b)+_0x15a488[_0x26072b(0x16a)]+_0x26072b(0x14f),_0x15a488[_0x26072b(0x165)]!=_0x26072b(0x15a)&&(_0x46ddd5+='\x20\x20\x20\x20\x20\x20\x20\x20{\x20message:\x20`'+_0x15a488[_0x26072b(0x16a)]+_0x26072b(0x157)+(_0x15a488[_0x26072b(0x165)]!='YES'?_0x26072b(0x170):_0x26072b(0x171))+_0x26072b(0x130)),_0x46ddd5+=_0x26072b(0x14a);else{if(_0x4e31e8==_0x26072b(0x141))_0x46ddd5+=_0x26072b(0x138)+_0x15a488[_0x26072b(0x16a)]+'\x0a',_0x46ddd5+='\x20\x20\x20\x20'+_0x15a488[_0x26072b(0x12a)]+':\x20[\x0a',_0x15a488['Null']!=_0x26072b(0x15a)&&(_0x46ddd5+='\x20\x20\x20\x20\x20\x20\x20\x20{\x20message:\x20`'+_0x15a488['Comment']+_0x26072b(0x157)+(_0x15a488[_0x26072b(0x165)]!=_0x26072b(0x15a)?'false':'true')+_0x26072b(0x130)),_0x46ddd5+='\x20\x20\x20\x20],\x0a\x0a';else{if(_0x4e31e8==_0x26072b(0x12f)){let _0x5e3c19=(0x0,helper_1[_0x26072b(0x168)])(_0x15a488[_0x26072b(0x135)]);_0x46ddd5+=_0x26072b(0x138)+_0x15a488['Comment']+'\x0a',_0x46ddd5+=_0x26072b(0x12e)+_0x15a488['Field']+_0x26072b(0x166),_0x46ddd5+=_0x26072b(0x16b)+_0x15a488[_0x26072b(0x16a)]+_0x26072b(0x15d)+_0x5e3c19[_0x26072b(0x167)](_0x26072b(0x142))+_0x26072b(0x13c),_0x15a488[_0x26072b(0x165)]!='YES'&&(_0x46ddd5+=_0x26072b(0x15e)+_0x15a488[_0x26072b(0x16a)]+_0x26072b(0x157)+(_0x15a488['Null']!=_0x26072b(0x15a)?_0x26072b(0x170):_0x26072b(0x171))+'\x20},\x0a'),_0x46ddd5+=_0x26072b(0x14a);}else[_0x26072b(0x136),'datetime',_0x26072b(0x155)][_0x26072b(0x12b)](_0x4e31e8)>-0x1?(_0x46ddd5+=_0x26072b(0x138)+_0x15a488[_0x26072b(0x16a)]+'\x0a',_0x46ddd5+=_0x26072b(0x12e)+_0x15a488[_0x26072b(0x12a)]+_0x26072b(0x166),_0x46ddd5+=_0x26072b(0x16b)+_0x15a488[_0x26072b(0x16a)]+_0x26072b(0x134),_0x15a488[_0x26072b(0x165)]!=_0x26072b(0x15a)&&(_0x46ddd5+='\x20\x20\x20\x20\x20\x20\x20\x20{\x20message:\x20`'+_0x15a488[_0x26072b(0x16a)]+_0x26072b(0x157)+(_0x15a488[_0x26072b(0x165)]!=_0x26072b(0x15a)?_0x26072b(0x170):_0x26072b(0x171))+_0x26072b(0x130)),_0x46ddd5+=_0x26072b(0x14a)):(_0x46ddd5+='\x20\x20\x20\x20//\x20'+_0x15a488[_0x26072b(0x16a)]+'\x0a',_0x46ddd5+=_0x26072b(0x12e)+_0x15a488[_0x26072b(0x12a)]+':\x20[\x0a',_0x46ddd5+=_0x26072b(0x16b)+_0x15a488['Comment']+_0x26072b(0x14d),_0x15a488['Null']!=_0x26072b(0x15a)&&(_0x46ddd5+=_0x26072b(0x15e)+_0x15a488[_0x26072b(0x16a)]+_0x26072b(0x157)+(_0x15a488[_0x26072b(0x165)]!=_0x26072b(0x15a)?_0x26072b(0x170):_0x26072b(0x171))+'\x20},\x0a'),_0x46ddd5+=_0x26072b(0x14a));}}}}}return _0x46ddd5;}async function createEditRuleColumn({Fields:_0x2906c9}){const _0x2416f8=a15_0x5eb793;let _0x42d565='';for(let _0x44d37a in _0x2906c9){let _0x2dcfd5=_0x2906c9[_0x44d37a],_0x59e981=(0x0,helper_1[_0x2416f8(0x152)])(_0x2dcfd5[_0x2416f8(0x135)]);if(_0x2dcfd5[_0x2416f8(0x12a)]==_0x2416f8(0x149)||_0x2dcfd5[_0x2416f8(0x12a)]==_0x2416f8(0x16f)||_0x2dcfd5['Field']==_0x2416f8(0x172)||_0x2dcfd5['Field']==_0x2416f8(0x137))continue;if([_0x2416f8(0x156),'longtext',_0x2416f8(0x14c)][_0x2416f8(0x12b)](_0x59e981)!=-0x1)_0x42d565+=_0x2416f8(0x138)+_0x2dcfd5[_0x2416f8(0x16a)]+'\x0a',_0x42d565+=_0x2416f8(0x12e)+_0x2dcfd5[_0x2416f8(0x12a)]+_0x2416f8(0x166),_0x2dcfd5['Null']!=_0x2416f8(0x15a)&&(_0x42d565+='\x20\x20\x20\x20\x20\x20\x20\x20{\x20message:\x20`'+_0x2dcfd5[_0x2416f8(0x16a)]+_0x2416f8(0x157)+(_0x2dcfd5[_0x2416f8(0x165)]!=_0x2416f8(0x15a)?_0x2416f8(0x170):'true')+_0x2416f8(0x130)),_0x42d565+=_0x2416f8(0x14a);else{if(['float',_0x2416f8(0x14b),_0x2416f8(0x148),_0x2416f8(0x143)]['indexOf'](_0x59e981)!=-0x1)_0x42d565+=_0x2416f8(0x138)+_0x2dcfd5[_0x2416f8(0x16a)]+'\x0a',_0x42d565+='\x20\x20\x20\x20'+_0x2dcfd5[_0x2416f8(0x12a)]+_0x2416f8(0x166),_0x42d565+=_0x2416f8(0x16b)+_0x2dcfd5[_0x2416f8(0x16a)]+_0x2416f8(0x14f),_0x2dcfd5[_0x2416f8(0x165)]!=_0x2416f8(0x15a)&&(_0x42d565+=_0x2416f8(0x15e)+_0x2dcfd5[_0x2416f8(0x16a)]+_0x2416f8(0x157)+(_0x2dcfd5[_0x2416f8(0x165)]!=_0x2416f8(0x15a)?'false':_0x2416f8(0x171))+_0x2416f8(0x130)),_0x42d565+='\x20\x20\x20\x20],\x0a\x0a';else{if(['tinyint'][_0x2416f8(0x12b)](_0x59e981)!=-0x1)_0x42d565+=_0x2416f8(0x138)+_0x2dcfd5[_0x2416f8(0x16a)]+'\x0a',_0x42d565+=_0x2416f8(0x12e)+_0x2dcfd5[_0x2416f8(0x12a)]+':\x20[\x0a',_0x42d565+='\x20\x20\x20\x20\x20\x20\x20\x20{\x20message:\x20`请输入正确的'+_0x2dcfd5[_0x2416f8(0x16a)]+_0x2416f8(0x14f),_0x2dcfd5[_0x2416f8(0x165)]!=_0x2416f8(0x15a)&&(_0x42d565+=_0x2416f8(0x15e)+_0x2dcfd5[_0x2416f8(0x16a)]+_0x2416f8(0x157)+(_0x2dcfd5[_0x2416f8(0x165)]!=_0x2416f8(0x15a)?'false':_0x2416f8(0x171))+_0x2416f8(0x130)),_0x42d565+='\x20\x20\x20\x20],\x0a\x0a';else{if(_0x59e981==_0x2416f8(0x141))_0x42d565+=_0x2416f8(0x138)+_0x2dcfd5[_0x2416f8(0x16a)]+'\x0a',_0x42d565+=_0x2416f8(0x12e)+_0x2dcfd5['Field']+_0x2416f8(0x166),_0x2dcfd5[_0x2416f8(0x165)]!='YES'&&(_0x42d565+=_0x2416f8(0x15e)+_0x2dcfd5[_0x2416f8(0x16a)]+_0x2416f8(0x157)+(_0x2dcfd5[_0x2416f8(0x165)]!=_0x2416f8(0x15a)?_0x2416f8(0x170):_0x2416f8(0x171))+'\x20},\x0a'),_0x42d565+='\x20\x20\x20\x20],\x0a\x0a';else{if(_0x59e981==_0x2416f8(0x12f)){let _0x5727b2=(0x0,helper_1[_0x2416f8(0x168)])(_0x2dcfd5[_0x2416f8(0x135)]);_0x42d565+=_0x2416f8(0x138)+_0x2dcfd5[_0x2416f8(0x16a)]+'\x0a',_0x42d565+=_0x2416f8(0x12e)+_0x2dcfd5[_0x2416f8(0x12a)]+_0x2416f8(0x166),_0x42d565+=_0x2416f8(0x16b)+_0x2dcfd5['Comment']+'`,\x20type:\x20\x22enum\x22,\x20enum:\x20[\x27'+_0x5727b2[_0x2416f8(0x167)](_0x2416f8(0x142))+_0x2416f8(0x13c),_0x2dcfd5[_0x2416f8(0x165)]!=_0x2416f8(0x15a)&&(_0x42d565+=_0x2416f8(0x15e)+_0x2dcfd5[_0x2416f8(0x16a)]+'不能为空`,\x20required:\x20'+(_0x2dcfd5[_0x2416f8(0x165)]!=_0x2416f8(0x15a)?'false':_0x2416f8(0x171))+_0x2416f8(0x130)),_0x42d565+=_0x2416f8(0x14a);}else['date','datetime',_0x2416f8(0x155)]['indexOf'](_0x59e981)>-0x1?(_0x42d565+=_0x2416f8(0x138)+_0x2dcfd5[_0x2416f8(0x16a)]+'\x0a',_0x42d565+=_0x2416f8(0x12e)+_0x2dcfd5[_0x2416f8(0x12a)]+_0x2416f8(0x166),_0x42d565+=_0x2416f8(0x16b)+_0x2dcfd5['Comment']+_0x2416f8(0x134),_0x2dcfd5[_0x2416f8(0x165)]!=_0x2416f8(0x15a)&&(_0x42d565+=_0x2416f8(0x15e)+_0x2dcfd5[_0x2416f8(0x16a)]+_0x2416f8(0x157)+(_0x2dcfd5['Null']!=_0x2416f8(0x15a)?_0x2416f8(0x170):_0x2416f8(0x171))+_0x2416f8(0x130)),_0x42d565+=_0x2416f8(0x14a)):(_0x42d565+=_0x2416f8(0x138)+_0x2dcfd5['Comment']+'\x0a',_0x42d565+=_0x2416f8(0x12e)+_0x2dcfd5['Field']+_0x2416f8(0x166),_0x42d565+='\x20\x20\x20\x20\x20\x20\x20\x20{\x20message:\x20`请输入正确的'+_0x2dcfd5[_0x2416f8(0x16a)]+_0x2416f8(0x14d),_0x2dcfd5[_0x2416f8(0x165)]!='YES'&&(_0x42d565+=_0x2416f8(0x15e)+_0x2dcfd5[_0x2416f8(0x16a)]+_0x2416f8(0x157)+(_0x2dcfd5[_0x2416f8(0x165)]!=_0x2416f8(0x15a)?_0x2416f8(0x170):_0x2416f8(0x171))+_0x2416f8(0x130)),_0x42d565+='\x20\x20\x20\x20],\x0a\x0a');}}}}}return _0x42d565;}
|
|
@@ -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_0x4d91db=a16_0xb1b3;(function(_0x110868,_0x21f884){var _0x5453d7=a16_0xb1b3,_0x5003ec=_0x110868();while(!![]){try{var _0x113ddf=-parseInt(_0x5453d7(0xa0))/0x1+parseInt(_0x5453d7(0xa7))/0x2+-parseInt(_0x5453d7(0x9e))/0x3+parseInt(_0x5453d7(0xa4))/0x4+parseInt(_0x5453d7(0xa8))/0x5*(-parseInt(_0x5453d7(0x9f))/0x6)+-parseInt(_0x5453d7(0xa3))/0x7+parseInt(_0x5453d7(0xa1))/0x8;if(_0x113ddf===_0x21f884)break;else _0x5003ec['push'](_0x5003ec['shift']());}catch(_0x1d994d){_0x5003ec['push'](_0x5003ec['shift']());}}}(a16_0x1576,0x5d306));var a16_0x14abbe=(function(){var _0x3436ec=!![];return function(_0x4d3295,_0x4b3605){var _0x3312e8=_0x3436ec?function(){var _0x4ac2cc=a16_0xb1b3;if(_0x4b3605){var _0x349940=_0x4b3605[_0x4ac2cc(0xa6)](_0x4d3295,arguments);return _0x4b3605=null,_0x349940;}}:function(){};return _0x3436ec=![],_0x3312e8;};}()),a16_0x56ada2=a16_0x14abbe(this,function(){var _0x307d9a=a16_0xb1b3;return a16_0x56ada2['toString']()[_0x307d9a(0xa9)](_0x307d9a(0xa5))['toString']()['constructor'](a16_0x56ada2)[_0x307d9a(0xa9)](_0x307d9a(0xa5));});function a16_0xb1b3(_0x314c28,_0x3b9a22){_0x314c28=_0x314c28-0x9e;var _0xe38586=a16_0x1576();var _0x56ada2=_0xe38586[_0x314c28];return _0x56ada2;}a16_0x56ada2();'use strict';function a16_0x1576(){var _0x598db2=['556232GJwDMg','174125RufwFH','search','971664qqYopj','6QRVCYT','699379kqYEWq','4658824yqDNjA','__esModule','486542GStztZ','2595324QwhsPd','(((.+)+)+)+$','apply'];a16_0x1576=function(){return _0x598db2;};return a16_0x1576();}Object['defineProperty'](exports,a16_0x4d91db(0xa2),{'value':!![]});
|
package/package.json
CHANGED
|
@@ -1,6 +1,29 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "anvero-apihelper",
|
|
3
|
-
"version": "
|
|
4
|
-
"
|
|
5
|
-
"
|
|
3
|
+
"version": "3.0.1",
|
|
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
|
+
"dependencies": {
|
|
14
|
+
"@midwayjs/core": "^4.2.6",
|
|
15
|
+
"@midwayjs/typeorm": "^4.2.6",
|
|
16
|
+
"@midwayjs/commander": "^4.2.6",
|
|
17
|
+
"@anveroapi/typeorm": "^3.0.0"
|
|
18
|
+
},
|
|
19
|
+
"devDependencies": {
|
|
20
|
+
"typescript": "~5.9.3",
|
|
21
|
+
"@types/node": "20.10.0",
|
|
22
|
+
"javascript-obfuscator": "^4.0.2"
|
|
23
|
+
},
|
|
24
|
+
"gitHead": "f7d4644d5e0591c4b383021edab6db20d1714880",
|
|
25
|
+
"scripts": {
|
|
26
|
+
"build2": "tsc",
|
|
27
|
+
"build": "tsc && javascript-obfuscator ./dist --output ./dist --config obfuscator.json"
|
|
28
|
+
}
|
|
6
29
|
}
|
package/README.md
DELETED