anncic-apihelper 3.4.32 → 3.4.34
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 -7
- 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 +3 -3
package/dist/configuration.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { MidwayApplicationManager, MidwayConfigService, MidwayDecoratorService } from '@midwayjs/core';
|
|
2
|
-
export declare class CustomConfiguration {
|
|
3
|
-
config: MidwayConfigService;
|
|
4
|
-
decorator: MidwayDecoratorService;
|
|
5
|
-
application: MidwayApplicationManager;
|
|
6
|
-
}
|
|
1
|
+
import { MidwayApplicationManager, MidwayConfigService, MidwayDecoratorService } from '@midwayjs/core';
|
|
2
|
+
export declare class CustomConfiguration {
|
|
3
|
+
config: MidwayConfigService;
|
|
4
|
+
decorator: MidwayDecoratorService;
|
|
5
|
+
application: MidwayApplicationManager;
|
|
6
|
+
}
|
package/dist/configuration.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a0_0x5551c2=a0_0x5c55;(function(_0x334ccc,_0x153f1c){var _0x3c8cd0=a0_0x5c55,_0x317a88=_0x334ccc();while(!![]){try{var _0x120f60=-parseInt(_0x3c8cd0(0x1e1))/0x1+parseInt(_0x3c8cd0(0x1f1))/0x2*(parseInt(_0x3c8cd0(0x1f0))/0x3)+parseInt(_0x3c8cd0(0x1e5))/0x4*(-parseInt(_0x3c8cd0(0x1d3))/0x5)+parseInt(_0x3c8cd0(0x1ef))/0x6+-parseInt(_0x3c8cd0(0x1e7))/0x7+parseInt(_0x3c8cd0(0x1d8))/0x8+parseInt(_0x3c8cd0(0x1d6))/0x9*(parseInt(_0x3c8cd0(0x1de))/0xa);if(_0x120f60===_0x153f1c)break;else _0x317a88['push'](_0x317a88['shift']());}catch(_0x4d5fe4){_0x317a88['push'](_0x317a88['shift']());}}}(a0_0x3109,0x25ead));var a0_0x26a7f6=(function(){var _0x435f81=!![];return function(_0x26edd2,_0x6e6b96){var _0x1e6c1d=_0x435f81?function(){var _0x1e373c=a0_0x5c55;if(_0x6e6b96){var _0x276dc0=_0x6e6b96[_0x1e373c(0x1e9)](_0x26edd2,arguments);return _0x6e6b96=null,_0x276dc0;}}:function(){};return _0x435f81=![],_0x1e6c1d;};}()),a0_0x53b6d0=a0_0x26a7f6(this,function(){var _0x2f4bf1=a0_0x5c55;return a0_0x53b6d0[_0x2f4bf1(0x1e0)]()[_0x2f4bf1(0x1d9)](_0x2f4bf1(0x1d7))[_0x2f4bf1(0x1e0)]()[_0x2f4bf1(0x1d2)](a0_0x53b6d0)[_0x2f4bf1(0x1d9)](_0x2f4bf1(0x1d7));});a0_0x53b6d0();'use strict';var __decorate=this&&this['__decorate']||function(_0x5722b5,_0x2c0594,_0x96bb1f,_0x315593){var _0x5b2e66=a0_0x5c55,_0x38123d=arguments['length'],_0x5be7c7=_0x38123d<0x3?_0x2c0594:_0x315593===null?_0x315593=Object[_0x5b2e66(0x1ec)](_0x2c0594,_0x96bb1f):_0x315593,_0x51618a;if(typeof Reflect===_0x5b2e66(0x1e8)&&typeof Reflect[_0x5b2e66(0x1cf)]==='function')_0x5be7c7=Reflect[_0x5b2e66(0x1cf)](_0x5722b5,_0x2c0594,_0x96bb1f,_0x315593);else{for(var _0x5dff1d=_0x5722b5[_0x5b2e66(0x1ed)]-0x1;_0x5dff1d>=0x0;_0x5dff1d--)if(_0x51618a=_0x5722b5[_0x5dff1d])_0x5be7c7=(_0x38123d<0x3?_0x51618a(_0x5be7c7):_0x38123d>0x3?_0x51618a(_0x2c0594,_0x96bb1f,_0x5be7c7):_0x51618a(_0x2c0594,_0x96bb1f))||_0x5be7c7;}return _0x38123d>0x3&&_0x5be7c7&&Object['defineProperty'](_0x2c0594,_0x96bb1f,_0x5be7c7),_0x5be7c7;},__metadata=this&&this[a0_0x5551c2(0x1d4)]||function(_0x3cdb86,_0x352672){var _0x3fa43f=a0_0x5551c2;if(typeof Reflect===_0x3fa43f(0x1e8)&&typeof Reflect[_0x3fa43f(0x1dd)]===_0x3fa43f(0x1dc))return Reflect[_0x3fa43f(0x1dd)](_0x3cdb86,_0x352672);};Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[a0_0x5551c2(0x1ee)]=void 0x0;function a0_0x3109(){var _0x128412=['4VSIsne','decorator','2010386hyXGEc','object','apply','MidwayApplicationManager','Configuration','getOwnPropertyDescriptor','length','CustomConfiguration','1136526ZlBMkM','102006iQTPRa','18vNquSp','decorate','prototype','design:type','constructor','1096345CmSlcf','__metadata','@anncic-api/typeorm','756tLeLWs','(((.+)+)+)+$','1954576ggknxY','search','@midwayjs/core','application','function','metadata','15310kAmIlU','MidwayConfigService','toString','206589eOMYMD','config','Inject','anncic-apihelper'];a0_0x3109=function(){return _0x128412;};return a0_0x3109();}const core_1=require('@midwayjs/core'),core_2=require(a0_0x5551c2(0x1da)),typeorm=require(a0_0x5551c2(0x1d5));function a0_0x5c55(_0x305288,_0x4ad700){var _0x6dea7d=a0_0x3109();return a0_0x5c55=function(_0x53b6d0,_0x26a7f6){_0x53b6d0=_0x53b6d0-0x1cf;var _0x31093f=_0x6dea7d[_0x53b6d0];return _0x31093f;},a0_0x5c55(_0x305288,_0x4ad700);}let CustomConfiguration=class CustomConfiguration{};__decorate([(0x0,core_1[a0_0x5551c2(0x1e3)])(),__metadata(a0_0x5551c2(0x1d1),core_2[a0_0x5551c2(0x1df)])],CustomConfiguration[a0_0x5551c2(0x1d0)],a0_0x5551c2(0x1e2),void 0x0),__decorate([(0x0,core_1[a0_0x5551c2(0x1e3)])(),__metadata(a0_0x5551c2(0x1d1),core_2['MidwayDecoratorService'])],CustomConfiguration[a0_0x5551c2(0x1d0)],a0_0x5551c2(0x1e6),void 0x0),__decorate([(0x0,core_1[a0_0x5551c2(0x1e3)])(),__metadata(a0_0x5551c2(0x1d1),core_2[a0_0x5551c2(0x1ea)])],CustomConfiguration[a0_0x5551c2(0x1d0)],a0_0x5551c2(0x1db),void 0x0),CustomConfiguration=__decorate([(0x0,core_1[a0_0x5551c2(0x1eb)])({'conflictCheck':![],'imports':[typeorm],'namespace':a0_0x5551c2(0x1e4)})],CustomConfiguration),exports[a0_0x5551c2(0x1ee)]=CustomConfiguration;
|
package/dist/helper.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare function getProp(type: string): string;
|
|
2
|
-
export declare function getEnum(type: string): Array<string>;
|
|
1
|
+
export declare function getProp(type: string): string;
|
|
2
|
+
export declare function getEnum(type: string): Array<string>;
|
package/dist/helper.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a1_0x432c54=a1_0xc5c2;(function(_0x2c28ea,_0x12440d){const _0x519936=a1_0xc5c2,_0x413c44=_0x2c28ea();while(!![]){try{const _0x33cd4a=-parseInt(_0x519936(0x18c))/0x1+parseInt(_0x519936(0x184))/0x2+parseInt(_0x519936(0x194))/0x3*(-parseInt(_0x519936(0x195))/0x4)+-parseInt(_0x519936(0x187))/0x5+-parseInt(_0x519936(0x196))/0x6*(-parseInt(_0x519936(0x191))/0x7)+parseInt(_0x519936(0x189))/0x8+parseInt(_0x519936(0x17f))/0x9;if(_0x33cd4a===_0x12440d)break;else _0x413c44['push'](_0x413c44['shift']());}catch(_0x18c71d){_0x413c44['push'](_0x413c44['shift']());}}}(a1_0x4ff5,0x4040c));const a1_0x14f69e=(function(){let _0x5b1aa4=!![];return function(_0x56e090,_0x335ecc){const _0xc262ae=_0x5b1aa4?function(){const _0x102e1f=a1_0xc5c2;if(_0x335ecc){const _0x4ff2ce=_0x335ecc[_0x102e1f(0x188)](_0x56e090,arguments);return _0x335ecc=null,_0x4ff2ce;}}:function(){};return _0x5b1aa4=![],_0xc262ae;};}()),a1_0x556c19=a1_0x14f69e(this,function(){const _0x5a4827=a1_0xc5c2;return a1_0x556c19[_0x5a4827(0x199)]()[_0x5a4827(0x18a)](_0x5a4827(0x193))['toString']()['constructor'](a1_0x556c19)[_0x5a4827(0x18a)](_0x5a4827(0x193));});a1_0x556c19();'use strict';Object[a1_0x432c54(0x18d)](exports,a1_0x432c54(0x183),{'value':!![]}),exports[a1_0x432c54(0x18e)]=exports[a1_0x432c54(0x19c)]=void 0x0;const columnTypes={'json':'json','char':'string','varchar':'string','text':a1_0x432c54(0x17d),'longtext':a1_0x432c54(0x181),'mediumtext':a1_0x432c54(0x19d),'int':'number','float':a1_0x432c54(0x190),'double':a1_0x432c54(0x190),'decimal':a1_0x432c54(0x180),'date':a1_0x432c54(0x186),'time':'datetime','datetime':a1_0x432c54(0x192),'timestamp':a1_0x432c54(0x19b),'tinyint':a1_0x432c54(0x182)};function a1_0xc5c2(_0x512d5c,_0x172b5a){const _0x5f57c5=a1_0x4ff5();return a1_0xc5c2=function(_0x556c19,_0x14f69e){_0x556c19=_0x556c19-0x17d;let _0x4ff5ce=_0x5f57c5[_0x556c19];return _0x4ff5ce;},a1_0xc5c2(_0x512d5c,_0x172b5a);}function getProp(_0x1d03d9){const _0x4109e2=a1_0x432c54;if(columnTypes[_0x4109e2(0x19a)](_0x1d03d9))return columnTypes[_0x1d03d9];else return _0x1d03d9['indexOf']('(')>-0x1||_0x1d03d9[_0x4109e2(0x18b)]('\x20')>-0x1?(_0x1d03d9=_0x1d03d9[_0x4109e2(0x197)](0x0,_0x1d03d9[_0x4109e2(0x18b)]('(')>-0x1?_0x1d03d9['indexOf']('('):_0x1d03d9['indexOf']('\x20')),columnTypes[_0x1d03d9]||_0x1d03d9):'string';}exports['getProp']=getProp;function getEnum(_0x176125){const _0x132cd2=a1_0x432c54;if(getProp(_0x176125)==_0x132cd2(0x18f))return _0x176125[_0x132cd2(0x197)](0x5,_0x176125[_0x132cd2(0x17e)]-0x6)[_0x132cd2(0x198)](/[\'|\"]/g,'')[_0x132cd2(0x185)](',');return[];}function a1_0x4ff5(){const _0x261078=['getProp','mediumtext','text','length','6850629MbjRiI','decimal','longtext','tinyint','__esModule','513644hEXDNq','split','date','2249955hOIWrn','apply','1925240mYjAfV','search','indexOf','462501GRRNsI','defineProperty','getEnum','enum','float','1946546gLufCM','datetime','(((.+)+)+)+$','135399WVQaTx','32sfMWeO','6zfwXwN','substr','replace','toString','hasOwnProperty','timestamp'];a1_0x4ff5=function(){return _0x261078;};return a1_0x4ff5();}exports[a1_0x432c54(0x18e)]=getEnum;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { ApicreateService } from './service/ApicreateService';
|
|
2
|
-
export { CustomConfiguration as Configuration } from './configuration';
|
|
1
|
+
export { ApicreateService } from './service/ApicreateService';
|
|
2
|
+
export { CustomConfiguration as Configuration } from './configuration';
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
function a2_0x4c91(_0x31805f,_0x4bc6d3){var _0x56c6ab=a2_0x31a9();return a2_0x4c91=function(_0x2f516d,_0x429331){_0x2f516d=_0x2f516d-0x121;var _0x31a97e=_0x56c6ab[_0x2f516d];return _0x31a97e;},a2_0x4c91(_0x31805f,_0x4bc6d3);}var a2_0x431f2e=a2_0x4c91;(function(_0x56334c,_0x344899){var _0x3f7ddf=a2_0x4c91,_0x227a74=_0x56334c();while(!![]){try{var _0x42520f=parseInt(_0x3f7ddf(0x133))/0x1+parseInt(_0x3f7ddf(0x130))/0x2+-parseInt(_0x3f7ddf(0x124))/0x3*(-parseInt(_0x3f7ddf(0x12e))/0x4)+-parseInt(_0x3f7ddf(0x121))/0x5+-parseInt(_0x3f7ddf(0x132))/0x6+parseInt(_0x3f7ddf(0x125))/0x7+-parseInt(_0x3f7ddf(0x131))/0x8;if(_0x42520f===_0x344899)break;else _0x227a74['push'](_0x227a74['shift']());}catch(_0x107613){_0x227a74['push'](_0x227a74['shift']());}}}(a2_0x31a9,0xd5467));var a2_0x429331=(function(){var _0x363471=!![];return function(_0x1949c0,_0x52d2b5){var _0x57464f=_0x363471?function(){var _0x49cc30=a2_0x4c91;if(_0x52d2b5){var _0x5ccbbf=_0x52d2b5[_0x49cc30(0x12b)](_0x1949c0,arguments);return _0x52d2b5=null,_0x5ccbbf;}}:function(){};return _0x363471=![],_0x57464f;};}()),a2_0x2f516d=a2_0x429331(this,function(){var _0x111875=a2_0x4c91;return a2_0x2f516d[_0x111875(0x123)]()[_0x111875(0x127)](_0x111875(0x12d))['toString']()[_0x111875(0x12a)](a2_0x2f516d)[_0x111875(0x127)](_0x111875(0x12d));});a2_0x2f516d();'use strict';Object[a2_0x431f2e(0x122)](exports,a2_0x431f2e(0x12c),{'value':!![]}),exports[a2_0x431f2e(0x12f)]=exports[a2_0x431f2e(0x129)]=void 0x0;var ApicreateService_1=require(a2_0x431f2e(0x134));function a2_0x31a9(){var _0x42537d=['toString','271083qoozEw','875763FXITGG','./configuration','search','CustomConfiguration','ApicreateService','constructor','apply','__esModule','(((.+)+)+)+$','44ZXPgsI','Configuration','229852sXVoak','283064HAkHCl','1795836rHsuob','1047654IWoovS','./service/ApicreateService','5366980QklVBx','defineProperty'];a2_0x31a9=function(){return _0x42537d;};return a2_0x31a9();}Object[a2_0x431f2e(0x122)](exports,'ApicreateService',{'enumerable':!![],'get':function(){var _0x5d8ac2=a2_0x431f2e;return ApicreateService_1[_0x5d8ac2(0x129)];}});var configuration_1=require(a2_0x431f2e(0x126));Object[a2_0x431f2e(0x122)](exports,a2_0x431f2e(0x12f),{'enumerable':!![],'get':function(){var _0x1bd508=a2_0x431f2e;return configuration_1[_0x1bd508(0x128)];}});
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { MidwayEnvironmentService } from '@midwayjs/core';
|
|
2
|
-
import { TypeORMDataSourceManager } from '@midwayjs/typeorm';
|
|
3
|
-
import { IApicreate, IApicreateApp, IApicreateBasic, IApicreatePlugin } from '../types';
|
|
4
|
-
export declare class ApicreateService {
|
|
5
|
-
protected app: any;
|
|
6
|
-
protected config: any;
|
|
7
|
-
environment: MidwayEnvironmentService;
|
|
8
|
-
dataSourceManager: TypeORMDataSourceManager;
|
|
9
|
-
createApp(option: IApicreate): Promise<string>;
|
|
10
|
-
createBasic(option: IApicreate): Promise<string>;
|
|
11
|
-
createPlugin(option: IApicreate): Promise<string>;
|
|
12
|
-
protected createAction(option?: IApicreateApp & IApicreateBasic & IApicreatePlugin): Promise<string>;
|
|
13
|
-
protected checkOption(option: IApicreate): Promise<boolean>;
|
|
14
|
-
protected CreateModuleConfig(CreateOption: any): Promise<void>;
|
|
15
|
-
}
|
|
1
|
+
import { MidwayEnvironmentService } from '@midwayjs/core';
|
|
2
|
+
import { TypeORMDataSourceManager } from '@midwayjs/typeorm';
|
|
3
|
+
import { IApicreate, IApicreateApp, IApicreateBasic, IApicreatePlugin } from '../types';
|
|
4
|
+
export declare class ApicreateService {
|
|
5
|
+
protected app: any;
|
|
6
|
+
protected config: any;
|
|
7
|
+
environment: MidwayEnvironmentService;
|
|
8
|
+
dataSourceManager: TypeORMDataSourceManager;
|
|
9
|
+
createApp(option: IApicreate): Promise<string>;
|
|
10
|
+
createBasic(option: IApicreate): Promise<string>;
|
|
11
|
+
createPlugin(option: IApicreate): Promise<string>;
|
|
12
|
+
protected createAction(option?: IApicreateApp & IApicreateBasic & IApicreatePlugin): Promise<string>;
|
|
13
|
+
protected checkOption(option: IApicreate): Promise<boolean>;
|
|
14
|
+
protected CreateModuleConfig(CreateOption: any): Promise<void>;
|
|
15
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a3_0x1da1(_0x3a5576,_0x36e646){const _0x3e8d52=a3_0xb28a();return a3_0x1da1=function(_0x47df5b,_0x562aff){_0x47df5b=_0x47df5b-0xf9;let _0xb28a96=_0x3e8d52[_0x47df5b];return _0xb28a96;},a3_0x1da1(_0x3a5576,_0x36e646);}const a3_0x268ba2=a3_0x1da1;(function(_0x25b0ac,_0x532b86){const _0x1ce1c8=a3_0x1da1,_0x3283f2=_0x25b0ac();while(!![]){try{const _0x58cb7a=-parseInt(_0x1ce1c8(0x133))/0x1+parseInt(_0x1ce1c8(0x14e))/0x2+-parseInt(_0x1ce1c8(0x156))/0x3+parseInt(_0x1ce1c8(0xfb))/0x4*(parseInt(_0x1ce1c8(0x112))/0x5)+parseInt(_0x1ce1c8(0x141))/0x6+-parseInt(_0x1ce1c8(0x122))/0x7*(-parseInt(_0x1ce1c8(0x123))/0x8)+-parseInt(_0x1ce1c8(0x12f))/0x9;if(_0x58cb7a===_0x532b86)break;else _0x3283f2['push'](_0x3283f2['shift']());}catch(_0x430678){_0x3283f2['push'](_0x3283f2['shift']());}}}(a3_0xb28a,0x760ad));const a3_0x562aff=(function(){let _0x2a5834=!![];return function(_0x292042,_0x461e1d){const _0xd0adbe=_0x2a5834?function(){if(_0x461e1d){const _0x25d875=_0x461e1d['apply'](_0x292042,arguments);return _0x461e1d=null,_0x25d875;}}:function(){};return _0x2a5834=![],_0xd0adbe;};}()),a3_0x47df5b=a3_0x562aff(this,function(){const _0x1c7a14=a3_0x1da1;return a3_0x47df5b['toString']()[_0x1c7a14(0x13e)]('(((.+)+)+)+$')[_0x1c7a14(0x111)]()[_0x1c7a14(0x176)](a3_0x47df5b)['search'](_0x1c7a14(0x100));});function a3_0xb28a(){const _0x415460=['tableprefix','utf-8','split','mkdirSync','dataSource','metadata','function','typeorm\x20数据源\x20','../templateFun/Handler','../templateFun/Common','export\x20default\x20{\x0a\x20\x20\x20\x20name:\x20\x27','isDevelopmentEnvironment','startsWith','config','__esModule','SELECT\x20TABLE_COMMENT\x20as\x20`comment`\x20FROM\x20information_schema.TABLES\x20WHERE\x20TABLE_SCHEMA=\x22','substring','decorate','path','Fields','environment','getOwnPropertyDescriptor','.js','SELECT\x20TABLE_NAME\x20as\x20`table`\x20FROM\x20information_schema.TABLES\x20WHERE\x20TABLE_SCHEMA=\x22','Singleton','database','无法生成','basedir','map','constructor','App','getDataSource','string','design:type','TypeORMDataSourceManager','../templateFun/Event','LIKE\x20\x22','createAction','4TCSsIT','../templateVueV2/Api','tablestartLow','\x20不存在','existsSync','(((.+)+)+)+$','length','match','../templateVue/Router','toLowerCase','cwd','ApicreateService','default','checkOption','/config.ts','module','query','trim','../templateVue/Validator','createBasic','PRI','@midwayjs/typeorm','toString','1852085PLAdOQ','/pages/apps/','tablestart','__decorate','__metadata','object','controllers','isArray','../templateVueV2/LayoutVue','/apis/apps/','hasvue','substr','controller','apporbasic','vuedialog','error','13097hALLWZ','1448AslmEE','/apps/','moduleName','createPlugin','../templateVueV3/LayoutVue','replace','tablestartUpShort','\x22\x20AND\x20table_name\x20','@midwayjs/core','/api/','CreateModuleConfig','defineProperty','3140550MrEnIA','hasDataSource','../templateFun/Validator','\x22\x20AND\x20table_name\x20=\x20\x27','161695NmDcwg','ScopeEnum','\x27,\x0a\x20\x20\x20\x20description:\x20\x27\x27,\x0a\x20\x20\x20\x20middleware:\x20[],\x0a}','../templateVueV3/Api','../templateVueV3/Validator','getConfig','dataSourceManager','tablestartLowShort','app','Inject','prototype','search','tablestartUp','MidwayEnvironmentService','3274530pjxpvD','table','\x20未连接','../templateVueV2/Router','../templateVueV3/Layout','typeorm','dirname','../templateVue/Api','../templateFun/Action','Primary','join','/apis/','basic','689812TQttvs','tablestartUpShort2','createApp','filter','Config','../templateVueV3/Router','/pages/','../templateVueV2/Layout','1816749rtrqVs','Provide','connection'];a3_0xb28a=function(){return _0x415460;};return a3_0xb28a();}a3_0x47df5b();'use strict';var __decorate=this&&this[a3_0x268ba2(0x115)]||function(_0x79e779,_0x248833,_0x239a5d,_0x4a6680){const _0x1a692b=a3_0x268ba2;var _0x5dd63a=arguments[_0x1a692b(0x101)],_0x7438ec=_0x5dd63a<0x3?_0x248833:_0x4a6680===null?_0x4a6680=Object[_0x1a692b(0x16e)](_0x248833,_0x239a5d):_0x4a6680,_0x140a0a;if(typeof Reflect==='object'&&typeof Reflect[_0x1a692b(0x16a)]==='function')_0x7438ec=Reflect[_0x1a692b(0x16a)](_0x79e779,_0x248833,_0x239a5d,_0x4a6680);else{for(var _0xb56837=_0x79e779[_0x1a692b(0x101)]-0x1;_0xb56837>=0x0;_0xb56837--)if(_0x140a0a=_0x79e779[_0xb56837])_0x7438ec=(_0x5dd63a<0x3?_0x140a0a(_0x7438ec):_0x5dd63a>0x3?_0x140a0a(_0x248833,_0x239a5d,_0x7438ec):_0x140a0a(_0x248833,_0x239a5d))||_0x7438ec;}return _0x5dd63a>0x3&&_0x7438ec&&Object[_0x1a692b(0x12e)](_0x248833,_0x239a5d,_0x7438ec),_0x7438ec;},__metadata=this&&this[a3_0x268ba2(0x116)]||function(_0x466f5a,_0x19861b){const _0x492ab3=a3_0x268ba2;if(typeof Reflect===_0x492ab3(0x117)&&typeof Reflect['metadata']===_0x492ab3(0x15f))return Reflect[_0x492ab3(0x15e)](_0x466f5a,_0x19861b);};Object[a3_0x268ba2(0x12e)](exports,a3_0x268ba2(0x167),{'value':!![]}),exports[a3_0x268ba2(0x106)]=void 0x0;const fs=require('fs'),path=require(a3_0x268ba2(0x16b)),core_1=require(a3_0x268ba2(0x12b)),typeorm_1=require(a3_0x268ba2(0x110)),core_2=require(a3_0x268ba2(0x12b)),Common_1=require(a3_0x268ba2(0x162)),Event_1=require(a3_0x268ba2(0x17c)),Search_1=require('../templateFun/Search'),Entities_1=require('../templateFun/Entities'),Handler_1=require(a3_0x268ba2(0x161)),Validator_1=require(a3_0x268ba2(0x131)),Action_1=require(a3_0x268ba2(0x149)),Api_1=require(a3_0x268ba2(0x148)),Router_1=require(a3_0x268ba2(0x103)),Layout_1=require('../templateVue/Layout'),LayoutVue_1=require('../templateVue/LayoutVue'),Validator_2=require(a3_0x268ba2(0x10d)),Api_2=require(a3_0x268ba2(0xfc)),Router_2=require(a3_0x268ba2(0x144)),Layout_2=require(a3_0x268ba2(0x155)),LayoutVue_2=require(a3_0x268ba2(0x11a)),Validator_3=require('../templateVueV2/Validator'),Api_3=require(a3_0x268ba2(0x136)),Router_3=require(a3_0x268ba2(0x153)),Layout_3=require(a3_0x268ba2(0x145)),LayoutVue_3=require(a3_0x268ba2(0x127)),Validator_4=require(a3_0x268ba2(0x137));let ApicreateService=class ApicreateService{async[a3_0x268ba2(0x150)](_0x5999cd){const _0x7e562f=a3_0x268ba2;return await this[_0x7e562f(0x108)](_0x5999cd),await this['createAction']({..._0x5999cd,'apporbasic':_0x7e562f(0x13b)});}async[a3_0x268ba2(0x10e)](_0x505073){const _0x11d445=a3_0x268ba2;return await this['checkOption'](_0x505073),await this[_0x11d445(0xfa)]({..._0x505073,'apporbasic':_0x11d445(0x14d)});}async[a3_0x268ba2(0x126)](_0x368ebd){const _0x3ea889=a3_0x268ba2;return await this[_0x3ea889(0x108)](_0x368ebd),await this['createAction']({..._0x368ebd,'module':!![]});}async['createAction'](_0x81058c){const _0xb14f2e=a3_0x268ba2;var _0x580234,_0x37fcea;!_0x81058c[_0xb14f2e(0x158)]&&(_0x81058c['connection']=_0xb14f2e(0x107));!_0x81058c[_0xb14f2e(0x11f)]&&(_0x81058c[_0xb14f2e(0x11f)]='app');const _0x9e8f38=this[_0xb14f2e(0x13b)]['getBaseDir'](),_0x1c88b2=this[_0xb14f2e(0x139)][_0xb14f2e(0x178)](_0x81058c[_0xb14f2e(0x158)]),_0x481b11=await _0x1c88b2[_0xb14f2e(0x10b)](_0xb14f2e(0x170)+this[_0xb14f2e(0x166)][_0xb14f2e(0x15d)][_0x81058c[_0xb14f2e(0x158)]][_0xb14f2e(0x172)]+_0xb14f2e(0x12a)+((_0x81058c===null||_0x81058c===void 0x0?void 0x0:_0x81058c[_0xb14f2e(0x142)])?'=\x20\x22'+_0x81058c[_0xb14f2e(0x142)]+'\x22':_0xb14f2e(0xf9)+(_0x81058c['tableprefix']||'')+'%\x22'))||[];for(let _0xb7e8b1=0x0;_0xb7e8b1<_0x481b11[_0xb14f2e(0x101)];_0xb7e8b1++){const _0x341d3a=_0x481b11[_0xb7e8b1][_0xb14f2e(0x142)];if((_0x81058c===null||_0x81058c===void 0x0?void 0x0:_0x81058c[_0xb14f2e(0x142)])&&(_0x81058c===null||_0x81058c===void 0x0?void 0x0:_0x81058c[_0xb14f2e(0x142)])!=_0x341d3a)continue;if((_0x81058c===null||_0x81058c===void 0x0?void 0x0:_0x81058c[_0xb14f2e(0x159)])&&!(_0x341d3a===null||_0x341d3a===void 0x0?void 0x0:_0x341d3a[_0xb14f2e(0x165)](_0x81058c[_0xb14f2e(0x159)])))continue;const _0x37836f=await _0x1c88b2[_0xb14f2e(0x10b)](_0xb14f2e(0x168)+this[_0xb14f2e(0x166)]['dataSource'][_0x81058c[_0xb14f2e(0x158)]][_0xb14f2e(0x172)]+_0xb14f2e(0x132)+_0x341d3a+'\x27')||[];if((_0x580234=_0x37836f[0x0])===null||_0x580234===void 0x0?void 0x0:_0x580234['comment']){const _0x71b409={'tablename':_0x341d3a,'Primary':{},'Fields':{},'Comment':(_0x37fcea=_0x37836f[0x0])===null||_0x37fcea===void 0x0?void 0x0:_0x37fcea['comment'],'vuedialog':_0x81058c[_0xb14f2e(0x120)],'apporbasic':_0x81058c[_0xb14f2e(0x11f)]};_0x71b409[_0xb14f2e(0x114)]=_0x341d3a[_0xb14f2e(0x11d)]((_0x81058c===null||_0x81058c===void 0x0?void 0x0:_0x81058c[_0xb14f2e(0x11d)])||0x0,_0x341d3a['length']),_0x71b409[_0xb14f2e(0x174)]=(_0x81058c===null||_0x81058c===void 0x0?void 0x0:_0x81058c[_0xb14f2e(0x10a)])?_0x9e8f38+_0xb14f2e(0x124)+_0x71b409[_0xb14f2e(0x114)]['split']('_')[0x0][_0xb14f2e(0x104)]():_0x9e8f38+'/'+_0x81058c[_0xb14f2e(0x11f)];const _0x2c7504=_0x71b409['tablestart']['split']('_')[_0xb14f2e(0x151)](_0xb74f1d=>_0xb74f1d&&_0xb74f1d[_0xb14f2e(0x10c)]());(_0x81058c===null||_0x81058c===void 0x0?void 0x0:_0x81058c[_0xb14f2e(0x10a)])&&(await this[_0xb14f2e(0x12d)](_0x71b409),_0x71b409[_0xb14f2e(0x125)]=_0x2c7504[0x0]['toLowerCase']());_0x71b409['tablestartLow']=_0x2c7504[_0xb14f2e(0x175)](_0x3df7ef=>_0x3df7ef[_0xb14f2e(0x104)]())[_0xb14f2e(0x14b)](''),_0x71b409['tablestartUp']=_0x2c7504['map'](_0x4754b8=>''+_0x4754b8['substring'](0x0,0x1)['toUpperCase']()+_0x4754b8[_0xb14f2e(0x169)](0x1)[_0xb14f2e(0x104)]())['join']('');(_0x71b409===null||_0x71b409===void 0x0?void 0x0:_0x71b409[_0xb14f2e(0x125)])&&_0x2c7504[_0xb14f2e(0x101)]>0x1&&_0x2c7504[0x0]['toLowerCase']()==_0x71b409['moduleName']?(_0x71b409['tablestartUpShort']=_0x71b409['tablestartUp'][_0xb14f2e(0x169)](_0x71b409['moduleName']['length'],_0x71b409[_0xb14f2e(0x13f)][_0xb14f2e(0x101)]),_0x71b409[_0xb14f2e(0x13a)]=_0x71b409['tablestartLow'][_0xb14f2e(0x169)](_0x71b409['moduleName'][_0xb14f2e(0x101)],_0x71b409['tablestartLow'][_0xb14f2e(0x101)])):(_0x71b409[_0xb14f2e(0x129)]=_0x71b409[_0xb14f2e(0x13f)],_0x71b409[_0xb14f2e(0x13a)]=_0x71b409[_0xb14f2e(0xfd)]);_0x71b409[_0xb14f2e(0x14f)]=_0x71b409[_0xb14f2e(0x129)]['replace'](/\/{2,}/g,'/')[_0xb14f2e(0x102)](/[\/|A-Z]*[^A-Z]+/g)[_0xb14f2e(0x14b)]('-')[_0xb14f2e(0x104)]()[_0xb14f2e(0x128)](/\/\-/g,'/');for(let _0x57ba40 of await _0x1c88b2[_0xb14f2e(0x10b)]('SHOW\x20FULL\x20COLUMNS\x20FROM\x20`'+_0x341d3a+'`')){_0x57ba40['Key']==_0xb14f2e(0x10f)?_0x71b409[_0xb14f2e(0x14a)]=_0x57ba40:_0x71b409[_0xb14f2e(0x16c)][_0x57ba40['Field']]=_0x57ba40;}if((_0x81058c===null||_0x81058c===void 0x0?void 0x0:_0x81058c[_0xb14f2e(0x11e)])&&!fs[_0xb14f2e(0xff)](_0x71b409[_0xb14f2e(0x174)]+'/exceptions/'+_0x71b409[_0xb14f2e(0x129)]+'.ts')){var _0x1b0e44=[];if(typeof(_0x81058c===null||_0x81058c===void 0x0?void 0x0:_0x81058c[_0xb14f2e(0x11e)])==_0xb14f2e(0x179))_0x1b0e44=[_0x81058c===null||_0x81058c===void 0x0?void 0x0:_0x81058c['controller']];else Array[_0xb14f2e(0x119)](_0x81058c===null||_0x81058c===void 0x0?void 0x0:_0x81058c['controller'])?_0x1b0e44=_0x81058c===null||_0x81058c===void 0x0?void 0x0:_0x81058c[_0xb14f2e(0x11e)]:_0x1b0e44=[!![]];_0x71b409[_0xb14f2e(0x118)]=_0x1b0e44,await(0x0,Search_1[_0xb14f2e(0x107)])(_0x71b409),await(0x0,Entities_1['default'])(_0x71b409),await(0x0,Common_1[_0xb14f2e(0x107)])(_0x71b409),await(0x0,Event_1['default'])(_0x71b409),await(0x0,Handler_1[_0xb14f2e(0x107)])(_0x71b409),await(0x0,Validator_1[_0xb14f2e(0x107)])(_0x71b409);for(let _0x46d920 of _0x1b0e44){_0x71b409['controller']=_0x46d920,await(0x0,Action_1[_0xb14f2e(0x107)])(_0x71b409);}}if(_0x81058c===null||_0x81058c===void 0x0?void 0x0:_0x81058c[_0xb14f2e(0x11c)]){var _0x1b0e44=[];if(typeof(_0x81058c===null||_0x81058c===void 0x0?void 0x0:_0x81058c['controller'])=='string')_0x1b0e44=[_0x81058c===null||_0x81058c===void 0x0?void 0x0:_0x81058c[_0xb14f2e(0x11e)]];else Array[_0xb14f2e(0x119)](_0x81058c===null||_0x81058c===void 0x0?void 0x0:_0x81058c[_0xb14f2e(0x11e)])?_0x1b0e44=_0x81058c===null||_0x81058c===void 0x0?void 0x0:_0x81058c['controller']:_0x1b0e44=[!![]];if(_0x81058c[_0xb14f2e(0x11c)]=='v2')for(let _0x1f140c of _0x1b0e44){_0x71b409[_0xb14f2e(0x11e)]=_0x1f140c;let _0x274fd2=process[_0xb14f2e(0x105)]()+'/vue'+(typeof _0x71b409[_0xb14f2e(0x11e)]==_0xb14f2e(0x179)?'/'+_0x71b409['controller']:'');_0x71b409[_0xb14f2e(0x125)]?_0x274fd2=_0x274fd2+(_0xb14f2e(0x11b)+_0x71b409[_0xb14f2e(0x125)]+_0xb14f2e(0x14c)+_0x71b409[_0xb14f2e(0x129)]+'.js'):_0x274fd2=_0x274fd2+(_0xb14f2e(0x14c)+_0x71b409[_0xb14f2e(0x11f)]+_0xb14f2e(0x14c)+_0x71b409[_0xb14f2e(0x129)]+_0xb14f2e(0x16f)),!fs[_0xb14f2e(0xff)](_0x274fd2)&&(await(0x0,Api_2[_0xb14f2e(0x107)])(_0x71b409),await(0x0,Router_2[_0xb14f2e(0x107)])(_0x71b409),await(0x0,Layout_2[_0xb14f2e(0x107)])(_0x71b409),await(0x0,LayoutVue_2[_0xb14f2e(0x107)])(_0x71b409),await(0x0,Validator_3[_0xb14f2e(0x107)])(_0x71b409));}else{if(_0x81058c[_0xb14f2e(0x11c)]=='v3')for(let _0x2ed3c8 of _0x1b0e44){_0x71b409[_0xb14f2e(0x11e)]=_0x2ed3c8;let _0x32fce1=process[_0xb14f2e(0x105)]()+'/vue'+(typeof _0x71b409[_0xb14f2e(0x11e)]==_0xb14f2e(0x179)?'/'+_0x71b409[_0xb14f2e(0x11e)]:'');_0x71b409['moduleName']?_0x32fce1=_0x32fce1+(_0xb14f2e(0x11b)+_0x71b409[_0xb14f2e(0x125)]+_0xb14f2e(0x14c)+_0x71b409[_0xb14f2e(0x129)]+_0xb14f2e(0x16f)):_0x32fce1=_0x32fce1+(_0xb14f2e(0x14c)+_0x71b409[_0xb14f2e(0x11f)]+_0xb14f2e(0x14c)+_0x71b409[_0xb14f2e(0x129)]+_0xb14f2e(0x16f)),!fs[_0xb14f2e(0xff)](_0x32fce1)&&(await(0x0,Api_3['default'])(_0x71b409),await(0x0,Router_3[_0xb14f2e(0x107)])(_0x71b409),await(0x0,Layout_3['default'])(_0x71b409),await(0x0,LayoutVue_3[_0xb14f2e(0x107)])(_0x71b409),await(0x0,Validator_4[_0xb14f2e(0x107)])(_0x71b409));}else for(let _0xe97db3 of _0x1b0e44){_0x71b409[_0xb14f2e(0x11e)]=_0xe97db3;let _0x56e3a0=process[_0xb14f2e(0x105)]()+'/vue'+(typeof _0x71b409[_0xb14f2e(0x11e)]=='string'?'/'+_0x71b409[_0xb14f2e(0x11e)]:'');_0x71b409[_0xb14f2e(0x125)]?_0x56e3a0=_0x56e3a0+(_0xb14f2e(0x113)+_0x71b409[_0xb14f2e(0x125)]+_0xb14f2e(0x12c)+_0x71b409[_0xb14f2e(0x14f)]+_0xb14f2e(0x16f)):_0x56e3a0=_0x56e3a0+(_0xb14f2e(0x154)+_0x71b409[_0xb14f2e(0x11f)]+_0xb14f2e(0x12c)+_0x71b409[_0xb14f2e(0x14f)]+_0xb14f2e(0x16f)),!fs[_0xb14f2e(0xff)](_0x56e3a0)&&(await(0x0,Api_1[_0xb14f2e(0x107)])(_0x71b409),await(0x0,Router_1[_0xb14f2e(0x107)])(_0x71b409),await(0x0,Layout_1[_0xb14f2e(0x107)])(_0x71b409),await(0x0,LayoutVue_1[_0xb14f2e(0x107)])(_0x71b409),await(0x0,Validator_2[_0xb14f2e(0x107)])(_0x71b409));}}}}else console[_0xb14f2e(0x121)]('表:'+_0x341d3a+'\x20表注释不存在');}return'die';}async[a3_0x268ba2(0x108)](_0x462c11){const _0x333a56=a3_0x268ba2;var _0x19c3da,_0x412b7d,_0x5b9a91;if(!this[_0x333a56(0x16d)][_0x333a56(0x164)]()||!((_0x19c3da=this[_0x333a56(0x166)])===null||_0x19c3da===void 0x0?void 0x0:_0x19c3da[_0x333a56(0x15d)])||!this[_0x333a56(0x13b)][_0x333a56(0x138)]('apitest'))throw new Error(_0x333a56(0x173));!_0x462c11[_0x333a56(0x158)]&&(_0x462c11[_0x333a56(0x158)]=_0x333a56(0x107));if(!((_0x5b9a91=(_0x412b7d=this[_0x333a56(0x166)])===null||_0x412b7d===void 0x0?void 0x0:_0x412b7d[_0x333a56(0x15d)])===null||_0x5b9a91===void 0x0?void 0x0:_0x5b9a91[_0x462c11[_0x333a56(0x158)]]))throw new Error('typeorm\x20未配置数据源\x20'+_0x462c11['connection']);if(!this[_0x333a56(0x139)][_0x333a56(0x130)](_0x462c11['connection']))throw new Error(_0x333a56(0x160)+_0x462c11['connection']+_0x333a56(0xfe));if(!this['dataSourceManager']['isConnected'](_0x462c11[_0x333a56(0x158)]))throw new Error(_0x333a56(0x160)+_0x462c11['connection']+_0x333a56(0x143));return!![];}async[a3_0x268ba2(0x12d)](_0x31d270){const _0x2931e4=a3_0x268ba2,_0x313fc8=_0x31d270[_0x2931e4(0x114)][_0x2931e4(0x15b)]('_')[0x0][_0x2931e4(0x104)]();if(!fs['existsSync'](_0x31d270[_0x2931e4(0x174)]+_0x2931e4(0x109))){let _0x3b8ce4=_0x2931e4(0x163)+(_0x31d270['Comment']||_0x313fc8)+_0x2931e4(0x135);fs[_0x2931e4(0x15c)](path[_0x2931e4(0x147)](_0x31d270['basedir']+_0x2931e4(0x109)),{'recursive':!![]}),fs['writeFileSync'](_0x31d270[_0x2931e4(0x174)]+_0x2931e4(0x109),_0x3b8ce4,_0x2931e4(0x15a));}}};exports[a3_0x268ba2(0x106)]=ApicreateService,__decorate([(0x0,core_2[a3_0x268ba2(0x177)])(),__metadata(a3_0x268ba2(0x17a),Object)],ApicreateService[a3_0x268ba2(0x13d)],a3_0x268ba2(0x13b),void 0x0),__decorate([(0x0,core_2[a3_0x268ba2(0x152)])(a3_0x268ba2(0x146)),__metadata(a3_0x268ba2(0x17a),Object)],ApicreateService[a3_0x268ba2(0x13d)],a3_0x268ba2(0x166),void 0x0),__decorate([(0x0,core_2['Inject'])(),__metadata(a3_0x268ba2(0x17a),core_1[a3_0x268ba2(0x140)])],ApicreateService['prototype'],a3_0x268ba2(0x16d),void 0x0),__decorate([(0x0,core_2[a3_0x268ba2(0x13c)])(),__metadata('design:type',typeorm_1[a3_0x268ba2(0x17b)])],ApicreateService[a3_0x268ba2(0x13d)],a3_0x268ba2(0x139),void 0x0),exports['ApicreateService']=ApicreateService=__decorate([(0x0,core_2[a3_0x268ba2(0x157)])('ApicreateService'),(0x0,core_2['Scope'])(core_2[a3_0x268ba2(0x134)][a3_0x268ba2(0x171)])],ApicreateService);
|
|
1
|
+
const a3_0x4c3eb2=a3_0x3537;(function(_0x302872,_0x5d66a4){const _0x30bd60=a3_0x3537,_0x6d4812=_0x302872();while(!![]){try{const _0xeef202=-parseInt(_0x30bd60(0x19c))/0x1*(-parseInt(_0x30bd60(0x18d))/0x2)+parseInt(_0x30bd60(0x186))/0x3+parseInt(_0x30bd60(0x16e))/0x4*(parseInt(_0x30bd60(0x13f))/0x5)+-parseInt(_0x30bd60(0x15a))/0x6+-parseInt(_0x30bd60(0x17f))/0x7+parseInt(_0x30bd60(0x18c))/0x8+parseInt(_0x30bd60(0x170))/0x9*(-parseInt(_0x30bd60(0x157))/0xa);if(_0xeef202===_0x5d66a4)break;else _0x6d4812['push'](_0x6d4812['shift']());}catch(_0x15010c){_0x6d4812['push'](_0x6d4812['shift']());}}}(a3_0x1c4b,0xcd3a8));const a3_0x3d026c=(function(){let _0x4394ce=!![];return function(_0x27adbf,_0xb76aa7){const _0x2538b2=_0x4394ce?function(){const _0x270cfe=a3_0x3537;if(_0xb76aa7){const _0x1a4b7d=_0xb76aa7[_0x270cfe(0x18b)](_0x27adbf,arguments);return _0xb76aa7=null,_0x1a4b7d;}}:function(){};return _0x4394ce=![],_0x2538b2;};}()),a3_0x13d32a=a3_0x3d026c(this,function(){const _0x4a058e=a3_0x3537;return a3_0x13d32a[_0x4a058e(0x138)]()[_0x4a058e(0x149)](_0x4a058e(0x14a))['toString']()[_0x4a058e(0x174)](a3_0x13d32a)['search'](_0x4a058e(0x14a));});function a3_0x3537(_0x36d92c,_0x2dcddd){const _0x34422e=a3_0x1c4b();return a3_0x3537=function(_0x13d32a,_0x3d026c){_0x13d32a=_0x13d32a-0x122;let _0x1c4b02=_0x34422e[_0x13d32a];return _0x1c4b02;},a3_0x3537(_0x36d92c,_0x2dcddd);}function a3_0x1c4b(){const _0x4899d2=['Inject','typeorm','../templateVueV3/Layout','error','\x22\x20AND\x20table_name\x20','basic','../templateVue/Router','search','(((.+)+)+)+$','App','ScopeEnum','existsSync','Scope','filter','无法生成','../templateVueV3/Router','typeorm\x20数据源\x20','../templateVueV2/Api','module','decorate','query','401330hqACSC','dirname','path','3784620SWzeqY','../templateVueV3/Api','../templateVueV3/LayoutVue','@midwayjs/core','join','tablestartUpShort2','string','LIKE\x20\x22','/apis/','/exceptions/','CreateModuleConfig','SELECT\x20TABLE_NAME\x20as\x20`table`\x20FROM\x20information_schema.TABLES\x20WHERE\x20TABLE_SCHEMA=\x22','/pages/','database','Comment','isConnected','createPlugin','isArray','getConfig','/config.ts','322212iPTeyV','map','99pQaAJr','vuedialog','hasDataSource','getBaseDir','constructor','object','typeorm\x20未配置数据源\x20','config','substring','controllers','dataSource','/vue','cwd','getDataSource','split','7282478kiexII','tableprefix','\x22\x20AND\x20table_name\x20=\x20\x27','tablestartLowShort','../templateFun/Validator','.js','../templateFun/Event','3863940ZPWObS','replace','apporbasic','/api/','default','apply','4026880pjVBpP','328iUxmSE','environment','../templateVue/Validator','prototype','metadata','design:type','Provide','toUpperCase','TypeORMDataSourceManager','/apis/apps/','tablestartUpShort','connection','mkdirSync','basedir','../templateVueV2/LayoutVue','5611xpfAfN','../templateVue/Layout','startsWith','table','defineProperty','@midwayjs/typeorm','hasvue','createBasic','ApicreateService','MidwayEnvironmentService','tablestart','SHOW\x20FULL\x20COLUMNS\x20FROM\x20`','isDevelopmentEnvironment','export\x20default\x20{\x0a\x20\x20\x20\x20name:\x20\x27','/pages/apps/','../templateFun/Handler','moduleName','../templateVueV2/Validator','checkOption','toLowerCase','app','tablestartLow','=\x20\x22','dataSourceManager','.ts','toString','PRI','tablestartUp','controller','Primary','createAction','\x20未连接','15qxdkQH','Fields','length'];a3_0x1c4b=function(){return _0x4899d2;};return a3_0x1c4b();}a3_0x13d32a();'use strict';var __decorate=this&&this['__decorate']||function(_0x1ec84f,_0x36afd8,_0x4f05b9,_0x515313){const _0x1a0693=a3_0x3537;var _0x39f0fe=arguments[_0x1a0693(0x141)],_0x29500b=_0x39f0fe<0x3?_0x36afd8:_0x515313===null?_0x515313=Object['getOwnPropertyDescriptor'](_0x36afd8,_0x4f05b9):_0x515313,_0x124c14;if(typeof Reflect===_0x1a0693(0x175)&&typeof Reflect[_0x1a0693(0x155)]==='function')_0x29500b=Reflect[_0x1a0693(0x155)](_0x1ec84f,_0x36afd8,_0x4f05b9,_0x515313);else{for(var _0x9c5449=_0x1ec84f[_0x1a0693(0x141)]-0x1;_0x9c5449>=0x0;_0x9c5449--)if(_0x124c14=_0x1ec84f[_0x9c5449])_0x29500b=(_0x39f0fe<0x3?_0x124c14(_0x29500b):_0x39f0fe>0x3?_0x124c14(_0x36afd8,_0x4f05b9,_0x29500b):_0x124c14(_0x36afd8,_0x4f05b9))||_0x29500b;}return _0x39f0fe>0x3&&_0x29500b&&Object[_0x1a0693(0x123)](_0x36afd8,_0x4f05b9,_0x29500b),_0x29500b;},__metadata=this&&this['__metadata']||function(_0x11fbc8,_0x12718d){const _0x32ecf7=a3_0x3537;if(typeof Reflect==='object'&&typeof Reflect[_0x32ecf7(0x191)]==='function')return Reflect[_0x32ecf7(0x191)](_0x11fbc8,_0x12718d);};Object[a3_0x4c3eb2(0x123)](exports,'__esModule',{'value':!![]}),exports[a3_0x4c3eb2(0x127)]=void 0x0;const fs=require('fs'),path=require(a3_0x4c3eb2(0x159)),core_1=require(a3_0x4c3eb2(0x15d)),typeorm_1=require(a3_0x4c3eb2(0x124)),core_2=require(a3_0x4c3eb2(0x15d)),Common_1=require('../templateFun/Common'),Event_1=require(a3_0x4c3eb2(0x185)),Search_1=require('../templateFun/Search'),Entities_1=require('../templateFun/Entities'),Handler_1=require(a3_0x4c3eb2(0x12e)),Validator_1=require(a3_0x4c3eb2(0x183)),Action_1=require('../templateFun/Action'),Api_1=require('../templateVue/Api'),Router_1=require(a3_0x4c3eb2(0x148)),Layout_1=require(a3_0x4c3eb2(0x19d)),LayoutVue_1=require('../templateVue/LayoutVue'),Validator_2=require(a3_0x4c3eb2(0x18f)),Api_2=require(a3_0x4c3eb2(0x153)),Router_2=require('../templateVueV2/Router'),Layout_2=require('../templateVueV2/Layout'),LayoutVue_2=require(a3_0x4c3eb2(0x19b)),Validator_3=require(a3_0x4c3eb2(0x130)),Api_3=require(a3_0x4c3eb2(0x15b)),Router_3=require(a3_0x4c3eb2(0x151)),Layout_3=require(a3_0x4c3eb2(0x144)),LayoutVue_3=require(a3_0x4c3eb2(0x15c)),Validator_4=require('../templateVueV3/Validator');let ApicreateService=class ApicreateService{async['createApp'](_0x53237d){const _0x363a49=a3_0x4c3eb2;return await this[_0x363a49(0x131)](_0x53237d),await this[_0x363a49(0x13d)]({..._0x53237d,'apporbasic':_0x363a49(0x133)});}async[a3_0x4c3eb2(0x126)](_0x172bf0){const _0x2327ea=a3_0x4c3eb2;return await this[_0x2327ea(0x131)](_0x172bf0),await this[_0x2327ea(0x13d)]({..._0x172bf0,'apporbasic':_0x2327ea(0x147)});}async[a3_0x4c3eb2(0x16a)](_0x49f95d){const _0x338a6e=a3_0x4c3eb2;return await this['checkOption'](_0x49f95d),await this[_0x338a6e(0x13d)]({..._0x49f95d,'module':!![]});}async[a3_0x4c3eb2(0x13d)](_0x3b3b13){const _0x34b806=a3_0x4c3eb2;var _0x2466a6,_0x4f94d2;!_0x3b3b13[_0x34b806(0x198)]&&(_0x3b3b13[_0x34b806(0x198)]=_0x34b806(0x18a));!_0x3b3b13['apporbasic']&&(_0x3b3b13[_0x34b806(0x188)]=_0x34b806(0x133));const _0x890182=this[_0x34b806(0x133)][_0x34b806(0x173)](),_0x364636=this['dataSourceManager'][_0x34b806(0x17d)](_0x3b3b13[_0x34b806(0x198)]),_0x3046fb=await _0x364636[_0x34b806(0x156)](_0x34b806(0x165)+this[_0x34b806(0x177)][_0x34b806(0x17a)][_0x3b3b13[_0x34b806(0x198)]]['database']+_0x34b806(0x146)+((_0x3b3b13===null||_0x3b3b13===void 0x0?void 0x0:_0x3b3b13[_0x34b806(0x122)])?_0x34b806(0x135)+_0x3b3b13[_0x34b806(0x122)]+'\x22':_0x34b806(0x161)+(_0x3b3b13[_0x34b806(0x180)]||'')+'%\x22'))||[];for(let _0x3ab24d=0x0;_0x3ab24d<_0x3046fb[_0x34b806(0x141)];_0x3ab24d++){const _0x42d5a7=_0x3046fb[_0x3ab24d][_0x34b806(0x122)];if((_0x3b3b13===null||_0x3b3b13===void 0x0?void 0x0:_0x3b3b13[_0x34b806(0x122)])&&(_0x3b3b13===null||_0x3b3b13===void 0x0?void 0x0:_0x3b3b13[_0x34b806(0x122)])!=_0x42d5a7)continue;if((_0x3b3b13===null||_0x3b3b13===void 0x0?void 0x0:_0x3b3b13[_0x34b806(0x180)])&&!(_0x42d5a7===null||_0x42d5a7===void 0x0?void 0x0:_0x42d5a7[_0x34b806(0x19e)](_0x3b3b13['tableprefix'])))continue;const _0x110de8=await _0x364636['query']('SELECT\x20TABLE_COMMENT\x20as\x20`comment`\x20FROM\x20information_schema.TABLES\x20WHERE\x20TABLE_SCHEMA=\x22'+this[_0x34b806(0x177)][_0x34b806(0x17a)][_0x3b3b13[_0x34b806(0x198)]][_0x34b806(0x167)]+_0x34b806(0x181)+_0x42d5a7+'\x27')||[];if((_0x2466a6=_0x110de8[0x0])===null||_0x2466a6===void 0x0?void 0x0:_0x2466a6['comment']){const _0x491f24={'tablename':_0x42d5a7,'Primary':{},'Fields':{},'Comment':(_0x4f94d2=_0x110de8[0x0])===null||_0x4f94d2===void 0x0?void 0x0:_0x4f94d2['comment'],'vuedialog':_0x3b3b13[_0x34b806(0x171)],'apporbasic':_0x3b3b13[_0x34b806(0x188)]};_0x491f24[_0x34b806(0x129)]=_0x42d5a7['substr']((_0x3b3b13===null||_0x3b3b13===void 0x0?void 0x0:_0x3b3b13['substr'])||0x0,_0x42d5a7['length']),_0x491f24[_0x34b806(0x19a)]=(_0x3b3b13===null||_0x3b3b13===void 0x0?void 0x0:_0x3b3b13[_0x34b806(0x154)])?_0x890182+'/apps/'+_0x491f24[_0x34b806(0x129)][_0x34b806(0x17e)]('_')[0x0]['toLowerCase']():_0x890182+'/'+_0x3b3b13['apporbasic'];const _0x10d83e=_0x491f24[_0x34b806(0x129)]['split']('_')[_0x34b806(0x14f)](_0x17250c=>_0x17250c&&_0x17250c['trim']());(_0x3b3b13===null||_0x3b3b13===void 0x0?void 0x0:_0x3b3b13[_0x34b806(0x154)])&&(await this[_0x34b806(0x164)](_0x491f24),_0x491f24[_0x34b806(0x12f)]=_0x10d83e[0x0]['toLowerCase']());_0x491f24[_0x34b806(0x134)]=_0x10d83e[_0x34b806(0x16f)](_0x2eb858=>_0x2eb858[_0x34b806(0x132)]())[_0x34b806(0x15e)](''),_0x491f24[_0x34b806(0x13a)]=_0x10d83e[_0x34b806(0x16f)](_0x4f0908=>''+_0x4f0908[_0x34b806(0x178)](0x0,0x1)[_0x34b806(0x194)]()+_0x4f0908['substring'](0x1)['toLowerCase']())[_0x34b806(0x15e)]('');(_0x491f24===null||_0x491f24===void 0x0?void 0x0:_0x491f24[_0x34b806(0x12f)])&&_0x10d83e['length']>0x1&&_0x10d83e[0x0]['toLowerCase']()==_0x491f24[_0x34b806(0x12f)]?(_0x491f24['tablestartUpShort']=_0x491f24['tablestartUp']['substring'](_0x491f24['moduleName'][_0x34b806(0x141)],_0x491f24[_0x34b806(0x13a)][_0x34b806(0x141)]),_0x491f24[_0x34b806(0x182)]=_0x491f24[_0x34b806(0x134)][_0x34b806(0x178)](_0x491f24['moduleName']['length'],_0x491f24[_0x34b806(0x134)]['length'])):(_0x491f24[_0x34b806(0x197)]=_0x491f24['tablestartUp'],_0x491f24['tablestartLowShort']=_0x491f24[_0x34b806(0x134)]);_0x491f24[_0x34b806(0x15f)]=_0x491f24['tablestartUpShort']['replace'](/\/{2,}/g,'/')['match'](/[\/|A-Z]*[^A-Z]+/g)[_0x34b806(0x15e)]('-')[_0x34b806(0x132)]()[_0x34b806(0x187)](/\/\-/g,'/');for(let _0x33e8fa of await _0x364636[_0x34b806(0x156)](_0x34b806(0x12a)+_0x42d5a7+'`')){_0x33e8fa['Key']==_0x34b806(0x139)?_0x491f24[_0x34b806(0x13c)]=_0x33e8fa:_0x491f24[_0x34b806(0x140)][_0x33e8fa['Field']]=_0x33e8fa;}if((_0x3b3b13===null||_0x3b3b13===void 0x0?void 0x0:_0x3b3b13[_0x34b806(0x13b)])&&!fs['existsSync'](_0x491f24[_0x34b806(0x19a)]+_0x34b806(0x163)+_0x491f24['tablestartUpShort']+_0x34b806(0x137))){var _0x4bf7e1=[];if(typeof(_0x3b3b13===null||_0x3b3b13===void 0x0?void 0x0:_0x3b3b13['controller'])==_0x34b806(0x160))_0x4bf7e1=[_0x3b3b13===null||_0x3b3b13===void 0x0?void 0x0:_0x3b3b13[_0x34b806(0x13b)]];else Array[_0x34b806(0x16b)](_0x3b3b13===null||_0x3b3b13===void 0x0?void 0x0:_0x3b3b13[_0x34b806(0x13b)])?_0x4bf7e1=_0x3b3b13===null||_0x3b3b13===void 0x0?void 0x0:_0x3b3b13['controller']:_0x4bf7e1=[!![]];_0x491f24[_0x34b806(0x179)]=_0x4bf7e1,await(0x0,Search_1[_0x34b806(0x18a)])(_0x491f24),await(0x0,Entities_1[_0x34b806(0x18a)])(_0x491f24),await(0x0,Common_1[_0x34b806(0x18a)])(_0x491f24),await(0x0,Event_1[_0x34b806(0x18a)])(_0x491f24),await(0x0,Handler_1[_0x34b806(0x18a)])(_0x491f24),await(0x0,Validator_1[_0x34b806(0x18a)])(_0x491f24);for(let _0x3f580f of _0x4bf7e1){_0x491f24['controller']=_0x3f580f,await(0x0,Action_1[_0x34b806(0x18a)])(_0x491f24);}}if(_0x3b3b13===null||_0x3b3b13===void 0x0?void 0x0:_0x3b3b13[_0x34b806(0x125)]){var _0x4bf7e1=[];if(typeof(_0x3b3b13===null||_0x3b3b13===void 0x0?void 0x0:_0x3b3b13[_0x34b806(0x13b)])==_0x34b806(0x160))_0x4bf7e1=[_0x3b3b13===null||_0x3b3b13===void 0x0?void 0x0:_0x3b3b13[_0x34b806(0x13b)]];else Array['isArray'](_0x3b3b13===null||_0x3b3b13===void 0x0?void 0x0:_0x3b3b13['controller'])?_0x4bf7e1=_0x3b3b13===null||_0x3b3b13===void 0x0?void 0x0:_0x3b3b13[_0x34b806(0x13b)]:_0x4bf7e1=[!![]];if(_0x3b3b13['hasvue']=='v2')for(let _0x1e032a of _0x4bf7e1){_0x491f24[_0x34b806(0x13b)]=_0x1e032a;let _0x1cc182=process[_0x34b806(0x17c)]()+_0x34b806(0x17b)+(typeof _0x491f24[_0x34b806(0x13b)]==_0x34b806(0x160)?'/'+_0x491f24['controller']:'');_0x491f24[_0x34b806(0x12f)]?_0x1cc182=_0x1cc182+(_0x34b806(0x196)+_0x491f24[_0x34b806(0x12f)]+_0x34b806(0x162)+_0x491f24['tablestartUpShort']+'.js'):_0x1cc182=_0x1cc182+(_0x34b806(0x162)+_0x491f24[_0x34b806(0x188)]+_0x34b806(0x162)+_0x491f24[_0x34b806(0x197)]+_0x34b806(0x184)),!fs[_0x34b806(0x14d)](_0x1cc182)&&(await(0x0,Api_2['default'])(_0x491f24),await(0x0,Router_2[_0x34b806(0x18a)])(_0x491f24),await(0x0,Layout_2[_0x34b806(0x18a)])(_0x491f24),await(0x0,LayoutVue_2[_0x34b806(0x18a)])(_0x491f24),await(0x0,Validator_3[_0x34b806(0x18a)])(_0x491f24));}else{if(_0x3b3b13[_0x34b806(0x125)]=='v3')for(let _0x21db82 of _0x4bf7e1){_0x491f24[_0x34b806(0x13b)]=_0x21db82;let _0x4c7624=process[_0x34b806(0x17c)]()+_0x34b806(0x17b)+(typeof _0x491f24['controller']==_0x34b806(0x160)?'/'+_0x491f24[_0x34b806(0x13b)]:'');_0x491f24['moduleName']?_0x4c7624=_0x4c7624+(_0x34b806(0x196)+_0x491f24['moduleName']+'/apis/'+_0x491f24[_0x34b806(0x197)]+_0x34b806(0x184)):_0x4c7624=_0x4c7624+('/apis/'+_0x491f24[_0x34b806(0x188)]+_0x34b806(0x162)+_0x491f24[_0x34b806(0x197)]+_0x34b806(0x184)),!fs[_0x34b806(0x14d)](_0x4c7624)&&(await(0x0,Api_3['default'])(_0x491f24),await(0x0,Router_3[_0x34b806(0x18a)])(_0x491f24),await(0x0,Layout_3['default'])(_0x491f24),await(0x0,LayoutVue_3['default'])(_0x491f24),await(0x0,Validator_4[_0x34b806(0x18a)])(_0x491f24));}else for(let _0x4f053f of _0x4bf7e1){_0x491f24[_0x34b806(0x13b)]=_0x4f053f;let _0x3ab6df=process[_0x34b806(0x17c)]()+'/vue'+(typeof _0x491f24['controller']==_0x34b806(0x160)?'/'+_0x491f24[_0x34b806(0x13b)]:'');_0x491f24[_0x34b806(0x12f)]?_0x3ab6df=_0x3ab6df+(_0x34b806(0x12d)+_0x491f24[_0x34b806(0x12f)]+_0x34b806(0x189)+_0x491f24[_0x34b806(0x15f)]+_0x34b806(0x184)):_0x3ab6df=_0x3ab6df+(_0x34b806(0x166)+_0x491f24[_0x34b806(0x188)]+_0x34b806(0x189)+_0x491f24['tablestartUpShort2']+_0x34b806(0x184)),!fs[_0x34b806(0x14d)](_0x3ab6df)&&(await(0x0,Api_1['default'])(_0x491f24),await(0x0,Router_1[_0x34b806(0x18a)])(_0x491f24),await(0x0,Layout_1[_0x34b806(0x18a)])(_0x491f24),await(0x0,LayoutVue_1[_0x34b806(0x18a)])(_0x491f24),await(0x0,Validator_2[_0x34b806(0x18a)])(_0x491f24));}}}}else console[_0x34b806(0x145)]('表:'+_0x42d5a7+'\x20表注释不存在');}return'die';}async[a3_0x4c3eb2(0x131)](_0x2efc88){const _0x4462e6=a3_0x4c3eb2;var _0x3e27fd,_0x40b753,_0x2dfc96;if(!this['environment'][_0x4462e6(0x12b)]()||!((_0x3e27fd=this[_0x4462e6(0x177)])===null||_0x3e27fd===void 0x0?void 0x0:_0x3e27fd[_0x4462e6(0x17a)])||!this[_0x4462e6(0x133)][_0x4462e6(0x16c)]('apitest'))throw new Error(_0x4462e6(0x150));!_0x2efc88[_0x4462e6(0x198)]&&(_0x2efc88['connection']='default');if(!((_0x2dfc96=(_0x40b753=this[_0x4462e6(0x177)])===null||_0x40b753===void 0x0?void 0x0:_0x40b753[_0x4462e6(0x17a)])===null||_0x2dfc96===void 0x0?void 0x0:_0x2dfc96[_0x2efc88[_0x4462e6(0x198)]]))throw new Error(_0x4462e6(0x176)+_0x2efc88['connection']);if(!this[_0x4462e6(0x136)][_0x4462e6(0x172)](_0x2efc88[_0x4462e6(0x198)]))throw new Error(_0x4462e6(0x152)+_0x2efc88[_0x4462e6(0x198)]+'\x20不存在');if(!this['dataSourceManager'][_0x4462e6(0x169)](_0x2efc88['connection']))throw new Error('typeorm\x20数据源\x20'+_0x2efc88[_0x4462e6(0x198)]+_0x4462e6(0x13e));return!![];}async[a3_0x4c3eb2(0x164)](_0x569a7b){const _0x161e99=a3_0x4c3eb2,_0x157adb=_0x569a7b['tablestart']['split']('_')[0x0][_0x161e99(0x132)]();if(!fs['existsSync'](_0x569a7b[_0x161e99(0x19a)]+_0x161e99(0x16d))){let _0x5543e5=_0x161e99(0x12c)+(_0x569a7b[_0x161e99(0x168)]||_0x157adb)+'\x27,\x0a\x20\x20\x20\x20description:\x20\x27\x27,\x0a\x20\x20\x20\x20middleware:\x20[],\x0a}';fs[_0x161e99(0x199)](path[_0x161e99(0x158)](_0x569a7b[_0x161e99(0x19a)]+_0x161e99(0x16d)),{'recursive':!![]}),fs['writeFileSync'](_0x569a7b[_0x161e99(0x19a)]+_0x161e99(0x16d),_0x5543e5,'utf-8');}}};__decorate([(0x0,core_2[a3_0x4c3eb2(0x14b)])(),__metadata('design:type',Object)],ApicreateService['prototype'],a3_0x4c3eb2(0x133),void 0x0),__decorate([(0x0,core_2['Config'])(a3_0x4c3eb2(0x143)),__metadata(a3_0x4c3eb2(0x192),Object)],ApicreateService[a3_0x4c3eb2(0x190)],a3_0x4c3eb2(0x177),void 0x0),__decorate([(0x0,core_2[a3_0x4c3eb2(0x142)])(),__metadata(a3_0x4c3eb2(0x192),core_1[a3_0x4c3eb2(0x128)])],ApicreateService[a3_0x4c3eb2(0x190)],a3_0x4c3eb2(0x18e),void 0x0),__decorate([(0x0,core_2['Inject'])(),__metadata(a3_0x4c3eb2(0x192),typeorm_1[a3_0x4c3eb2(0x195)])],ApicreateService['prototype'],a3_0x4c3eb2(0x136),void 0x0),ApicreateService=__decorate([(0x0,core_2[a3_0x4c3eb2(0x193)])(a3_0x4c3eb2(0x127)),(0x0,core_2[a3_0x4c3eb2(0x14e)])(core_2[a3_0x4c3eb2(0x14c)]['Singleton'])],ApicreateService),exports[a3_0x4c3eb2(0x127)]=ApicreateService;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export default function ({ controller, tablestartUp, tablestartUpShort, basedir, Primary, Comment, moduleName, apporbasic }: {
|
|
2
|
-
controller: any;
|
|
3
|
-
tablestartUp: any;
|
|
4
|
-
tablestartUpShort: any;
|
|
5
|
-
basedir: any;
|
|
6
|
-
Primary: any;
|
|
7
|
-
Comment: any;
|
|
8
|
-
moduleName: any;
|
|
9
|
-
apporbasic: any;
|
|
10
|
-
}): Promise<void>;
|
|
1
|
+
export default function ({ controller, tablestartUp, tablestartUpShort, basedir, Primary, Comment, moduleName, apporbasic }: {
|
|
2
|
+
controller: any;
|
|
3
|
+
tablestartUp: any;
|
|
4
|
+
tablestartUpShort: any;
|
|
5
|
+
basedir: any;
|
|
6
|
+
Primary: any;
|
|
7
|
+
Comment: any;
|
|
8
|
+
moduleName: any;
|
|
9
|
+
apporbasic: any;
|
|
10
|
+
}): Promise<void>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a4_0x44e38b=a4_0x4a18;(function(_0x44989b,_0xda442){const _0x363147=a4_0x4a18,_0xaaf110=_0x44989b();while(!![]){try{const _0x39f7bb=-parseInt(_0x363147(0x18c))/0x1*(parseInt(_0x363147(0x1a2))/0x2)+-parseInt(_0x363147(0x169))/0x3+parseInt(_0x363147(0x16a))/0x4+-parseInt(_0x363147(0x191))/0x5+-parseInt(_0x363147(0x166))/0x6*(parseInt(_0x363147(0x1ac))/0x7)+-parseInt(_0x363147(0x18d))/0x8+-parseInt(_0x363147(0x173))/0x9*(-parseInt(_0x363147(0x181))/0xa);if(_0x39f7bb===_0xda442)break;else _0xaaf110['push'](_0xaaf110['shift']());}catch(_0x1ae053){_0xaaf110['push'](_0xaaf110['shift']());}}}(a4_0x2644,0x94248));function a4_0x2644(){const _0x5ad2d7=['/validators/','/Search\x27;\x0a\x0a','20184939BFHdBT','(((.+)+)+)+$','dirname','@/apps/','.ts','/handlers/','DTOCreate)\x20{\x0a\x0a','\x27;\x0a','getProp','\x20\x20\x20\x20\x20\x20\x20\x20return\x20this.ctx.ok(pagelist,\x20{\x20pageinfo,\x20pagetotal\x20});\x0a','DTOSearch\x20}\x20from\x20\x27','default','import\x20{\x20','apply','10IuHppk','\x20\x20\x20\x20@Action.post(\x27修改\x27,\x20\x27edit/:','text','import\x20{\x20Inject,\x20Action,\x20PageDTO\x20}\x20from\x20\x27anncic-api\x27;\x0a\x0a','\x20\x20\x20\x20async\x20remove(conditions:\x20','string','utf-8','\x20\x20\x20\x20\x20\x20\x20\x20return\x20this.ctx.ok(tmpModel);\x0a','Field','\x20\x20\x20\x20@Inject()\x20protected\x20','mkdirSync','100298lgdEDg','4746312DnQxcP','Handler\x0a\x0a\x0a','Handler.update(conditions,\x20params);\x0a\x0a','substring','652360NGVXuZ','DTOSearch\x20=\x20{\x20','mediumtext','../helper','Handler.list(conditions,\x20pageinfo);\x0a\x0a','toString','existsSync','/Create\x27;\x0a','/Update\x27;\x0a',',\x20params:\x20','\x20\x20\x20\x20@Action.get(\x27列表\x27,\x20\x27list\x27)\x0a','\x20\x20\x20\x20@Inject()\x20protected\x20ctx:\x20Context;\x0a\x0a','\x20\x20\x20\x20\x20\x20\x20\x20const\x20conditions:\x20','import\x20{\x20Context\x20}\x20from\x20\x27@midwayjs/koa\x27;\x0a','DTOUpdate)\x20{\x0a','DTOSearch)\x20{\x0a\x0a','Type','24fiLQgk','\x20\x20\x20\x20\x20\x20\x20\x20const\x20removes\x20=\x20await\x20this.','\x20\x20\x20\x20async\x20create(params:\x20','Handler.detail(conditions);\x0a\x0a','Handler.create(params);\x0a\x0a','\x20\x20\x20\x20async\x20index(conditions:\x20','__esModule','\x20\x20\x20\x20@Action.get(\x27详情\x27,\x20\x27detail/:','\x20\x20\x20\x20\x20\x20\x20\x20return\x20this.ctx.ok(removes);\x0a','export\x20class\x20','7whBkmE','\x20\x20\x20\x20\x20\x20\x20\x20const\x20tmpModel\x20=\x20await\x20this.','\x20};\x0a\x0a','\x20\x20\x20\x20async\x20update(','\x20\x20\x20\x20}\x0a\x0a\x0a','number','writeFileSync','Handler.remove(conditions);\x0a\x0a','\x27)\x0a','3284802wIlNCB','\x20\x20\x20\x20@Action.post(\x22删除\x22,\x20\x27remove\x27)\x0a',')\x20{\x0a','294273UwJWrr','3747664loUsfD','DTOSearch,\x20pageinfo:\x20PageDTO)\x20{\x0a\x0a','\x20\x20\x20\x20\x20\x20\x20\x20const\x20[pagelist,\x20pagetotal]\x20=\x20await\x20this.','\x20\x20\x20\x20async\x20detail(','constructor','DTOUpdate\x20}\x20from\x20\x27','\x20\x20\x20\x20@Action.post(\x27添加\x27,\x20\x27add\x27)\x0a'];a4_0x2644=function(){return _0x5ad2d7;};return a4_0x2644();}const a4_0x275710=(function(){let _0x15af24=!![];return function(_0x47144d,_0x14478d){const _0x53368a=_0x15af24?function(){const _0xceb8b=a4_0x4a18;if(_0x14478d){const _0x235f01=_0x14478d[_0xceb8b(0x180)](_0x47144d,arguments);return _0x14478d=null,_0x235f01;}}:function(){};return _0x15af24=![],_0x53368a;};}()),a4_0x28f501=a4_0x275710(this,function(){const _0x43950f=a4_0x4a18;return a4_0x28f501[_0x43950f(0x196)]()['search'](_0x43950f(0x174))[_0x43950f(0x196)]()[_0x43950f(0x16e)](a4_0x28f501)['search'](_0x43950f(0x174));});a4_0x28f501();'use strict';Object['defineProperty'](exports,a4_0x44e38b(0x1a8),{'value':!![]});const fs=require('fs'),path_1=require('path'),helper_1=require(a4_0x44e38b(0x194));function a4_0x4a18(_0x145dd4,_0xf6832){const _0x26ac4=a4_0x2644();return a4_0x4a18=function(_0x28f501,_0x275710){_0x28f501=_0x28f501-0x166;let _0x264457=_0x26ac4[_0x28f501];return _0x264457;},a4_0x4a18(_0x145dd4,_0xf6832);}async function default_1({controller:_0x5bf21f,tablestartUp:_0x34dbc8,tablestartUpShort:_0x5a24b6,basedir:_0x5ce6ea,Primary:_0x434c91,Comment:_0x1c67e5,moduleName:_0x3b9fcc,apporbasic:_0x9faf11}){const _0x40b137=a4_0x44e38b;if(_0x5bf21f){const _0x583ac8=_0x5ce6ea+(typeof _0x5bf21f==_0x40b137(0x186)?'/controller/'+_0x5bf21f+'/'+_0x5a24b6+_0x40b137(0x177):'/controller/'+_0x5a24b6+_0x40b137(0x177));if(!fs[_0x40b137(0x197)](_0x583ac8)){let _0x3bd233='',_0xa6afa7=[_0x40b137(0x183),_0x40b137(0x193),'string']['indexOf']((0x0,helper_1[_0x40b137(0x17b)])(_0x434c91[_0x40b137(0x1a1)]))==-0x1;_0x3bd233+=_0x40b137(0x19e),_0x3bd233+=_0x40b137(0x184),_0x3bd233+='import\x20{\x20'+_0x34dbc8+'Handler\x20}\x20from\x20\x27'+(typeof _0x3b9fcc==_0x40b137(0x186)?_0x40b137(0x176)+_0x3b9fcc:'@/'+_0x9faf11)+_0x40b137(0x178)+_0x5a24b6+_0x40b137(0x17a),_0x3bd233+=_0x40b137(0x17f)+_0x34dbc8+'DTOCreate\x20}\x20from\x20\x27'+(typeof _0x3b9fcc==_0x40b137(0x186)?_0x40b137(0x176)+_0x3b9fcc:'@/'+_0x9faf11)+_0x40b137(0x171)+_0x5a24b6+_0x40b137(0x198),_0x3bd233+=_0x40b137(0x17f)+_0x34dbc8+_0x40b137(0x16f)+(typeof _0x3b9fcc==_0x40b137(0x186)?_0x40b137(0x176)+_0x3b9fcc:'@/'+_0x9faf11)+_0x40b137(0x171)+_0x5a24b6+_0x40b137(0x199),_0x3bd233+=_0x40b137(0x17f)+_0x34dbc8+_0x40b137(0x17d)+(typeof _0x3b9fcc==_0x40b137(0x186)?_0x40b137(0x176)+_0x3b9fcc:'@/'+_0x9faf11)+'/validators/'+_0x5a24b6+_0x40b137(0x172),_0x3bd233+='@Action(__filename,\x20\x27'+_0x1c67e5+_0x40b137(0x1b4),_0x3bd233+=_0x40b137(0x1ab)+(typeof _0x5bf21f=='string'?_0x5bf21f[_0x40b137(0x190)](0x0,0x1)['toUpperCase']()+_0x5bf21f['substring'](0x1):'')+_0x34dbc8+'Controller\x20{\x0a\x0a',_0x3bd233+=_0x40b137(0x19c),_0x3bd233+=_0x40b137(0x18a)+_0x34dbc8+'Handler:\x20'+_0x34dbc8+_0x40b137(0x18e),_0x3bd233+=_0x40b137(0x19b),_0x3bd233+=_0x40b137(0x1a7)+_0x34dbc8+_0x40b137(0x16b),_0x3bd233+=_0x40b137(0x16c)+_0x34dbc8+_0x40b137(0x195),_0x3bd233+=_0x40b137(0x17c),_0x3bd233+='\x20\x20\x20\x20}\x0a\x0a\x0a',_0x3bd233+=_0x40b137(0x1a9)+_0x434c91[_0x40b137(0x189)]+'\x27)\x0a',_0x3bd233+=_0x40b137(0x16d)+_0x434c91[_0x40b137(0x189)]+':\x20'+(_0xa6afa7?_0x40b137(0x1b1):_0x40b137(0x186))+_0x40b137(0x168),_0x3bd233+=_0x40b137(0x19d)+_0x34dbc8+'DTOSearch\x20=\x20{\x20'+_0x434c91['Field']+_0x40b137(0x1ae),_0x3bd233+=_0x40b137(0x1ad)+_0x34dbc8+_0x40b137(0x1a5),_0x3bd233+=_0x40b137(0x188),_0x3bd233+=_0x40b137(0x1b0),_0x3bd233+=_0x40b137(0x170),_0x3bd233+=_0x40b137(0x1a4)+_0x34dbc8+_0x40b137(0x179),_0x3bd233+=_0x40b137(0x1ad)+_0x34dbc8+_0x40b137(0x1a6),_0x3bd233+=_0x40b137(0x188),_0x3bd233+=_0x40b137(0x1b0),_0x3bd233+=_0x40b137(0x182)+_0x434c91[_0x40b137(0x189)]+_0x40b137(0x1b4),_0x3bd233+=_0x40b137(0x1af)+_0x434c91[_0x40b137(0x189)]+':\x20'+(_0xa6afa7?_0x40b137(0x1b1):_0x40b137(0x186))+_0x40b137(0x19a)+_0x34dbc8+_0x40b137(0x19f),_0x3bd233+=_0x40b137(0x19d)+_0x34dbc8+_0x40b137(0x192)+_0x434c91['Field']+_0x40b137(0x1ae),_0x3bd233+='\x20\x20\x20\x20\x20\x20\x20\x20const\x20tmpModel\x20=\x20await\x20this.'+_0x34dbc8+_0x40b137(0x18f),_0x3bd233+=_0x40b137(0x188),_0x3bd233+=_0x40b137(0x1b0),_0x3bd233+=_0x40b137(0x167),_0x3bd233+=_0x40b137(0x185)+_0x34dbc8+_0x40b137(0x1a0),_0x3bd233+=_0x40b137(0x1a3)+_0x34dbc8+_0x40b137(0x1b3),_0x3bd233+=_0x40b137(0x1aa),_0x3bd233+=_0x40b137(0x1b0),_0x3bd233+='}',!fs[_0x40b137(0x197)]((0x0,path_1[_0x40b137(0x175)])(_0x583ac8))&&fs[_0x40b137(0x18b)]((0x0,path_1[_0x40b137(0x175)])(_0x583ac8),{'recursive':!![]}),fs[_0x40b137(0x1b2)](_0x583ac8,_0x3bd233,_0x40b137(0x187));}}}exports[a4_0x44e38b(0x17e)]=default_1;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export default function ({ tablestartUp, tablestartUpShort, basedir, Comment, Fields }: {
|
|
2
|
-
tablestartUp: any;
|
|
3
|
-
tablestartUpShort: any;
|
|
4
|
-
basedir: any;
|
|
5
|
-
Comment: any;
|
|
6
|
-
Fields: any;
|
|
7
|
-
}): Promise<void>;
|
|
1
|
+
export default function ({ tablestartUp, tablestartUpShort, basedir, Comment, Fields }: {
|
|
2
|
+
tablestartUp: any;
|
|
3
|
+
tablestartUpShort: any;
|
|
4
|
+
basedir: any;
|
|
5
|
+
Comment: any;
|
|
6
|
+
Fields: any;
|
|
7
|
+
}): Promise<void>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a5_0x32b60c=a5_0x21b9;(function(_0x27b02,_0x3cb636){const _0x2ff677=a5_0x21b9,_0x53bf1b=_0x27b02();while(!![]){try{const _0x541827=-parseInt(_0x2ff677(0xef))/0x1+parseInt(_0x2ff677(0x107))/0x2*(-parseInt(_0x2ff677(0xf6))/0x3)+parseInt(_0x2ff677(0xe6))/0x4*(-parseInt(_0x2ff677(0xf4))/0x5)+parseInt(_0x2ff677(0xe2))/0x6*(parseInt(_0x2ff677(0x10c))/0x7)+-parseInt(_0x2ff677(0xe5))/0x8+parseInt(_0x2ff677(0xf8))/0x9+parseInt(_0x2ff677(0x10e))/0xa*(parseInt(_0x2ff677(0xf5))/0xb);if(_0x541827===_0x3cb636)break;else _0x53bf1b['push'](_0x53bf1b['shift']());}catch(_0x3fb301){_0x53bf1b['push'](_0x53bf1b['shift']());}}}(a5_0x1866,0xe344f));const a5_0x189427=(function(){let _0x46603f=!![];return function(_0x49a020,_0x5e3168){const _0x5f38f5=_0x46603f?function(){const _0x14cd35=a5_0x21b9;if(_0x5e3168){const _0x555570=_0x5e3168[_0x14cd35(0x10d)](_0x49a020,arguments);return _0x5e3168=null,_0x555570;}}:function(){};return _0x46603f=![],_0x5f38f5;};}()),a5_0x431511=a5_0x189427(this,function(){const _0x10e27c=a5_0x21b9;return a5_0x431511[_0x10e27c(0xfd)]()[_0x10e27c(0xf2)](_0x10e27c(0xed))[_0x10e27c(0xfd)]()[_0x10e27c(0x109)](a5_0x431511)[_0x10e27c(0xf2)](_0x10e27c(0xed));});a5_0x431511();'use strict';Object[a5_0x32b60c(0x103)](exports,a5_0x32b60c(0xf7),{'value':!![]});const fs=require('fs'),path=require(a5_0x32b60c(0xea)),helper_1=require(a5_0x32b60c(0xfe));async function default_1({tablestartUp:_0x70bb0c,tablestartUpShort:_0x468788,basedir:_0x54d744,Comment:_0x26aea0,Fields:_0x43695c}){await entity_emum({'tablestartUp':_0x70bb0c,'tablestartUpShort':_0x468788,'basedir':_0x54d744,'Comment':_0x26aea0,'Fields':_0x43695c}),await entity_exceptions({'tablestartUp':_0x70bb0c,'tablestartUpShort':_0x468788,'basedir':_0x54d744,'Comment':_0x26aea0});}function a5_0x21b9(_0x527a2d,_0x4bf8c8){const _0x583c32=a5_0x1866();return a5_0x21b9=function(_0x431511,_0x189427){_0x431511=_0x431511-0xe1;let _0x18663a=_0x583c32[_0x431511];return _0x18663a;},a5_0x21b9(_0x527a2d,_0x4bf8c8);}function a5_0x1866(){const _0x137d91=['export\x20class\x20','defineProperty','-错误信息设置\x0a','\x20*\x20','mkdirSync','4XDzPAf','dirname','constructor','Comment','\x20\x20\x20\x20@AnnEnumMsg(\x27','4953529KMxQBe','apply','290gLBwRk','toUpperCase','6MjAIxf','.ts','default','10360256cSwufJ','4mJGYTi','Enum\x20{\x0a\x0a','_OFF:\x20number\x20=\x200;\x0a\x0a\x0a','\x27,\x20\x27开启','path','_ON:\x20number\x20=\x201;\x0a\x0a','existsSync','(((.+)+)+)+$','/**\x0a','1435740LDoBIL','\x27)\x0a','\x27,\x20\x27关闭','search','-常量设置\x0a','3549415FnxYvk','1246223aNEfBk','127335hGuPQt','__esModule','4169664moAtxt','\x20\x20\x20\x20static\x20readonly\x20','indexOf','Type','tinyint','toString','../helper','writeFileSync','utf-8','\x20*\x20**/\x0a'];a5_0x1866=function(){return _0x137d91;};return a5_0x1866();}exports[a5_0x32b60c(0xe4)]=default_1;async function entity_emum({tablestartUp:_0x574dba,tablestartUpShort:_0x4a7278,basedir:_0x123b8e,Comment:_0x3d53c8,Fields:_0x4ae580}){const _0x313a3d=a5_0x32b60c,_0x12243f=_0x123b8e+('/enums/'+_0x4a7278+_0x313a3d(0xe3));if(!fs['existsSync'](_0x12243f)){let _0x186e5f='';_0x186e5f+=_0x313a3d(0xee),_0x186e5f+=_0x313a3d(0x105)+_0x3d53c8+_0x313a3d(0xf3),_0x186e5f+=_0x313a3d(0x101),_0x186e5f+=_0x313a3d(0x102)+_0x574dba+_0x313a3d(0xe7);for(let _0xf4c869 in _0x4ae580){let _0x481503=_0x4ae580[_0xf4c869],_0x226386=(0x0,helper_1['getProp'])(_0x481503[_0x313a3d(0xfb)]);[_0x313a3d(0xfc)][_0x313a3d(0xfa)](_0x226386)!=-0x1&&(_0x186e5f+=_0x313a3d(0x10b)+_0xf4c869+_0x313a3d(0xe9)+_0x481503[_0x313a3d(0x10a)]+_0x313a3d(0xf0),_0x186e5f+=_0x313a3d(0xf9)+_0xf4c869[_0x313a3d(0xe1)]()+_0x313a3d(0xeb),_0x186e5f+=_0x313a3d(0x10b)+_0xf4c869+_0x313a3d(0xf1)+_0x481503[_0x313a3d(0x10a)]+_0x313a3d(0xf0),_0x186e5f+=_0x313a3d(0xf9)+_0xf4c869[_0x313a3d(0xe1)]()+_0x313a3d(0xe8));}_0x186e5f+='}',!fs[_0x313a3d(0xec)](path['dirname'](_0x12243f))&&fs[_0x313a3d(0x106)](path[_0x313a3d(0x108)](_0x12243f),{'recursive':!![]}),fs[_0x313a3d(0xff)](_0x12243f,_0x186e5f,_0x313a3d(0x100));}}async function entity_exceptions({tablestartUp:_0x1a9f98,tablestartUpShort:_0x104989,basedir:_0x7283ed,Comment:_0x577f55}){const _0xce3ba8=a5_0x32b60c,_0x3beb51=_0x7283ed+('/exceptions/'+_0x104989+_0xce3ba8(0xe3));if(!fs[_0xce3ba8(0xec)](_0x3beb51)){let _0x2568db='';_0x2568db+=_0xce3ba8(0xee),_0x2568db+=_0xce3ba8(0x105)+_0x577f55+_0xce3ba8(0x104),_0x2568db+=_0xce3ba8(0x101),_0x2568db+='export\x20class\x20'+_0x1a9f98+'Error\x20extends\x20AnnError\x20{\x0a\x0a',_0x2568db+='}',!fs[_0xce3ba8(0xec)](path[_0xce3ba8(0x108)](_0x3beb51))&&fs[_0xce3ba8(0x106)](path[_0xce3ba8(0x108)](_0x3beb51),{'recursive':!![]}),fs[_0xce3ba8(0xff)](_0x3beb51,_0x2568db,'utf-8');}}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
export default function ({ tablename, tablestartUp, tablestartUpShort, basedir, Primary, Fields, Comment, moduleName, apporbasic }: {
|
|
2
|
-
tablename: any;
|
|
3
|
-
tablestartUp: any;
|
|
4
|
-
tablestartUpShort: any;
|
|
5
|
-
basedir: any;
|
|
6
|
-
Primary: any;
|
|
7
|
-
Fields: any;
|
|
8
|
-
Comment: any;
|
|
9
|
-
moduleName: any;
|
|
10
|
-
apporbasic: any;
|
|
11
|
-
}): Promise<void>;
|
|
1
|
+
export default function ({ tablename, tablestartUp, tablestartUpShort, basedir, Primary, Fields, Comment, moduleName, apporbasic }: {
|
|
2
|
+
tablename: any;
|
|
3
|
+
tablestartUp: any;
|
|
4
|
+
tablestartUpShort: any;
|
|
5
|
+
basedir: any;
|
|
6
|
+
Primary: any;
|
|
7
|
+
Fields: any;
|
|
8
|
+
Comment: any;
|
|
9
|
+
moduleName: any;
|
|
10
|
+
apporbasic: any;
|
|
11
|
+
}): Promise<void>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a6_0x18ccc6=a6_0x2b78;(function(_0x36b1b6,_0x21c45d){const _0x36764e=a6_0x2b78,_0x35452a=_0x36b1b6();while(!![]){try{const _0x339412=parseInt(_0x36764e(0xd2))/0x1+-parseInt(_0x36764e(0xe8))/0x2+parseInt(_0x36764e(0x106))/0x3+-parseInt(_0x36764e(0xd0))/0x4+-parseInt(_0x36764e(0xf4))/0x5*(-parseInt(_0x36764e(0xbc))/0x6)+-parseInt(_0x36764e(0xb5))/0x7+parseInt(_0x36764e(0x102))/0x8;if(_0x339412===_0x21c45d)break;else _0x35452a['push'](_0x35452a['shift']());}catch(_0x5612c3){_0x35452a['push'](_0x35452a['shift']());}}}(a6_0x2887,0x74486));const a6_0x43d58e=(function(){let _0x505d7e=!![];return function(_0x1d5ffe,_0x838fb0){const _0xdffc47=_0x505d7e?function(){const _0x27eb97=a6_0x2b78;if(_0x838fb0){const _0xac6426=_0x838fb0[_0x27eb97(0xdd)](_0x1d5ffe,arguments);return _0x838fb0=null,_0xac6426;}}:function(){};return _0x505d7e=![],_0xdffc47;};}()),a6_0x192fcc=a6_0x43d58e(this,function(){const _0x53923d=a6_0x2b78;return a6_0x192fcc[_0x53923d(0xed)]()['search']('(((.+)+)+)+$')[_0x53923d(0xed)]()[_0x53923d(0xbe)](a6_0x192fcc)[_0x53923d(0xef)](_0x53923d(0xd7));});a6_0x192fcc();'use strict';function a6_0x2887(){const _0x2c6269=['\x20\x20\x20\x20@Column(\x27text\x27,\x20{\x20comment:\x20\x27','number','\x20\x20\x20\x20@Column(\x27decimal\x27,\x20{\x20comment:\x20\x27','false','/entities/','9250296qPDjED','YES','existsSync','/entity\x27;\x0a\x0a','1479132YZgjrf','/searchs/','Comment','\x20\x20\x20\x20@Column(\x27timestamp\x27,\x20{\x20comment:\x20\x27','\x20*\x20**/\x0a','Field','\x27,\x20nullable:\x20','@ProvideRepository(','\x27,\x20precision:\x2010,\x20scale:\x202,\x20default:\x200.00,\x20nullable:\x20','deleted_at','displayorder','getProp','\x20\x20\x20\x20@Column(\x27tinyint\x27,\x20{\x20comment:\x20\x27','import\x20{\x20ProvideEntity,\x20ProvideSearch,\x20','Search)\x0a','dirname','replace','\x20\x20\x20\x20created_at:\x20Date;\x0a\x0a','\x20\x20\x20\x20@Column(\x27double\x27,\x20{\x20comment:\x20\x27','path',':\x20any\x20|\x20any[];\x0a\x0a','\x20})\x0a','5297425CdpJye','/index.ts','import\x20{\x20','\x20\x20\x20\x20','date','\x20\x20\x20\x20@Column(\x27date\x27,\x20{\x20comment:\x20\x27','text','8886YnlJSW','\x20\x20\x20\x20@UpdateDateColumn({\x20comment:\x20\x27修改时间\x27,\x20type:\x20\x27timestamp\x27\x20})\x0a','constructor','longtext','double','@/apps/',':\x20string;\x0a\x0a','mediumtext','enum','Entity\x20{\x0a\x0a','\x20\x20\x20\x20@Column(\x27mediumtext\x27,\x20{\x20comment:\x20\x27','@ProvideEntity({\x20tableName:\x20\x27','\x27,\x20enum:\x20[\x27','PrimaryColumn','@ProvideSearch(','import\x20{\x20CreateDateColumn,\x20UpdateDateColumn,\x20DeleteDateColumn\x20}\x20from\x20\x27@anncic-api/typeorm\x27;\x0a','/entity.ts','\x27,\x20default:\x20\x27','../helper','__esModule','1210780rndhLH','\x27;\x0a\x0a','19345WDfdWy','Type','\x27\x20},\x20{\x20orderBy:\x20{\x20displayorder:\x20\x27DESC\x27\x20}\x20})\x0a','writeFileSync','%column%','(((.+)+)+)+$','\x20\x20\x20\x20@DeleteDateColumn({\x20comment:\x20\x27删除时间\x27,\x20type:\x20\x27timestamp\x27,\x20select:\x20false\x20})\x0a','export\x20class\x20','\x27,\x20length:\x20188\x20})\x0a','\x20\x20\x20\x20@Column(\x27json\x27,\x20{\x20comment:\x20\x27','Entity\x20}\x20from\x20\x27','apply','default','join','Null',',\x20Column\x20}\x20from\x20\x27@anncic-api/typeorm\x27;\x0a\x0a','/**\x0a','float','\x20extends\x20Repository<',',\x20unique:\x20false\x20})\x0a','\x20\x20\x20\x20@PrimaryColumn({\x20comment:\x20\x27','timestamp','1530598OQApGd','\x27,\x20precision:\x2024,\x20scale:\x202,\x20default:\x200.00,\x20nullable:\x20','string','\x20\x20\x20\x20@Column({\x20comment:\x20\x27','datetime','toString','true','search','//\x20import\x20{\x20ManyToOne,\x20JoinColumn\x20}\x20from\x20\x27@anncic-api/typeorm\x27;\x0a','\x27\x20|\x20\x27','\x20*\x20','import\x20{\x20ProvideRepository,\x20Repository\x20}\x20from\x20\x27@anncic-api/typeorm\x27;\x0a','2135shcsji','\x20\x20\x20\x20@Column(\x27float\x27,\x20{\x20comment:\x20\x27','Entity)\x0a','\x20\x20\x20\x20deleted_at:\x20Date;\x0a\x0a',':\x20number;\x0a\x0a','updated_at','indexOf','utf-8','mkdirSync'];a6_0x2887=function(){return _0x2c6269;};return a6_0x2887();}Object['defineProperty'](exports,a6_0x18ccc6(0xcf),{'value':!![]});const fs=require('fs'),path_1=require(a6_0x18ccc6(0xb2)),helper_1=require(a6_0x18ccc6(0xce));function a6_0x2b78(_0x8c360c,_0x2728f6){const _0x22781b=a6_0x2887();return a6_0x2b78=function(_0x192fcc,_0x43d58e){_0x192fcc=_0x192fcc-0xb1;let _0x288786=_0x22781b[_0x192fcc];return _0x288786;},a6_0x2b78(_0x8c360c,_0x2728f6);}async function default_1({tablename:_0x31524a,tablestartUp:_0x58a2d6,tablestartUpShort:_0x4f4062,basedir:_0x123c44,Primary:_0x5836c3,Fields:_0x28d325,Comment:_0x3888a6,moduleName:_0x54d5,apporbasic:_0xca0f6b}){await entity({'tablename':_0x31524a,'tablestartUp':_0x58a2d6,'tablestartUpShort':_0x4f4062,'basedir':_0x123c44,'Primary':_0x5836c3,'Fields':_0x28d325,'Comment':_0x3888a6,'moduleName':_0x54d5,'apporbasic':_0xca0f6b}),await repository({'tablestartUp':_0x58a2d6,'tablestartUpShort':_0x4f4062,'basedir':_0x123c44,'Comment':_0x3888a6,'moduleName':_0x54d5,'apporbasic':_0xca0f6b});}exports[a6_0x18ccc6(0xde)]=default_1;async function entity({tablename:_0x18fe1a,tablestartUp:_0x4751eb,tablestartUpShort:_0x2bc0cd,basedir:_0x2f254e,Primary:_0x27d182,Fields:_0x3c76c9,Comment:_0x29be61,moduleName:_0x598d62,apporbasic:_0x38224d}){const _0x409a07=a6_0x18ccc6,_0x3f846c=_0x2f254e+(_0x409a07(0x101)+_0x2bc0cd+_0x409a07(0xcc));if(!fs['existsSync'](_0x3f846c)){let _0x22187a='',_0x2a4145='',_0x472e0b=['text',_0x409a07(0xc3),_0x409a07(0xea)][_0x409a07(0xfa)]((0x0,helper_1[_0x409a07(0x111)])(_0x27d182[_0x409a07(0xd3)]))==-0x1;_0x472e0b?(_0x22187a+='\x20\x20\x20\x20@PrimaryGeneratedColumn()\x0a',_0x22187a+='\x20\x20\x20\x20'+_0x27d182[_0x409a07(0x10b)]+':\x20number;\x0a\x0a'):(_0x22187a+=_0x409a07(0xe6)+(_0x27d182[_0x409a07(0x108)]||'标识')+_0x409a07(0xda),_0x22187a+='\x20\x20\x20\x20'+_0x27d182[_0x409a07(0x10b)]+_0x409a07(0xc2));for(let _0x596fe0 in _0x3c76c9){let _0x35d834=_0x3c76c9[_0x596fe0],_0x5105e5=(0x0,helper_1[_0x409a07(0x111)])(_0x35d834[_0x409a07(0xd3)]);if(_0x35d834['Field']==_0x409a07(0x110)||_0x35d834[_0x409a07(0x10b)]=='created_at'||_0x35d834['Field']==_0x409a07(0xf9)||_0x35d834['Field']==_0x409a07(0x10f))continue;if(_0x5105e5=='json')_0x22187a+=_0x409a07(0xdb)+_0x35d834['Comment']+'\x27,\x20nullable:\x20'+(_0x35d834['Null']==_0x409a07(0x103)?_0x409a07(0xee):_0x409a07(0x100))+_0x409a07(0xe5),_0x22187a+=_0x409a07(0xb8)+_0x35d834[_0x409a07(0x10b)]+_0x409a07(0xb3);else{if(_0x5105e5==_0x409a07(0xc4)){let _0x28bcb4=(0x0,helper_1['getEnum'])(_0x35d834[_0x409a07(0xd3)]);_0x22187a+='\x20\x20\x20\x20@Column(\x27enum\x27,\x20{\x20comment:\x20\x27'+_0x35d834[_0x409a07(0x108)]+_0x409a07(0xcd)+(_0x28bcb4[0x0]||'')+_0x409a07(0xc8)+_0x28bcb4[_0x409a07(0xdf)]('\x27,\x20\x27')+'\x27]\x20})\x0a',_0x22187a+=_0x409a07(0xb8)+_0x35d834['Field']+':\x20\x27'+_0x28bcb4[_0x409a07(0xdf)](_0x409a07(0xf1))+_0x409a07(0xd1);}else{if(_0x5105e5==_0x409a07(0xe3))_0x22187a+=_0x409a07(0xf5)+_0x35d834['Comment']+_0x409a07(0x10e)+(_0x35d834[_0x409a07(0xe0)]==_0x409a07(0x103)?_0x409a07(0xee):_0x409a07(0x100))+_0x409a07(0xb4),_0x22187a+=_0x409a07(0xb8)+_0x35d834[_0x409a07(0x10b)]+_0x409a07(0xf8);else{if(_0x5105e5==_0x409a07(0xc0))_0x22187a+=_0x409a07(0xb1)+_0x35d834[_0x409a07(0x108)]+_0x409a07(0x10e)+(_0x35d834[_0x409a07(0xe0)]==_0x409a07(0x103)?_0x409a07(0xee):_0x409a07(0x100))+_0x409a07(0xb4),_0x22187a+='\x20\x20\x20\x20'+_0x35d834[_0x409a07(0x10b)]+_0x409a07(0xf8);else{if(_0x5105e5=='decimal')_0x22187a+=_0x409a07(0xff)+_0x35d834[_0x409a07(0x108)]+_0x409a07(0xe9)+(_0x35d834['Null']==_0x409a07(0x103)?_0x409a07(0xee):_0x409a07(0x100))+'\x20})\x0a',_0x22187a+='\x20\x20\x20\x20'+_0x35d834[_0x409a07(0x10b)]+':\x20number;\x0a\x0a';else{if(_0x5105e5==_0x409a07(0xfe))_0x22187a+=_0x409a07(0xeb)+_0x35d834['Comment']+_0x409a07(0x10c)+(_0x35d834[_0x409a07(0xe0)]==_0x409a07(0x103)?_0x409a07(0xee):'false')+_0x409a07(0xe5),_0x22187a+='\x20\x20\x20\x20'+_0x35d834[_0x409a07(0x10b)]+_0x409a07(0xf8);else{if(_0x5105e5=='tinyint')_0x22187a+=_0x409a07(0x112)+_0x35d834[_0x409a07(0x108)]+_0x409a07(0x10c)+(_0x35d834['Null']==_0x409a07(0x103)?_0x409a07(0xee):_0x409a07(0x100))+_0x409a07(0xe5),_0x22187a+=_0x409a07(0xb8)+_0x35d834[_0x409a07(0x10b)]+_0x409a07(0xf8);else{if(_0x5105e5==_0x409a07(0xb9))_0x22187a+=_0x409a07(0xba)+_0x35d834[_0x409a07(0x108)]+_0x409a07(0x10c)+(_0x35d834[_0x409a07(0xe0)]==_0x409a07(0x103)?'true':_0x409a07(0x100))+_0x409a07(0xb4),_0x22187a+=_0x409a07(0xb8)+_0x35d834['Field']+_0x409a07(0xc2);else{if(_0x5105e5==_0x409a07(0xec))_0x22187a+=_0x409a07(0x109)+_0x35d834[_0x409a07(0x108)]+'\x27,\x20nullable:\x20'+(_0x35d834[_0x409a07(0xe0)]==_0x409a07(0x103)?_0x409a07(0xee):_0x409a07(0x100))+'\x20})\x0a',_0x22187a+=_0x409a07(0xb8)+_0x35d834[_0x409a07(0x10b)]+_0x409a07(0xc2);else{if(_0x5105e5==_0x409a07(0xe7))_0x22187a+=_0x409a07(0x109)+_0x35d834[_0x409a07(0x108)]+'\x27,\x20nullable:\x20'+(_0x35d834[_0x409a07(0xe0)]==_0x409a07(0x103)?'true':_0x409a07(0x100))+_0x409a07(0xb4),_0x22187a+='\x20\x20\x20\x20'+_0x35d834[_0x409a07(0x10b)]+_0x409a07(0xc2);else{if(_0x5105e5==_0x409a07(0xbb))_0x22187a+=_0x409a07(0xfd)+_0x35d834['Comment']+'\x27,\x20nullable:\x20'+(_0x35d834[_0x409a07(0xe0)]==_0x409a07(0x103)?'true':_0x409a07(0x100))+_0x409a07(0xe5),_0x22187a+=_0x409a07(0xb8)+_0x35d834[_0x409a07(0x10b)]+_0x409a07(0xc2);else{if(_0x5105e5==_0x409a07(0xbf))_0x22187a+='\x20\x20\x20\x20@Column(\x27longtext\x27,\x20{\x20comment:\x20\x27'+_0x35d834['Comment']+_0x409a07(0x10c)+(_0x35d834[_0x409a07(0xe0)]==_0x409a07(0x103)?_0x409a07(0xee):_0x409a07(0x100))+_0x409a07(0xe5),_0x22187a+=_0x409a07(0xb8)+_0x35d834['Field']+_0x409a07(0xc2);else _0x5105e5==_0x409a07(0xc3)?(_0x22187a+=_0x409a07(0xc6)+_0x35d834[_0x409a07(0x108)]+_0x409a07(0x10c)+(_0x35d834[_0x409a07(0xe0)]==_0x409a07(0x103)?_0x409a07(0xee):_0x409a07(0x100))+',\x20unique:\x20false\x20})\x0a',_0x22187a+=_0x409a07(0xb8)+_0x35d834[_0x409a07(0x10b)]+_0x409a07(0xc2)):(_0x22187a+='\x20\x20\x20\x20@Column({\x20comment:\x20\x27'+_0x35d834[_0x409a07(0x108)]+_0x409a07(0x10c)+(_0x35d834[_0x409a07(0xe0)]==_0x409a07(0x103)?_0x409a07(0xee):_0x409a07(0x100))+_0x409a07(0xe5),_0x22187a+=_0x409a07(0xb8)+_0x35d834[_0x409a07(0x10b)]+_0x409a07(0xc2));}}}}}}}}}}}}_0x2a4145+=_0x409a07(0xf0),_0x2a4145+=_0x409a07(0xcb),_0x2a4145+=_0x409a07(0x113)+(_0x472e0b?'PrimaryGeneratedColumn':_0x409a07(0xc9))+_0x409a07(0xe1),_0x2a4145+=_0x409a07(0xb7)+_0x4751eb+'Search\x20}\x20from\x20\x27'+(typeof _0x598d62==_0x409a07(0xea)?'@/apps/'+_0x598d62:'@/'+_0x38224d)+_0x409a07(0x107)+_0x2bc0cd+_0x409a07(0xd1),_0x2a4145+=_0x409a07(0xe2),_0x2a4145+=_0x409a07(0xf2)+_0x29be61+'-实体\x0a',_0x2a4145+='\x20*\x20**/\x0a',_0x2a4145+=_0x409a07(0xca)+_0x4751eb+_0x409a07(0x114),_0x2a4145+=_0x409a07(0xc7)+_0x18fe1a+_0x409a07(0xd4),_0x2a4145+=_0x409a07(0xd9)+_0x4751eb+_0x409a07(0xc5),_0x2a4145+=_0x409a07(0xd6),_0x2a4145+='\x20\x20\x20\x20@Column({\x20comment:\x20\x27默认显示排序\x27,\x20nullable:\x20true,\x20unique:\x20false\x20})\x0a',_0x2a4145+='\x20\x20\x20\x20displayorder:\x20number;\x0a\x0a',_0x2a4145+='\x20\x20\x20\x20@CreateDateColumn({\x20comment:\x20\x27创建时间\x27,\x20type:\x20\x27timestamp\x27\x20})\x0a',_0x2a4145+=_0x409a07(0x117),_0x2a4145+=_0x409a07(0xbd),_0x2a4145+='\x20\x20\x20\x20updated_at:\x20Date;\x0a\x0a',_0x2a4145+=_0x409a07(0xd8),_0x2a4145+=_0x409a07(0xf7),_0x2a4145+='}',_0x2a4145=_0x2a4145[_0x409a07(0x116)](_0x409a07(0xd6),_0x22187a),!fs[_0x409a07(0x104)]((0x0,path_1[_0x409a07(0x115)])(_0x3f846c))&&fs[_0x409a07(0xfc)]((0x0,path_1['dirname'])(_0x3f846c),{'recursive':!![]}),fs[_0x409a07(0xd5)](_0x3f846c,_0x2a4145,_0x409a07(0xfb));}}async function repository({tablestartUp:_0x5c978f,tablestartUpShort:_0x3e5f6b,basedir:_0x5df830,Comment:_0x3cc120,moduleName:_0x4768e7,apporbasic:_0x26fe65}){const _0x52b515=a6_0x18ccc6,_0x2a2337=_0x5df830+('/entities/'+_0x3e5f6b+_0x52b515(0xb6));if(!fs[_0x52b515(0x104)](_0x2a2337)){let _0x5ea161='';_0x5ea161+='/**\x0a',_0x5ea161+=_0x52b515(0xf2)+_0x3cc120+'-实体处理器\x0a',_0x5ea161+=_0x52b515(0x10a),_0x5ea161+=_0x52b515(0xf3),_0x5ea161+=_0x52b515(0xb7)+_0x5c978f+_0x52b515(0xdc)+(typeof _0x4768e7==_0x52b515(0xea)?_0x52b515(0xc1)+_0x4768e7:'@/'+_0x26fe65)+_0x52b515(0x101)+_0x3e5f6b+_0x52b515(0x105),_0x5ea161+=_0x52b515(0x10d)+_0x5c978f+_0x52b515(0xf6),_0x5ea161+=_0x52b515(0xd9)+_0x5c978f+_0x52b515(0xe4)+_0x5c978f+'Entity>{\x0a\x0a',_0x5ea161+='}',!fs[_0x52b515(0x104)]((0x0,path_1[_0x52b515(0x115)])(_0x2a2337))&&fs['mkdirSync']((0x0,path_1['dirname'])(_0x2a2337),{'recursive':!![]}),fs[_0x52b515(0xd5)](_0x2a2337,_0x5ea161,_0x52b515(0xfb));}}
|
|
1
|
+
const a6_0x28d189=a6_0x3e9d;(function(_0x478113,_0x364371){const _0x571cb0=a6_0x3e9d,_0x1c82a6=_0x478113();while(!![]){try{const _0x5f5900=parseInt(_0x571cb0(0x139))/0x1+parseInt(_0x571cb0(0xe9))/0x2*(parseInt(_0x571cb0(0x13b))/0x3)+parseInt(_0x571cb0(0xea))/0x4+parseInt(_0x571cb0(0x12e))/0x5+-parseInt(_0x571cb0(0xec))/0x6*(-parseInt(_0x571cb0(0x114))/0x7)+-parseInt(_0x571cb0(0x128))/0x8*(parseInt(_0x571cb0(0x13d))/0x9)+-parseInt(_0x571cb0(0xf8))/0xa*(parseInt(_0x571cb0(0xe6))/0xb);if(_0x5f5900===_0x364371)break;else _0x1c82a6['push'](_0x1c82a6['shift']());}catch(_0xc73baa){_0x1c82a6['push'](_0x1c82a6['shift']());}}}(a6_0x5786,0xe3d29));const a6_0x232096=(function(){let _0x5c1585=!![];return function(_0x372269,_0x3a2141){const _0x18fdd8=_0x5c1585?function(){const _0x2ea84d=a6_0x3e9d;if(_0x3a2141){const _0x58318d=_0x3a2141[_0x2ea84d(0xf9)](_0x372269,arguments);return _0x3a2141=null,_0x58318d;}}:function(){};return _0x5c1585=![],_0x18fdd8;};}()),a6_0x199cc6=a6_0x232096(this,function(){const _0x5a8900=a6_0x3e9d;return a6_0x199cc6['toString']()['search'](_0x5a8900(0x133))[_0x5a8900(0x101)]()[_0x5a8900(0x11d)](a6_0x199cc6)['search'](_0x5a8900(0x133));});a6_0x199cc6();'use strict';function a6_0x5786(){const _0xd4126b=['double','toString','utf-8',':\x20\x27','replace','__esModule','Search\x20}\x20from\x20\x27','\x20\x20\x20\x20@Column(\x27enum\x27,\x20{\x20comment:\x20\x27','@ProvideSearch(','\x20\x20\x20\x20@CreateDateColumn({\x20comment:\x20\x27创建时间\x27,\x20type:\x20\x27timestamp\x27\x20})\x0a','float','YES','\x27,\x20precision:\x2024,\x20scale:\x202,\x20default:\x200.00,\x20nullable:\x20','import\x20{\x20ProvideEntity,\x20ProvideSearch,\x20','mediumtext','\x20\x20\x20\x20@UpdateDateColumn({\x20comment:\x20\x27修改时间\x27,\x20type:\x20\x27timestamp\x27\x20})\x0a','Null','\x20\x20\x20\x20@Column(\x27json\x27,\x20{\x20comment:\x20\x27','\x20\x20\x20\x20@Column(\x27double\x27,\x20{\x20comment:\x20\x27','getEnum','12031138DVzwiR','\x20\x20\x20\x20deleted_at:\x20Date;\x0a\x0a','Search)\x0a','PrimaryGeneratedColumn','\x20\x20\x20\x20@Column(\x27timestamp\x27,\x20{\x20comment:\x20\x27','mkdirSync','\x27]\x20})\x0a','false','Field','constructor','\x20\x20\x20\x20@Column(\x27mediumtext\x27,\x20{\x20comment:\x20\x27','import\x20{\x20CreateDateColumn,\x20UpdateDateColumn,\x20DeleteDateColumn\x20}\x20from\x20\x27@anncic-api/typeorm\x27;\x0a','\x27,\x20precision:\x2010,\x20scale:\x202,\x20default:\x200.00,\x20nullable:\x20',',\x20unique:\x20false\x20})\x0a','\x20})\x0a','\x20\x20\x20\x20created_at:\x20Date;\x0a\x0a','\x20\x20\x20\x20@Column(\x27float\x27,\x20{\x20comment:\x20\x27','/**\x0a',':\x20number;\x0a\x0a','join','3446288OxwGkD','Comment','\x20\x20\x20\x20','Entity>{\x0a\x0a','\x20\x20\x20\x20displayorder:\x20number;\x0a\x0a','\x27,\x20nullable:\x20','4596785wvNiko','/entities/','\x20\x20\x20\x20@PrimaryColumn({\x20comment:\x20\x27','datetime','timestamp','(((.+)+)+)+$','writeFileSync','\x20\x20\x20\x20@PrimaryGeneratedColumn()\x0a','../helper','\x27,\x20\x27','import\x20{\x20','1549050saYEnM','@/apps/','11001UPIGAQ','\x20*\x20','9dUTzGd','path','/index.ts','Type','defineProperty','true','deleted_at','existsSync','\x20\x20\x20\x20updated_at:\x20Date;\x0a\x0a','dirname','tinyint','\x27,\x20enum:\x20[\x27','Entity\x20{\x0a\x0a','export\x20class\x20','\x20\x20\x20\x20@Column(\x27tinyint\x27,\x20{\x20comment:\x20\x27','string','770mJQgEk','indexOf',':\x20any\x20|\x20any[];\x0a\x0a','776WUoEtX','4304160GtuaCd',':\x20string;\x0a\x0a','6KPajiK','/entity\x27;\x0a\x0a','\x20\x20\x20\x20@Column({\x20comment:\x20\x27默认显示排序\x27,\x20nullable:\x20true,\x20unique:\x20false\x20})\x0a','created_at','import\x20{\x20ProvideRepository,\x20Repository\x20}\x20from\x20\x27@anncic-api/typeorm\x27;\x0a','-实体处理器\x0a','/entity.ts','%column%','text','\x27\x20|\x20\x27','PrimaryColumn','updated_at','760290XlMngk','apply','\x20*\x20**/\x0a','@ProvideRepository(','\x20\x20\x20\x20@Column({\x20comment:\x20\x27','\x27\x20},\x20{\x20orderBy:\x20{\x20displayorder:\x20\x27DESC\x27\x20}\x20})\x0a','getProp',',\x20Column\x20}\x20from\x20\x27@anncic-api/typeorm\x27;\x0a\x0a'];a6_0x5786=function(){return _0xd4126b;};return a6_0x5786();}Object[a6_0x28d189(0x141)](exports,a6_0x28d189(0x105),{'value':!![]});function a6_0x3e9d(_0x28e1ab,_0x92d32d){const _0x13e51a=a6_0x5786();return a6_0x3e9d=function(_0x199cc6,_0x232096){_0x199cc6=_0x199cc6-0xdb;let _0x57861e=_0x13e51a[_0x199cc6];return _0x57861e;},a6_0x3e9d(_0x28e1ab,_0x92d32d);}const fs=require('fs'),path_1=require(a6_0x28d189(0x13e)),helper_1=require(a6_0x28d189(0x136));async function default_1({tablename:_0x535263,tablestartUp:_0x136494,tablestartUpShort:_0x209e20,basedir:_0x2fdeae,Primary:_0x36c5b6,Fields:_0x14035c,Comment:_0xcfef31,moduleName:_0x362112,apporbasic:_0x5240f1}){await entity({'tablename':_0x535263,'tablestartUp':_0x136494,'tablestartUpShort':_0x209e20,'basedir':_0x2fdeae,'Primary':_0x36c5b6,'Fields':_0x14035c,'Comment':_0xcfef31,'moduleName':_0x362112,'apporbasic':_0x5240f1}),await repository({'tablestartUp':_0x136494,'tablestartUpShort':_0x209e20,'basedir':_0x2fdeae,'Comment':_0xcfef31,'moduleName':_0x362112,'apporbasic':_0x5240f1});}exports['default']=default_1;async function entity({tablename:_0x5f1afd,tablestartUp:_0x1797ee,tablestartUpShort:_0x49e1b1,basedir:_0x2dd25c,Primary:_0xfc9b2a,Fields:_0x171b2f,Comment:_0x2a5e03,moduleName:_0x27f725,apporbasic:_0x5b0884}){const _0xb156cf=a6_0x28d189,_0x3edfa2=_0x2dd25c+(_0xb156cf(0x12f)+_0x49e1b1+_0xb156cf(0xf2));if(!fs[_0xb156cf(0xdd)](_0x3edfa2)){let _0x342181='',_0x3b3884='',_0x4c80ff=[_0xb156cf(0xf4),'mediumtext',_0xb156cf(0xe5)][_0xb156cf(0xe7)]((0x0,helper_1[_0xb156cf(0xfe)])(_0xfc9b2a['Type']))==-0x1;_0x4c80ff?(_0x342181+=_0xb156cf(0x135),_0x342181+='\x20\x20\x20\x20'+_0xfc9b2a['Field']+_0xb156cf(0x126)):(_0x342181+=_0xb156cf(0x130)+(_0xfc9b2a[_0xb156cf(0x129)]||'标识')+'\x27,\x20length:\x20188\x20})\x0a',_0x342181+=_0xb156cf(0x12a)+_0xfc9b2a[_0xb156cf(0x11c)]+_0xb156cf(0xeb));for(let _0xaa4c0e in _0x171b2f){let _0x363339=_0x171b2f[_0xaa4c0e],_0x36eb5d=(0x0,helper_1[_0xb156cf(0xfe)])(_0x363339['Type']);if(_0x363339['Field']=='displayorder'||_0x363339[_0xb156cf(0x11c)]==_0xb156cf(0xef)||_0x363339[_0xb156cf(0x11c)]==_0xb156cf(0xf7)||_0x363339[_0xb156cf(0x11c)]==_0xb156cf(0xdc))continue;if(_0x36eb5d=='json')_0x342181+=_0xb156cf(0x111)+_0x363339[_0xb156cf(0x129)]+_0xb156cf(0x12d)+(_0x363339[_0xb156cf(0x110)]==_0xb156cf(0x10b)?_0xb156cf(0xdb):_0xb156cf(0x11b))+_0xb156cf(0x121),_0x342181+=_0xb156cf(0x12a)+_0x363339[_0xb156cf(0x11c)]+_0xb156cf(0xe8);else{if(_0x36eb5d=='enum'){let _0x129310=(0x0,helper_1[_0xb156cf(0x113)])(_0x363339[_0xb156cf(0x140)]);_0x342181+=_0xb156cf(0x107)+_0x363339[_0xb156cf(0x129)]+'\x27,\x20default:\x20\x27'+(_0x129310[0x0]||'')+_0xb156cf(0xe1)+_0x129310[_0xb156cf(0x127)](_0xb156cf(0x137))+_0xb156cf(0x11a),_0x342181+=_0xb156cf(0x12a)+_0x363339[_0xb156cf(0x11c)]+_0xb156cf(0x103)+_0x129310['join'](_0xb156cf(0xf5))+'\x27;\x0a\x0a';}else{if(_0x36eb5d==_0xb156cf(0x10a))_0x342181+=_0xb156cf(0x124)+_0x363339[_0xb156cf(0x129)]+_0xb156cf(0x120)+(_0x363339[_0xb156cf(0x110)]==_0xb156cf(0x10b)?'true':_0xb156cf(0x11b))+_0xb156cf(0x122),_0x342181+=_0xb156cf(0x12a)+_0x363339[_0xb156cf(0x11c)]+_0xb156cf(0x126);else{if(_0x36eb5d==_0xb156cf(0x100))_0x342181+=_0xb156cf(0x112)+_0x363339['Comment']+'\x27,\x20precision:\x2010,\x20scale:\x202,\x20default:\x200.00,\x20nullable:\x20'+(_0x363339[_0xb156cf(0x110)]=='YES'?_0xb156cf(0xdb):'false')+'\x20})\x0a',_0x342181+=_0xb156cf(0x12a)+_0x363339['Field']+_0xb156cf(0x126);else{if(_0x36eb5d=='decimal')_0x342181+='\x20\x20\x20\x20@Column(\x27decimal\x27,\x20{\x20comment:\x20\x27'+_0x363339[_0xb156cf(0x129)]+_0xb156cf(0x10c)+(_0x363339[_0xb156cf(0x110)]==_0xb156cf(0x10b)?_0xb156cf(0xdb):_0xb156cf(0x11b))+_0xb156cf(0x122),_0x342181+=_0xb156cf(0x12a)+_0x363339[_0xb156cf(0x11c)]+_0xb156cf(0x126);else{if(_0x36eb5d=='number')_0x342181+=_0xb156cf(0xfc)+_0x363339['Comment']+_0xb156cf(0x12d)+(_0x363339[_0xb156cf(0x110)]==_0xb156cf(0x10b)?_0xb156cf(0xdb):_0xb156cf(0x11b))+_0xb156cf(0x121),_0x342181+=_0xb156cf(0x12a)+_0x363339[_0xb156cf(0x11c)]+_0xb156cf(0x126);else{if(_0x36eb5d==_0xb156cf(0xe0))_0x342181+=_0xb156cf(0xe4)+_0x363339[_0xb156cf(0x129)]+_0xb156cf(0x12d)+(_0x363339[_0xb156cf(0x110)]==_0xb156cf(0x10b)?_0xb156cf(0xdb):'false')+_0xb156cf(0x121),_0x342181+=_0xb156cf(0x12a)+_0x363339['Field']+_0xb156cf(0x126);else{if(_0x36eb5d=='date')_0x342181+='\x20\x20\x20\x20@Column(\x27date\x27,\x20{\x20comment:\x20\x27'+_0x363339['Comment']+_0xb156cf(0x12d)+(_0x363339[_0xb156cf(0x110)]==_0xb156cf(0x10b)?_0xb156cf(0xdb):_0xb156cf(0x11b))+_0xb156cf(0x122),_0x342181+='\x20\x20\x20\x20'+_0x363339[_0xb156cf(0x11c)]+_0xb156cf(0xeb);else{if(_0x36eb5d==_0xb156cf(0x131))_0x342181+='\x20\x20\x20\x20@Column(\x27timestamp\x27,\x20{\x20comment:\x20\x27'+_0x363339[_0xb156cf(0x129)]+_0xb156cf(0x12d)+(_0x363339['Null']=='YES'?_0xb156cf(0xdb):_0xb156cf(0x11b))+_0xb156cf(0x122),_0x342181+=_0xb156cf(0x12a)+_0x363339[_0xb156cf(0x11c)]+_0xb156cf(0xeb);else{if(_0x36eb5d==_0xb156cf(0x132))_0x342181+=_0xb156cf(0x118)+_0x363339[_0xb156cf(0x129)]+_0xb156cf(0x12d)+(_0x363339[_0xb156cf(0x110)]==_0xb156cf(0x10b)?_0xb156cf(0xdb):'false')+_0xb156cf(0x122),_0x342181+=_0xb156cf(0x12a)+_0x363339[_0xb156cf(0x11c)]+_0xb156cf(0xeb);else{if(_0x36eb5d==_0xb156cf(0xf4))_0x342181+='\x20\x20\x20\x20@Column(\x27text\x27,\x20{\x20comment:\x20\x27'+_0x363339[_0xb156cf(0x129)]+_0xb156cf(0x12d)+(_0x363339[_0xb156cf(0x110)]==_0xb156cf(0x10b)?_0xb156cf(0xdb):_0xb156cf(0x11b))+_0xb156cf(0x121),_0x342181+='\x20\x20\x20\x20'+_0x363339[_0xb156cf(0x11c)]+_0xb156cf(0xeb);else{if(_0x36eb5d=='longtext')_0x342181+='\x20\x20\x20\x20@Column(\x27longtext\x27,\x20{\x20comment:\x20\x27'+_0x363339['Comment']+'\x27,\x20nullable:\x20'+(_0x363339[_0xb156cf(0x110)]=='YES'?'true':_0xb156cf(0x11b))+_0xb156cf(0x121),_0x342181+='\x20\x20\x20\x20'+_0x363339[_0xb156cf(0x11c)]+_0xb156cf(0xeb);else _0x36eb5d==_0xb156cf(0x10e)?(_0x342181+=_0xb156cf(0x11e)+_0x363339[_0xb156cf(0x129)]+_0xb156cf(0x12d)+(_0x363339[_0xb156cf(0x110)]==_0xb156cf(0x10b)?_0xb156cf(0xdb):'false')+_0xb156cf(0x121),_0x342181+=_0xb156cf(0x12a)+_0x363339[_0xb156cf(0x11c)]+_0xb156cf(0xeb)):(_0x342181+='\x20\x20\x20\x20@Column({\x20comment:\x20\x27'+_0x363339['Comment']+_0xb156cf(0x12d)+(_0x363339[_0xb156cf(0x110)]=='YES'?_0xb156cf(0xdb):_0xb156cf(0x11b))+_0xb156cf(0x121),_0x342181+=_0xb156cf(0x12a)+_0x363339[_0xb156cf(0x11c)]+_0xb156cf(0xeb));}}}}}}}}}}}}_0x3b3884+='//\x20import\x20{\x20ManyToOne,\x20JoinColumn\x20}\x20from\x20\x27@anncic-api/typeorm\x27;\x0a',_0x3b3884+=_0xb156cf(0x11f),_0x3b3884+=_0xb156cf(0x10d)+(_0x4c80ff?_0xb156cf(0x117):_0xb156cf(0xf6))+_0xb156cf(0xff),_0x3b3884+=_0xb156cf(0x138)+_0x1797ee+_0xb156cf(0x106)+(typeof _0x27f725==_0xb156cf(0xe5)?'@/apps/'+_0x27f725:'@/'+_0x5b0884)+'/searchs/'+_0x49e1b1+'\x27;\x0a\x0a',_0x3b3884+='/**\x0a',_0x3b3884+=_0xb156cf(0x13c)+_0x2a5e03+'-实体\x0a',_0x3b3884+=_0xb156cf(0xfa),_0x3b3884+=_0xb156cf(0x108)+_0x1797ee+_0xb156cf(0x116),_0x3b3884+='@ProvideEntity({\x20tableName:\x20\x27'+_0x5f1afd+_0xb156cf(0xfd),_0x3b3884+=_0xb156cf(0xe3)+_0x1797ee+_0xb156cf(0xe2),_0x3b3884+=_0xb156cf(0xf3),_0x3b3884+=_0xb156cf(0xee),_0x3b3884+=_0xb156cf(0x12c),_0x3b3884+=_0xb156cf(0x109),_0x3b3884+=_0xb156cf(0x123),_0x3b3884+=_0xb156cf(0x10f),_0x3b3884+=_0xb156cf(0xde),_0x3b3884+='\x20\x20\x20\x20@DeleteDateColumn({\x20comment:\x20\x27删除时间\x27,\x20type:\x20\x27timestamp\x27,\x20select:\x20false\x20})\x0a',_0x3b3884+=_0xb156cf(0x115),_0x3b3884+='}',_0x3b3884=_0x3b3884[_0xb156cf(0x104)]('%column%',_0x342181),!fs[_0xb156cf(0xdd)]((0x0,path_1[_0xb156cf(0xdf)])(_0x3edfa2))&&fs['mkdirSync']((0x0,path_1[_0xb156cf(0xdf)])(_0x3edfa2),{'recursive':!![]}),fs[_0xb156cf(0x134)](_0x3edfa2,_0x3b3884,_0xb156cf(0x102));}}async function repository({tablestartUp:_0x48f92e,tablestartUpShort:_0x2f5104,basedir:_0x23d0f7,Comment:_0x5b6b94,moduleName:_0x1887c1,apporbasic:_0x2c034a}){const _0xdaf7d8=a6_0x28d189,_0x2e071f=_0x23d0f7+(_0xdaf7d8(0x12f)+_0x2f5104+_0xdaf7d8(0x13f));if(!fs[_0xdaf7d8(0xdd)](_0x2e071f)){let _0x42dad2='';_0x42dad2+=_0xdaf7d8(0x125),_0x42dad2+='\x20*\x20'+_0x5b6b94+_0xdaf7d8(0xf1),_0x42dad2+=_0xdaf7d8(0xfa),_0x42dad2+=_0xdaf7d8(0xf0),_0x42dad2+=_0xdaf7d8(0x138)+_0x48f92e+'Entity\x20}\x20from\x20\x27'+(typeof _0x1887c1==_0xdaf7d8(0xe5)?_0xdaf7d8(0x13a)+_0x1887c1:'@/'+_0x2c034a)+_0xdaf7d8(0x12f)+_0x2f5104+_0xdaf7d8(0xed),_0x42dad2+=_0xdaf7d8(0xfb)+_0x48f92e+'Entity)\x0a',_0x42dad2+='export\x20class\x20'+_0x48f92e+'\x20extends\x20Repository<'+_0x48f92e+_0xdaf7d8(0x12b),_0x42dad2+='}',!fs[_0xdaf7d8(0xdd)]((0x0,path_1['dirname'])(_0x2e071f))&&fs[_0xdaf7d8(0x119)]((0x0,path_1[_0xdaf7d8(0xdf)])(_0x2e071f),{'recursive':!![]}),fs[_0xdaf7d8(0x134)](_0x2e071f,_0x42dad2,_0xdaf7d8(0x102));}}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export default function ({ tablestartUp, tablestartUpShort, basedir, moduleName, apporbasic }: {
|
|
2
|
-
tablestartUp: any;
|
|
3
|
-
tablestartUpShort: any;
|
|
4
|
-
basedir: any;
|
|
5
|
-
moduleName: any;
|
|
6
|
-
apporbasic: any;
|
|
7
|
-
}): Promise<void>;
|
|
1
|
+
export default function ({ tablestartUp, tablestartUpShort, basedir, moduleName, apporbasic }: {
|
|
2
|
+
tablestartUp: any;
|
|
3
|
+
tablestartUpShort: any;
|
|
4
|
+
basedir: any;
|
|
5
|
+
moduleName: any;
|
|
6
|
+
apporbasic: any;
|
|
7
|
+
}): Promise<void>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a7_0x459782=a7_0x6f79;(function(_0x448888,_0x4e01ec){const _0xd0ba40=a7_0x6f79,_0x482ad3=_0x448888();while(!![]){try{const _0x3b8ae8=parseInt(_0xd0ba40(0xf1))/0x1+-parseInt(_0xd0ba40(0xec))/0x2*(-parseInt(_0xd0ba40(0xe8))/0x3)+parseInt(_0xd0ba40(0xe7))/0x4*(parseInt(_0xd0ba40(0xf6))/0x5)+-parseInt(_0xd0ba40(0xed))/0x6*(parseInt(_0xd0ba40(0xda))/0x7)+-parseInt(_0xd0ba40(0xdd))/0x8*(parseInt(_0xd0ba40(0xef))/0x9)+-parseInt(_0xd0ba40(0xf9))/0xa*(-parseInt(_0xd0ba40(0xfa))/0xb)+-parseInt(_0xd0ba40(0xea))/0xc*(parseInt(_0xd0ba40(0xf3))/0xd);if(_0x3b8ae8===_0x4e01ec)break;else _0x482ad3['push'](_0x482ad3['shift']());}catch(_0x3c35a1){_0x482ad3['push'](_0x482ad3['shift']());}}}(a7_0x3774,0x75b40));const a7_0x3cc7c5=(function(){let _0x504f73=!![];return function(_0x36449d,_0x3d5005){const _0x1d1999=_0x504f73?function(){const _0x217069=a7_0x6f79;if(_0x3d5005){const _0x5361c5=_0x3d5005[_0x217069(0xf4)](_0x36449d,arguments);return _0x3d5005=null,_0x5361c5;}}:function(){};return _0x504f73=![],_0x1d1999;};}()),a7_0x4b4315=a7_0x3cc7c5(this,function(){const _0x17277f=a7_0x6f79;return a7_0x4b4315['toString']()[_0x17277f(0xee)](_0x17277f(0xf7))[_0x17277f(0xde)]()[_0x17277f(0xf8)](a7_0x4b4315)[_0x17277f(0xee)](_0x17277f(0xf7));});a7_0x4b4315();function a7_0x3774(){const _0x39fcc9=['81555cTqzjF','(((.+)+)+)+$','constructor','53260HyLkQZ','1529tCLTiZ',')\x20protected\x20','defineProperty','path','@/apps/','dirname','5875597QUyksD',';\x0a\x0a\x0a','string','8PzrQHx','toString','import\x20{\x20Inject,\x20InjectRepository\x20}\x20from\x20\x27@anncic-api/typeorm\x27;\x0a\x0a','\x20}\x20from\x20\x27','writeFileSync','utf-8','import\x20{\x20Event,\x20EventService\x20}\x20from\x20\x27@anncic-api/event\x27;\x0a','import\x20{\x20','__esModule','export\x20class\x20','116icTXWN','20217CPfPmj','/entities/','11263116KqDycm','.ts','264rzzyPU','6dUudgs','search','2402793kjmyAP','mkdirSync','424172GwIdoj','\x27;\x0a\x0a','13ddbiEX','apply','Event\x20{\x0a\x0a'];a7_0x3774=function(){return _0x39fcc9;};return a7_0x3774();}'use strict';function a7_0x6f79(_0x3a87f2,_0x545c2c){const _0x21ef65=a7_0x3774();return a7_0x6f79=function(_0x4b4315,_0x3cc7c5){_0x4b4315=_0x4b4315-0xda;let _0x377434=_0x21ef65[_0x4b4315];return _0x377434;},a7_0x6f79(_0x3a87f2,_0x545c2c);}Object[a7_0x459782(0xfc)](exports,a7_0x459782(0xe5),{'value':!![]});const fs=require('fs'),path_1=require(a7_0x459782(0xfd));async function default_1({tablestartUp:_0xce0d58,tablestartUpShort:_0x45ddc0,basedir:_0x3ddfd2,moduleName:_0x4e4207,apporbasic:_0xc016da}){const _0x49bbd1=a7_0x459782,_0x436bda=_0x3ddfd2+('/listeners/'+_0x45ddc0+_0x49bbd1(0xeb));if(!fs['existsSync'](_0x436bda)){let _0x35007b='';_0x35007b+=_0x49bbd1(0xe3),_0x35007b+=_0x49bbd1(0xdf),_0x35007b+=_0x49bbd1(0xe4)+_0xce0d58+_0x49bbd1(0xe0)+(typeof _0x4e4207==_0x49bbd1(0xdc)?_0x49bbd1(0xfe)+_0x4e4207:'@/'+_0xc016da)+_0x49bbd1(0xe9)+_0x45ddc0+_0x49bbd1(0xf2),_0x35007b+='@Event()\x0a',_0x35007b+=_0x49bbd1(0xe6)+_0xce0d58+_0x49bbd1(0xf5),_0x35007b+='\x20\x20\x20\x20@Inject()\x20protected\x20EventService:\x20EventService;\x0a\x0a',_0x35007b+='\x20\x20\x20\x20@InjectRepository('+_0xce0d58+_0x49bbd1(0xfb)+_0xce0d58+':\x20'+_0xce0d58+_0x49bbd1(0xdb),_0x35007b+='}',!fs['existsSync']((0x0,path_1[_0x49bbd1(0xff)])(_0x436bda))&&fs[_0x49bbd1(0xf0)]((0x0,path_1[_0x49bbd1(0xff)])(_0x436bda),{'recursive':!![]}),fs[_0x49bbd1(0xe1)](_0x436bda,_0x35007b,_0x49bbd1(0xe2));}}exports['default']=default_1;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export default function ({ tablestartUp, tablestartUpShort, basedir, Primary, Comment, moduleName, apporbasic }: {
|
|
2
|
-
tablestartUp: any;
|
|
3
|
-
tablestartUpShort: any;
|
|
4
|
-
basedir: any;
|
|
5
|
-
Primary: any;
|
|
6
|
-
Comment: any;
|
|
7
|
-
moduleName: any;
|
|
8
|
-
apporbasic: any;
|
|
9
|
-
}): Promise<void>;
|
|
1
|
+
export default function ({ tablestartUp, tablestartUpShort, basedir, Primary, Comment, moduleName, apporbasic }: {
|
|
2
|
+
tablestartUp: any;
|
|
3
|
+
tablestartUpShort: any;
|
|
4
|
+
basedir: any;
|
|
5
|
+
Primary: any;
|
|
6
|
+
Comment: any;
|
|
7
|
+
moduleName: any;
|
|
8
|
+
apporbasic: any;
|
|
9
|
+
}): Promise<void>;
|