anncic-apihelper 3.7.18 → 3.7.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/configuration.d.ts +6 -6
- package/dist/configuration.js +1 -1
- package/dist/helper.d.ts +2 -2
- package/dist/helper.js +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/dist/service/ApicreateService.d.ts +15 -15
- package/dist/service/ApicreateService.js +1 -1
- package/dist/templateFun/Action.d.ts +10 -10
- package/dist/templateFun/Action.js +1 -1
- package/dist/templateFun/Common.d.ts +7 -7
- package/dist/templateFun/Common.js +1 -1
- package/dist/templateFun/Entities.d.ts +11 -11
- package/dist/templateFun/Entities.js +1 -1
- package/dist/templateFun/Event.d.ts +7 -7
- package/dist/templateFun/Event.js +1 -1
- package/dist/templateFun/Handler.d.ts +9 -9
- package/dist/templateFun/Handler.js +1 -1
- package/dist/templateFun/Search.d.ts +7 -7
- package/dist/templateFun/Search.js +1 -1
- package/dist/templateFun/Validator.d.ts +11 -11
- package/dist/templateFun/Validator.js +1 -1
- package/dist/templateVue/Api.d.ts +9 -9
- package/dist/templateVue/Api.js +1 -1
- package/dist/templateVue/Layout.d.ts +7 -7
- package/dist/templateVue/Layout.js +1 -1
- package/dist/templateVue/LayoutVue.d.ts +10 -10
- package/dist/templateVue/LayoutVue.js +1 -1
- package/dist/templateVue/Router.d.ts +8 -8
- package/dist/templateVue/Router.js +1 -1
- package/dist/templateVue/Validator.d.ts +10 -10
- package/dist/templateVue/Validator.js +1 -1
- package/dist/templateVueV2/Api.d.ts +9 -9
- package/dist/templateVueV2/Api.js +1 -1
- package/dist/templateVueV2/Layout.d.ts +7 -7
- package/dist/templateVueV2/Layout.js +1 -1
- package/dist/templateVueV2/LayoutVue.d.ts +10 -10
- package/dist/templateVueV2/LayoutVue.js +1 -1
- package/dist/templateVueV2/Router.d.ts +8 -8
- package/dist/templateVueV2/Router.js +1 -1
- package/dist/templateVueV2/Validator.d.ts +8 -8
- package/dist/templateVueV2/Validator.js +1 -1
- package/dist/templateVueV3/Api.d.ts +9 -9
- package/dist/templateVueV3/Api.js +1 -1
- package/dist/templateVueV3/Layout.d.ts +8 -8
- package/dist/templateVueV3/Layout.js +1 -1
- package/dist/templateVueV3/LayoutVue.d.ts +11 -11
- package/dist/templateVueV3/LayoutVue.js +1 -1
- package/dist/templateVueV3/Router.d.ts +8 -8
- package/dist/templateVueV3/Router.js +1 -1
- package/dist/templateVueV3/Validator.d.ts +8 -8
- package/dist/templateVueV3/Validator.js +1 -1
- package/dist/types/index.d.ts +18 -18
- package/dist/types/index.js +1 -1
- package/package.json +4 -4
|
@@ -1 +1 @@
|
|
|
1
|
-
const a8_0x2bb4c4=a8_0x528d;(function(_0x14a569,_0x1f3cc0){const _0x3814ca=a8_0x528d,_0x505b9c=_0x14a569();while(!![]){try{const _0x1102f0=-parseInt(_0x3814ca(0x196))/0x1+-parseInt(_0x3814ca(0x19e))/0x2*(-parseInt(_0x3814ca(0x18a))/0x3)+-parseInt(_0x3814ca(0x17b))/0x4*(parseInt(_0x3814ca(0x1cb))/0x5)+-parseInt(_0x3814ca(0x1b5))/0x6*(parseInt(_0x3814ca(0x19d))/0x7)+parseInt(_0x3814ca(0x1c9))/0x8*(-parseInt(_0x3814ca(0x1c3))/0x9)+parseInt(_0x3814ca(0x1c7))/0xa*(-parseInt(_0x3814ca(0x197))/0xb)+parseInt(_0x3814ca(0x19c))/0xc;if(_0x1102f0===_0x1f3cc0)break;else _0x505b9c['push'](_0x505b9c['shift']());}catch(_0xc3de39){_0x505b9c['push'](_0x505b9c['shift']());}}}(a8_0x4dca,0x7179c));const a8_0x173d5e=(function(){let _0x950058=!![];return function(_0x5bb29e,_0x4e6397){const _0x2fc0f0=_0x950058?function(){if(_0x4e6397){const _0x4792ce=_0x4e6397['apply'](_0x5bb29e,arguments);return _0x4e6397=null,_0x4792ce;}}:function(){};return _0x950058=![],_0x2fc0f0;};}()),a8_0x3af998=a8_0x173d5e(this,function(){const _0x104921=a8_0x528d;return a8_0x3af998[_0x104921(0x1ce)]()[_0x104921(0x1b8)]('(((.+)+)+)+$')[_0x104921(0x1ce)]()[_0x104921(0x1aa)](a8_0x3af998)['search'](_0x104921(0x1bd));});a8_0x3af998();function a8_0x4dca(){const _0x5d9067=['\x20\x20\x20\x20\x20\x20\x20\x20const\x20[pagelist,\x20pagetotal]\x20=\x20await\x20this.','\x20\x20\x20\x20\x20*\x20添加数据\x0a','\x20\x20\x20\x20@InjectRepository(','\x20\x20\x20\x20\x20\x20\x20\x20const\x20tmpModel\x20=\x20await\x20this.','Entity\x20}\x20from\x20\x27','\x20*\x20','/handlers/','@Singleton()\x0a','export\x20class\x20','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20});\x0a','\x20\x20\x20\x20\x20\x20\x20\x20});\x0a\x0a','\x20\x20\x20\x20\x20\x20\x20\x20return\x20await\x20this.','Error._NOTFIND_,\x20{\x20message:\x20\x27','3dGFgyK','\x20\x20\x20\x20async\x20restores(conditions:\x20SearchParams<','\x20\x20\x20\x20\x20\x20\x20\x20return\x20deletes\x0a','\x20*\x20**/\x0a','Error(','existsSync','\x20\x20\x20\x20async\x20update(conditions:\x20SearchParams<','\x27;\x0a','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20return\x20search.getOneOrFail().catch(()\x20=>\x20{\x0a','Handler\x20{\x0a\x0a','DTOCreate\x20}\x20from\x20\x27','\x20\x20\x20\x20\x20\x20\x20\x20const\x20restores:\x20any\x20=\x20[],\x20tmpModels\x20=\x20await\x20this.','805248oChIVP','5559004CTKgsz','.merge(tmpModel,\x20params);\x0a','\x20\x20\x20\x20}\x0a\x0a\x0a','\x20}\x20from\x20\x27','/validators/','21336672OfjEoM','305669ibWOYt','1357842aDHbSc','\x20\x20\x20\x20@Inject()\x20EventService:\x20EventService;\x0a','不存在\x27\x20})\x0a','.search(conditions,\x20pageinfo,\x20options).then(async\x20search\x20=>\x20{\x0a\x0a','dirname','Entity[],\x20number]>\x20{\x0a','.ts','string','.create(params)\x0a\x0a','import\x20{\x20','\x20\x20\x20\x20\x20*\x20**/\x0a','DTOUpdate\x20}\x20from\x20\x27','constructor','.recover(tmpModel))\x0a','\x20\x20\x20\x20\x20\x20\x20\x20for\x20(let\x20tmpModel\x20of\x20tmpModels)\x20{\x0a','\x20\x20\x20\x20\x20*\x20恢复删除的数据\x0a','\x20\x20\x20\x20@Inject()\x20CacheService:\x20CacheService;\x0a','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20return\x20search.getMany();\x0a','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20search.withDeleted().andWhere(`${search.alias}.deleted_at\x20IS\x20NOT\x20NULL`);\x0a','utf-8','\x20\x20\x20\x20\x20\x20\x20\x20const\x20tmpModel\x20=\x20this.','\x20\x20\x20\x20\x20*\x20数据详情\x0a','Entity>,\x20options:\x20SearchOptions\x20=\x20{})\x20{\x0a','12fJIvhB','\x20\x20\x20\x20\x20\x20\x20\x20return\x20tmpModel\x0a','\x20\x20\x20\x20\x20\x20\x20\x20return\x20[pagelist,\x20pagetotal];\x0a','search','/exceptions/','default','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20deletes.push(await\x20this.','/**\x0a','(((.+)+)+)+$','Error\x20}\x20from\x20\x27','/entity\x27;\x0a','import\x20{\x20CacheService,\x20EventService,\x20ValidatorService\x20}\x20from\x20\x27anncic-api\x27;\x0a','path','@/apps/','3385197NzQuZg','DTOUpdate,\x20options:\x20SearchOptions\x20=\x20{})\x20{\x0a','\x20\x20\x20\x20\x20\x20\x20\x20}\x0a','\x20\x20\x20\x20\x20*\x20修改数据\x0a','10bHrCLR','DTOCreate)\x20{\x0a','8GVeZhn','.search(conditions,\x20{},\x20options).then(async\x20search\x20=>\x20{\x0a\x0a','5HFIKDw','\x20\x20\x20\x20/**\x0a','\x20\x20\x20\x20async\x20create(params:\x20','toString','\x20\x20\x20\x20async\x20remove(conditions:\x20SearchParams<','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20throw\x20new\x20','mkdirSync','Entity>,\x20params:\x20','.softRemove(tmpModel))\x0a','\x20\x20\x20\x20\x20\x20\x20\x20const\x20deletes:\x20any\x20=\x20[],\x20tmpModels\x20=\x20await\x20this.','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20return\x20search.getManyAndCount();\x0a','.save(tmpModel);\x0a','/entities/','872408UQhOzv','\x20\x20\x20\x20\x20\x20\x20\x20return\x20restores\x0a'];a8_0x4dca=function(){return _0x5d9067;};return a8_0x4dca();}'use strict';Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[a8_0x2bb4c4(0x1ba)]=default_1;const fs=require('fs'),path_1=require(a8_0x2bb4c4(0x1c1));function a8_0x528d(_0x4e73d1,_0x489a4c){const _0x43c4f3=a8_0x4dca();return a8_0x528d=function(_0x3af998,_0x173d5e){_0x3af998=_0x3af998-0x173;let _0x4dca9f=_0x43c4f3[_0x3af998];return _0x4dca9f;},a8_0x528d(_0x4e73d1,_0x489a4c);}async function default_1({tablestartUp:_0x534398,tablestartUpShort:_0x2bb988,basedir:_0x290dfc,Primary:_0x58716e,Comment:_0x253804,moduleName:_0xbd7c51,apporbasic:_0x25e990}){const _0x29cfc3=a8_0x2bb4c4,_0x1daa38=_0x290dfc+(_0x29cfc3(0x183)+_0x2bb988+_0x29cfc3(0x1a4));if(!fs[_0x29cfc3(0x18f)](_0x1daa38)){let _0x11003c='';_0x11003c+='import\x20{\x20Inject,\x20Singleton\x20}\x20from\x20\x27anncic-api\x27;\x0a',_0x11003c+=_0x29cfc3(0x1c0),_0x11003c+='import\x20{\x20InjectRepository,\x20SearchParams,\x20SearchPaginate,\x20SearchOptions\x20}\x20from\x20\x27@anncic-api/typeorm\x27;\x0a\x0a',_0x11003c+='import\x20{\x20'+_0x534398+_0x29cfc3(0x19a)+(typeof _0xbd7c51==_0x29cfc3(0x1a5)?_0x29cfc3(0x1c2)+_0xbd7c51:'@/'+_0x25e990)+_0x29cfc3(0x17a)+_0x2bb988+_0x29cfc3(0x191),_0x11003c+=_0x29cfc3(0x1a7)+_0x534398+_0x29cfc3(0x1be)+(typeof _0xbd7c51==_0x29cfc3(0x1a5)?'@/apps/'+_0xbd7c51:'@/'+_0x25e990)+_0x29cfc3(0x1b9)+_0x2bb988+_0x29cfc3(0x191),_0x11003c+='import\x20{\x20'+_0x534398+_0x29cfc3(0x181)+(typeof _0xbd7c51==_0x29cfc3(0x1a5)?'@/apps/'+_0xbd7c51:'@/'+_0x25e990)+'/entities/'+_0x2bb988+_0x29cfc3(0x1bf),_0x11003c+=_0x29cfc3(0x1a7)+_0x534398+_0x29cfc3(0x194)+(typeof _0xbd7c51=='string'?_0x29cfc3(0x1c2)+_0xbd7c51:'@/'+_0x25e990)+_0x29cfc3(0x19b)+_0x2bb988+'/Create\x27;\x0a',_0x11003c+='import\x20{\x20'+_0x534398+_0x29cfc3(0x1a9)+(typeof _0xbd7c51==_0x29cfc3(0x1a5)?_0x29cfc3(0x1c2)+_0xbd7c51:'@/'+_0x25e990)+_0x29cfc3(0x19b)+_0x2bb988+'/Update\x27;\x0a',_0x11003c+='\x0a',_0x11003c+=_0x29cfc3(0x1bc),_0x11003c+=_0x29cfc3(0x182)+_0x253804+'\x0a',_0x11003c+=_0x29cfc3(0x18d),_0x11003c+=_0x29cfc3(0x184),_0x11003c+=_0x29cfc3(0x185)+_0x534398+_0x29cfc3(0x193),_0x11003c+=_0x29cfc3(0x1ae),_0x11003c+=_0x29cfc3(0x19f),_0x11003c+='\x20\x20\x20\x20@Inject()\x20ValidatorService:\x20ValidatorService;\x0a\x0a',_0x11003c+=_0x29cfc3(0x17f)+_0x534398+')\x20'+_0x2bb988+':\x20'+_0x534398+';\x0a\x0a\x0a',_0x11003c+=_0x29cfc3(0x1cc),_0x11003c+='\x20\x20\x20\x20\x20*\x20数据列表\x0a',_0x11003c+=_0x29cfc3(0x1a8),_0x11003c+='\x20\x20\x20\x20async\x20list(conditions?:\x20SearchParams<'+_0x534398+'Entity>,\x20pageinfo?:\x20SearchPaginate,\x20options:\x20SearchOptions\x20=\x20{}):\x20Promise<['+_0x534398+_0x29cfc3(0x1a3),_0x11003c+=_0x29cfc3(0x17d)+_0x2bb988+_0x29cfc3(0x1a1),_0x11003c+=_0x29cfc3(0x178),_0x11003c+=_0x29cfc3(0x187),_0x11003c+=_0x29cfc3(0x1b7),_0x11003c+=_0x29cfc3(0x199),_0x11003c+='\x20\x20\x20\x20/**\x0a',_0x11003c+=_0x29cfc3(0x1b3),_0x11003c+=_0x29cfc3(0x1a8),_0x11003c+='\x20\x20\x20\x20async\x20detail(conditions?:\x20SearchParams<'+_0x534398+_0x29cfc3(0x1b4),_0x11003c+=_0x29cfc3(0x180)+_0x2bb988+_0x29cfc3(0x1ca),_0x11003c+=_0x29cfc3(0x192),_0x11003c+=_0x29cfc3(0x173)+_0x534398+_0x29cfc3(0x18e)+_0x534398+_0x29cfc3(0x189)+_0x253804+_0x29cfc3(0x1a0),_0x11003c+=_0x29cfc3(0x186),_0x11003c+='\x20\x20\x20\x20\x20\x20\x20\x20});\x0a\x0a',_0x11003c+=_0x29cfc3(0x1b6),_0x11003c+=_0x29cfc3(0x199),_0x11003c+=_0x29cfc3(0x1cc),_0x11003c+=_0x29cfc3(0x17e),_0x11003c+=_0x29cfc3(0x1a8),_0x11003c+=_0x29cfc3(0x1cd)+_0x534398+_0x29cfc3(0x1c8),_0x11003c+=_0x29cfc3(0x1b2)+_0x2bb988+_0x29cfc3(0x1a6),_0x11003c+=_0x29cfc3(0x188)+_0x2bb988+_0x29cfc3(0x179),_0x11003c+=_0x29cfc3(0x199),_0x11003c+=_0x29cfc3(0x1cc),_0x11003c+=_0x29cfc3(0x1c6),_0x11003c+=_0x29cfc3(0x1a8),_0x11003c+=_0x29cfc3(0x190)+_0x534398+_0x29cfc3(0x175)+_0x534398+_0x29cfc3(0x1c4),_0x11003c+=_0x29cfc3(0x180)+_0x2bb988+_0x29cfc3(0x1ca),_0x11003c+=_0x29cfc3(0x192),_0x11003c+=_0x29cfc3(0x173)+_0x534398+_0x29cfc3(0x18e)+_0x534398+_0x29cfc3(0x189)+_0x253804+_0x29cfc3(0x1a0),_0x11003c+=_0x29cfc3(0x186),_0x11003c+='\x20\x20\x20\x20\x20\x20\x20\x20});\x0a\x0a',_0x11003c+='\x20\x20\x20\x20\x20\x20\x20\x20this.'+_0x2bb988+_0x29cfc3(0x198),_0x11003c+=_0x29cfc3(0x188)+_0x2bb988+_0x29cfc3(0x179),_0x11003c+='\x20\x20\x20\x20}\x0a\x0a\x0a',_0x11003c+=_0x29cfc3(0x1cc),_0x11003c+='\x20\x20\x20\x20\x20*\x20删除数据\x0a',_0x11003c+=_0x29cfc3(0x1a8),_0x11003c+=_0x29cfc3(0x1cf)+_0x534398+'Entity>,\x20options:\x20SearchOptions\x20=\x20{})\x20{\x0a',_0x11003c+=_0x29cfc3(0x177)+_0x2bb988+_0x29cfc3(0x1ca),_0x11003c+=_0x29cfc3(0x1af),_0x11003c+=_0x29cfc3(0x187),_0x11003c+=_0x29cfc3(0x1ac),_0x11003c+=_0x29cfc3(0x1bb)+_0x2bb988+_0x29cfc3(0x176),_0x11003c+=_0x29cfc3(0x1c5),_0x11003c+=_0x29cfc3(0x18c),_0x11003c+=_0x29cfc3(0x199),_0x11003c+=_0x29cfc3(0x1cc),_0x11003c+=_0x29cfc3(0x1ad),_0x11003c+=_0x29cfc3(0x1a8),_0x11003c+=_0x29cfc3(0x18b)+_0x534398+_0x29cfc3(0x1b4),_0x11003c+=_0x29cfc3(0x195)+_0x2bb988+_0x29cfc3(0x1ca),_0x11003c+=_0x29cfc3(0x1b0),_0x11003c+='\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20return\x20search.getMany();\x0a',_0x11003c+=_0x29cfc3(0x187),_0x11003c+=_0x29cfc3(0x1ac),_0x11003c+='\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20restores.push(await\x20this.'+_0x2bb988+_0x29cfc3(0x1ab),_0x11003c+='\x20\x20\x20\x20\x20\x20\x20\x20}\x0a',_0x11003c+=_0x29cfc3(0x17c),_0x11003c+='\x20\x20\x20\x20}\x0a\x0a\x0a',_0x11003c+='}',!fs[_0x29cfc3(0x18f)]((0x0,path_1[_0x29cfc3(0x1a2)])(_0x1daa38))&&fs[_0x29cfc3(0x174)]((0x0,path_1[_0x29cfc3(0x1a2)])(_0x1daa38),{'recursive':!![]}),fs['writeFileSync'](_0x1daa38,_0x11003c,_0x29cfc3(0x1b1));}}
|
|
1
|
+
const a8_0x3adf21=a8_0xc0c1;function a8_0x5b60(){const _0x8450db=['Entity[],\x20number]>\x20{\x0a','/entity\x27;\x0a','3QFaWlP','path','\x20\x20\x20\x20@Inject()\x20EventService:\x20EventService;\x0a','\x20*\x20**/\x0a','\x20\x20\x20\x20\x20\x20\x20\x20return\x20tmpModel\x0a','DTOCreate)\x20{\x0a','Entity>,\x20options:\x20SearchOptions\x20=\x20{})\x20{\x0a','/entities/','Entity>,\x20params:\x20','3500896suOwHE','.create(params)\x0a\x0a','\x20\x20\x20\x20async\x20detail(conditions?:\x20SearchParams<','existsSync','Entity\x20}\x20from\x20\x27','import\x20{\x20','\x20\x20\x20\x20\x20\x20\x20\x20return\x20[pagelist,\x20pagetotal];\x0a','dirname','Error._NOTFIND_,\x20{\x20message:\x20\x27','import\x20{\x20Inject,\x20Singleton\x20}\x20from\x20\x27anncic-api\x27;\x0a','Handler\x20{\x0a\x0a','.search(conditions,\x20{},\x20options).then(async\x20search\x20=>\x20{\x0a\x0a','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20return\x20search.getOneOrFail().catch(()\x20=>\x20{\x0a','/Create\x27;\x0a','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20deletes.push(await\x20this.','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20return\x20search.getMany();\x0a','9irnTuR','\x20\x20\x20\x20}\x0a\x0a\x0a','export\x20class\x20','\x20\x20\x20\x20@Inject()\x20CacheService:\x20CacheService;\x0a','apply','665988yytHuh','string','\x20\x20\x20\x20\x20*\x20修改数据\x0a','1309926XVJQWA','\x27;\x0a','/exceptions/','\x20\x20\x20\x20\x20\x20\x20\x20const\x20deletes:\x20any\x20=\x20[],\x20tmpModels\x20=\x20await\x20this.','\x20\x20\x20\x20async\x20remove(conditions:\x20SearchParams<','\x20\x20\x20\x20\x20\x20\x20\x20return\x20deletes\x0a','\x20\x20\x20\x20\x20\x20\x20\x20});\x0a\x0a','Error\x20}\x20from\x20\x27','toString','\x20\x20\x20\x20\x20*\x20恢复删除的数据\x0a','\x20\x20\x20\x20@InjectRepository(','\x20\x20\x20\x20\x20\x20\x20\x20}\x0a','\x20\x20\x20\x20\x20\x20\x20\x20const\x20restores:\x20any\x20=\x20[],\x20tmpModels\x20=\x20await\x20this.','\x20\x20\x20\x20\x20*\x20添加数据\x0a','mkdirSync','DTOCreate\x20}\x20from\x20\x27','\x20\x20\x20\x20\x20\x20\x20\x20this.','search','.softRemove(tmpModel))\x0a','6257060dhTVJo','.ts','\x20*\x20','\x20\x20\x20\x20/**\x0a','@/apps/','.merge(tmpModel,\x20params);\x0a','\x20\x20\x20\x20\x20*\x20删除数据\x0a','.recover(tmpModel))\x0a','(((.+)+)+)+$','4880430KjqGqM','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20});\x0a','\x20\x20\x20\x20\x20\x20\x20\x20for\x20(let\x20tmpModel\x20of\x20tmpModels)\x20{\x0a','\x20\x20\x20\x20\x20*\x20**/\x0a','\x20\x20\x20\x20async\x20restores(conditions:\x20SearchParams<','import\x20{\x20InjectRepository,\x20SearchParams,\x20SearchPaginate,\x20SearchOptions\x20}\x20from\x20\x27@anncic-api/typeorm\x27;\x0a\x0a','.save(tmpModel);\x0a','.search(conditions,\x20pageinfo,\x20options).then(async\x20search\x20=>\x20{\x0a\x0a','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20search.withDeleted().andWhere(`${search.alias}.deleted_at\x20IS\x20NOT\x20NULL`);\x0a','\x20\x20\x20\x20\x20\x20\x20\x20return\x20restores\x0a','writeFileSync','1236710VoVERd','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20throw\x20new\x20','default','\x20\x20\x20\x20\x20\x20\x20\x20return\x20await\x20this.','/handlers/','/validators/','\x20\x20\x20\x20\x20*\x20数据列表\x0a','\x20\x20\x20\x20\x20*\x20数据详情\x0a','15919064KCHIaD','import\x20{\x20CacheService,\x20EventService,\x20ValidatorService\x20}\x20from\x20\x27anncic-api\x27;\x0a','Error(','\x20\x20\x20\x20async\x20list(conditions?:\x20SearchParams<','\x20\x20\x20\x20@Inject()\x20ValidatorService:\x20ValidatorService;\x0a\x0a','@Singleton()\x0a','\x20\x20\x20\x20async\x20create(params:\x20','DTOUpdate\x20}\x20from\x20\x27','Entity>,\x20pageinfo?:\x20SearchPaginate,\x20options:\x20SearchOptions\x20=\x20{}):\x20Promise<[','\x20\x20\x20\x20\x20\x20\x20\x20const\x20tmpModel\x20=\x20await\x20this.'];a8_0x5b60=function(){return _0x8450db;};return a8_0x5b60();}(function(_0x2b2179,_0x542024){const _0x3d848a=a8_0xc0c1,_0x5c1e61=_0x2b2179();while(!![]){try{const _0x3bfce3=parseInt(_0x3d848a(0x193))/0x1+parseInt(_0x3d848a(0x15e))/0x2+parseInt(_0x3d848a(0x172))/0x3*(-parseInt(_0x3d848a(0x190))/0x4)+parseInt(_0x3d848a(0x1a6))/0x5+-parseInt(_0x3d848a(0x153))/0x6+parseInt(_0x3d848a(0x17b))/0x7+-parseInt(_0x3d848a(0x166))/0x8*(parseInt(_0x3d848a(0x18b))/0x9);if(_0x3bfce3===_0x542024)break;else _0x5c1e61['push'](_0x5c1e61['shift']());}catch(_0x57fc64){_0x5c1e61['push'](_0x5c1e61['shift']());}}}(a8_0x5b60,0xad594));const a8_0x201d31=(function(){let _0x42ee05=!![];return function(_0x55b7a0,_0x3421ba){const _0x504e80=_0x42ee05?function(){const _0x3993a0=a8_0xc0c1;if(_0x3421ba){const _0x95308e=_0x3421ba[_0x3993a0(0x18f)](_0x55b7a0,arguments);return _0x3421ba=null,_0x95308e;}}:function(){};return _0x42ee05=![],_0x504e80;};}()),a8_0xec420c=a8_0x201d31(this,function(){const _0x4e83f8=a8_0xc0c1;return a8_0xec420c[_0x4e83f8(0x19b)]()[_0x4e83f8(0x1a4)](_0x4e83f8(0x152))[_0x4e83f8(0x19b)]()['constructor'](a8_0xec420c)['search'](_0x4e83f8(0x152));});function a8_0xc0c1(_0x23b761,_0x4d9b53){const _0x45e153=a8_0x5b60();return a8_0xc0c1=function(_0xec420c,_0x201d31){_0xec420c=_0xec420c-0x14c;let _0x5b6029=_0x45e153[_0xec420c];return _0x5b6029;},a8_0xc0c1(_0x23b761,_0x4d9b53);}a8_0xec420c();'use strict';Object['defineProperty'](exports,'__esModule',{'value':!![]});const fs=require('fs'),path_1=require(a8_0x3adf21(0x173));async function default_1({tablestartUp:_0x520ba2,tablestartUpShort:_0x5632a7,basedir:_0x49d39b,Primary:_0x125ac0,Comment:_0xee3ea0,moduleName:_0x1d684e,apporbasic:_0x28dd83}){const _0xaf082d=a8_0x3adf21,_0x1bd400=_0x49d39b+(_0xaf082d(0x162)+_0x5632a7+_0xaf082d(0x1a7));if(!fs[_0xaf082d(0x17e)](_0x1bd400)){let _0x281bf6='';_0x281bf6+=_0xaf082d(0x184),_0x281bf6+=_0xaf082d(0x167),_0x281bf6+=_0xaf082d(0x158),_0x281bf6+=_0xaf082d(0x180)+_0x520ba2+'\x20}\x20from\x20\x27'+(typeof _0x1d684e==_0xaf082d(0x191)?_0xaf082d(0x14e)+_0x1d684e:'@/'+_0x28dd83)+_0xaf082d(0x179)+_0x5632a7+'\x27;\x0a',_0x281bf6+=_0xaf082d(0x180)+_0x520ba2+_0xaf082d(0x19a)+(typeof _0x1d684e==_0xaf082d(0x191)?_0xaf082d(0x14e)+_0x1d684e:'@/'+_0x28dd83)+_0xaf082d(0x195)+_0x5632a7+_0xaf082d(0x194),_0x281bf6+=_0xaf082d(0x180)+_0x520ba2+_0xaf082d(0x17f)+(typeof _0x1d684e==_0xaf082d(0x191)?'@/apps/'+_0x1d684e:'@/'+_0x28dd83)+_0xaf082d(0x179)+_0x5632a7+_0xaf082d(0x171),_0x281bf6+='import\x20{\x20'+_0x520ba2+_0xaf082d(0x1a2)+(typeof _0x1d684e=='string'?'@/apps/'+_0x1d684e:'@/'+_0x28dd83)+_0xaf082d(0x163)+_0x5632a7+_0xaf082d(0x188),_0x281bf6+=_0xaf082d(0x180)+_0x520ba2+_0xaf082d(0x16d)+(typeof _0x1d684e=='string'?_0xaf082d(0x14e)+_0x1d684e:'@/'+_0x28dd83)+'/validators/'+_0x5632a7+'/Update\x27;\x0a',_0x281bf6+='\x0a',_0x281bf6+='/**\x0a',_0x281bf6+=_0xaf082d(0x14c)+_0xee3ea0+'\x0a',_0x281bf6+=_0xaf082d(0x175),_0x281bf6+=_0xaf082d(0x16b),_0x281bf6+=_0xaf082d(0x18d)+_0x520ba2+_0xaf082d(0x185),_0x281bf6+=_0xaf082d(0x18e),_0x281bf6+=_0xaf082d(0x174),_0x281bf6+=_0xaf082d(0x16a),_0x281bf6+=_0xaf082d(0x19d)+_0x520ba2+')\x20'+_0x5632a7+':\x20'+_0x520ba2+';\x0a\x0a\x0a',_0x281bf6+=_0xaf082d(0x14d),_0x281bf6+=_0xaf082d(0x164),_0x281bf6+=_0xaf082d(0x156),_0x281bf6+=_0xaf082d(0x169)+_0x520ba2+_0xaf082d(0x16e)+_0x520ba2+_0xaf082d(0x170),_0x281bf6+='\x20\x20\x20\x20\x20\x20\x20\x20const\x20[pagelist,\x20pagetotal]\x20=\x20await\x20this.'+_0x5632a7+_0xaf082d(0x15a),_0x281bf6+='\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20return\x20search.getManyAndCount();\x0a',_0x281bf6+=_0xaf082d(0x199),_0x281bf6+=_0xaf082d(0x181),_0x281bf6+=_0xaf082d(0x18c),_0x281bf6+=_0xaf082d(0x14d),_0x281bf6+=_0xaf082d(0x165),_0x281bf6+=_0xaf082d(0x156),_0x281bf6+=_0xaf082d(0x17d)+_0x520ba2+_0xaf082d(0x178),_0x281bf6+=_0xaf082d(0x16f)+_0x5632a7+_0xaf082d(0x186),_0x281bf6+=_0xaf082d(0x187),_0x281bf6+=_0xaf082d(0x15f)+_0x520ba2+_0xaf082d(0x168)+_0x520ba2+_0xaf082d(0x183)+_0xee3ea0+'不存在\x27\x20})\x0a',_0x281bf6+=_0xaf082d(0x154),_0x281bf6+='\x20\x20\x20\x20\x20\x20\x20\x20});\x0a\x0a',_0x281bf6+=_0xaf082d(0x176),_0x281bf6+=_0xaf082d(0x18c),_0x281bf6+=_0xaf082d(0x14d),_0x281bf6+=_0xaf082d(0x1a0),_0x281bf6+=_0xaf082d(0x156),_0x281bf6+=_0xaf082d(0x16c)+_0x520ba2+_0xaf082d(0x177),_0x281bf6+='\x20\x20\x20\x20\x20\x20\x20\x20const\x20tmpModel\x20=\x20this.'+_0x5632a7+_0xaf082d(0x17c),_0x281bf6+='\x20\x20\x20\x20\x20\x20\x20\x20return\x20await\x20this.'+_0x5632a7+_0xaf082d(0x159),_0x281bf6+='\x20\x20\x20\x20}\x0a\x0a\x0a',_0x281bf6+=_0xaf082d(0x14d),_0x281bf6+=_0xaf082d(0x192),_0x281bf6+=_0xaf082d(0x156),_0x281bf6+='\x20\x20\x20\x20async\x20update(conditions:\x20SearchParams<'+_0x520ba2+_0xaf082d(0x17a)+_0x520ba2+'DTOUpdate,\x20options:\x20SearchOptions\x20=\x20{})\x20{\x0a',_0x281bf6+=_0xaf082d(0x16f)+_0x5632a7+_0xaf082d(0x186),_0x281bf6+=_0xaf082d(0x187),_0x281bf6+=_0xaf082d(0x15f)+_0x520ba2+'Error('+_0x520ba2+_0xaf082d(0x183)+_0xee3ea0+'不存在\x27\x20})\x0a',_0x281bf6+=_0xaf082d(0x154),_0x281bf6+=_0xaf082d(0x199),_0x281bf6+=_0xaf082d(0x1a3)+_0x5632a7+_0xaf082d(0x14f),_0x281bf6+=_0xaf082d(0x161)+_0x5632a7+_0xaf082d(0x159),_0x281bf6+=_0xaf082d(0x18c),_0x281bf6+=_0xaf082d(0x14d),_0x281bf6+=_0xaf082d(0x150),_0x281bf6+='\x20\x20\x20\x20\x20*\x20**/\x0a',_0x281bf6+=_0xaf082d(0x197)+_0x520ba2+_0xaf082d(0x178),_0x281bf6+=_0xaf082d(0x196)+_0x5632a7+_0xaf082d(0x186),_0x281bf6+='\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20return\x20search.getMany();\x0a',_0x281bf6+=_0xaf082d(0x199),_0x281bf6+=_0xaf082d(0x155),_0x281bf6+=_0xaf082d(0x189)+_0x5632a7+_0xaf082d(0x1a5),_0x281bf6+='\x20\x20\x20\x20\x20\x20\x20\x20}\x0a',_0x281bf6+=_0xaf082d(0x198),_0x281bf6+=_0xaf082d(0x18c),_0x281bf6+='\x20\x20\x20\x20/**\x0a',_0x281bf6+=_0xaf082d(0x19c),_0x281bf6+=_0xaf082d(0x156),_0x281bf6+=_0xaf082d(0x157)+_0x520ba2+_0xaf082d(0x178),_0x281bf6+=_0xaf082d(0x19f)+_0x5632a7+_0xaf082d(0x186),_0x281bf6+=_0xaf082d(0x15b),_0x281bf6+=_0xaf082d(0x18a),_0x281bf6+='\x20\x20\x20\x20\x20\x20\x20\x20});\x0a\x0a',_0x281bf6+=_0xaf082d(0x155),_0x281bf6+='\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20restores.push(await\x20this.'+_0x5632a7+_0xaf082d(0x151),_0x281bf6+=_0xaf082d(0x19e),_0x281bf6+=_0xaf082d(0x15c),_0x281bf6+='\x20\x20\x20\x20}\x0a\x0a\x0a',_0x281bf6+='}',!fs[_0xaf082d(0x17e)]((0x0,path_1[_0xaf082d(0x182)])(_0x1bd400))&&fs[_0xaf082d(0x1a1)]((0x0,path_1[_0xaf082d(0x182)])(_0x1bd400),{'recursive':!![]}),fs[_0xaf082d(0x15d)](_0x1bd400,_0x281bf6,'utf-8');}}exports[a8_0x3adf21(0x160)]=default_1;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export default function ({ tablestartUp, tablestartUpShort, basedir, Fields, Comment }: {
|
|
2
|
-
tablestartUp: any;
|
|
3
|
-
tablestartUpShort: any;
|
|
4
|
-
basedir: any;
|
|
5
|
-
Fields: any;
|
|
6
|
-
Comment: any;
|
|
7
|
-
}): Promise<void>;
|
|
1
|
+
export default function ({ tablestartUp, tablestartUpShort, basedir, Fields, Comment }: {
|
|
2
|
+
tablestartUp: any;
|
|
3
|
+
tablestartUpShort: any;
|
|
4
|
+
basedir: any;
|
|
5
|
+
Fields: any;
|
|
6
|
+
Comment: any;
|
|
7
|
+
}): Promise<void>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a9_0x1ada27=a9_0x13c8;(function(_0x33feb5,_0x3d6833){const _0x18ce9b=a9_0x13c8,_0x539dbf=_0x33feb5();while(!![]){try{const _0x28ed1e=-parseInt(_0x18ce9b(0x88))/0x1*(-parseInt(_0x18ce9b(0x98))/0x2)+parseInt(_0x18ce9b(0x7f))/0x3*(parseInt(_0x18ce9b(0xa4))/0x4)+parseInt(_0x18ce9b(0x80))/0x5*(parseInt(_0x18ce9b(0x8e))/0x6)+-parseInt(_0x18ce9b(0x7d))/0x7*(-parseInt(_0x18ce9b(0xad))/0x8)+parseInt(_0x18ce9b(0x97))/0x9+-parseInt(_0x18ce9b(0xb6))/0xa*(parseInt(_0x18ce9b(0xab))/0xb)+-parseInt(_0x18ce9b(0x9b))/0xc*(parseInt(_0x18ce9b(0xc8))/0xd);if(_0x28ed1e===_0x3d6833)break;else _0x539dbf['push'](_0x539dbf['shift']());}catch(_0x43e7c5){_0x539dbf['push'](_0x539dbf['shift']());}}}(a9_0x1751,0x91757));const a9_0x49ebc5=(function(){let _0x5dd34d=!![];return function(_0x4f00b3,_0x288e06){const _0x431261=_0x5dd34d?function(){const _0x492c1c=a9_0x13c8;if(_0x288e06){const _0x12c519=_0x288e06[_0x492c1c(0x7c)](_0x4f00b3,arguments);return _0x288e06=null,_0x12c519;}}:function(){};return _0x5dd34d=![],_0x431261;};}()),a9_0x5c484a=a9_0x49ebc5(this,function(){const _0x3a01d6=a9_0x13c8;return a9_0x5c484a['toString']()['search']('(((.+)+)+)+$')['toString']()[_0x3a01d6(0xbe)](a9_0x5c484a)[_0x3a01d6(0xa0)](_0x3a01d6(0x9c));});a9_0x5c484a();'use strict';Object[a9_0x1ada27(0x77)](exports,a9_0x1ada27(0xb8),{'value':!![]});function a9_0x13c8(_0x56cb51,_0x225ced){const _0x5bbbff=a9_0x1751();return a9_0x13c8=function(_0x5c484a,_0x49ebc5){_0x5c484a=_0x5c484a-0x74;let _0x175130=_0x5bbbff[_0x5c484a];return _0x175130;},a9_0x13c8(_0x56cb51,_0x225ced);}const fs=require('fs'),path_1=require(a9_0x1ada27(0xa1)),helper_1=require(a9_0x1ada27(0x74));function a9_0x1751(){const _0x48e899=['\x20\x20\x20\x20\x20\x20\x20\x20query.andWhere(`${query.alias}.created_at\x20<=\x20:created_at_end`,\x20{\x20created_at_end\x20})\x0a','\x20\x20\x20\x20\x20\x20\x20\x20if(\x20updated_at_between.length\x20==\x202\x20){\x0a','\x20\x20\x20\x20\x20\x20\x20\x20}\x0a','longtext','\x20\x20\x20\x20\x20\x20\x20\x20query.andWhere(`${query.alias}.updated_at\x20<=\x20:updated_at_end`,\x20{\x20updated_at_end\x20})\x0a','-自定义检索\x0a','_end`,\x20{\x20','4944150rtSZYR','7802zrexsF','\x20\x20\x20\x20@Search(\x27updated_at_end\x27,\x20\x27修改时间:<=\x20起始时间(之前)\x27)\x0a','%column%','12ywbeqU','(((.+)+)+)+$','在选定时间之内\x27)\x0a','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20this.','Comment','search','path','\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','/searchs/','4RBghTP','\x20\x20\x20\x20}\x0a\x0a','writeFileSync','\x20*\x20**/\x0a','\x20<=\x20:','\x20\x20\x20\x20async\x20','_end\x20})\x0a','22NzTSyE','indexOf','120vRghNZ','\x20\x20\x20\x20@Search(\x27created_at_end\x27,\x20\x27创建时间:<=\x20起始时间(之前)\x27)\x0a','.ts','_start`,\x20{\x20',':<=\x20起始时间(之前)\x27)\x0a','\x20\x20\x20\x20\x20\x20\x20\x20query.andWhere(`${query.alias}.updated_at\x20>=\x20:updated_at_start`,\x20{\x20updated_at_start\x20})\x0a','_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_end(query,\x20dayjs(created_at_between[1]).format(\x27YYYY-MM-DD\x20HH:mm:ss\x27))\x0a','export\x20class\x20','5043710KtZGCA','_start\x20})\x0a','__esModule','\x20\x20\x20\x20async\x20updated_at_between(query:\x20SelectQueryBuilder<ObjectLiteral>,\x20updated_at_between:\x20string[])\x20{\x0a','replace',':>=\x20起始时间(之后)\x27)\x0a','\x20\x20\x20\x20async\x20created_at_between(query:\x20SelectQueryBuilder<ObjectLiteral>,\x20created_at_between:\x20string[])\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','constructor','\x20\x20\x20\x20async\x20created_at_end(query:\x20SelectQueryBuilder<ObjectLiteral>,\x20created_at_end:\x20string)\x20{\x0a','\x20\x20\x20\x20async\x20updated_at_start(query:\x20SelectQueryBuilder<ObjectLiteral>,\x20updated_at_start:\x20string)\x20{\x0a','\x20\x20\x20\x20async\x20created_at_start(query:\x20SelectQueryBuilder<ObjectLiteral>,\x20created_at_start:\x20string)\x20{\x0a','\x20\x20\x20\x20@Search(\x27','dirname','deleted_at','\x20\x20\x20\x20@Search(\x27created_at_between\x27,\x20\x27创建时间在选定时间之内\x27)\x0a','_end(query,\x20dayjs(','timestamp','23706839wVEXHh','../helper','text','\x20\x20\x20\x20\x20\x20\x20\x20query.andWhere(`${query.alias}.','defineProperty','_between(query:\x20SelectQueryBuilder<ObjectLiteral>,\x20','_between:\x20string[])\x20{\x0a','\x20*\x20','\x20\x20\x20\x20async\x20updated_at_end(query:\x20SelectQueryBuilder<ObjectLiteral>,\x20updated_at_end:\x20string)\x20{\x0a','apply','248451tBWUfJ','_between.length\x20==\x202\x20){\x0a','2719029xyWrod','10jKoznd','json','_between[0]).format(\x27YYYY-MM-DD\x20HH:mm:ss\x27))\x0a','\x20\x20\x20\x20\x20\x20\x20\x20if(\x20','import\x20{\x20Provide,\x20Search,\x20ObjectLiteral,\x20SelectQueryBuilder\x20}\x20from\x20\x27@anncic-api/typeorm\x27;\x0a\x0a','date','\x20\x20\x20\x20\x20\x20\x20\x20if(\x20created_at_between.length\x20==\x202\x20){\x0a','\x20>=\x20:','282ZqDIeK','_between\x27,\x20\x27','Type','Field','utf-8','Search\x20{\x0a\x0a','1019922NlMnli','_end\x27,\x20\x27'];a9_0x1751=function(){return _0x48e899;};return a9_0x1751();}async function default_1({tablestartUp:_0x174197,tablestartUpShort:_0x45f64a,basedir:_0x480392,Fields:_0x1d1f11,Comment:_0x25a45d}){const _0xaba420=a9_0x1ada27,_0x1311fd=_0x480392+(_0xaba420(0xa3)+_0x45f64a+_0xaba420(0xaf));if(!fs['existsSync'](_0x1311fd)){let _0x48a671='',_0x1c0f45='';for(let _0xc467f5 in _0x1d1f11){let _0x192b69=_0x1d1f11[_0xc467f5],_0x349cab=(0x0,helper_1['getProp'])(_0x192b69[_0xaba420(0x8a)]);if(_0x192b69[_0xaba420(0x8b)]=='displayorder'||_0x192b69[_0xaba420(0x8b)]=='created_at'||_0x192b69[_0xaba420(0x8b)]=='updated_at'||_0x192b69['Field']==_0xaba420(0xc4))continue;if(_0x349cab==_0xaba420(0x81)){}else{if(_0x349cab==_0xaba420(0x75)){}else{if(_0x349cab==_0xaba420(0x93)){}else[_0xaba420(0x85),'datetime',_0xaba420(0xc7)][_0xaba420(0xac)](_0x349cab)>-0x1&&(_0x48a671+=_0xaba420(0xc2)+_0x192b69[_0xaba420(0x8b)]+_0xaba420(0x89)+_0x192b69['Comment']+_0xaba420(0x9d),_0x48a671+='\x20\x20\x20\x20async\x20'+_0x192b69[_0xaba420(0x8b)]+_0xaba420(0x78)+_0x192b69[_0xaba420(0x8b)]+_0xaba420(0x79),_0x48a671+=_0xaba420(0x83)+_0x192b69[_0xaba420(0x8b)]+_0xaba420(0x7e),_0x48a671+=_0xaba420(0x9e)+_0x192b69[_0xaba420(0x8b)]+_0xaba420(0xc6)+_0x192b69[_0xaba420(0x8b)]+_0xaba420(0xb3),_0x48a671+='\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20this.'+_0x192b69[_0xaba420(0x8b)]+'_start(query,\x20dayjs('+_0x192b69[_0xaba420(0x8b)]+_0xaba420(0x82),_0x48a671+='\x20\x20\x20\x20\x20\x20\x20\x20}\x0a',_0x48a671+=_0xaba420(0xa5),_0x48a671+=_0xaba420(0xc2)+_0x192b69[_0xaba420(0x8b)]+'_start\x27,\x20\x27'+_0x192b69[_0xaba420(0x9f)]+_0xaba420(0xbb),_0x48a671+=_0xaba420(0xa9)+_0x192b69[_0xaba420(0x8b)]+'_start(query:\x20SelectQueryBuilder<ObjectLiteral>,\x20'+_0x192b69[_0xaba420(0x8b)]+'_start:\x20string)\x20{\x0a',_0x48a671+='\x20\x20\x20\x20\x20\x20\x20\x20query.andWhere(`${query.alias}.'+_0x192b69[_0xaba420(0x8b)]+_0xaba420(0x87)+_0x192b69[_0xaba420(0x8b)]+_0xaba420(0xb0)+_0x192b69[_0xaba420(0x8b)]+_0xaba420(0xb7),_0x48a671+=_0xaba420(0xa5),_0x48a671+=_0xaba420(0xc2)+_0x192b69[_0xaba420(0x8b)]+_0xaba420(0x8f)+_0x192b69[_0xaba420(0x9f)]+_0xaba420(0xb1),_0x48a671+='\x20\x20\x20\x20async\x20'+_0x192b69[_0xaba420(0x8b)]+'_end(query:\x20SelectQueryBuilder<ObjectLiteral>,\x20'+_0x192b69[_0xaba420(0x8b)]+'_end:\x20string)\x20{\x0a',_0x48a671+=_0xaba420(0x76)+_0x192b69[_0xaba420(0x8b)]+_0xaba420(0xa8)+_0x192b69['Field']+_0xaba420(0x96)+_0x192b69[_0xaba420(0x8b)]+_0xaba420(0xaa),_0x48a671+=_0xaba420(0xa5));}}}_0x48a671+=_0xaba420(0xc5),_0x48a671+=_0xaba420(0xbc),_0x48a671+=_0xaba420(0x86),_0x48a671+=_0xaba420(0xb4),_0x48a671+=_0xaba420(0xa2),_0x48a671+='\x20\x20\x20\x20\x20\x20\x20\x20}\x0a',_0x48a671+='\x20\x20\x20\x20}\x0a\x0a',_0x48a671+='\x20\x20\x20\x20@Search(\x27created_at_start\x27,\x20\x27创建时间:>=\x20起始时间(之后)\x27)\x0a',_0x48a671+=_0xaba420(0xc1),_0x48a671+='\x20\x20\x20\x20\x20\x20\x20\x20query.andWhere(`${query.alias}.created_at\x20>=\x20:created_at_start`,\x20{\x20created_at_start\x20})\x0a',_0x48a671+=_0xaba420(0xa5),_0x48a671+=_0xaba420(0xae),_0x48a671+=_0xaba420(0xbf),_0x48a671+=_0xaba420(0x90),_0x48a671+='\x20\x20\x20\x20}\x0a\x0a',_0x48a671+='\x20\x20\x20\x20@Search(\x27updated_at_between\x27,\x20\x27修改时间在选定时间之内\x27)\x0a',_0x48a671+=_0xaba420(0xb9),_0x48a671+=_0xaba420(0x91),_0x48a671+=_0xaba420(0xbd),_0x48a671+='\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',_0x48a671+=_0xaba420(0x92),_0x48a671+=_0xaba420(0xa5),_0x48a671+='\x20\x20\x20\x20@Search(\x27updated_at_start\x27,\x20\x27修改时间:>=\x20起始时间(之后)\x27)\x0a',_0x48a671+=_0xaba420(0xc0),_0x48a671+=_0xaba420(0xb2),_0x48a671+=_0xaba420(0xa5),_0x48a671+=_0xaba420(0x99),_0x48a671+=_0xaba420(0x7b),_0x48a671+=_0xaba420(0x94),_0x48a671+=_0xaba420(0xa5),_0x1c0f45+=_0xaba420(0x84),_0x1c0f45+='/**\x0a',_0x1c0f45+=_0xaba420(0x7a)+_0x25a45d+_0xaba420(0x95),_0x1c0f45+=_0xaba420(0xa7),_0x1c0f45+='@Provide()\x0a',_0x1c0f45+=_0xaba420(0xb5)+_0x174197+_0xaba420(0x8d),_0x1c0f45+=_0xaba420(0x9a),_0x1c0f45+='}',_0x1c0f45=_0x1c0f45[_0xaba420(0xba)](_0xaba420(0x9a),_0x48a671),!fs['existsSync']((0x0,path_1[_0xaba420(0xc3)])(_0x1311fd))&&fs['mkdirSync']((0x0,path_1[_0xaba420(0xc3)])(_0x1311fd),{'recursive':!![]}),fs[_0xaba420(0xa6)](_0x1311fd,_0x1c0f45,_0xaba420(0x8c));}}exports['default']=default_1;
|
|
@@ -1,11 +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>;
|
|
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>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a10_0x14ba09=a10_0x22b8;(function(_0x35c912,_0x2e5a9f){const _0x1a6160=a10_0x22b8,_0xfd7f2b=_0x35c912();while(!![]){try{const _0x2196f3=-parseInt(_0x1a6160(0xc0))/0x1*(parseInt(_0x1a6160(0xa7))/0x2)+-parseInt(_0x1a6160(0xa9))/0x3*(parseInt(_0x1a6160(0x92))/0x4)+parseInt(_0x1a6160(0x77))/0x5*(parseInt(_0x1a6160(0x73))/0x6)+parseInt(_0x1a6160(0x7f))/0x7+parseInt(_0x1a6160(0x74))/0x8+-parseInt(_0x1a6160(0x6b))/0x9*(-parseInt(_0x1a6160(0xa1))/0xa)+parseInt(_0x1a6160(0xa8))/0xb;if(_0x2196f3===_0x2e5a9f)break;else _0xfd7f2b['push'](_0xfd7f2b['shift']());}catch(_0x3d8eb0){_0xfd7f2b['push'](_0xfd7f2b['shift']());}}}(a10_0x1227,0x5ed68));const a10_0x2bb65d=(function(){let _0xc8c2e1=!![];return function(_0x295cfc,_0x3de18d){const _0x382cca=_0xc8c2e1?function(){if(_0x3de18d){const _0x159358=_0x3de18d['apply'](_0x295cfc,arguments);return _0x3de18d=null,_0x159358;}}:function(){};return _0xc8c2e1=![],_0x382cca;};}()),a10_0x2292d6=a10_0x2bb65d(this,function(){const _0x36ed07=a10_0x22b8;return a10_0x2292d6[_0x36ed07(0xa5)]()[_0x36ed07(0xaf)]('(((.+)+)+)+$')[_0x36ed07(0xa5)]()['constructor'](a10_0x2292d6)['search'](_0x36ed07(0xdd));});a10_0x2292d6();'use strict';function a10_0x22b8(_0x32742d,_0x319ea9){const _0x3a7eb7=a10_0x1227();return a10_0x22b8=function(_0x2292d6,_0x2bb65d){_0x2292d6=_0x2292d6-0x6b;let _0x12279c=_0x3a7eb7[_0x2292d6];return _0x12279c;},a10_0x22b8(_0x32742d,_0x319ea9);}Object[a10_0x14ba09(0x8b)](exports,a10_0x14ba09(0x94),{'value':!![]}),exports['default']=default_1;const fs=require('fs'),helper_1=require(a10_0x14ba09(0x8c));async function default_1({controllers:_0x4ae51e,tablestartUp:_0xbffaa5,tablestartUpShort:_0x340eb6,basedir:_0x361039,Primary:_0x3d6652,Fields:_0x32b5f8,Comment:_0x17260d,moduleName:_0x21384f,apporbasic:_0x160014}){const _0x242095=a10_0x14ba09,_0x11230a=_0x361039+(_0x242095(0xab)+_0x340eb6);!fs['existsSync'](_0x11230a)&&fs[_0x242095(0xd5)](_0x11230a,{'recursive':!![]}),await DTOCreate({'controllers':_0x4ae51e,'tablestartUp':_0xbffaa5,'tablestartUpShort':_0x340eb6,'basedir':_0x361039,'Fields':_0x32b5f8,'Comment':_0x17260d,'moduleName':_0x21384f,'apporbasic':_0x160014}),await DTOUpdate({'controllers':_0x4ae51e,'tablestartUp':_0xbffaa5,'tablestartUpShort':_0x340eb6,'basedir':_0x361039,'Fields':_0x32b5f8,'Comment':_0x17260d,'moduleName':_0x21384f,'apporbasic':_0x160014}),await DTOSearch({'controllers':_0x4ae51e,'tablestartUp':_0xbffaa5,'tablestartUpShort':_0x340eb6,'basedir':_0x361039,'Fields':_0x32b5f8,'Primary':_0x3d6652,'Comment':_0x17260d,'moduleName':_0x21384f,'apporbasic':_0x160014});}function a10_0x1227(){const _0x4cebe2=['(((.+)+)+)+$','\x20\x20\x20\x20created_at_between?:\x20string[];\x0a\x0a','Enum\x20}\x20from\x20\x27','5644494mLDxbf','string','DTOUpdate,\x20[\x27displayorder\x27])\x20{\x0a\x0a','number','?:\x20\x27','Enum,\x20\x27','\x27,\x20RuleType.date()','\x20\x20\x20\x20@Rule(\x27默认排序\x27,\x20RuleType.number())\x0a','6FZwfsH','2516128SWwfez','\x27,\x20RuleType.number()','\x27,\x20RuleType.date())\x0a','414785QCNWSQ','displayorder','\x20\x20\x20\x20@Rule(\x27创建时间\x27,\x20RuleType.date(),\x20\x27>=\x20起始时间(之后)\x27)\x0a','toUpperCase','%SearchDtoColumn%','existsSync','import\x20{\x20Rule,\x20RuleType\x20}\x20from\x20\x27@anncic-api/validator\x27;\x0a\x0a','/enums/','2563855EYPJhf','?:\x20number;\x0a\x0a','substring','\x27;\x0a','@/apps/','Comment','getEnum','\x27,\x20RuleType.string()','\x20*\x20数据添加验证\x0a','DTOSearch\x20extends\x20OmitDto(','export\x20class\x20','\x27,\x20RuleType.number().valid(...getAnnEnumArray(','defineProperty','../helper','\x27,\x20\x27','?:\x20string;\x0a\x0a','writeFileSync','%DtoColumn%','_end?:\x20string;\x0a\x0a','2898604QrCJhx','\x27;\x0a\x0a','__esModule','replace','created_at','\x20\x20\x20\x20displayorder?:\x20number;\x0a\x0a','datetime','\x20\x20\x20\x20created_at_start?:\x20string;\x0a\x0a','.required()','\x20\x20\x20\x20@Rule(\x27修改时间\x27,\x20RuleType.date(),\x20\x27<\x20起始时间(之前)\x27)\x0a','import\x20{\x20','\x20\x20\x20\x20@Rule(\x27修改时间\x27,\x20RuleType.date(),\x20\x27>=\x20起始时间(之后)\x27)\x0a','\x20\x20\x20\x20@Rule(\x27创建时间\x27,\x20RuleType.date(),\x20\x27<\x20起始时间(之前)\x27)\x0a','deleted_at','boolean','10xxiuQb','getProp',':\x20number;\x0a\x0a','\x20\x20\x20\x20@Rule(\x27创建时间\x27,\x20RuleType.array().items(RuleType.string()),\x20\x27在选定时间之内\x27)\x0a','toString','\x20\x20\x20\x20@Rule(\x27修改时间\x27,\x20RuleType.array().items(RuleType.string()),\x20\x27在选定时间之内\x27)\x0a','4UOCoyb','4074213hYMiGM','3IXWITp','import\x20{\x20Rule,\x20RuleType,\x20OmitDto\x20}\x20from\x20\x27@anncic-api/validator\x27;\x0a\x0a','/validators/','\x27,\x20RuleType.string().valid(\x27','double','decimal','search',':\x20string;\x0a\x0a','/Search.ts','enum','\x27)))\x0a','YES','\x20*\x20数据更新验证\x0a','\x20\x20\x20\x20updated_at_start?:\x20string;\x0a\x0a','toLowerCase','\x27,\x20RuleType.number())\x0a','_between?:\x20string[];\x0a\x0a','join','Type','longtext','DTOUpdate\x20{\x0a\x0a','\x20\x20\x20\x20updated_at_end?:\x20string;\x0a\x0a','/**\x0a','324090pEfIjD','\x27))\x0a','text','\x20*\x20','tinyint','timestamp','json','utf-8','find',':\x20\x27','Field','\x27,\x20RuleType.any())\x0a','}\x0a\x0a','Null',':\x20any\x20|\x20any[];\x0a\x0a','\x20\x20\x20\x20','\x27\x20|\x20\x27','DTOUpdate\x20extends\x20OmitDto(','float','DTOCreate,\x20[\x27displayorder\x27])\x20{\x0a\x0a','\x20*\x20**/\x0a','mkdirSync','mediumtext','/Update.ts','\x27,\x20RuleType.string())\x0a','updated_at','indexOf','\x20\x20\x20\x20@Rule(\x27','\x20*\x20数据检索验证\x0a'];a10_0x1227=function(){return _0x4cebe2;};return a10_0x1227();}async function DTOCreate({controllers:_0x384a9a,tablestartUp:_0x4655c1,tablestartUpShort:_0x47ba8d,basedir:_0x4bb9cb,Fields:_0x5ade81,Comment:_0x575143,moduleName:_0x22a11f,apporbasic:_0x44bc8f}){const _0x3109ac=a10_0x14ba09,_0x1c1c70=_0x4bb9cb+(_0x3109ac(0xab)+_0x47ba8d+'/Create.ts');if(!fs[_0x3109ac(0x7c)](_0x1c1c70)){let _0x21ba91='',_0x39a4e3='',_0x192694=![];for(let _0xeab3f9 in _0x5ade81){let _0xd44ffd=_0x5ade81[_0xeab3f9],_0x310895=(0x0,helper_1[_0x3109ac(0xa2)])(_0xd44ffd[_0x3109ac(0xbb)]);if(_0xd44ffd[_0x3109ac(0xca)]==_0x3109ac(0x78)||_0xd44ffd[_0x3109ac(0xca)]==_0x3109ac(0x96)||_0xd44ffd[_0x3109ac(0xca)]==_0x3109ac(0xd9)||_0xd44ffd['Field']==_0x3109ac(0x9f))continue;if([_0x3109ac(0xc2),'longtext',_0x3109ac(0xd6)]['indexOf'](_0x310895)!=-0x1)_0x21ba91+=_0x3109ac(0xdb)+_0xd44ffd['Comment']+_0x3109ac(0xd8),_0x21ba91+=_0x3109ac(0xcf)+_0xd44ffd['Field']+_0x3109ac(0x8e);else{if([_0x3109ac(0xd2),_0x3109ac(0xad),_0x3109ac(0xae),'number'][_0x3109ac(0xda)](_0x310895)!=-0x1)_0x21ba91+=_0x3109ac(0xdb)+_0xd44ffd['Comment']+_0x3109ac(0x75)+(_0xd44ffd['Null']!=_0x3109ac(0xb4)?_0x3109ac(0x9a):'')+')\x0a',_0x21ba91+=_0x3109ac(0xcf)+_0xd44ffd[_0x3109ac(0xca)]+(_0xd44ffd[_0x3109ac(0xcd)]!=_0x3109ac(0xb4)?'?':'')+_0x3109ac(0xa3);else{if(['tinyint'][_0x3109ac(0xda)](_0x310895)!=-0x1)_0x192694=!![],_0x21ba91+=_0x3109ac(0xdb)+_0xd44ffd[_0x3109ac(0x84)]+'\x27,\x20RuleType.number().valid(...getAnnEnumArray('+_0x4655c1+_0x3109ac(0x70)+_0xd44ffd[_0x3109ac(0xca)]+'\x27))'+(_0xd44ffd['Null']!='YES'?'.required()':'')+')\x0a',_0x21ba91+='\x20\x20\x20\x20'+_0xd44ffd[_0x3109ac(0xca)]+(_0xd44ffd[_0x3109ac(0xcd)]!=_0x3109ac(0xb4)?'?':'')+_0x3109ac(0xa3);else{if(_0x310895==_0x3109ac(0xc6))_0x21ba91+=_0x3109ac(0xdb)+_0xd44ffd[_0x3109ac(0x84)]+_0x3109ac(0xcb),_0x21ba91+=_0x3109ac(0xcf)+_0xd44ffd[_0x3109ac(0xca)]+(_0xd44ffd[_0x3109ac(0xcd)]!=_0x3109ac(0xb4)?'?':'')+_0x3109ac(0xce);else{if(_0x310895==_0x3109ac(0xb2)){let _0x6a1c4f=(0x0,helper_1['getEnum'])(_0xd44ffd[_0x3109ac(0xbb)]);_0x21ba91+=_0x3109ac(0xdb)+_0xd44ffd[_0x3109ac(0x84)]+_0x3109ac(0xac)+_0x6a1c4f[_0x3109ac(0xba)](_0x3109ac(0x8d))+'\x27)'+(_0xd44ffd[_0x3109ac(0xcd)]!='YES'?'.required()':'')+')\x0a',_0x21ba91+=_0x3109ac(0xcf)+_0xd44ffd[_0x3109ac(0xca)]+(_0xd44ffd[_0x3109ac(0xcd)]!=_0x3109ac(0xb4)?'?':'')+_0x3109ac(0xc9)+_0x6a1c4f[_0x3109ac(0xba)](_0x3109ac(0xd0))+_0x3109ac(0x93);}else['date',_0x3109ac(0x98),_0x3109ac(0xc5)][_0x3109ac(0xda)](_0x310895)>-0x1?(_0x21ba91+=_0x3109ac(0xdb)+_0xd44ffd['Comment']+_0x3109ac(0x71)+(_0xd44ffd[_0x3109ac(0xcd)]!=_0x3109ac(0xb4)?_0x3109ac(0x9a):'')+')\x0a',_0x21ba91+='\x20\x20\x20\x20'+_0xd44ffd[_0x3109ac(0xca)]+(_0xd44ffd['Null']!=_0x3109ac(0xb4)?'?':'')+_0x3109ac(0xb0)):(_0x21ba91+='\x20\x20\x20\x20@Rule(\x27'+_0xd44ffd['Comment']+_0x3109ac(0x86)+(_0xd44ffd['Null']!=_0x3109ac(0xb4)?_0x3109ac(0x9a):'')+')\x0a',_0x21ba91+='\x20\x20\x20\x20'+_0xd44ffd['Field']+(_0xd44ffd[_0x3109ac(0xcd)]!=_0x3109ac(0xb4)?'?':'')+_0x3109ac(0xb0));}}}}}_0x21ba91+=_0x3109ac(0x72),_0x21ba91+=_0x3109ac(0x97);(_0x384a9a===null||_0x384a9a===void 0x0?void 0x0:_0x384a9a[_0x3109ac(0xc8)](_0x512912=>typeof _0x512912!=_0x3109ac(0xa0)))?_0x39a4e3+=_0x3109ac(0xaa):_0x39a4e3+=_0x3109ac(0x7d);_0x192694&&(_0x39a4e3+=_0x3109ac(0x9c)+_0x4655c1+_0x3109ac(0xdf)+(typeof _0x22a11f=='string'?_0x3109ac(0x83)+_0x22a11f:'@/'+_0x44bc8f)+_0x3109ac(0x7e)+_0x47ba8d+_0x3109ac(0x82));_0x39a4e3+='\x0a',_0x39a4e3+=_0x3109ac(0xbf),_0x39a4e3+='\x20*\x20'+_0x575143+'\x0a',_0x39a4e3+=_0x3109ac(0x87),_0x39a4e3+='\x20*\x20**/\x0a',_0x39a4e3+='export\x20class\x20'+_0x4655c1+'DTOCreate\x20{\x0a\x0a',_0x39a4e3+='%DtoColumn%',_0x39a4e3+='}\x0a\x0a';for(const _0x188fd0 of _0x384a9a){typeof _0x188fd0==_0x3109ac(0x6c)&&(_0x39a4e3+=_0x3109ac(0x89)+_0x188fd0[_0x3109ac(0x81)](0x0,0x1)['toUpperCase']()+_0x188fd0[_0x3109ac(0x81)](0x1)['toLowerCase']()+_0x4655c1+'DTOCreate\x20extends\x20OmitDto('+_0x4655c1+_0x3109ac(0xd3),_0x39a4e3+=_0x3109ac(0xcc));}_0x39a4e3=_0x39a4e3[_0x3109ac(0x95)](_0x3109ac(0x90),_0x21ba91),fs[_0x3109ac(0x8f)](_0x1c1c70,_0x39a4e3,'utf-8');}}async function DTOUpdate({controllers:_0x1f7f0c,tablestartUp:_0x231bde,tablestartUpShort:_0x13223a,basedir:_0x519045,Fields:_0x291141,Comment:_0x1d9b3b,moduleName:_0x1e64a0,apporbasic:_0x3d8496}){const _0x1f3cdc=a10_0x14ba09,_0x3855cf=_0x519045+(_0x1f3cdc(0xab)+_0x13223a+_0x1f3cdc(0xd7));if(!fs[_0x1f3cdc(0x7c)](_0x3855cf)){let _0x16256e='',_0x103255='',_0x283b4e=![];for(let _0x47f812 in _0x291141){let _0x144c4f=_0x291141[_0x47f812],_0x202f9f=(0x0,helper_1[_0x1f3cdc(0xa2)])(_0x144c4f[_0x1f3cdc(0xbb)]);if(_0x144c4f[_0x1f3cdc(0xca)]==_0x1f3cdc(0x78)||_0x144c4f[_0x1f3cdc(0xca)]=='created_at'||_0x144c4f[_0x1f3cdc(0xca)]==_0x1f3cdc(0xd9)||_0x144c4f[_0x1f3cdc(0xca)]=='deleted_at')continue;if([_0x1f3cdc(0xc2),_0x1f3cdc(0xbc),'mediumtext'][_0x1f3cdc(0xda)](_0x202f9f)!=-0x1)_0x16256e+=_0x1f3cdc(0xdb)+_0x144c4f[_0x1f3cdc(0x84)]+_0x1f3cdc(0xd8),_0x16256e+=_0x1f3cdc(0xcf)+_0x144c4f[_0x1f3cdc(0xca)]+_0x1f3cdc(0x8e);else{if([_0x1f3cdc(0xd2),_0x1f3cdc(0xad),_0x1f3cdc(0xae),_0x1f3cdc(0x6e)][_0x1f3cdc(0xda)](_0x202f9f)!=-0x1)_0x16256e+=_0x1f3cdc(0xdb)+_0x144c4f[_0x1f3cdc(0x84)]+_0x1f3cdc(0xb8),_0x16256e+=_0x1f3cdc(0xcf)+_0x144c4f[_0x1f3cdc(0xca)]+_0x1f3cdc(0x80);else{if([_0x1f3cdc(0xc4)][_0x1f3cdc(0xda)](_0x202f9f)!=-0x1)_0x283b4e=!![],_0x16256e+='\x20\x20\x20\x20@Rule(\x27'+_0x144c4f[_0x1f3cdc(0x84)]+_0x1f3cdc(0x8a)+_0x231bde+_0x1f3cdc(0x70)+_0x144c4f[_0x1f3cdc(0xca)]+_0x1f3cdc(0xb3),_0x16256e+=_0x1f3cdc(0xcf)+_0x144c4f[_0x1f3cdc(0xca)]+_0x1f3cdc(0x80);else{if(_0x202f9f==_0x1f3cdc(0xc6))_0x16256e+=_0x1f3cdc(0xdb)+_0x144c4f[_0x1f3cdc(0x84)]+_0x1f3cdc(0xcb),_0x16256e+=_0x1f3cdc(0xcf)+_0x144c4f[_0x1f3cdc(0xca)]+'?:\x20any\x20|\x20any[];\x0a\x0a';else{if(_0x202f9f=='enum'){let _0x590e71=(0x0,helper_1[_0x1f3cdc(0x85)])(_0x144c4f[_0x1f3cdc(0xbb)]);_0x16256e+=_0x1f3cdc(0xdb)+_0x144c4f['Comment']+'\x27,\x20RuleType.string().valid(\x27'+_0x590e71[_0x1f3cdc(0xba)](_0x1f3cdc(0x8d))+'\x27))\x0a',_0x16256e+=_0x1f3cdc(0xcf)+_0x144c4f['Field']+_0x1f3cdc(0x6f)+_0x590e71[_0x1f3cdc(0xba)](_0x1f3cdc(0xd0))+_0x1f3cdc(0x93);}else['date',_0x1f3cdc(0x98),_0x1f3cdc(0xc5)]['indexOf'](_0x202f9f)>-0x1?(_0x16256e+=_0x1f3cdc(0xdb)+_0x144c4f[_0x1f3cdc(0x84)]+_0x1f3cdc(0x76),_0x16256e+=_0x1f3cdc(0xcf)+_0x144c4f['Field']+_0x1f3cdc(0x8e)):(_0x16256e+=_0x1f3cdc(0xdb)+_0x144c4f[_0x1f3cdc(0x84)]+_0x1f3cdc(0xd8),_0x16256e+=_0x1f3cdc(0xcf)+_0x144c4f[_0x1f3cdc(0xca)]+'?:\x20string;\x0a\x0a');}}}}}_0x16256e+=_0x1f3cdc(0x72),_0x16256e+='\x20\x20\x20\x20displayorder?:\x20number;\x0a\x0a';(_0x1f7f0c===null||_0x1f7f0c===void 0x0?void 0x0:_0x1f7f0c[_0x1f3cdc(0xc8)](_0x285e80=>typeof _0x285e80!=_0x1f3cdc(0xa0)))?_0x103255+=_0x1f3cdc(0xaa):_0x103255+='import\x20{\x20Rule,\x20RuleType\x20}\x20from\x20\x27@anncic-api/validator\x27;\x0a\x0a';_0x283b4e&&(_0x103255+=_0x1f3cdc(0x9c)+_0x231bde+_0x1f3cdc(0xdf)+(typeof _0x1e64a0==_0x1f3cdc(0x6c)?_0x1f3cdc(0x83)+_0x1e64a0:'@/'+_0x3d8496)+'/enums/'+_0x13223a+'\x27;\x0a');_0x103255+='\x0a',_0x103255+=_0x1f3cdc(0xbf),_0x103255+=_0x1f3cdc(0xc3)+_0x1d9b3b+'\x0a',_0x103255+=_0x1f3cdc(0xb5),_0x103255+=_0x1f3cdc(0xd4),_0x103255+=_0x1f3cdc(0x89)+_0x231bde+_0x1f3cdc(0xbd),_0x103255+=_0x1f3cdc(0x90),_0x103255+=_0x1f3cdc(0xcc);for(const _0x532652 of _0x1f7f0c){typeof _0x532652==_0x1f3cdc(0x6c)&&(_0x103255+=_0x1f3cdc(0x89)+_0x532652[_0x1f3cdc(0x81)](0x0,0x1)['toUpperCase']()+_0x532652[_0x1f3cdc(0x81)](0x1)[_0x1f3cdc(0xb7)]()+_0x231bde+_0x1f3cdc(0xd1)+_0x231bde+_0x1f3cdc(0x6d),_0x103255+='}\x0a\x0a');}_0x103255=_0x103255[_0x1f3cdc(0x95)](_0x1f3cdc(0x90),_0x16256e),fs[_0x1f3cdc(0x8f)](_0x3855cf,_0x103255,_0x1f3cdc(0xc7));}}async function DTOSearch({controllers:_0x4bd46,tablestartUp:_0x4402f4,tablestartUpShort:_0x3a4489,basedir:_0x4312ad,Fields:_0x4b2eed,Primary:_0x3f0dda,Comment:_0x20675b,moduleName:_0x9614a2,apporbasic:_0x3c0175}){const _0x24b9b6=a10_0x14ba09,_0x9b07c2=_0x4312ad+(_0x24b9b6(0xab)+_0x3a4489+_0x24b9b6(0xb1));if(!fs[_0x24b9b6(0x7c)](_0x9b07c2)){let _0x3b331d='',_0x299907='',_0x17a78f=![];for(let _0x2a7e90 of[{[_0x3f0dda[_0x24b9b6(0xca)]]:_0x3f0dda},_0x4b2eed]){for(let _0x4cd1cd in _0x2a7e90){let _0x40aa86=_0x2a7e90[_0x4cd1cd],_0x404add=(0x0,helper_1['getProp'])(_0x40aa86[_0x24b9b6(0xbb)]);if(_0x40aa86[_0x24b9b6(0xca)]=='displayorder'||_0x40aa86[_0x24b9b6(0xca)]==_0x24b9b6(0x96)||_0x40aa86[_0x24b9b6(0xca)]==_0x24b9b6(0xd9)||_0x40aa86['Field']==_0x24b9b6(0x9f))continue;if([_0x24b9b6(0xc2),'longtext',_0x24b9b6(0xd6)]['indexOf'](_0x404add)!=-0x1){}else{if(['float',_0x24b9b6(0xad),_0x24b9b6(0xae),_0x24b9b6(0x6e)][_0x24b9b6(0xda)](_0x404add)!=-0x1)_0x3b331d+=_0x24b9b6(0xdb)+_0x40aa86[_0x24b9b6(0x84)]+_0x24b9b6(0xb8),_0x3b331d+=_0x24b9b6(0xcf)+_0x40aa86['Field']+'?:\x20number;\x0a\x0a';else{if([_0x24b9b6(0xc4)][_0x24b9b6(0xda)](_0x404add)!=-0x1)_0x17a78f=!![],_0x3b331d+=_0x24b9b6(0xdb)+_0x40aa86['Comment']+_0x24b9b6(0x8a)+_0x4402f4+_0x24b9b6(0x70)+_0x40aa86['Field']+_0x24b9b6(0xb3),_0x3b331d+=_0x24b9b6(0xcf)+_0x40aa86[_0x24b9b6(0xca)]+_0x24b9b6(0x80);else{if(_0x404add==_0x24b9b6(0xc6)){}else{if(_0x404add==_0x24b9b6(0xb2)){let _0x383fc5=(0x0,helper_1[_0x24b9b6(0x85)])(_0x40aa86[_0x24b9b6(0xbb)]);_0x3b331d+=_0x24b9b6(0xdb)+_0x40aa86[_0x24b9b6(0x84)]+_0x24b9b6(0xac)+_0x383fc5[_0x24b9b6(0xba)](_0x24b9b6(0x8d))+_0x24b9b6(0xc1),_0x3b331d+=_0x24b9b6(0xcf)+_0x40aa86[_0x24b9b6(0xca)]+_0x24b9b6(0x6f)+_0x383fc5[_0x24b9b6(0xba)](_0x24b9b6(0xd0))+_0x24b9b6(0x93);}else['date',_0x24b9b6(0x98),_0x24b9b6(0xc5)]['indexOf'](_0x404add)>-0x1?(_0x3b331d+=_0x24b9b6(0xdb)+_0x40aa86['Comment']+'\x27,\x20RuleType.string())\x0a',_0x3b331d+=_0x24b9b6(0xcf)+_0x40aa86[_0x24b9b6(0xca)]+_0x24b9b6(0x8e),_0x3b331d+=_0x24b9b6(0xdb)+_0x40aa86[_0x24b9b6(0x84)]+'\x27,\x20RuleType.array().items(RuleType.string()),\x20\x27在选定时间之内\x27)\x0a',_0x3b331d+=_0x24b9b6(0xcf)+_0x40aa86[_0x24b9b6(0xca)]+_0x24b9b6(0xb9),_0x3b331d+='\x20\x20\x20\x20@Rule(\x27'+_0x40aa86[_0x24b9b6(0x84)]+'\x27,\x20RuleType.string(),\x20\x27>=\x20起始时间(之后)\x27)\x0a',_0x3b331d+=_0x24b9b6(0xcf)+_0x40aa86[_0x24b9b6(0xca)]+'_start?:\x20string;\x0a\x0a',_0x3b331d+='\x20\x20\x20\x20@Rule(\x27'+_0x40aa86[_0x24b9b6(0x84)]+'\x27,\x20RuleType.string(),\x20\x27<\x20起始时间(之前)\x27)\x0a',_0x3b331d+=_0x24b9b6(0xcf)+_0x40aa86['Field']+_0x24b9b6(0x91)):(_0x3b331d+=_0x24b9b6(0xdb)+_0x40aa86[_0x24b9b6(0x84)]+'\x27,\x20RuleType.string())\x0a',_0x3b331d+=_0x24b9b6(0xcf)+_0x40aa86['Field']+'?:\x20string;\x0a\x0a');}}}}}}_0x3b331d+=_0x24b9b6(0x72),_0x3b331d+='\x20\x20\x20\x20displayorder?:\x20number;\x0a\x0a',_0x3b331d+=_0x24b9b6(0xa4),_0x3b331d+=_0x24b9b6(0xde),_0x3b331d+=_0x24b9b6(0x79),_0x3b331d+=_0x24b9b6(0x99),_0x3b331d+=_0x24b9b6(0x9e),_0x3b331d+='\x20\x20\x20\x20created_at_end?:\x20string;\x0a\x0a',_0x3b331d+=_0x24b9b6(0xa6),_0x3b331d+='\x20\x20\x20\x20updated_at_between?:\x20string[];\x0a\x0a',_0x3b331d+=_0x24b9b6(0x9d),_0x3b331d+=_0x24b9b6(0xb6),_0x3b331d+=_0x24b9b6(0x9b),_0x3b331d+=_0x24b9b6(0xbe);(_0x4bd46===null||_0x4bd46===void 0x0?void 0x0:_0x4bd46[_0x24b9b6(0xc8)](_0x4f31fb=>typeof _0x4f31fb!=_0x24b9b6(0xa0)))?_0x299907+=_0x24b9b6(0xaa):_0x299907+=_0x24b9b6(0x7d);_0x17a78f&&(_0x299907+=_0x24b9b6(0x9c)+_0x4402f4+_0x24b9b6(0xdf)+(typeof _0x9614a2=='string'?_0x24b9b6(0x83)+_0x9614a2:'@/'+_0x3c0175)+_0x24b9b6(0x7e)+_0x3a4489+_0x24b9b6(0x82));_0x299907+='\x0a',_0x299907+='/**\x0a',_0x299907+=_0x24b9b6(0xc3)+_0x20675b+'\x0a',_0x299907+=_0x24b9b6(0xdc),_0x299907+=_0x24b9b6(0xd4),_0x299907+=_0x24b9b6(0x89)+_0x4402f4+'DTOSearch\x20{\x0a\x0a',_0x299907+=_0x24b9b6(0x7b),_0x299907+=_0x24b9b6(0xcc);for(const _0x4820c0 of _0x4bd46){typeof _0x4820c0=='string'&&(_0x299907+=_0x24b9b6(0x89)+_0x4820c0['substring'](0x0,0x1)[_0x24b9b6(0x7a)]()+_0x4820c0[_0x24b9b6(0x81)](0x1)[_0x24b9b6(0xb7)]()+_0x4402f4+_0x24b9b6(0x88)+_0x4402f4+'DTOSearch,\x20[\x27displayorder\x27])\x20{\x0a\x0a',_0x299907+='}\x0a\x0a');}_0x299907=_0x299907['replace'](_0x24b9b6(0x7b),_0x3b331d),fs[_0x24b9b6(0x8f)](_0x9b07c2,_0x299907,_0x24b9b6(0xc7));}}
|
|
1
|
+
const a10_0x37f7d8=a10_0x45bb;function a10_0x292d(){const _0x323456=['find','/enums/','created_at','\x27,\x20RuleType.number()','float','\x20\x20\x20\x20@Rule(\x27修改时间\x27,\x20RuleType.date(),\x20\x27>=\x20起始时间(之后)\x27)\x0a','string','Comment','Field','text','deleted_at','number','?:\x20string;\x0a\x0a','9023NXmQvX','date','?:\x20number;\x0a\x0a','\x20\x20\x20\x20updated_at_between?:\x20string[];\x0a\x0a','json','DTOCreate\x20{\x0a\x0a','162704nGUhTo',':\x20any\x20|\x20any[];\x0a\x0a','boolean','indexOf','longtext','_end?:\x20string;\x0a\x0a','\x20\x20\x20\x20','\x27,\x20RuleType.string(),\x20\x27>=\x20起始时间(之后)\x27)\x0a','DTOSearch\x20extends\x20OmitDto(','Enum\x20}\x20from\x20\x27','\x20\x20\x20\x20updated_at_end?:\x20string;\x0a\x0a','}\x0a\x0a','existsSync','Enum,\x20\x27','%DtoColumn%','\x20\x20\x20\x20displayorder?:\x20number;\x0a\x0a','\x27))\x0a','DTOUpdate\x20{\x0a\x0a','(((.+)+)+)+$','double','constructor','tinyint','6318570FrQHgD','import\x20{\x20Rule,\x20RuleType,\x20OmitDto\x20}\x20from\x20\x27@anncic-api/validator\x27;\x0a\x0a','mkdirSync','\x27,\x20RuleType.number())\x0a','datetime','mediumtext','import\x20{\x20Rule,\x20RuleType\x20}\x20from\x20\x27@anncic-api/validator\x27;\x0a\x0a','276XUdNNJ','/**\x0a','?:\x20\x27','\x27,\x20\x27','\x20\x20\x20\x20@Rule(\x27创建时间\x27,\x20RuleType.date(),\x20\x27>=\x20起始时间(之后)\x27)\x0a','\x27,\x20RuleType.string()','search','\x20*\x20','50798ykFveo','\x27,\x20RuleType.string(),\x20\x27<\x20起始时间(之前)\x27)\x0a','\x20\x20\x20\x20@Rule(\x27修改时间\x27,\x20RuleType.array().items(RuleType.string()),\x20\x27在选定时间之内\x27)\x0a','31kXiPdV','\x20\x20\x20\x20created_at_end?:\x20string;\x0a\x0a','\x20*\x20数据添加验证\x0a','\x20\x20\x20\x20@Rule(\x27创建时间\x27,\x20RuleType.date(),\x20\x27<\x20起始时间(之前)\x27)\x0a','\x27)))\x0a','\x20*\x20**/\x0a','\x20\x20\x20\x20updated_at_start?:\x20string;\x0a\x0a','DTOSearch\x20{\x0a\x0a','\x27,\x20RuleType.number().valid(...getAnnEnumArray(','toUpperCase','\x20*\x20数据更新验证\x0a','\x20\x20\x20\x20created_at_between?:\x20string[];\x0a\x0a','\x20*\x20数据检索验证\x0a','import\x20{\x20','/Search.ts','\x27,\x20RuleType.array().items(RuleType.string()),\x20\x27在选定时间之内\x27)\x0a','%SearchDtoColumn%','\x20\x20\x20\x20created_at_start?:\x20string;\x0a\x0a','\x20\x20\x20\x20@Rule(\x27修改时间\x27,\x20RuleType.date(),\x20\x27<\x20起始时间(之前)\x27)\x0a','.required()','/Update.ts','424YpZeSX','/Create.ts','DTOCreate,\x20[\x27displayorder\x27])\x20{\x0a\x0a','4668uVERtm','DTOUpdate\x20extends\x20OmitDto(','441SUCzSw','default','\x27,\x20RuleType.any())\x0a','timestamp','_between?:\x20string[];\x0a\x0a','apply','enum','export\x20class\x20','/validators/','replace','\x27,\x20RuleType.date())\x0a','11cHvfOm','toLowerCase','updated_at','\x27,\x20RuleType.string())\x0a','toString','writeFileSync','utf-8','displayorder','getEnum','\x27))','35817432LMPFat','Null','defineProperty','?:\x20any\x20|\x20any[];\x0a\x0a','\x27;\x0a\x0a','@/apps/','\x27,\x20RuleType.string().valid(\x27','../helper','YES','substring',':\x20string;\x0a\x0a','\x27;\x0a',':\x20number;\x0a\x0a','getProp','\x27\x20|\x20\x27','join','\x20\x20\x20\x20@Rule(\x27','\x27,\x20RuleType.date()','decimal','15623010GOWmWJ','Type','\x20\x20\x20\x20@Rule(\x27默认排序\x27,\x20RuleType.number())\x0a'];a10_0x292d=function(){return _0x323456;};return a10_0x292d();}(function(_0x47b42b,_0x405770){const _0x1d20e3=a10_0x45bb,_0x49af55=_0x47b42b();while(!![]){try{const _0x2636e7=-parseInt(_0x1d20e3(0x14c))/0x1*(-parseInt(_0x1d20e3(0x149))/0x2)+-parseInt(_0x1d20e3(0x141))/0x3*(-parseInt(_0x1d20e3(0x161))/0x4)+-parseInt(_0x1d20e3(0x13a))/0x5+-parseInt(_0x1d20e3(0x164))/0x6*(parseInt(_0x1d20e3(0x11e))/0x7)+-parseInt(_0x1d20e3(0x124))/0x8*(-parseInt(_0x1d20e3(0x166))/0x9)+-parseInt(_0x1d20e3(0x18e))/0xa*(parseInt(_0x1d20e3(0x171))/0xb)+parseInt(_0x1d20e3(0x17b))/0xc;if(_0x2636e7===_0x405770)break;else _0x49af55['push'](_0x49af55['shift']());}catch(_0x534f64){_0x49af55['push'](_0x49af55['shift']());}}}(a10_0x292d,0xe7d6c));const a10_0x110ec8=(function(){let _0x497e61=!![];return function(_0x1293f4,_0x461f4a){const _0x136c67=_0x497e61?function(){const _0x4c0758=a10_0x45bb;if(_0x461f4a){const _0x381456=_0x461f4a[_0x4c0758(0x16b)](_0x1293f4,arguments);return _0x461f4a=null,_0x381456;}}:function(){};return _0x497e61=![],_0x136c67;};}()),a10_0x558f4d=a10_0x110ec8(this,function(){const _0x4183ef=a10_0x45bb;return a10_0x558f4d[_0x4183ef(0x175)]()[_0x4183ef(0x147)](_0x4183ef(0x136))[_0x4183ef(0x175)]()[_0x4183ef(0x138)](a10_0x558f4d)[_0x4183ef(0x147)]('(((.+)+)+)+$');});a10_0x558f4d();'use strict';Object[a10_0x37f7d8(0x17d)](exports,'__esModule',{'value':!![]});const fs=require('fs'),helper_1=require(a10_0x37f7d8(0x182));async function default_1({controllers:_0x5d4642,tablestartUp:_0x23997b,tablestartUpShort:_0xef3c69,basedir:_0x8e9ae7,Primary:_0x199c50,Fields:_0x693287,Comment:_0x7c1ca2,moduleName:_0x560b9f,apporbasic:_0x22da76}){const _0xe6bae8=a10_0x37f7d8,_0x3af579=_0x8e9ae7+(_0xe6bae8(0x16e)+_0xef3c69);!fs[_0xe6bae8(0x130)](_0x3af579)&&fs[_0xe6bae8(0x13c)](_0x3af579,{'recursive':!![]}),await DTOCreate({'controllers':_0x5d4642,'tablestartUp':_0x23997b,'tablestartUpShort':_0xef3c69,'basedir':_0x8e9ae7,'Fields':_0x693287,'Comment':_0x7c1ca2,'moduleName':_0x560b9f,'apporbasic':_0x22da76}),await DTOUpdate({'controllers':_0x5d4642,'tablestartUp':_0x23997b,'tablestartUpShort':_0xef3c69,'basedir':_0x8e9ae7,'Fields':_0x693287,'Comment':_0x7c1ca2,'moduleName':_0x560b9f,'apporbasic':_0x22da76}),await DTOSearch({'controllers':_0x5d4642,'tablestartUp':_0x23997b,'tablestartUpShort':_0xef3c69,'basedir':_0x8e9ae7,'Fields':_0x693287,'Primary':_0x199c50,'Comment':_0x7c1ca2,'moduleName':_0x560b9f,'apporbasic':_0x22da76});}exports[a10_0x37f7d8(0x167)]=default_1;async function DTOCreate({controllers:_0x13a80e,tablestartUp:_0x3e3d36,tablestartUpShort:_0x218940,basedir:_0x3e60a3,Fields:_0x4d7801,Comment:_0x38421d,moduleName:_0x1291fe,apporbasic:_0x2aaa6d}){const _0x386132=a10_0x37f7d8,_0x2e2cba=_0x3e60a3+(_0x386132(0x16e)+_0x218940+_0x386132(0x162));if(!fs[_0x386132(0x130)](_0x2e2cba)){let _0x1d8b40='',_0x5c1fb9='',_0x418fb4=![];for(let _0x199416 in _0x4d7801){let _0x2c9c58=_0x4d7801[_0x199416],_0x542e7c=(0x0,helper_1[_0x386132(0x188)])(_0x2c9c58['Type']);if(_0x2c9c58[_0x386132(0x199)]==_0x386132(0x178)||_0x2c9c58[_0x386132(0x199)]==_0x386132(0x193)||_0x2c9c58[_0x386132(0x199)]==_0x386132(0x173)||_0x2c9c58[_0x386132(0x199)]==_0x386132(0x11b))continue;if([_0x386132(0x11a),_0x386132(0x128),_0x386132(0x13f)][_0x386132(0x127)](_0x542e7c)!=-0x1)_0x1d8b40+=_0x386132(0x18b)+_0x2c9c58[_0x386132(0x198)]+'\x27,\x20RuleType.string())\x0a',_0x1d8b40+=_0x386132(0x12a)+_0x2c9c58['Field']+'?:\x20string;\x0a\x0a';else{if([_0x386132(0x195),'double',_0x386132(0x18d),_0x386132(0x11c)][_0x386132(0x127)](_0x542e7c)!=-0x1)_0x1d8b40+=_0x386132(0x18b)+_0x2c9c58[_0x386132(0x198)]+_0x386132(0x194)+(_0x2c9c58['Null']!='YES'?_0x386132(0x15f):'')+')\x0a',_0x1d8b40+=_0x386132(0x12a)+_0x2c9c58[_0x386132(0x199)]+(_0x2c9c58[_0x386132(0x17c)]!=_0x386132(0x183)?'?':'')+_0x386132(0x187);else{if(['tinyint']['indexOf'](_0x542e7c)!=-0x1)_0x418fb4=!![],_0x1d8b40+=_0x386132(0x18b)+_0x2c9c58[_0x386132(0x198)]+_0x386132(0x154)+_0x3e3d36+'Enum,\x20\x27'+_0x2c9c58[_0x386132(0x199)]+_0x386132(0x17a)+(_0x2c9c58[_0x386132(0x17c)]!=_0x386132(0x183)?'.required()':'')+')\x0a',_0x1d8b40+=_0x386132(0x12a)+_0x2c9c58[_0x386132(0x199)]+(_0x2c9c58[_0x386132(0x17c)]!='YES'?'?':'')+_0x386132(0x187);else{if(_0x542e7c==_0x386132(0x122))_0x1d8b40+=_0x386132(0x18b)+_0x2c9c58[_0x386132(0x198)]+_0x386132(0x168),_0x1d8b40+=_0x386132(0x12a)+_0x2c9c58[_0x386132(0x199)]+(_0x2c9c58[_0x386132(0x17c)]!=_0x386132(0x183)?'?':'')+_0x386132(0x125);else{if(_0x542e7c=='enum'){let _0x57ba77=(0x0,helper_1[_0x386132(0x179)])(_0x2c9c58[_0x386132(0x18f)]);_0x1d8b40+=_0x386132(0x18b)+_0x2c9c58[_0x386132(0x198)]+_0x386132(0x181)+_0x57ba77[_0x386132(0x18a)]('\x27,\x20\x27')+'\x27)'+(_0x2c9c58['Null']!=_0x386132(0x183)?_0x386132(0x15f):'')+')\x0a',_0x1d8b40+='\x20\x20\x20\x20'+_0x2c9c58[_0x386132(0x199)]+(_0x2c9c58[_0x386132(0x17c)]!=_0x386132(0x183)?'?':'')+':\x20\x27'+_0x57ba77[_0x386132(0x18a)](_0x386132(0x189))+_0x386132(0x17f);}else['date','datetime',_0x386132(0x169)]['indexOf'](_0x542e7c)>-0x1?(_0x1d8b40+='\x20\x20\x20\x20@Rule(\x27'+_0x2c9c58[_0x386132(0x198)]+_0x386132(0x18c)+(_0x2c9c58[_0x386132(0x17c)]!=_0x386132(0x183)?_0x386132(0x15f):'')+')\x0a',_0x1d8b40+=_0x386132(0x12a)+_0x2c9c58[_0x386132(0x199)]+(_0x2c9c58[_0x386132(0x17c)]!=_0x386132(0x183)?'?':'')+_0x386132(0x185)):(_0x1d8b40+=_0x386132(0x18b)+_0x2c9c58[_0x386132(0x198)]+_0x386132(0x146)+(_0x2c9c58[_0x386132(0x17c)]!=_0x386132(0x183)?_0x386132(0x15f):'')+')\x0a',_0x1d8b40+=_0x386132(0x12a)+_0x2c9c58[_0x386132(0x199)]+(_0x2c9c58['Null']!=_0x386132(0x183)?'?':'')+_0x386132(0x185));}}}}}_0x1d8b40+=_0x386132(0x190),_0x1d8b40+='\x20\x20\x20\x20displayorder?:\x20number;\x0a\x0a';(_0x13a80e===null||_0x13a80e===void 0x0?void 0x0:_0x13a80e[_0x386132(0x191)](_0xf1dfb9=>typeof _0xf1dfb9!=_0x386132(0x126)))?_0x5c1fb9+='import\x20{\x20Rule,\x20RuleType,\x20OmitDto\x20}\x20from\x20\x27@anncic-api/validator\x27;\x0a\x0a':_0x5c1fb9+=_0x386132(0x140);_0x418fb4&&(_0x5c1fb9+=_0x386132(0x159)+_0x3e3d36+_0x386132(0x12d)+(typeof _0x1291fe==_0x386132(0x197)?_0x386132(0x180)+_0x1291fe:'@/'+_0x2aaa6d)+_0x386132(0x192)+_0x218940+_0x386132(0x186));_0x5c1fb9+='\x0a',_0x5c1fb9+=_0x386132(0x142),_0x5c1fb9+=_0x386132(0x148)+_0x38421d+'\x0a',_0x5c1fb9+=_0x386132(0x14e),_0x5c1fb9+='\x20*\x20**/\x0a',_0x5c1fb9+=_0x386132(0x16d)+_0x3e3d36+_0x386132(0x123),_0x5c1fb9+=_0x386132(0x132),_0x5c1fb9+=_0x386132(0x12f);for(const _0xd49d8e of _0x13a80e){typeof _0xd49d8e=='string'&&(_0x5c1fb9+=_0x386132(0x16d)+_0xd49d8e[_0x386132(0x184)](0x0,0x1)['toUpperCase']()+_0xd49d8e[_0x386132(0x184)](0x1)[_0x386132(0x172)]()+_0x3e3d36+'DTOCreate\x20extends\x20OmitDto('+_0x3e3d36+_0x386132(0x163),_0x5c1fb9+=_0x386132(0x12f));}_0x5c1fb9=_0x5c1fb9[_0x386132(0x16f)]('%DtoColumn%',_0x1d8b40),fs[_0x386132(0x176)](_0x2e2cba,_0x5c1fb9,_0x386132(0x177));}}async function DTOUpdate({controllers:_0x14ca01,tablestartUp:_0x31669d,tablestartUpShort:_0x365319,basedir:_0x175456,Fields:_0x296759,Comment:_0x5f58ab,moduleName:_0x29886a,apporbasic:_0x4ee424}){const _0xb8d21a=a10_0x37f7d8,_0x3e79c2=_0x175456+(_0xb8d21a(0x16e)+_0x365319+_0xb8d21a(0x160));if(!fs[_0xb8d21a(0x130)](_0x3e79c2)){let _0x42cb6c='',_0x4bfe94='',_0x780c0f=![];for(let _0x1cf70c in _0x296759){let _0x46eea9=_0x296759[_0x1cf70c],_0x4e96ed=(0x0,helper_1[_0xb8d21a(0x188)])(_0x46eea9['Type']);if(_0x46eea9[_0xb8d21a(0x199)]=='displayorder'||_0x46eea9[_0xb8d21a(0x199)]==_0xb8d21a(0x193)||_0x46eea9[_0xb8d21a(0x199)]==_0xb8d21a(0x173)||_0x46eea9[_0xb8d21a(0x199)]==_0xb8d21a(0x11b))continue;if([_0xb8d21a(0x11a),_0xb8d21a(0x128),'mediumtext']['indexOf'](_0x4e96ed)!=-0x1)_0x42cb6c+=_0xb8d21a(0x18b)+_0x46eea9[_0xb8d21a(0x198)]+_0xb8d21a(0x174),_0x42cb6c+='\x20\x20\x20\x20'+_0x46eea9['Field']+_0xb8d21a(0x11d);else{if(['float',_0xb8d21a(0x137),_0xb8d21a(0x18d),_0xb8d21a(0x11c)][_0xb8d21a(0x127)](_0x4e96ed)!=-0x1)_0x42cb6c+=_0xb8d21a(0x18b)+_0x46eea9[_0xb8d21a(0x198)]+_0xb8d21a(0x13d),_0x42cb6c+=_0xb8d21a(0x12a)+_0x46eea9[_0xb8d21a(0x199)]+_0xb8d21a(0x120);else{if([_0xb8d21a(0x139)][_0xb8d21a(0x127)](_0x4e96ed)!=-0x1)_0x780c0f=!![],_0x42cb6c+=_0xb8d21a(0x18b)+_0x46eea9[_0xb8d21a(0x198)]+_0xb8d21a(0x154)+_0x31669d+_0xb8d21a(0x131)+_0x46eea9['Field']+_0xb8d21a(0x150),_0x42cb6c+=_0xb8d21a(0x12a)+_0x46eea9[_0xb8d21a(0x199)]+'?:\x20number;\x0a\x0a';else{if(_0x4e96ed==_0xb8d21a(0x122))_0x42cb6c+=_0xb8d21a(0x18b)+_0x46eea9['Comment']+'\x27,\x20RuleType.any())\x0a',_0x42cb6c+='\x20\x20\x20\x20'+_0x46eea9[_0xb8d21a(0x199)]+_0xb8d21a(0x17e);else{if(_0x4e96ed=='enum'){let _0x4adc62=(0x0,helper_1['getEnum'])(_0x46eea9[_0xb8d21a(0x18f)]);_0x42cb6c+='\x20\x20\x20\x20@Rule(\x27'+_0x46eea9[_0xb8d21a(0x198)]+_0xb8d21a(0x181)+_0x4adc62[_0xb8d21a(0x18a)](_0xb8d21a(0x144))+_0xb8d21a(0x134),_0x42cb6c+=_0xb8d21a(0x12a)+_0x46eea9[_0xb8d21a(0x199)]+_0xb8d21a(0x143)+_0x4adc62[_0xb8d21a(0x18a)]('\x27\x20|\x20\x27')+_0xb8d21a(0x17f);}else['date',_0xb8d21a(0x13e),_0xb8d21a(0x169)][_0xb8d21a(0x127)](_0x4e96ed)>-0x1?(_0x42cb6c+=_0xb8d21a(0x18b)+_0x46eea9['Comment']+_0xb8d21a(0x170),_0x42cb6c+=_0xb8d21a(0x12a)+_0x46eea9['Field']+_0xb8d21a(0x11d)):(_0x42cb6c+='\x20\x20\x20\x20@Rule(\x27'+_0x46eea9['Comment']+'\x27,\x20RuleType.string())\x0a',_0x42cb6c+='\x20\x20\x20\x20'+_0x46eea9[_0xb8d21a(0x199)]+_0xb8d21a(0x11d));}}}}}_0x42cb6c+=_0xb8d21a(0x190),_0x42cb6c+='\x20\x20\x20\x20displayorder?:\x20number;\x0a\x0a';(_0x14ca01===null||_0x14ca01===void 0x0?void 0x0:_0x14ca01[_0xb8d21a(0x191)](_0x46537c=>typeof _0x46537c!=_0xb8d21a(0x126)))?_0x4bfe94+=_0xb8d21a(0x13b):_0x4bfe94+=_0xb8d21a(0x140);_0x780c0f&&(_0x4bfe94+='import\x20{\x20'+_0x31669d+_0xb8d21a(0x12d)+(typeof _0x29886a=='string'?_0xb8d21a(0x180)+_0x29886a:'@/'+_0x4ee424)+_0xb8d21a(0x192)+_0x365319+'\x27;\x0a');_0x4bfe94+='\x0a',_0x4bfe94+=_0xb8d21a(0x142),_0x4bfe94+=_0xb8d21a(0x148)+_0x5f58ab+'\x0a',_0x4bfe94+=_0xb8d21a(0x156),_0x4bfe94+=_0xb8d21a(0x151),_0x4bfe94+='export\x20class\x20'+_0x31669d+_0xb8d21a(0x135),_0x4bfe94+=_0xb8d21a(0x132),_0x4bfe94+='}\x0a\x0a';for(const _0x2b3489 of _0x14ca01){typeof _0x2b3489==_0xb8d21a(0x197)&&(_0x4bfe94+='export\x20class\x20'+_0x2b3489['substring'](0x0,0x1)['toUpperCase']()+_0x2b3489['substring'](0x1)[_0xb8d21a(0x172)]()+_0x31669d+_0xb8d21a(0x165)+_0x31669d+'DTOUpdate,\x20[\x27displayorder\x27])\x20{\x0a\x0a',_0x4bfe94+=_0xb8d21a(0x12f));}_0x4bfe94=_0x4bfe94[_0xb8d21a(0x16f)](_0xb8d21a(0x132),_0x42cb6c),fs['writeFileSync'](_0x3e79c2,_0x4bfe94,_0xb8d21a(0x177));}}function a10_0x45bb(_0x205752,_0x544571){const _0x4557df=a10_0x292d();return a10_0x45bb=function(_0x558f4d,_0x110ec8){_0x558f4d=_0x558f4d-0x11a;let _0x292d0b=_0x4557df[_0x558f4d];return _0x292d0b;},a10_0x45bb(_0x205752,_0x544571);}async function DTOSearch({controllers:_0x489423,tablestartUp:_0x20d1ed,tablestartUpShort:_0x4ba122,basedir:_0x592aa8,Fields:_0x589019,Primary:_0x7fcc3,Comment:_0x254dc3,moduleName:_0x5e5da8,apporbasic:_0x26abcf}){const _0x2adeb8=a10_0x37f7d8,_0x2390fb=_0x592aa8+(_0x2adeb8(0x16e)+_0x4ba122+_0x2adeb8(0x15a));if(!fs[_0x2adeb8(0x130)](_0x2390fb)){let _0x4282f6='',_0x4d954b='',_0x3f1d05=![];for(let _0x4932c1 of[{[_0x7fcc3[_0x2adeb8(0x199)]]:_0x7fcc3},_0x589019]){for(let _0x5000f9 in _0x4932c1){let _0x36748f=_0x4932c1[_0x5000f9],_0x20c0a6=(0x0,helper_1[_0x2adeb8(0x188)])(_0x36748f[_0x2adeb8(0x18f)]);if(_0x36748f['Field']==_0x2adeb8(0x178)||_0x36748f['Field']==_0x2adeb8(0x193)||_0x36748f['Field']==_0x2adeb8(0x173)||_0x36748f[_0x2adeb8(0x199)]==_0x2adeb8(0x11b))continue;if([_0x2adeb8(0x11a),'longtext',_0x2adeb8(0x13f)][_0x2adeb8(0x127)](_0x20c0a6)!=-0x1){}else{if([_0x2adeb8(0x195),_0x2adeb8(0x137),'decimal','number']['indexOf'](_0x20c0a6)!=-0x1)_0x4282f6+=_0x2adeb8(0x18b)+_0x36748f[_0x2adeb8(0x198)]+_0x2adeb8(0x13d),_0x4282f6+=_0x2adeb8(0x12a)+_0x36748f[_0x2adeb8(0x199)]+'?:\x20number;\x0a\x0a';else{if([_0x2adeb8(0x139)][_0x2adeb8(0x127)](_0x20c0a6)!=-0x1)_0x3f1d05=!![],_0x4282f6+='\x20\x20\x20\x20@Rule(\x27'+_0x36748f[_0x2adeb8(0x198)]+_0x2adeb8(0x154)+_0x20d1ed+_0x2adeb8(0x131)+_0x36748f[_0x2adeb8(0x199)]+'\x27)))\x0a',_0x4282f6+=_0x2adeb8(0x12a)+_0x36748f[_0x2adeb8(0x199)]+'?:\x20number;\x0a\x0a';else{if(_0x20c0a6==_0x2adeb8(0x122)){}else{if(_0x20c0a6==_0x2adeb8(0x16c)){let _0x1a36bf=(0x0,helper_1['getEnum'])(_0x36748f[_0x2adeb8(0x18f)]);_0x4282f6+=_0x2adeb8(0x18b)+_0x36748f[_0x2adeb8(0x198)]+_0x2adeb8(0x181)+_0x1a36bf[_0x2adeb8(0x18a)](_0x2adeb8(0x144))+_0x2adeb8(0x134),_0x4282f6+=_0x2adeb8(0x12a)+_0x36748f[_0x2adeb8(0x199)]+'?:\x20\x27'+_0x1a36bf[_0x2adeb8(0x18a)](_0x2adeb8(0x189))+_0x2adeb8(0x17f);}else[_0x2adeb8(0x11f),_0x2adeb8(0x13e),_0x2adeb8(0x169)][_0x2adeb8(0x127)](_0x20c0a6)>-0x1?(_0x4282f6+='\x20\x20\x20\x20@Rule(\x27'+_0x36748f[_0x2adeb8(0x198)]+_0x2adeb8(0x174),_0x4282f6+=_0x2adeb8(0x12a)+_0x36748f[_0x2adeb8(0x199)]+_0x2adeb8(0x11d),_0x4282f6+='\x20\x20\x20\x20@Rule(\x27'+_0x36748f[_0x2adeb8(0x198)]+_0x2adeb8(0x15b),_0x4282f6+=_0x2adeb8(0x12a)+_0x36748f[_0x2adeb8(0x199)]+_0x2adeb8(0x16a),_0x4282f6+=_0x2adeb8(0x18b)+_0x36748f[_0x2adeb8(0x198)]+_0x2adeb8(0x12b),_0x4282f6+=_0x2adeb8(0x12a)+_0x36748f[_0x2adeb8(0x199)]+'_start?:\x20string;\x0a\x0a',_0x4282f6+='\x20\x20\x20\x20@Rule(\x27'+_0x36748f[_0x2adeb8(0x198)]+_0x2adeb8(0x14a),_0x4282f6+=_0x2adeb8(0x12a)+_0x36748f[_0x2adeb8(0x199)]+_0x2adeb8(0x129)):(_0x4282f6+=_0x2adeb8(0x18b)+_0x36748f['Comment']+_0x2adeb8(0x174),_0x4282f6+=_0x2adeb8(0x12a)+_0x36748f[_0x2adeb8(0x199)]+_0x2adeb8(0x11d));}}}}}}_0x4282f6+=_0x2adeb8(0x190),_0x4282f6+=_0x2adeb8(0x133),_0x4282f6+='\x20\x20\x20\x20@Rule(\x27创建时间\x27,\x20RuleType.array().items(RuleType.string()),\x20\x27在选定时间之内\x27)\x0a',_0x4282f6+=_0x2adeb8(0x157),_0x4282f6+=_0x2adeb8(0x145),_0x4282f6+=_0x2adeb8(0x15d),_0x4282f6+=_0x2adeb8(0x14f),_0x4282f6+=_0x2adeb8(0x14d),_0x4282f6+=_0x2adeb8(0x14b),_0x4282f6+=_0x2adeb8(0x121),_0x4282f6+=_0x2adeb8(0x196),_0x4282f6+=_0x2adeb8(0x152),_0x4282f6+=_0x2adeb8(0x15e),_0x4282f6+=_0x2adeb8(0x12e);(_0x489423===null||_0x489423===void 0x0?void 0x0:_0x489423[_0x2adeb8(0x191)](_0x2a86ec=>typeof _0x2a86ec!=_0x2adeb8(0x126)))?_0x4d954b+=_0x2adeb8(0x13b):_0x4d954b+=_0x2adeb8(0x140);_0x3f1d05&&(_0x4d954b+=_0x2adeb8(0x159)+_0x20d1ed+_0x2adeb8(0x12d)+(typeof _0x5e5da8==_0x2adeb8(0x197)?_0x2adeb8(0x180)+_0x5e5da8:'@/'+_0x26abcf)+_0x2adeb8(0x192)+_0x4ba122+_0x2adeb8(0x186));_0x4d954b+='\x0a',_0x4d954b+=_0x2adeb8(0x142),_0x4d954b+=_0x2adeb8(0x148)+_0x254dc3+'\x0a',_0x4d954b+=_0x2adeb8(0x158),_0x4d954b+=_0x2adeb8(0x151),_0x4d954b+=_0x2adeb8(0x16d)+_0x20d1ed+_0x2adeb8(0x153),_0x4d954b+=_0x2adeb8(0x15c),_0x4d954b+=_0x2adeb8(0x12f);for(const _0x45c9d5 of _0x489423){typeof _0x45c9d5=='string'&&(_0x4d954b+=_0x2adeb8(0x16d)+_0x45c9d5[_0x2adeb8(0x184)](0x0,0x1)[_0x2adeb8(0x155)]()+_0x45c9d5['substring'](0x1)[_0x2adeb8(0x172)]()+_0x20d1ed+_0x2adeb8(0x12c)+_0x20d1ed+'DTOSearch,\x20[\x27displayorder\x27])\x20{\x0a\x0a',_0x4d954b+=_0x2adeb8(0x12f));}_0x4d954b=_0x4d954b[_0x2adeb8(0x16f)]('%SearchDtoColumn%',_0x4282f6),fs[_0x2adeb8(0x176)](_0x2390fb,_0x4d954b,_0x2adeb8(0x177));}}
|
|
@@ -1,9 +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>;
|
|
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>;
|
package/dist/templateVue/Api.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a11_0x2c0080=a11_0x1e0a;(function(_0x35c4c4,_0xccacc6){const _0x1699b4=a11_0x1e0a,_0x5e6495=_0x35c4c4();while(!![]){try{const _0x1ae611=-parseInt(_0x1699b4(0xc6))/0x1*(-parseInt(_0x1699b4(0x9d))/0x2)+parseInt(_0x1699b4(0xc4))/0x3*(-parseInt(_0x1699b4(0xa6))/0x4)+parseInt(_0x1699b4(0xbe))/0x5*(-parseInt(_0x1699b4(0xce))/0x6)+-parseInt(_0x1699b4(0xb3))/0x7+-parseInt(_0x1699b4(0xb9))/0x8*(parseInt(_0x1699b4(0xac))/0x9)+-parseInt(_0x1699b4(0xc1))/0xa*(parseInt(_0x1699b4(0xcc))/0xb)+parseInt(_0x1699b4(0xa3))/0xc;if(_0x1ae611===_0xccacc6)break;else _0x5e6495['push'](_0x5e6495['shift']());}catch(_0x1b8d94){_0x5e6495['push'](_0x5e6495['shift']());}}}(a11_0x1847,0x6c1a4));const a11_0x4f50c1=(function(){let _0x5e0a47=!![];return function(_0x34cc19,_0x81f147){const _0x1de516=_0x5e0a47?function(){const _0x460859=a11_0x1e0a;if(_0x81f147){const _0x19eeb6=_0x81f147[_0x460859(0xa8)](_0x34cc19,arguments);return _0x81f147=null,_0x19eeb6;}}:function(){};return _0x5e0a47=![],_0x1de516;};}()),a11_0x46a29e=a11_0x4f50c1(this,function(){const _0x381430=a11_0x1e0a;return a11_0x46a29e[_0x381430(0xad)]()[_0x381430(0xc8)]('(((.+)+)+)+$')[_0x381430(0xad)]()[_0x381430(0xcf)](a11_0x46a29e)[_0x381430(0xc8)](_0x381430(0xc5));});a11_0x46a29e();function a11_0x1e0a(_0x561577,_0x854706){const _0x22a3fe=a11_0x1847();return a11_0x1e0a=function(_0x46a29e,_0x4f50c1){_0x46a29e=_0x46a29e-0x9d;let _0x18474b=_0x22a3fe[_0x46a29e];return _0x18474b;},a11_0x1e0a(_0x561577,_0x854706);}'use strict';Object[a11_0x2c0080(0xaa)](exports,'__esModule',{'value':!![]});const fs=require('fs'),path_1=require(a11_0x2c0080(0xb0));async function default_1({tablestartUpShort:_0x29b6b7,tablestartUpShort2:_0x39fd97,moduleName:_0x2c23c3,controller:_0x31ebcf,Comment:_0x49536c,apporbasic:_0x182113,Primary:_0xb6a7d4}){const _0x25d3d0=a11_0x2c0080;let _0x439cf3=process[_0x25d3d0(0xc2)]()+_0x25d3d0(0xae)+(typeof _0x31ebcf==_0x25d3d0(0xa5)?'/'+_0x31ebcf:'');_0x2c23c3?_0x439cf3=_0x439cf3+('/pages/apps/'+_0x2c23c3+_0x25d3d0(0xb6)+_0x29b6b7+'.js'):_0x439cf3=_0x439cf3+('/pages/'+_0x182113+_0x25d3d0(0xb6)+_0x29b6b7+_0x25d3d0(0xbf));if(!fs[_0x25d3d0(0xbd)](_0x439cf3)){const _0x2bc194=''+(typeof _0x31ebcf==_0x25d3d0(0xa5)?_0x31ebcf+'/':'')+(_0x2c23c3?_0x2c23c3+'/':'')+_0x39fd97+'/add',_0x4cf183=''+(typeof _0x31ebcf=='string'?_0x31ebcf+'/':'')+(_0x2c23c3?_0x2c23c3+'/':'')+_0x39fd97+_0x25d3d0(0xbc),_0x207698=''+(typeof _0x31ebcf==_0x25d3d0(0xa5)?_0x31ebcf+'/':'')+(_0x2c23c3?_0x2c23c3+'/':'')+_0x39fd97+_0x25d3d0(0xa4)+_0xb6a7d4[_0x25d3d0(0xa9)],_0x48d117=''+(typeof _0x31ebcf=='string'?_0x31ebcf+'/':'')+(_0x2c23c3?_0x2c23c3+'/':'')+_0x39fd97+_0x25d3d0(0xa2)+_0xb6a7d4[_0x25d3d0(0xa9)],_0x27f219=''+(typeof _0x31ebcf==_0x25d3d0(0xa5)?_0x31ebcf+'/':'')+(_0x2c23c3?_0x2c23c3+'/':'')+_0x39fd97+_0x25d3d0(0xa1);let _0x42c208='\x0a\x0a';_0x42c208+=_0x25d3d0(0xaf)+_0x49536c+'\x0a',_0x42c208+=_0x25d3d0(0x9e)+_0x29b6b7+_0x25d3d0(0xc7),_0x42c208+=_0x25d3d0(0xcd),_0x42c208+=_0x25d3d0(0xab),_0x42c208+=_0x25d3d0(0xba)+_0x49536c+_0x25d3d0(0xbb),_0x42c208+=_0x25d3d0(0xb7)+_0x2bc194+'\x27\x0a',_0x42c208+='\x20\x20\x20\x20},\x0a',_0x42c208+=_0x25d3d0(0xcb),_0x42c208+='\x20\x20\x20\x20\x20\x20\x20\x20method:\x20\x27post\x27,\x0a',_0x42c208+='\x20\x20\x20\x20\x20\x20\x20\x20name:\x20\x27'+_0x49536c+'@编辑\x27,\x0a',_0x42c208+='\x20\x20\x20\x20\x20\x20\x20\x20api:\x20\x27'+_0x207698+'\x27\x0a',_0x42c208+=_0x25d3d0(0xb1),_0x42c208+=_0x25d3d0(0x9f),_0x42c208+=_0x25d3d0(0xb4),_0x42c208+=_0x25d3d0(0xba)+_0x49536c+_0x25d3d0(0xd0),_0x42c208+=_0x25d3d0(0xb7)+_0x4cf183+'\x27\x0a',_0x42c208+=_0x25d3d0(0xb1),_0x42c208+=_0x25d3d0(0xa0),_0x42c208+=_0x25d3d0(0xb4),_0x42c208+=_0x25d3d0(0xba)+_0x49536c+_0x25d3d0(0xb2),_0x42c208+=_0x25d3d0(0xb7)+_0x48d117+'\x27\x0a',_0x42c208+=_0x25d3d0(0xb1),_0x42c208+=_0x25d3d0(0xa7),_0x42c208+=_0x25d3d0(0xab),_0x42c208+=_0x25d3d0(0xba)+_0x49536c+_0x25d3d0(0xc3),_0x42c208+=_0x25d3d0(0xb7)+_0x27f219+'\x27\x0a',_0x42c208+='\x20\x20\x20\x20}\x0a',_0x42c208+='}\x0a',fs[_0x25d3d0(0xb8)]((0x0,path_1[_0x25d3d0(0xc0)])(_0x439cf3),{'recursive':!![]}),fs[_0x25d3d0(0xc9)](_0x439cf3,_0x42c208,_0x25d3d0(0xca));}}exports[a11_0x2c0080(0xb5)]=default_1;function a11_0x1847(){const _0x577cfc=['548133ihMBlP','(((.+)+)+)+$','542356TMnxbZ','\x20=\x20{\x0a','search','writeFileSync','utf-8','\x20\x20\x20\x20edit:{\x0a','33KdqvTz','\x20\x20\x20\x20add:{\x0a','114YxtTmu','constructor','@列表\x27,\x0a','2AueGyQ','export\x20const\x20','\x20\x20\x20\x20list:{\x0a','\x20\x20\x20\x20detail:{\x0a','/remove','/detail/:','32455560vYOmtS','/edit/:','string','12ycELbv','\x20\x20\x20\x20remove:{\x0a','apply','Field','defineProperty','\x20\x20\x20\x20\x20\x20\x20\x20method:\x20\x27post\x27,\x0a','36pQqYTU','toString','/vue','//\x20','path','\x20\x20\x20\x20},\x0a','@详情\x27,\x0a','6110671kwxPDq','\x20\x20\x20\x20\x20\x20\x20\x20method:\x20\x27get\x27,\x0a','default','/apis/','\x20\x20\x20\x20\x20\x20\x20\x20api:\x20\x27','mkdirSync','19824HwuNKa','\x20\x20\x20\x20\x20\x20\x20\x20name:\x20\x27','@添加\x27,\x0a','/list','existsSync','170405DiXTbM','.js','dirname','2418870qLSRYr','cwd','@删除\x27,\x0a'];a11_0x1847=function(){return _0x577cfc;};return a11_0x1847();}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export default function ({ tablestartUpShort2, controller, moduleName, Comment, apporbasic }: {
|
|
2
|
-
tablestartUpShort2: any;
|
|
3
|
-
controller: any;
|
|
4
|
-
moduleName: any;
|
|
5
|
-
Comment: any;
|
|
6
|
-
apporbasic: any;
|
|
7
|
-
}): Promise<void>;
|
|
1
|
+
export default function ({ tablestartUpShort2, controller, moduleName, Comment, apporbasic }: {
|
|
2
|
+
tablestartUpShort2: any;
|
|
3
|
+
controller: any;
|
|
4
|
+
moduleName: any;
|
|
5
|
+
Comment: any;
|
|
6
|
+
apporbasic: any;
|
|
7
|
+
}): Promise<void>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a12_0x3ad75b=a12_0x242a;(function(_0x49e8cc,_0x204e05){const _0x20d7d0=a12_0x242a,_0x56887c=_0x49e8cc();while(!![]){try{const _0x1c7609=parseInt(_0x20d7d0(0x1d0))/0x1+parseInt(_0x20d7d0(0x1ec))/0x2+-parseInt(_0x20d7d0(0x1eb))/0x3+-parseInt(_0x20d7d0(0x1e6))/0x4*(-parseInt(_0x20d7d0(0x1da))/0x5)+-parseInt(_0x20d7d0(0x1e4))/0x6*(-parseInt(_0x20d7d0(0x1df))/0x7)+parseInt(_0x20d7d0(0x1e5))/0x8*(parseInt(_0x20d7d0(0x1e7))/0x9)+parseInt(_0x20d7d0(0x1cc))/0xa*(-parseInt(_0x20d7d0(0x1f1))/0xb);if(_0x1c7609===_0x204e05)break;else _0x56887c['push'](_0x56887c['shift']());}catch(_0x479af7){_0x56887c['push'](_0x56887c['shift']());}}}(a12_0x43e9,0x87c7e));function a12_0x242a(_0x2ec0ea,_0x4120b9){const _0x28030b=a12_0x43e9();return a12_0x242a=function(_0x29c785,_0x363f85){_0x29c785=_0x29c785-0x1c9;let _0x43e93b=_0x28030b[_0x29c785];return _0x43e93b;},a12_0x242a(_0x2ec0ea,_0x4120b9);}const a12_0x363f85=(function(){let _0x59d12a=!![];return function(_0x54e85f,_0x55e7c0){const _0x578edf=_0x59d12a?function(){const _0x39a41d=a12_0x242a;if(_0x55e7c0){const _0xe20055=_0x55e7c0[_0x39a41d(0x1d7)](_0x54e85f,arguments);return _0x55e7c0=null,_0xe20055;}}:function(){};return _0x59d12a=![],_0x578edf;};}()),a12_0x29c785=a12_0x363f85(this,function(){const _0x33430b=a12_0x242a;return a12_0x29c785[_0x33430b(0x1f2)]()[_0x33430b(0x1d3)](_0x33430b(0x1dd))[_0x33430b(0x1f2)]()['constructor'](a12_0x29c785)['search'](_0x33430b(0x1dd));});a12_0x29c785();'use strict';Object[a12_0x3ad75b(0x1db)](exports,a12_0x3ad75b(0x1dc),{'value':!![]});const fs=require('fs'),path_1=require('path');async function default_1({tablestartUpShort2:_0x46470f,controller:_0x20f536,moduleName:_0x7ed22c,Comment:_0x2991f4,apporbasic:_0x1d1f4c}){const _0x4d9717=a12_0x3ad75b;let _0xe00d6f=process[_0x4d9717(0x1d6)]()+_0x4d9717(0x1f0)+(typeof _0x20f536=='string'?'/'+_0x20f536:'');_0x7ed22c?_0xe00d6f=_0xe00d6f+(_0x4d9717(0x1e3)+_0x7ed22c+_0x4d9717(0x1d2)):_0xe00d6f=_0xe00d6f+(_0x4d9717(0x1cd)+_0x1d1f4c+_0x4d9717(0x1d2));await createLayout(_0xe00d6f);const _0x2a8a10=fs[_0x4d9717(0x1ed)](_0xe00d6f,_0x4d9717(0x1ee));fs[_0x4d9717(0x1d5)](_0xe00d6f,_0x2a8a10[_0x4d9717(0x1e8)]('//\x20add\x20menu\x20here',_0x4d9717(0x1e0)+(_0x2991f4+'\x22')[_0x4d9717(0x1ce)](0x14)+',\x20path:\x20\x22'+(''+(typeof _0x7ed22c=='string'?'/apps-'+_0x7ed22c+'/':'/'+_0x1d1f4c+'/')+_0x46470f+'\x22')[_0x4d9717(0x1ce)](0x14)+_0x4d9717(0x1ca)));}exports[a12_0x3ad75b(0x1e9)]=default_1;async function createLayout(_0x388f41){const _0x508f30=a12_0x3ad75b;if(!fs['existsSync'](_0x388f41)){let _0xcc0448=_0x508f30(0x1d8);_0xcc0448+=_0x508f30(0x1c9),_0xcc0448+='\x20\x20\x20\x20</page-layout>\x0a',_0xcc0448+=_0x508f30(0x1d4),_0xcc0448+='<script>\x0a',_0xcc0448+=_0x508f30(0x1d9),_0xcc0448+=_0x508f30(0x1cf),_0xcc0448+='\x20\x20\x20\x20\x20\x20\x20\x20return\x20{\x0a',_0xcc0448+=_0x508f30(0x1de),_0xcc0448+='\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20add\x20menu\x20here\x0a',_0xcc0448+=_0x508f30(0x1d1),_0xcc0448+=_0x508f30(0x1e1),_0xcc0448+=_0x508f30(0x1ea),_0xcc0448+='}\x0a',_0xcc0448+=_0x508f30(0x1cb),fs[_0x508f30(0x1ef)]((0x0,path_1[_0x508f30(0x1e2)])(_0x388f41),{'recursive':!![]}),fs[_0x508f30(0x1d5)](_0x388f41,_0xcc0448,_0x508f30(0x1ee));}}function a12_0x43e9(){const _0x266eb8=['/pages/apps/','4630050nchVqR','8oLyrtG','4phAyNS','4299381hcipji','replace','default','\x20\x20\x20\x20},\x0a','847059VWrHpr','1198428RNzWRv','readFileSync','utf-8','mkdirSync','/vue','473STFbgz','toString','\x20\x20\x20\x20<page-layout\x20title=\x22未设置\x22\x20:menus=\x22menus\x22>\x0a\x0a','},\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20add\x20menu\x20here','</script>\x0a\x0a','266790HQhqjE','/pages/','padEnd','\x20\x20\x20\x20data()\x20{\x0a','114959wzmlDu','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20]\x0a','/layout.vue','search','</template>\x0a\x0a','writeFileSync','cwd','apply','<template>\x0a','export\x20default\x20{\x0a','110755DrFDed','defineProperty','__esModule','(((.+)+)+)+$','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20menus:\x20[\x0a','7RjFVUQ','{title:\x20\x22','\x20\x20\x20\x20\x20\x20\x20\x20}\x0a','dirname'];a12_0x43e9=function(){return _0x266eb8;};return a12_0x43e9();}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export default function ({ moduleName, controller, tablestartUpShort, tablestartUpShort2, Primary, Fields, apporbasic, Comment }: {
|
|
2
|
-
moduleName: any;
|
|
3
|
-
controller: any;
|
|
4
|
-
tablestartUpShort: any;
|
|
5
|
-
tablestartUpShort2: any;
|
|
6
|
-
Primary: any;
|
|
7
|
-
Fields: any;
|
|
8
|
-
apporbasic: any;
|
|
9
|
-
Comment: any;
|
|
10
|
-
}): Promise<void>;
|
|
1
|
+
export default function ({ moduleName, controller, tablestartUpShort, tablestartUpShort2, Primary, Fields, apporbasic, Comment }: {
|
|
2
|
+
moduleName: any;
|
|
3
|
+
controller: any;
|
|
4
|
+
tablestartUpShort: any;
|
|
5
|
+
tablestartUpShort2: any;
|
|
6
|
+
Primary: any;
|
|
7
|
+
Fields: any;
|
|
8
|
+
apporbasic: any;
|
|
9
|
+
Comment: any;
|
|
10
|
+
}): Promise<void>;
|