anncic-apihelper 1.0.12 → 1.0.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/configuration.js +1 -1
- package/dist/helper.js +1 -1
- package/dist/index.js +1 -1
- package/dist/service/ApicreateService.js +1 -1
- package/dist/templateFun/Action.js +1 -1
- package/dist/templateFun/Common.js +1 -1
- package/dist/templateFun/Entify.js +1 -1
- package/dist/templateFun/Entities.js +1 -1
- package/dist/templateFun/Event.js +1 -1
- package/dist/templateFun/Handler.js +1 -1
- package/dist/templateFun/Index.js +1 -1
- package/dist/templateFun/Search.js +1 -1
- package/dist/templateFun/Validator.js +1 -1
- package/dist/types/index.js +1 -1
- package/package.json +3 -3
package/dist/configuration.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a0_0x16425b=a0_0x4718;function a0_0x4718(_0x4ecc6b,_0x5ef237){var _0x4d072e=a0_0x4d07();return a0_0x4718=function(_0x4718fb,_0x337b9d){_0x4718fb=_0x4718fb-0x134;var _0x5e9f60=_0x4d072e[_0x4718fb];return _0x5e9f60;},a0_0x4718(_0x4ecc6b,_0x5ef237);}(function(_0x5a46de,_0x56876c){var _0x33dd39=a0_0x4718,_0x137d3f=_0x5a46de();while(!![]){try{var _0x1c8a1c=parseInt(_0x33dd39(0x149))/0x1+parseInt(_0x33dd39(0x14d))/0x2*(-parseInt(_0x33dd39(0x14f))/0x3)+parseInt(_0x33dd39(0x148))/0x4*(-parseInt(_0x33dd39(0x13b))/0x5)+parseInt(_0x33dd39(0x13a))/0x6+parseInt(_0x33dd39(0x14e))/0x7+-parseInt(_0x33dd39(0x134))/0x8*(-parseInt(_0x33dd39(0x135))/0x9)+-parseInt(_0x33dd39(0x137))/0xa*(parseInt(_0x33dd39(0x14b))/0xb);if(_0x1c8a1c===_0x56876c)break;else _0x137d3f['push'](_0x137d3f['shift']());}catch(_0xdda343){_0x137d3f['push'](_0x137d3f['shift']());}}}(a0_0x4d07,0x45ac8));var __decorate=this&&this['__decorate']||function(_0x2378c8,_0x17cc7f,_0x33e259,_0x3970b7){var _0x298fbc=a0_0x4718,_0x46f1c3=arguments[_0x298fbc(0x142)],_0x30ea0f=_0x46f1c3<0x3?_0x17cc7f:_0x3970b7===null?_0x3970b7=Object[_0x298fbc(0x146)](_0x17cc7f,_0x33e259):_0x3970b7,_0x3eab01;if(typeof Reflect===_0x298fbc(0x13c)&&typeof Reflect[_0x298fbc(0x145)]==='function')_0x30ea0f=Reflect[_0x298fbc(0x145)](_0x2378c8,_0x17cc7f,_0x33e259,_0x3970b7);else{for(var _0x1d9d41=_0x2378c8[_0x298fbc(0x142)]-0x1;_0x1d9d41>=0x0;_0x1d9d41--)if(_0x3eab01=_0x2378c8[_0x1d9d41])_0x30ea0f=(_0x46f1c3<0x3?_0x3eab01(_0x30ea0f):_0x46f1c3>0x3?_0x3eab01(_0x17cc7f,_0x33e259,_0x30ea0f):_0x3eab01(_0x17cc7f,_0x33e259))||_0x30ea0f;}return _0x46f1c3>0x3&&_0x30ea0f&&Object[_0x298fbc(0x14a)](_0x17cc7f,_0x33e259,_0x30ea0f),_0x30ea0f;},__metadata=this&&this['__metadata']||function(_0x3473d6,_0x3f1bc6){var _0x573065=a0_0x4718;if(typeof Reflect==='object'&&typeof Reflect[_0x573065(0x150)]===_0x573065(0x144))return Reflect[_0x573065(0x150)](_0x3473d6,_0x3f1bc6);};Object[a0_0x16425b(0x14a)](exports,a0_0x16425b(0x139),{'value':!![]}),exports[a0_0x16425b(0x141)]=void 0x0;const decorator_1=require(a0_0x16425b(0x13e)),core_1=require(a0_0x16425b(0x138)),typeorm=require(a0_0x16425b(0x13d));let CustomConfiguration=class CustomConfiguration{};__decorate([(0x0,decorator_1[a0_0x16425b(0x13f)])(),__metadata(a0_0x16425b(0x14c),core_1['MidwayConfigService'])],CustomConfiguration[a0_0x16425b(0x136)],'config',void 0x0),__decorate([(0x0,decorator_1[a0_0x16425b(0x13f)])(),__metadata(a0_0x16425b(0x14c),core_1[a0_0x16425b(0x147)])],CustomConfiguration[a0_0x16425b(0x136)],a0_0x16425b(0x143),void 0x0),__decorate([(0x0,decorator_1[a0_0x16425b(0x13f)])(),__metadata('design:type',core_1['MidwayApplicationManager'])],CustomConfiguration['prototype'],a0_0x16425b(0x140),void 0x0),CustomConfiguration=__decorate([(0x0,decorator_1['Configuration'])({'conflictCheck':![],'imports':[typeorm],'namespace':a0_0x16425b(0x151)})],CustomConfiguration),exports[a0_0x16425b(0x141)]=CustomConfiguration;function a0_0x4d07(){var _0x2d6090=['83911GVlVro','defineProperty','4961agpkZZ','design:type','6PAyQhK','2472932QZjYAc','363666aUUroM','metadata','anncic-apihelper','144yDMleQ','277704JgFSrd','prototype','8170ZlHVkB','@midwayjs/core','__esModule','1111320LTwNSa','801490EFrfaI','object','@anncic-api/typeorm','@midwayjs/decorator','Inject','application','CustomConfiguration','length','decorator','function','decorate','getOwnPropertyDescriptor','MidwayDecoratorService','4ozzrxP'];a0_0x4d07=function(){return _0x2d6090;};return a0_0x4d07();}
|
package/dist/helper.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a1_0x35bbdf=a1_0x6e53;(function(_0x4fbccb,_0x13e1b4){const _0x3516fb=a1_0x6e53,_0x47ae4b=_0x4fbccb();while(!![]){try{const _0x2243ff=parseInt(_0x3516fb(0x1b6))/0x1+parseInt(_0x3516fb(0x1b3))/0x2*(-parseInt(_0x3516fb(0x1ae))/0x3)+-parseInt(_0x3516fb(0x1b7))/0x4+-parseInt(_0x3516fb(0x1a1))/0x5*(parseInt(_0x3516fb(0x1ac))/0x6)+-parseInt(_0x3516fb(0x1a8))/0x7+-parseInt(_0x3516fb(0x1b4))/0x8*(-parseInt(_0x3516fb(0x1a4))/0x9)+-parseInt(_0x3516fb(0x1a5))/0xa*(-parseInt(_0x3516fb(0x1a2))/0xb);if(_0x2243ff===_0x13e1b4)break;else _0x47ae4b['push'](_0x47ae4b['shift']());}catch(_0x1e5397){_0x47ae4b['push'](_0x47ae4b['shift']());}}}(a1_0x2a3d,0xd77b9));Object[a1_0x35bbdf(0x1b0)](exports,a1_0x35bbdf(0x1b1),{'value':!![]}),exports[a1_0x35bbdf(0x1aa)]=exports[a1_0x35bbdf(0x1b2)]=void 0x0;const columnTypes={'json':'json','char':'string','varchar':a1_0x35bbdf(0x1bf),'text':a1_0x35bbdf(0x1a3),'longtext':a1_0x35bbdf(0x1bb),'mediumtext':a1_0x35bbdf(0x1be),'int':a1_0x35bbdf(0x1af),'float':a1_0x35bbdf(0x1a6),'double':a1_0x35bbdf(0x1a6),'decimal':a1_0x35bbdf(0x1a7),'date':a1_0x35bbdf(0x1b5),'time':a1_0x35bbdf(0x1bc),'datetime':a1_0x35bbdf(0x1bc),'timestamp':a1_0x35bbdf(0x1a9),'tinyint':'tinyint'};function a1_0x6e53(_0x40a2cc,_0x54bcc5){const _0x2a3d0b=a1_0x2a3d();return a1_0x6e53=function(_0x6e53e8,_0x5b5e68){_0x6e53e8=_0x6e53e8-0x1a1;let _0x4c871c=_0x2a3d0b[_0x6e53e8];return _0x4c871c;},a1_0x6e53(_0x40a2cc,_0x54bcc5);}function getProp(_0x2c397e){const _0x4a54ad=a1_0x35bbdf;if(columnTypes[_0x4a54ad(0x1c0)](_0x2c397e))return columnTypes[_0x2c397e];else return _0x2c397e[_0x4a54ad(0x1bd)]('(')>-0x1||_0x2c397e[_0x4a54ad(0x1bd)]('\x20')>-0x1?(_0x2c397e=_0x2c397e[_0x4a54ad(0x1ba)](0x0,_0x2c397e['indexOf']('(')>-0x1?_0x2c397e[_0x4a54ad(0x1bd)]('('):_0x2c397e[_0x4a54ad(0x1bd)]('\x20')),columnTypes[_0x2c397e]||_0x2c397e):'string';}exports['getProp']=getProp;function getEnum(_0x85dce7){const _0x3f6219=a1_0x35bbdf;if(getProp(_0x85dce7)==_0x3f6219(0x1b8))return _0x85dce7['substr'](0x5,_0x85dce7[_0x3f6219(0x1b9)]-0x6)[_0x3f6219(0x1ad)](/[\'|\"]/g,'')[_0x3f6219(0x1ab)](',');return[];}function a1_0x2a3d(){const _0x1b7af0=['1464ShuPib','date','1358025OEuClw','5551968VNuqKf','enum','length','substr','longtext','datetime','indexOf','mediumtext','string','hasOwnProperty','5EuGNBW','1859ZrnQDY','text','48834XxsCrD','258790Weccju','float','decimal','11736508pjumvL','timestamp','getEnum','split','6582006LfPRVJ','replace','18003WxZKQv','number','defineProperty','__esModule','getProp','560JZyYdu'];a1_0x2a3d=function(){return _0x1b7af0;};return a1_0x2a3d();}exports[a1_0x35bbdf(0x1aa)]=getEnum;
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';function a2_0x596f(){var _0x5983d0=['10PaIvCq','328433cLeNLA','914826TkCQhO','1464002shEWQu','24aSdqAT','102SKItGH','__esModule','./configuration','8690004GoxevS','3137255PlVrWF','184680ZCqFnr','52mTBmqz','ApicreateService','Configuration','547175KgnysU','CustomConfiguration','2iYBlkD','39GBrnaT'];a2_0x596f=function(){return _0x5983d0;};return a2_0x596f();}var a2_0x5c9ac8=a2_0x37da;(function(_0x15c1d3,_0x1f29ec){var _0x201977=a2_0x37da,_0x3c9545=_0x15c1d3();while(!![]){try{var _0x15ab4a=-parseInt(_0x201977(0x184))/0x1*(-parseInt(_0x201977(0x189))/0x2)+-parseInt(_0x201977(0x188))/0x3+-parseInt(_0x201977(0x17f))/0x4*(-parseInt(_0x201977(0x182))/0x5)+-parseInt(_0x201977(0x18b))/0x6*(-parseInt(_0x201977(0x187))/0x7)+-parseInt(_0x201977(0x18a))/0x8*(parseInt(_0x201977(0x17e))/0x9)+-parseInt(_0x201977(0x186))/0xa*(parseInt(_0x201977(0x18f))/0xb)+parseInt(_0x201977(0x18e))/0xc*(-parseInt(_0x201977(0x185))/0xd);if(_0x15ab4a===_0x1f29ec)break;else _0x3c9545['push'](_0x3c9545['shift']());}catch(_0x40f42d){_0x3c9545['push'](_0x3c9545['shift']());}}}(a2_0x596f,0xd1fa8));Object['defineProperty'](exports,a2_0x5c9ac8(0x18c),{'value':!![]}),exports[a2_0x5c9ac8(0x181)]=exports['ApicreateService']=void 0x0;var ApicreateService_1=require('./service/ApicreateService');function a2_0x37da(_0x30d02a,_0x52262b){var _0x596f42=a2_0x596f();return a2_0x37da=function(_0x37da53,_0x5831d8){_0x37da53=_0x37da53-0x17e;var _0x462219=_0x596f42[_0x37da53];return _0x462219;},a2_0x37da(_0x30d02a,_0x52262b);}Object['defineProperty'](exports,a2_0x5c9ac8(0x180),{'enumerable':!![],'get':function(){return ApicreateService_1['ApicreateService'];}});var configuration_1=require(a2_0x5c9ac8(0x18d));Object['defineProperty'](exports,a2_0x5c9ac8(0x181),{'enumerable':!![],'get':function(){var _0x2e1aba=a2_0x5c9ac8;return configuration_1[_0x2e1aba(0x183)];}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const a3_0x1c6c11=a3_0x1490;(function(_0x2fe677,_0x7a61af){const _0x429c3a=a3_0x1490,_0x31714e=_0x2fe677();while(!![]){try{const _0x3bc98e=-parseInt(_0x429c3a(0x1f4))/0x1*(-parseInt(_0x429c3a(0x1c8))/0x2)+parseInt(_0x429c3a(0x202))/0x3+parseInt(_0x429c3a(0x203))/0x4*(parseInt(_0x429c3a(0x1be))/0x5)+parseInt(_0x429c3a(0x1b3))/0x6*(-parseInt(_0x429c3a(0x211))/0x7)+parseInt(_0x429c3a(0x20a))/0x8*(parseInt(_0x429c3a(0x1bb))/0x9)+parseInt(_0x429c3a(0x1f0))/0xa*(-parseInt(_0x429c3a(0x1d1))/0xb)+-parseInt(_0x429c3a(0x1d6))/0xc*(parseInt(_0x429c3a(0x1c0))/0xd);if(_0x3bc98e===_0x7a61af)break;else _0x31714e['push'](_0x31714e['shift']());}catch(_0x16ec3f){_0x31714e['push'](_0x31714e['shift']());}}}(a3_0x43bb,0x277fd));var __decorate=this&&this[a3_0x1c6c11(0x1f3)]||function(_0x4356f6,_0x19f8af,_0x374249,_0x285642){const _0x384a6a=a3_0x1c6c11;var _0x465df=arguments[_0x384a6a(0x1f7)],_0x27aa4c=_0x465df<0x3?_0x19f8af:_0x285642===null?_0x285642=Object[_0x384a6a(0x1b6)](_0x19f8af,_0x374249):_0x285642,_0x58123c;if(typeof Reflect===_0x384a6a(0x1c2)&&typeof Reflect[_0x384a6a(0x1b8)]===_0x384a6a(0x1ef))_0x27aa4c=Reflect[_0x384a6a(0x1b8)](_0x4356f6,_0x19f8af,_0x374249,_0x285642);else{for(var _0x53ecf2=_0x4356f6[_0x384a6a(0x1f7)]-0x1;_0x53ecf2>=0x0;_0x53ecf2--)if(_0x58123c=_0x4356f6[_0x53ecf2])_0x27aa4c=(_0x465df<0x3?_0x58123c(_0x27aa4c):_0x465df>0x3?_0x58123c(_0x19f8af,_0x374249,_0x27aa4c):_0x58123c(_0x19f8af,_0x374249))||_0x27aa4c;}return _0x465df>0x3&&_0x27aa4c&&Object[_0x384a6a(0x20e)](_0x19f8af,_0x374249,_0x27aa4c),_0x27aa4c;},__metadata=this&&this[a3_0x1c6c11(0x1d3)]||function(_0x3f73fb,_0x181569){const _0x38aff9=a3_0x1c6c11;if(typeof Reflect===_0x38aff9(0x1c2)&&typeof Reflect[_0x38aff9(0x1e7)]===_0x38aff9(0x1ef))return Reflect[_0x38aff9(0x1e7)](_0x3f73fb,_0x181569);};Object[a3_0x1c6c11(0x20e)](exports,a3_0x1c6c11(0x1cc),{'value':!![]}),exports[a3_0x1c6c11(0x1ba)]=void 0x0;const fs=require('fs'),path=require(a3_0x1c6c11(0x1da)),core_1=require(a3_0x1c6c11(0x1ee)),typeorm_1=require(a3_0x1c6c11(0x210)),decorator_1=require(a3_0x1c6c11(0x1ed)),Common_1=require('../templateFun/Common'),Event_1=require(a3_0x1c6c11(0x1dc)),Search_1=require('../templateFun/Search'),Entities_1=require(a3_0x1c6c11(0x1ec)),Handler_1=require(a3_0x1c6c11(0x1c9)),Validator_1=require(a3_0x1c6c11(0x1ea)),Action_1=require(a3_0x1c6c11(0x212));let ApicreateService=class ApicreateService{async[a3_0x1c6c11(0x1f1)](_0x11816e){const _0x4d467f=a3_0x1c6c11;var _0x1c6c7d,_0xc983ba,_0x22ccee,_0x891057,_0x277d33;if(this[_0x4d467f(0x1cf)]['isDevelopmentEnvironment']()&&((_0x1c6c7d=this[_0x4d467f(0x1c5)])===null||_0x1c6c7d===void 0x0?void 0x0:_0x1c6c7d[_0x4d467f(0x1f6)])&&this['app']['getConfig'](_0x4d467f(0x1c1))){!_0x11816e['connection']&&(_0x11816e['connection']=_0x4d467f(0x1ad));if(!((_0x22ccee=(_0xc983ba=this['config'])===null||_0xc983ba===void 0x0?void 0x0:_0xc983ba[_0x4d467f(0x1f6)])===null||_0x22ccee===void 0x0?void 0x0:_0x22ccee[_0x11816e[_0x4d467f(0x1d4)]]))throw new Error(_0x4d467f(0x1f2)+_0x11816e[_0x4d467f(0x1d4)]);if(!this[_0x4d467f(0x1c3)]['hasDataSource'](_0x11816e[_0x4d467f(0x1d4)]))throw new Error(_0x4d467f(0x1e6)+_0x11816e[_0x4d467f(0x1d4)]+_0x4d467f(0x1d0));if(!this[_0x4d467f(0x1c3)][_0x4d467f(0x1b5)](_0x11816e[_0x4d467f(0x1d4)]))throw new Error(_0x4d467f(0x1e6)+_0x11816e['connection']+_0x4d467f(0x1fc));const _0x4854a1=this[_0x4d467f(0x1cd)]['getBaseDir'](),_0x2181ea=this['dataSourceManager'][_0x4d467f(0x205)](_0x11816e[_0x4d467f(0x1d4)]),_0x27ee45=await _0x2181ea[_0x4d467f(0x1fb)](_0x4d467f(0x1ff)+this[_0x4d467f(0x1c5)][_0x4d467f(0x1f6)][_0x11816e[_0x4d467f(0x1d4)]][_0x4d467f(0x1bf)]+_0x4d467f(0x1ae)+((_0x11816e===null||_0x11816e===void 0x0?void 0x0:_0x11816e[_0x4d467f(0x1af)])?_0x4d467f(0x1e0)+_0x11816e[_0x4d467f(0x1af)]+'\x22':_0x4d467f(0x206)+(_0x11816e['tableprefix']||'')+'%\x22'))||[];for(let _0x1b1db2=0x0;_0x1b1db2<_0x27ee45[_0x4d467f(0x1f7)];_0x1b1db2++){const _0x2765c4=_0x27ee45[_0x1b1db2][_0x4d467f(0x1af)],_0x584b42=await _0x2181ea['query'](_0x4d467f(0x1d2)+this['config']['dataSource'][_0x11816e[_0x4d467f(0x1d4)]][_0x4d467f(0x1bf)]+'\x22\x20AND\x20table_name\x20=\x20\x27'+_0x2765c4+'\x27')||[];if((_0x891057=_0x584b42[0x0])===null||_0x891057===void 0x0?void 0x0:_0x891057[_0x4d467f(0x1de)]){const _0x6f8463={'tablename':_0x2765c4,'Primary':{},'Fields':{},'Comment':(_0x277d33=_0x584b42[0x0])===null||_0x277d33===void 0x0?void 0x0:_0x277d33[_0x4d467f(0x1de)]};_0x6f8463['tablestart']=_0x2765c4['substr']((_0x11816e===null||_0x11816e===void 0x0?void 0x0:_0x11816e[_0x4d467f(0x20b)])||0x0,_0x2765c4[_0x4d467f(0x1f7)]),_0x6f8463[_0x4d467f(0x20f)]=(_0x11816e===null||_0x11816e===void 0x0?void 0x0:_0x11816e[_0x4d467f(0x1e1)])?_0x4854a1+_0x4d467f(0x1d9)+_0x6f8463[_0x4d467f(0x1cb)][_0x4d467f(0x1b2)]('_')[0x0][_0x4d467f(0x1eb)]():_0x4854a1+_0x4d467f(0x200);const _0x5d1ad7=_0x6f8463[_0x4d467f(0x1cb)][_0x4d467f(0x1b2)]('_')['filter'](_0xd3bfd7=>_0xd3bfd7&&_0xd3bfd7['trim']());(_0x11816e===null||_0x11816e===void 0x0?void 0x0:_0x11816e[_0x4d467f(0x1e1)])&&(await this['CreateModuleConfig'](_0x6f8463),_0x6f8463[_0x4d467f(0x1c7)]=_0x5d1ad7[0x0][_0x4d467f(0x1eb)]());_0x6f8463[_0x4d467f(0x1fd)]=_0x5d1ad7['map'](_0x1adfae=>_0x1adfae[_0x4d467f(0x1eb)]())[_0x4d467f(0x1d7)](''),_0x6f8463[_0x4d467f(0x204)]=_0x5d1ad7[_0x4d467f(0x1db)](_0x179337=>''+_0x179337['substring'](0x0,0x1)[_0x4d467f(0x1fa)]()+_0x179337[_0x4d467f(0x1b7)](0x1)[_0x4d467f(0x1eb)]())['join']('');(_0x6f8463===null||_0x6f8463===void 0x0?void 0x0:_0x6f8463['moduleName'])&&_0x5d1ad7[_0x4d467f(0x1f7)]>0x1&&_0x5d1ad7[0x0][_0x4d467f(0x1eb)]()==_0x6f8463[_0x4d467f(0x1c7)]?(_0x6f8463[_0x4d467f(0x1dd)]=_0x6f8463[_0x4d467f(0x204)][_0x4d467f(0x1b7)](_0x6f8463[_0x4d467f(0x1c7)]['length'],_0x6f8463['tablestartUp'][_0x4d467f(0x1f7)]),_0x6f8463[_0x4d467f(0x1b0)]=_0x6f8463[_0x4d467f(0x1fd)][_0x4d467f(0x1b7)](_0x6f8463[_0x4d467f(0x1c7)][_0x4d467f(0x1f7)],_0x6f8463[_0x4d467f(0x1fd)][_0x4d467f(0x1f7)])):(_0x6f8463['tablestartUpShort']=_0x6f8463['tablestartUp'],_0x6f8463['tablestartLowShort']=_0x6f8463[_0x4d467f(0x1fd)]);for(let _0x28dc35 of await _0x2181ea[_0x4d467f(0x1fb)](_0x4d467f(0x1fe)+_0x2765c4+'`')){_0x28dc35['Key']==_0x4d467f(0x1e8)?_0x6f8463[_0x4d467f(0x1ca)]=_0x28dc35:_0x6f8463[_0x4d467f(0x20d)][_0x28dc35[_0x4d467f(0x1d5)]]=_0x28dc35;}(_0x11816e===null||_0x11816e===void 0x0?void 0x0:_0x11816e[_0x4d467f(0x1df)])&&(_0x6f8463[_0x4d467f(0x1df)]=_0x11816e===null||_0x11816e===void 0x0?void 0x0:_0x11816e[_0x4d467f(0x1df)]);if(!(_0x11816e===null||_0x11816e===void 0x0?void 0x0:_0x11816e['onlyvue'])){var _0x4cccb7=[];if(typeof(_0x11816e===null||_0x11816e===void 0x0?void 0x0:_0x11816e['controller'])=='string')_0x4cccb7=[_0x11816e===null||_0x11816e===void 0x0?void 0x0:_0x11816e[_0x4d467f(0x1df)]];else Array[_0x4d467f(0x209)](_0x11816e===null||_0x11816e===void 0x0?void 0x0:_0x11816e[_0x4d467f(0x1df)])?_0x4cccb7=_0x11816e===null||_0x11816e===void 0x0?void 0x0:_0x11816e[_0x4d467f(0x1df)]:_0x4cccb7=[!![]];_0x6f8463['controllers']=_0x4cccb7,await(0x0,Common_1[_0x4d467f(0x1ad)])(_0x6f8463),await(0x0,Event_1[_0x4d467f(0x1ad)])(_0x6f8463),await(0x0,Search_1[_0x4d467f(0x1ad)])(_0x6f8463),await(0x0,Entities_1['default'])(_0x6f8463),await(0x0,Handler_1[_0x4d467f(0x1ad)])(_0x6f8463),await(0x0,Validator_1[_0x4d467f(0x1ad)])(_0x6f8463);for(let _0x770553 of _0x4cccb7){_0x6f8463[_0x4d467f(0x1df)]=_0x770553,await(0x0,Action_1[_0x4d467f(0x1ad)])(_0x6f8463);}}}else console['error']('表:'+_0x2765c4+_0x4d467f(0x1e3));}}return _0x4d467f(0x1f5);}async['CreateModuleConfig'](_0x19c2e4){const _0x312148=a3_0x1c6c11,_0xbd8252=_0x19c2e4[_0x312148(0x1cb)][_0x312148(0x1b2)]('_')[0x0]['toLowerCase']();if(!fs[_0x312148(0x1e2)](_0x19c2e4[_0x312148(0x20f)]+_0x312148(0x1b9))){let _0xffbc32=_0x312148(0x207)+(_0x19c2e4[_0x312148(0x20c)]||_0xbd8252)+_0x312148(0x1ce);fs[_0x312148(0x1e5)](path[_0x312148(0x1bc)](_0x19c2e4[_0x312148(0x20f)]+_0x312148(0x1b9)),{'recursive':!![]}),fs[_0x312148(0x1b1)](_0x19c2e4[_0x312148(0x20f)]+_0x312148(0x1b9),_0xffbc32,'utf-8');}}};__decorate([(0x0,decorator_1[a3_0x1c6c11(0x1d8)])(),__metadata('design:type',Object)],ApicreateService[a3_0x1c6c11(0x201)],a3_0x1c6c11(0x1cd),void 0x0),__decorate([(0x0,decorator_1['Config'])(a3_0x1c6c11(0x1bd)),__metadata(a3_0x1c6c11(0x1c4),Object)],ApicreateService[a3_0x1c6c11(0x201)],'config',void 0x0),__decorate([(0x0,decorator_1[a3_0x1c6c11(0x1f8)])(),__metadata(a3_0x1c6c11(0x1c4),core_1[a3_0x1c6c11(0x1c6)])],ApicreateService[a3_0x1c6c11(0x201)],a3_0x1c6c11(0x1cf),void 0x0),__decorate([(0x0,decorator_1[a3_0x1c6c11(0x1f8)])(),__metadata('design:type',typeorm_1[a3_0x1c6c11(0x1e9)])],ApicreateService[a3_0x1c6c11(0x201)],a3_0x1c6c11(0x1c3),void 0x0),ApicreateService=__decorate([(0x0,decorator_1[a3_0x1c6c11(0x1f9)])('ApicreateService'),(0x0,decorator_1[a3_0x1c6c11(0x1e4)])(decorator_1[a3_0x1c6c11(0x1b4)][a3_0x1c6c11(0x208)])],ApicreateService),exports['ApicreateService']=ApicreateService;function a3_0x1490(_0x5b030b,_0x26e084){const _0x43bb09=a3_0x43bb();return a3_0x1490=function(_0x1490f5,_0x4f566f){_0x1490f5=_0x1490f5-0x1ad;let _0x45f95a=_0x43bb09[_0x1490f5];return _0x45f95a;},a3_0x1490(_0x5b030b,_0x26e084);}function a3_0x43bb(){const _0x2bd8c=['543813xzjtXX','104vKCAMV','tablestartUp','getDataSource','LIKE\x20\x22','export\x20default\x20{\x0a\x20\x20\x20\x20name:\x20\x27','Singleton','isArray','2547896fZWnWA','substr','Comment','Fields','defineProperty','basedir','@midwayjs/typeorm','2282YkVHQC','../templateFun/Action','default','\x22\x20AND\x20table_name\x20','table','tablestartLowShort','writeFileSync','split','4542ELiuJP','ScopeEnum','isConnected','getOwnPropertyDescriptor','substring','decorate','/config.ts','ApicreateService','9bwGzSs','dirname','typeorm','2585tCLjPH','database','26ASKiTZ','apitest','object','dataSourceManager','design:type','config','MidwayEnvironmentService','moduleName','2HrqvWp','../templateFun/Handler','Primary','tablestart','__esModule','app','\x27,\x0a\x20\x20\x20\x20description:\x20\x27\x27,\x0a\x20\x20\x20\x20middlewares:\x20[],\x0a}','environment','\x20不存在','88lwvblI','SELECT\x20TABLE_COMMENT\x20as\x20`comment`\x20FROM\x20information_schema.TABLES\x20WHERE\x20TABLE_SCHEMA=\x22','__metadata','connection','Field','919764mkFRdS','join','App','/apps/','path','map','../templateFun/Event','tablestartUpShort','comment','controller','=\x20\x22','module','existsSync','\x20表注释不存在','Scope','mkdirSync','typeorm\x20数据源\x20','metadata','PRI','TypeORMDataSourceManager','../templateFun/Validator','toLowerCase','../templateFun/Entities','@midwayjs/decorator','@midwayjs/core','function','139550wsmjtM','create','typeorm\x20未配置数据源\x20','__decorate','160305gemcmF','die','dataSource','length','Inject','Provide','toUpperCase','query','\x20未连接','tablestartLow','SHOW\x20FULL\x20COLUMNS\x20FROM\x20`','SELECT\x20TABLE_NAME\x20as\x20`table`\x20FROM\x20information_schema.TABLES\x20WHERE\x20TABLE_SCHEMA=\x22','/app','prototype'];a3_0x43bb=function(){return _0x2bd8c;};return a3_0x43bb();}
|
|
1
|
+
'use strict';const a3_0x143fd9=a3_0x1b54;(function(_0x53a615,_0x268da4){const _0x43a5fc=a3_0x1b54,_0x3e17c8=_0x53a615();while(!![]){try{const _0x262879=parseInt(_0x43a5fc(0x130))/0x1+parseInt(_0x43a5fc(0x105))/0x2*(-parseInt(_0x43a5fc(0x126))/0x3)+-parseInt(_0x43a5fc(0x120))/0x4*(parseInt(_0x43a5fc(0x155))/0x5)+-parseInt(_0x43a5fc(0x11e))/0x6+-parseInt(_0x43a5fc(0x154))/0x7+parseInt(_0x43a5fc(0x117))/0x8*(parseInt(_0x43a5fc(0x144))/0x9)+parseInt(_0x43a5fc(0x14d))/0xa*(parseInt(_0x43a5fc(0x136))/0xb);if(_0x262879===_0x268da4)break;else _0x3e17c8['push'](_0x3e17c8['shift']());}catch(_0x44983a){_0x3e17c8['push'](_0x3e17c8['shift']());}}}(a3_0x37f9,0x975f3));function a3_0x37f9(){const _0x1962ec=['Comment','isDevelopmentEnvironment','filter','object','MidwayEnvironmentService','getOwnPropertyDescriptor','\x22\x20AND\x20table_name\x20','split','1040jyQxSP','function','tablestartLowShort','length','Singleton','defineProperty','die','495663nzpRfJ','30KlkRVy','tablestartUp','Field','CreateModuleConfig','ScopeEnum','@midwayjs/core','map','../templateFun/Validator','dataSourceManager','comment','typeorm\x20未配置数据源\x20','default','decorate','dataSource','string','\x22\x20AND\x20table_name\x20=\x20\x27','tablestart','getConfig','writeFileSync','__esModule','/config.ts','314IBOkUN','Config','\x20未连接','@midwayjs/decorator','\x20表注释不存在','\x27,\x0a\x20\x20\x20\x20description:\x20\x27\x27,\x0a\x20\x20\x20\x20middlewares:\x20[],\x0a}','config','Provide','design:type','ApicreateService','controller','Primary','\x20不存在','isConnected','typeorm','environment','Key','LIKE\x20\x22','330688KiPAWq','=\x20\x22','existsSync','__decorate','module','Scope','basedir','3052890VhJFrK','apitest','536632CvtZUH','dirname','query','prototype','TypeORMDataSourceManager','join','10485iqvXBg','/app','../templateFun/Common','Inject','table','../templateFun/Search','moduleName','database','isArray','toLowerCase','797218OYyhgL','substring','@midwayjs/typeorm','app','PRI','onlyvue','181368vFQQbX','controllers','SELECT\x20TABLE_COMMENT\x20as\x20`comment`\x20FROM\x20information_schema.TABLES\x20WHERE\x20TABLE_SCHEMA=\x22','metadata','../templateFun/Handler','connection','hasDataSource','tableprefix','tablestartLow','trim','../templateFun/Event','typeorm\x20数据源\x20','../templateFun/Entities','utf-8','9XWjknN'];a3_0x37f9=function(){return _0x1962ec;};return a3_0x37f9();}var __decorate=this&&this[a3_0x143fd9(0x11a)]||function(_0x2e456f,_0x5b2219,_0x23ffa1,_0x13ad69){const _0x4ad512=a3_0x143fd9;var _0x1ec6fa=arguments[_0x4ad512(0x150)],_0x2314c4=_0x1ec6fa<0x3?_0x5b2219:_0x13ad69===null?_0x13ad69=Object[_0x4ad512(0x14a)](_0x5b2219,_0x23ffa1):_0x13ad69,_0x42809c;if(typeof Reflect==='object'&&typeof Reflect[_0x4ad512(0xfc)]===_0x4ad512(0x14e))_0x2314c4=Reflect['decorate'](_0x2e456f,_0x5b2219,_0x23ffa1,_0x13ad69);else{for(var _0x4bb2ae=_0x2e456f['length']-0x1;_0x4bb2ae>=0x0;_0x4bb2ae--)if(_0x42809c=_0x2e456f[_0x4bb2ae])_0x2314c4=(_0x1ec6fa<0x3?_0x42809c(_0x2314c4):_0x1ec6fa>0x3?_0x42809c(_0x5b2219,_0x23ffa1,_0x2314c4):_0x42809c(_0x5b2219,_0x23ffa1))||_0x2314c4;}return _0x1ec6fa>0x3&&_0x2314c4&&Object[_0x4ad512(0x152)](_0x5b2219,_0x23ffa1,_0x2314c4),_0x2314c4;},__metadata=this&&this['__metadata']||function(_0x13838e,_0x13c85c){const _0x1b9bf3=a3_0x143fd9;if(typeof Reflect===_0x1b9bf3(0x148)&&typeof Reflect[_0x1b9bf3(0x139)]===_0x1b9bf3(0x14e))return Reflect[_0x1b9bf3(0x139)](_0x13838e,_0x13c85c);};Object[a3_0x143fd9(0x152)](exports,a3_0x143fd9(0x103),{'value':!![]}),exports['ApicreateService']=void 0x0;function a3_0x1b54(_0x3b728d,_0xda7b96){const _0x37f984=a3_0x37f9();return a3_0x1b54=function(_0x1b5463,_0x549cb6){_0x1b5463=_0x1b5463-0xf3;let _0x5f5046=_0x37f984[_0x1b5463];return _0x5f5046;},a3_0x1b54(_0x3b728d,_0xda7b96);}const fs=require('fs'),path=require('path'),core_1=require(a3_0x143fd9(0xf5)),typeorm_1=require(a3_0x143fd9(0x132)),decorator_1=require(a3_0x143fd9(0x108)),Common_1=require(a3_0x143fd9(0x128)),Event_1=require(a3_0x143fd9(0x140)),Search_1=require(a3_0x143fd9(0x12b)),Entities_1=require(a3_0x143fd9(0x142)),Handler_1=require(a3_0x143fd9(0x13a)),Validator_1=require(a3_0x143fd9(0xf7)),Action_1=require('../templateFun/Action');let ApicreateService=class ApicreateService{async['create'](_0x1a9388){const _0x44294e=a3_0x143fd9;var _0x50ad05,_0x3bc857,_0x327998,_0x2c7c4e,_0x4ae815;if(this[_0x44294e(0x114)][_0x44294e(0x146)]()&&((_0x50ad05=this[_0x44294e(0x10b)])===null||_0x50ad05===void 0x0?void 0x0:_0x50ad05[_0x44294e(0xfd)])&&this[_0x44294e(0x133)][_0x44294e(0x101)](_0x44294e(0x11f))){!_0x1a9388['connection']&&(_0x1a9388[_0x44294e(0x13b)]=_0x44294e(0xfb));if(!((_0x327998=(_0x3bc857=this[_0x44294e(0x10b)])===null||_0x3bc857===void 0x0?void 0x0:_0x3bc857[_0x44294e(0xfd)])===null||_0x327998===void 0x0?void 0x0:_0x327998[_0x1a9388['connection']]))throw new Error(_0x44294e(0xfa)+_0x1a9388['connection']);if(!this[_0x44294e(0xf8)][_0x44294e(0x13c)](_0x1a9388[_0x44294e(0x13b)]))throw new Error('typeorm\x20数据源\x20'+_0x1a9388[_0x44294e(0x13b)]+_0x44294e(0x111));if(!this['dataSourceManager'][_0x44294e(0x112)](_0x1a9388[_0x44294e(0x13b)]))throw new Error(_0x44294e(0x141)+_0x1a9388['connection']+_0x44294e(0x107));const _0x232cb4=this['app']['getBaseDir'](),_0x5e354e=this[_0x44294e(0xf8)]['getDataSource'](_0x1a9388[_0x44294e(0x13b)]),_0x6e1c25=await _0x5e354e['query']('SELECT\x20TABLE_NAME\x20as\x20`table`\x20FROM\x20information_schema.TABLES\x20WHERE\x20TABLE_SCHEMA=\x22'+this[_0x44294e(0x10b)]['dataSource'][_0x1a9388[_0x44294e(0x13b)]]['database']+_0x44294e(0x14b)+((_0x1a9388===null||_0x1a9388===void 0x0?void 0x0:_0x1a9388['table'])?_0x44294e(0x118)+_0x1a9388[_0x44294e(0x12a)]+'\x22':_0x44294e(0x116)+(_0x1a9388[_0x44294e(0x13d)]||'')+'%\x22'))||[];for(let _0x42e655=0x0;_0x42e655<_0x6e1c25[_0x44294e(0x150)];_0x42e655++){const _0x33df53=_0x6e1c25[_0x42e655][_0x44294e(0x12a)],_0x30f184=await _0x5e354e[_0x44294e(0x122)](_0x44294e(0x138)+this[_0x44294e(0x10b)][_0x44294e(0xfd)][_0x1a9388['connection']][_0x44294e(0x12d)]+_0x44294e(0xff)+_0x33df53+'\x27')||[];if((_0x2c7c4e=_0x30f184[0x0])===null||_0x2c7c4e===void 0x0?void 0x0:_0x2c7c4e[_0x44294e(0xf9)]){const _0x3081b1={'tablename':_0x33df53,'Primary':{},'Fields':{},'Comment':(_0x4ae815=_0x30f184[0x0])===null||_0x4ae815===void 0x0?void 0x0:_0x4ae815[_0x44294e(0xf9)]};_0x3081b1['tablestart']=_0x33df53['substr']((_0x1a9388===null||_0x1a9388===void 0x0?void 0x0:_0x1a9388['substr'])||0x0,_0x33df53['length']),_0x3081b1[_0x44294e(0x11d)]=(_0x1a9388===null||_0x1a9388===void 0x0?void 0x0:_0x1a9388[_0x44294e(0x11b)])?_0x232cb4+'/apps/'+_0x3081b1[_0x44294e(0x100)][_0x44294e(0x14c)]('_')[0x0][_0x44294e(0x12f)]():_0x232cb4+_0x44294e(0x127);const _0x22ebaa=_0x3081b1[_0x44294e(0x100)][_0x44294e(0x14c)]('_')[_0x44294e(0x147)](_0x874f4d=>_0x874f4d&&_0x874f4d[_0x44294e(0x13f)]());(_0x1a9388===null||_0x1a9388===void 0x0?void 0x0:_0x1a9388['module'])&&(await this[_0x44294e(0xf3)](_0x3081b1),_0x3081b1[_0x44294e(0x12c)]=_0x22ebaa[0x0][_0x44294e(0x12f)]());_0x3081b1['tablestartLow']=_0x22ebaa[_0x44294e(0xf6)](_0x8e066e=>_0x8e066e[_0x44294e(0x12f)]())[_0x44294e(0x125)](''),_0x3081b1[_0x44294e(0x156)]=_0x22ebaa['map'](_0x19523c=>''+_0x19523c[_0x44294e(0x131)](0x0,0x1)['toUpperCase']()+_0x19523c['substring'](0x1)[_0x44294e(0x12f)]())[_0x44294e(0x125)]('');(_0x3081b1===null||_0x3081b1===void 0x0?void 0x0:_0x3081b1[_0x44294e(0x12c)])&&_0x22ebaa[_0x44294e(0x150)]>0x1&&_0x22ebaa[0x0][_0x44294e(0x12f)]()==_0x3081b1[_0x44294e(0x12c)]?(_0x3081b1['tablestartUpShort']=_0x3081b1['tablestartUp'][_0x44294e(0x131)](_0x3081b1['moduleName'][_0x44294e(0x150)],_0x3081b1[_0x44294e(0x156)]['length']),_0x3081b1[_0x44294e(0x14f)]=_0x3081b1[_0x44294e(0x13e)][_0x44294e(0x131)](_0x3081b1[_0x44294e(0x12c)]['length'],_0x3081b1[_0x44294e(0x13e)][_0x44294e(0x150)])):(_0x3081b1['tablestartUpShort']=_0x3081b1['tablestartUp'],_0x3081b1[_0x44294e(0x14f)]=_0x3081b1[_0x44294e(0x13e)]);for(let _0x56cc0a of await _0x5e354e[_0x44294e(0x122)]('SHOW\x20FULL\x20COLUMNS\x20FROM\x20`'+_0x33df53+'`')){_0x56cc0a[_0x44294e(0x115)]==_0x44294e(0x134)?_0x3081b1[_0x44294e(0x110)]=_0x56cc0a:_0x3081b1['Fields'][_0x56cc0a[_0x44294e(0x157)]]=_0x56cc0a;}(_0x1a9388===null||_0x1a9388===void 0x0?void 0x0:_0x1a9388[_0x44294e(0x10f)])&&(_0x3081b1[_0x44294e(0x10f)]=_0x1a9388===null||_0x1a9388===void 0x0?void 0x0:_0x1a9388[_0x44294e(0x10f)]);if(!(_0x1a9388===null||_0x1a9388===void 0x0?void 0x0:_0x1a9388[_0x44294e(0x135)])){var _0x2b14f6=[];if(typeof(_0x1a9388===null||_0x1a9388===void 0x0?void 0x0:_0x1a9388[_0x44294e(0x10f)])==_0x44294e(0xfe))_0x2b14f6=[_0x1a9388===null||_0x1a9388===void 0x0?void 0x0:_0x1a9388[_0x44294e(0x10f)]];else Array[_0x44294e(0x12e)](_0x1a9388===null||_0x1a9388===void 0x0?void 0x0:_0x1a9388['controller'])?_0x2b14f6=_0x1a9388===null||_0x1a9388===void 0x0?void 0x0:_0x1a9388['controller']:_0x2b14f6=[!![]];_0x3081b1[_0x44294e(0x137)]=_0x2b14f6,await(0x0,Common_1[_0x44294e(0xfb)])(_0x3081b1),await(0x0,Event_1[_0x44294e(0xfb)])(_0x3081b1),await(0x0,Search_1['default'])(_0x3081b1),await(0x0,Entities_1[_0x44294e(0xfb)])(_0x3081b1),await(0x0,Handler_1[_0x44294e(0xfb)])(_0x3081b1),await(0x0,Validator_1[_0x44294e(0xfb)])(_0x3081b1);for(let _0x3a594e of _0x2b14f6){_0x3081b1['controller']=_0x3a594e,await(0x0,Action_1[_0x44294e(0xfb)])(_0x3081b1);}}}else console['error']('表:'+_0x33df53+_0x44294e(0x109));}}return _0x44294e(0x153);}async[a3_0x143fd9(0xf3)](_0x1d553d){const _0x65a542=a3_0x143fd9,_0x5cc287=_0x1d553d['tablestart'][_0x65a542(0x14c)]('_')[0x0][_0x65a542(0x12f)]();if(!fs[_0x65a542(0x119)](_0x1d553d[_0x65a542(0x11d)]+'/config.ts')){let _0x143a2c='export\x20default\x20{\x0a\x20\x20\x20\x20name:\x20\x27'+(_0x1d553d[_0x65a542(0x145)]||_0x5cc287)+_0x65a542(0x10a);fs['mkdirSync'](path[_0x65a542(0x121)](_0x1d553d['basedir']+_0x65a542(0x104)),{'recursive':!![]}),fs[_0x65a542(0x102)](_0x1d553d['basedir']+_0x65a542(0x104),_0x143a2c,_0x65a542(0x143));}}};__decorate([(0x0,decorator_1['App'])(),__metadata('design:type',Object)],ApicreateService[a3_0x143fd9(0x123)],a3_0x143fd9(0x133),void 0x0),__decorate([(0x0,decorator_1[a3_0x143fd9(0x106)])(a3_0x143fd9(0x113)),__metadata(a3_0x143fd9(0x10d),Object)],ApicreateService[a3_0x143fd9(0x123)],a3_0x143fd9(0x10b),void 0x0),__decorate([(0x0,decorator_1[a3_0x143fd9(0x129)])(),__metadata('design:type',core_1[a3_0x143fd9(0x149)])],ApicreateService['prototype'],a3_0x143fd9(0x114),void 0x0),__decorate([(0x0,decorator_1['Inject'])(),__metadata(a3_0x143fd9(0x10d),typeorm_1[a3_0x143fd9(0x124)])],ApicreateService['prototype'],'dataSourceManager',void 0x0),ApicreateService=__decorate([(0x0,decorator_1[a3_0x143fd9(0x10c)])(a3_0x143fd9(0x10e)),(0x0,decorator_1[a3_0x143fd9(0x11c)])(decorator_1[a3_0x143fd9(0xf4)][a3_0x143fd9(0x151)])],ApicreateService),exports[a3_0x143fd9(0x10e)]=ApicreateService;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a4_0x11031f=a4_0x19a9;(function(_0x20e958,_0xf88553){const _0x4a0091=a4_0x19a9,_0x17bae6=_0x20e958();while(!![]){try{const _0x47dfc5=-parseInt(_0x4a0091(0x11e))/0x1+-parseInt(_0x4a0091(0x108))/0x2*(parseInt(_0x4a0091(0xe3))/0x3)+parseInt(_0x4a0091(0x101))/0x4*(-parseInt(_0x4a0091(0x107))/0x5)+parseInt(_0x4a0091(0x116))/0x6*(parseInt(_0x4a0091(0x10a))/0x7)+parseInt(_0x4a0091(0x115))/0x8*(-parseInt(_0x4a0091(0xeb))/0x9)+parseInt(_0x4a0091(0xe5))/0xa+parseInt(_0x4a0091(0x118))/0xb;if(_0x47dfc5===_0xf88553)break;else _0x17bae6['push'](_0x17bae6['shift']());}catch(_0x3c54d2){_0x17bae6['push'](_0x17bae6['shift']());}}}(a4_0x582b,0x5348a));Object[a4_0x11031f(0x11f)](exports,a4_0x11031f(0xe4),{'value':!![]});function a4_0x582b(){const _0x1c8582=['\x20\x20\x20\x20async\x20index(params:\x20','\x20\x20\x20\x20\x20\x20\x20\x20const\x20[pagelist,\x20pagetotal]\x20=\x20await\x20this.','/handlers/','\x20\x20\x20\x20async\x20detail(','Handler\x20}\x20from\x20\x27','/controller/','@/apps/','\x27)\x0a','Handler.detail({','default','/validators/','\x20\x20\x20\x20@Api(\x27添加数据\x27,\x20\x27post\x27)\x0a','\x27;\x0a','\x20\x20\x20\x20async\x20update(',');\x0a\x0a','2504nTvXEe','Controller\x20{\x0a\x0a','\x20\x20\x20\x20@Api(\x27数据列表\x27)\x0a','existsSync','string','.ts','335nuvJDg','7686OkxNdb','\x20\x20\x20\x20@Api(\x22删除数据\x22,\x20\x27del\x27,\x20\x27/:','7Tqdhdg','substring','\x20\x20\x20\x20\x20\x20\x20\x20const\x20tmpModel\x20=\x20await\x20this.','Handler.update({','/Update\x27;\x0a','\x20\x20\x20\x20\x20\x20\x20\x20const\x20deletes\x20=\x20await\x20this.','@/app','dirname','mkdirSync','\x20\x20\x20\x20\x20\x20\x20\x20return\x20this.ctx.ok(pagelist,\x20{\x20pageinfo,\x20pagetotal\x20});\x0a','import\x20{\x20','2104176SzNkLp','396078oBTyqn','utf-8','11415514QKGDpt','toLowerCase',':\x20number)\x20{\x0a\x0a','\x20\x20\x20\x20}\x0a\x0a\x0a','\x20\x20\x20\x20@Api(\x27修改数据\x27,\x20\x27put\x27,\x20\x27/:','import\x20{\x20Inject,\x20Action,\x20Api,\x20PageDTO\x20}\x20from\x20\x27anncic-api\x27;\x0a\x0a','97615zalUjf','defineProperty','DTOCreate\x20}\x20from\x20\x27','toUpperCase',':\x20string)\x20{\x0a\x0a',':\x20number,\x20params:\x20','},\x20params);\x0a\x0a','DTOUpdate\x20}\x20from\x20\x27','Handler:\x20','/Search\x27;\x0a\x0a\x0a','456FYEjvC','__esModule','4870800flpCNw','Field','\x20\x20\x20\x20@Inject()\x20','\x20\x20\x20\x20\x20\x20\x20\x20return\x20this.ctx.ok(tmpModel);\x0a','\x20\x20\x20\x20@Inject()\x20protected\x20ctx:\x20Context;\x0a\x0a','@Action(__filename,\x20\x27','18wBGyOk','DTOSearch,\x20pageinfo:\x20PageDTO)\x20{\x0a\x0a','import\x20{\x20Context\x20}\x20from\x20\x27@midwayjs/koa\x27;\x0a','DTOSearch\x20}\x20from\x20\x27','DTOUpdate)\x20{\x0a\x0a','Handler.list(params,\x20pageinfo);\x0a\x0a','DTOCreate)\x20{\x0a\x0a'];a4_0x582b=function(){return _0x1c8582;};return a4_0x582b();}const fs=require('fs'),path_1=require('path');async function default_1({controller:_0x1757b7,tablestartUp:_0x496296,tablestartUpShort:_0x404abb,basedir:_0x58a6be,Primary:_0xf3788f,Comment:_0x4a27d8,moduleName:_0x23eaa5}){const _0xb4ba92=a4_0x11031f;if(_0x1757b7){const _0x3c70e3=_0x58a6be+(typeof _0x1757b7==_0xb4ba92(0x105)?'/controller/'+_0x1757b7+'/'+_0x404abb+_0xb4ba92(0x106):_0xb4ba92(0xf7)+_0x404abb+_0xb4ba92(0x106));if(!fs[_0xb4ba92(0x104)](_0x3c70e3)){let _0x4d7973='';_0x4d7973+=_0xb4ba92(0xed),_0x4d7973+=_0xb4ba92(0x11d),_0x4d7973+=_0xb4ba92(0x114)+_0x496296+_0xb4ba92(0xf6)+(typeof _0x23eaa5==_0xb4ba92(0x105)?_0xb4ba92(0xf8)+_0x23eaa5:_0xb4ba92(0x110))+_0xb4ba92(0xf4)+_0x404abb+_0xb4ba92(0xfe),_0x4d7973+=_0xb4ba92(0x114)+(typeof _0x1757b7==_0xb4ba92(0x105)?_0x1757b7[_0xb4ba92(0x10b)](0x0,0x1)[_0xb4ba92(0x121)]()+_0x1757b7['substring'](0x1)['toLowerCase']():'')+_0x496296+_0xb4ba92(0x120)+(typeof _0x23eaa5==_0xb4ba92(0x105)?'@/apps/'+_0x23eaa5:'@/app')+_0xb4ba92(0xfc)+_0x404abb+'/Create\x27;\x0a',_0x4d7973+='import\x20{\x20'+(typeof _0x1757b7==_0xb4ba92(0x105)?_0x1757b7[_0xb4ba92(0x10b)](0x0,0x1)['toUpperCase']()+_0x1757b7[_0xb4ba92(0x10b)](0x1)[_0xb4ba92(0x119)]():'')+_0x496296+_0xb4ba92(0xe0)+(typeof _0x23eaa5==_0xb4ba92(0x105)?_0xb4ba92(0xf8)+_0x23eaa5:_0xb4ba92(0x110))+_0xb4ba92(0xfc)+_0x404abb+_0xb4ba92(0x10e),_0x4d7973+='import\x20{\x20'+(typeof _0x1757b7==_0xb4ba92(0x105)?_0x1757b7[_0xb4ba92(0x10b)](0x0,0x1)[_0xb4ba92(0x121)]()+_0x1757b7['substring'](0x1)[_0xb4ba92(0x119)]():'')+_0x496296+_0xb4ba92(0xee)+(typeof _0x23eaa5==_0xb4ba92(0x105)?_0xb4ba92(0xf8)+_0x23eaa5:_0xb4ba92(0x110))+_0xb4ba92(0xfc)+_0x404abb+_0xb4ba92(0xe2),_0x4d7973+=_0xb4ba92(0xea)+_0x4a27d8+_0xb4ba92(0xf9),_0x4d7973+='export\x20class\x20'+_0x496296+_0xb4ba92(0x102),_0x4d7973+=_0xb4ba92(0xe9),_0x4d7973+=_0xb4ba92(0xe7)+_0x496296+_0xb4ba92(0xe1)+_0x496296+'Handler\x0a\x0a\x0a',_0x4d7973+=_0xb4ba92(0x103),_0x4d7973+=_0xb4ba92(0xf2)+(typeof _0x1757b7=='string'?_0x1757b7[_0xb4ba92(0x10b)](0x0,0x1)[_0xb4ba92(0x121)]()+_0x1757b7['substring'](0x1)[_0xb4ba92(0x119)]():'')+_0x496296+_0xb4ba92(0xec),_0x4d7973+=_0xb4ba92(0xf3)+_0x496296+_0xb4ba92(0xf0),_0x4d7973+=_0xb4ba92(0x113),_0x4d7973+=_0xb4ba92(0x11b),_0x4d7973+=_0xb4ba92(0xfd),_0x4d7973+='\x20\x20\x20\x20async\x20create(params:\x20'+(typeof _0x1757b7=='string'?_0x1757b7[_0xb4ba92(0x10b)](0x0,0x1)['toUpperCase']()+_0x1757b7[_0xb4ba92(0x10b)](0x1)[_0xb4ba92(0x119)]():'')+_0x496296+_0xb4ba92(0xf1),_0x4d7973+=_0xb4ba92(0x10c)+_0x496296+'Handler.create(params);\x0a\x0a',_0x4d7973+=_0xb4ba92(0xe8),_0x4d7973+=_0xb4ba92(0x11b),_0x4d7973+=_0xb4ba92(0x11c)+_0xf3788f[_0xb4ba92(0xe6)]+'\x27)\x0a',_0x4d7973+=_0xb4ba92(0xff)+_0xf3788f[_0xb4ba92(0xe6)]+_0xb4ba92(0x123)+(typeof _0x1757b7==_0xb4ba92(0x105)?_0x1757b7['substring'](0x0,0x1)[_0xb4ba92(0x121)]()+_0x1757b7['substring'](0x1)['toLowerCase']():'')+_0x496296+_0xb4ba92(0xef),_0x4d7973+='\x20\x20\x20\x20\x20\x20\x20\x20const\x20tmpModel\x20=\x20await\x20this.'+_0x496296+_0xb4ba92(0x10d)+_0xf3788f[_0xb4ba92(0xe6)]+_0xb4ba92(0x124),_0x4d7973+=_0xb4ba92(0xe8),_0x4d7973+=_0xb4ba92(0x11b),_0x4d7973+='\x20\x20\x20\x20@Api(\x27数据详情\x27,\x20\x27get\x27,\x20\x27/:'+_0xf3788f['Field']+_0xb4ba92(0xf9),_0x4d7973+=_0xb4ba92(0xf5)+_0xf3788f['Field']+_0xb4ba92(0x11a),_0x4d7973+=_0xb4ba92(0x10c)+_0x496296+_0xb4ba92(0xfa)+_0xf3788f['Field']+'});\x0a\x0a',_0x4d7973+=_0xb4ba92(0xe8),_0x4d7973+='\x20\x20\x20\x20}\x0a\x0a\x0a',_0x4d7973+=_0xb4ba92(0x109)+_0xf3788f[_0xb4ba92(0xe6)]+_0xb4ba92(0xf9),_0x4d7973+='\x20\x20\x20\x20async\x20remove('+_0xf3788f['Field']+_0xb4ba92(0x122),_0x4d7973+=_0xb4ba92(0x10f)+_0x496296+'Handler.remove('+_0xf3788f[_0xb4ba92(0xe6)]+_0xb4ba92(0x100),_0x4d7973+='\x20\x20\x20\x20\x20\x20\x20\x20return\x20this.ctx.ok(deletes);\x0a',_0x4d7973+=_0xb4ba92(0x11b),_0x4d7973+='}',!fs[_0xb4ba92(0x104)]((0x0,path_1[_0xb4ba92(0x111)])(_0x3c70e3))&&fs[_0xb4ba92(0x112)]((0x0,path_1[_0xb4ba92(0x111)])(_0x3c70e3),{'recursive':!![]}),fs['writeFileSync'](_0x3c70e3,_0x4d7973,_0xb4ba92(0x117));}}}function a4_0x19a9(_0x409001,_0x2fb712){const _0x582ba0=a4_0x582b();return a4_0x19a9=function(_0x19a9ba,_0x564043){_0x19a9ba=_0x19a9ba-0xe0;let _0x467e9d=_0x582ba0[_0x19a9ba];return _0x467e9d;},a4_0x19a9(_0x409001,_0x2fb712);}exports[a4_0x11031f(0xfb)]=default_1;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';const a5_0x4a7865=a5_0x162f;function a5_0x162f(_0x179427,_0xd8eaad){const _0xd06ab4=a5_0xd06a();return a5_0x162f=function(_0x162f57,_0x4bd641){_0x162f57=_0x162f57-0x8b;let _0x298d5b=_0xd06ab4[_0x162f57];return _0x298d5b;},a5_0x162f(_0x179427,_0xd8eaad);}(function(_0x5a5e6a,_0x3fc006){const _0x1b095a=a5_0x162f,_0x15da78=_0x5a5e6a();while(!![]){try{const _0x1e20b6=parseInt(_0x1b095a(0x8e))/0x1+parseInt(_0x1b095a(0x9b))/0x2+-parseInt(_0x1b095a(0x8f))/0x3*(-parseInt(_0x1b095a(0xa7))/0x4)+parseInt(_0x1b095a(0x9f))/0x5*(-parseInt(_0x1b095a(0x8c))/0x6)+parseInt(_0x1b095a(0xa5))/0x7+-parseInt(_0x1b095a(0x98))/0x8+parseInt(_0x1b095a(0x9c))/0x9;if(_0x1e20b6===_0x3fc006)break;else _0x15da78['push'](_0x15da78['shift']());}catch(_0x7dafb4){_0x15da78['push'](_0x15da78['shift']());}}}(a5_0xd06a,0x7c4c9));Object[a5_0x4a7865(0xa6)](exports,a5_0x4a7865(0xa4),{'value':!![]});const fs=require('fs'),path=require('path');function a5_0xd06a(){const _0x3b260b=['5JvZjNu','/exceptions/','/**\x0a','Error\x20{\x0a\x0a','\x20*\x20**/\x0a','__esModule','5928440DsEpqu','defineProperty','8DdAdgA','Enum\x20{\x0a\x0a','.ts','mkdirSync','-常量设置\x0a','3491598fEbHlx','\x20\x20\x20\x20//\x20@AnnEnumMsg(\x27status\x27,\x20\x27开启\x27)\x0a','402379udDTsd','448818sJrGEI','existsSync','utf-8','\x20\x20\x20\x20//\x20@AnnErrorMsg(\x27数据不存在\x27)\x0a','\x20*\x20','/enum.ts','\x20\x20\x20\x20//\x20@AnnEnumMsg(\x27status\x27,\x20\x27关闭\x27)\x0a','dirname','export\x20class\x20','7739216FzoaUi','writeFileSync','-错误信息设置\x0a','333588BlDFLC','3088431kzRYGH','\x20\x20\x20\x20//\x20static\x20readonly\x20DEMO_NOT_FIND\x20=\x20200001;\x0a\x0a','/entities/'];a5_0xd06a=function(){return _0x3b260b;};return a5_0xd06a();}async function default_1({tablestartUp:_0xfafe60,tablestartUpShort:_0x4942a7,basedir:_0x2fa5ff,Comment:_0x140162}){await entity_emum({'tablestartUp':_0xfafe60,'tablestartUpShort':_0x4942a7,'basedir':_0x2fa5ff,'Comment':_0x140162}),await entity_exceptions({'tablestartUp':_0xfafe60,'tablestartUpShort':_0x4942a7,'basedir':_0x2fa5ff,'Comment':_0x140162});}exports['default']=default_1;async function entity_emum({tablestartUp:_0x4158ca,tablestartUpShort:_0x571c59,basedir:_0x357e91,Comment:_0x4954a4}){const _0x200367=a5_0x4a7865,_0x4a9ca2=_0x357e91+(_0x200367(0x9e)+_0x571c59+_0x200367(0x94));if(!fs[_0x200367(0x90)](_0x4a9ca2)){let _0x271636='';_0x271636+=_0x200367(0xa1),_0x271636+=_0x200367(0x93)+_0x4954a4+_0x200367(0x8b),_0x271636+=_0x200367(0xa3),_0x271636+=_0x200367(0x97)+_0x4158ca+_0x200367(0xa8),_0x271636+=_0x200367(0x8d),_0x271636+='\x20\x20\x20\x20//\x20static\x20readonly\x20DEMO_STATUS_ON:\x20number\x20=\x201;\x0a\x0a',_0x271636+=_0x200367(0x95),_0x271636+='\x20\x20\x20\x20//\x20static\x20readonly\x20DEMO_STATUS_OFF:\x20string\x20=\x20\x270\x27;\x0a\x0a',_0x271636+='}',!fs[_0x200367(0x90)](path['dirname'](_0x4a9ca2))&&fs[_0x200367(0xaa)](path[_0x200367(0x96)](_0x4a9ca2),{'recursive':!![]}),fs[_0x200367(0x99)](_0x4a9ca2,_0x271636,'utf-8');}}async function entity_exceptions({tablestartUp:_0xaf0d48,tablestartUpShort:_0x1675ab,basedir:_0x977310,Comment:_0x10e0b9}){const _0x13cfba=a5_0x4a7865,_0x33ebfb=_0x977310+(_0x13cfba(0xa0)+_0x1675ab+_0x13cfba(0xa9));if(!fs['existsSync'](_0x33ebfb)){let _0x57e35b='';_0x57e35b+='/**\x0a',_0x57e35b+=_0x13cfba(0x93)+_0x10e0b9+_0x13cfba(0x9a),_0x57e35b+='\x20*\x20**/\x0a',_0x57e35b+=_0x13cfba(0x97)+_0xaf0d48+_0x13cfba(0xa2),_0x57e35b+=_0x13cfba(0x92),_0x57e35b+=_0x13cfba(0x9d),_0x57e35b+='}',!fs[_0x13cfba(0x90)](path[_0x13cfba(0x96)](_0x33ebfb))&&fs[_0x13cfba(0xaa)](path['dirname'](_0x33ebfb),{'recursive':!![]}),fs[_0x13cfba(0x99)](_0x33ebfb,_0x57e35b,_0x13cfba(0x91));}}
|