@anncic-api/core 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,9 @@
1
+ declare const _default: (appinfo: any) => {
2
+ midwayLogger: {
3
+ default: {
4
+ dir: string;
5
+ maxSize: string;
6
+ };
7
+ };
8
+ };
9
+ export default _default;
@@ -0,0 +1 @@
1
+ 'use strict';function a0_0x578b(){var _0x2dbbf9=['__esModule','308640EuQFkT','3FZZdxa','8oPBYnt','2287466eeTrwP','68153ihHHts','5896254qKfEOs','default','996DftDCc','appDir','defineProperty','16713400YzIrCm','1500968ToMLCx','43465pwGXAs','45iWsqdr','/runtime'];a0_0x578b=function(){return _0x2dbbf9;};return a0_0x578b();}function a0_0x47d9(_0x3af56e,_0xd16c93){var _0x578b55=a0_0x578b();return a0_0x47d9=function(_0x47d92e,_0x3bdd0a){_0x47d92e=_0x47d92e-0xe5;var _0x54e5c2=_0x578b55[_0x47d92e];return _0x54e5c2;},a0_0x47d9(_0x3af56e,_0xd16c93);}var a0_0x51989a=a0_0x47d9;(function(_0x42d64e,_0x1362ea){var _0x20995c=a0_0x47d9,_0xc00085=_0x42d64e();while(!![]){try{var _0x5dcebb=parseInt(_0x20995c(0xe7))/0x1+parseInt(_0x20995c(0xe6))/0x2+parseInt(_0x20995c(0xf4))/0x3*(parseInt(_0x20995c(0xee))/0x4)+-parseInt(_0x20995c(0xef))/0x5*(-parseInt(_0x20995c(0xea))/0x6)+-parseInt(_0x20995c(0xe8))/0x7*(parseInt(_0x20995c(0xe5))/0x8)+-parseInt(_0x20995c(0xf0))/0x9*(-parseInt(_0x20995c(0xf3))/0xa)+-parseInt(_0x20995c(0xed))/0xb;if(_0x5dcebb===_0x1362ea)break;else _0xc00085['push'](_0xc00085['shift']());}catch(_0x20d09c){_0xc00085['push'](_0xc00085['shift']());}}}(a0_0x578b,0xc8dec));Object[a0_0x51989a(0xec)](exports,a0_0x51989a(0xf2),{'value':!![]}),exports[a0_0x51989a(0xe9)]=_0x1c347f=>{var _0x3a4ba8=a0_0x51989a;return{'midwayLogger':{'default':{'dir':_0x1c347f[_0x3a4ba8(0xeb)]+_0x3a4ba8(0xf1),'maxSize':'1m'}}};};
@@ -0,0 +1,6 @@
1
+ import { MidwayApplicationManager, MidwayEnvironmentService } from '@midwayjs/core';
2
+ export declare class CustomConfiguration {
3
+ application: MidwayApplicationManager;
4
+ environment: MidwayEnvironmentService;
5
+ onReady(): Promise<void>;
6
+ }
@@ -0,0 +1 @@
1
+ 'use strict';function a1_0x1884(){const _0x1b5c3e=['272676vXphAD','CustomConfiguration','faas','__metadata','Configuration','MidwayApplicationManager','__decorate','1245965RSgubz','1331427BcbzSI','getOwnPropertyDescriptor','isDevelopmentEnvironment','object','@midwayjs/core','stack','design:type','useMiddleware','60CAfpzh','64123bzBYEJ','4ETPLEs','AnnError','length','logger','defineProperty','@midwayjs/decorator','function','2211904vhGWNk','koa','MidwayEnvironmentService','anncic-api:core','./exception/AnnError','decorate','63SjGazr','code','__esModule','43245hcrOnb','error','environment','Inject','codeMsg','application','metadata','957132HntRCj','AnnErrorRender','name','render','prototype','message','getApplications','result','forEach'];a1_0x1884=function(){return _0x1b5c3e;};return a1_0x1884();}const a1_0x3e46d0=a1_0x3383;(function(_0x2069ca,_0x18364c){const _0x4266c3=a1_0x3383,_0x231803=_0x2069ca();while(!![]){try{const _0x42c5f2=-parseInt(_0x4266c3(0x7e))/0x1+-parseInt(_0x4266c3(0x96))/0x2+parseInt(_0x4266c3(0x75))/0x3*(parseInt(_0x4266c3(0x7f))/0x4)+parseInt(_0x4266c3(0x74))/0x5+parseInt(_0x4266c3(0x6d))/0x6*(parseInt(_0x4266c3(0x8c))/0x7)+-parseInt(_0x4266c3(0x86))/0x8+-parseInt(_0x4266c3(0x8f))/0x9*(-parseInt(_0x4266c3(0x7d))/0xa);if(_0x42c5f2===_0x18364c)break;else _0x231803['push'](_0x231803['shift']());}catch(_0x3fa900){_0x231803['push'](_0x231803['shift']());}}}(a1_0x1884,0x4c175));var __decorate=this&&this[a1_0x3e46d0(0x73)]||function(_0x29a59a,_0x1a8e21,_0x549bef,_0x3ebdee){const _0x13c14a=a1_0x3e46d0;var _0xa26b56=arguments[_0x13c14a(0x81)],_0x3eed8c=_0xa26b56<0x3?_0x1a8e21:_0x3ebdee===null?_0x3ebdee=Object[_0x13c14a(0x76)](_0x1a8e21,_0x549bef):_0x3ebdee,_0x2dfa18;if(typeof Reflect===_0x13c14a(0x78)&&typeof Reflect[_0x13c14a(0x8b)]===_0x13c14a(0x85))_0x3eed8c=Reflect[_0x13c14a(0x8b)](_0x29a59a,_0x1a8e21,_0x549bef,_0x3ebdee);else{for(var _0x3ce6f7=_0x29a59a['length']-0x1;_0x3ce6f7>=0x0;_0x3ce6f7--)if(_0x2dfa18=_0x29a59a[_0x3ce6f7])_0x3eed8c=(_0xa26b56<0x3?_0x2dfa18(_0x3eed8c):_0xa26b56>0x3?_0x2dfa18(_0x1a8e21,_0x549bef,_0x3eed8c):_0x2dfa18(_0x1a8e21,_0x549bef))||_0x3eed8c;}return _0xa26b56>0x3&&_0x3eed8c&&Object[_0x13c14a(0x83)](_0x1a8e21,_0x549bef,_0x3eed8c),_0x3eed8c;},__metadata=this&&this[a1_0x3e46d0(0x70)]||function(_0x2f88a2,_0x4c6d56){const _0xa5c0f=a1_0x3e46d0;if(typeof Reflect===_0xa5c0f(0x78)&&typeof Reflect[_0xa5c0f(0x95)]===_0xa5c0f(0x85))return Reflect['metadata'](_0x2f88a2,_0x4c6d56);};function a1_0x3383(_0xd82433,_0x34f1ae){const _0x1884d0=a1_0x1884();return a1_0x3383=function(_0x3383dd,_0x9372b0){_0x3383dd=_0x3383dd-0x67;let _0x369f1d=_0x1884d0[_0x3383dd];return _0x369f1d;},a1_0x3383(_0xd82433,_0x34f1ae);}Object[a1_0x3e46d0(0x83)](exports,a1_0x3e46d0(0x8e),{'value':!![]}),exports[a1_0x3e46d0(0x6e)]=void 0x0;const decorator_1=require(a1_0x3e46d0(0x84)),core_1=require(a1_0x3e46d0(0x79)),AnnError_1=require(a1_0x3e46d0(0x8a)),AnnErrorRender_1=require('./exception/AnnErrorRender'),ConfigDefault=require('./config/config.default');let CustomConfiguration=class CustomConfiguration{async['onReady'](){const _0x5d7c0c=a1_0x3e46d0;this[_0x5d7c0c(0x94)][_0x5d7c0c(0x6a)]([_0x5d7c0c(0x87),_0x5d7c0c(0x6f),'express','egg'])[_0x5d7c0c(0x6c)](_0x47a0fc=>{const _0x14b759=_0x5d7c0c;_0x47a0fc[_0x14b759(0x7c)](async(_0x4fbf6e,_0x3bf9b2)=>{const _0x53d641=_0x14b759;var _0x2039b1;try{await _0x3bf9b2();}catch(_0x83f5c0){if(_0x83f5c0 instanceof AnnErrorRender_1[_0x53d641(0x97)])await _0x83f5c0[_0x53d641(0x67)](_0x4fbf6e,_0x47a0fc);else{if(_0x83f5c0 instanceof AnnError_1[_0x53d641(0x80)]){const _0x54b408=_0x83f5c0[_0x53d641(0x6b)]||{};_0x54b408[_0x53d641(0x8d)]=_0x83f5c0[_0x53d641(0x8d)],!_0x54b408[_0x53d641(0x93)]&&(_0x54b408[_0x53d641(0x93)]=_0x83f5c0[_0x53d641(0x69)]),this['environment'][_0x53d641(0x77)]&&(!_0x54b408[_0x53d641(0x90)]&&(_0x54b408['error']={}),!_0x54b408[_0x53d641(0x90)][_0x53d641(0x98)]&&(_0x54b408[_0x53d641(0x90)]['name']=_0x83f5c0[_0x53d641(0x98)]),!_0x54b408['error'][_0x53d641(0x7a)]&&(_0x54b408['error'][_0x53d641(0x7a)]=_0x83f5c0['stack'])),_0x4fbf6e['body']=_0x54b408;}else{if(_0x83f5c0 instanceof Error){if(this['environment'][_0x53d641(0x77)]())console[_0x53d641(0x90)](_0x83f5c0);else typeof((_0x2039b1=_0x4fbf6e===null||_0x4fbf6e===void 0x0?void 0x0:_0x4fbf6e[_0x53d641(0x82)])===null||_0x2039b1===void 0x0?void 0x0:_0x2039b1[_0x53d641(0x90)])==_0x53d641(0x85)&&_0x4fbf6e[_0x53d641(0x82)][_0x53d641(0x90)](_0x83f5c0);}}}}});});}};__decorate([(0x0,decorator_1[a1_0x3e46d0(0x92)])(),__metadata('design:type',core_1[a1_0x3e46d0(0x72)])],CustomConfiguration['prototype'],a1_0x3e46d0(0x94),void 0x0),__decorate([(0x0,decorator_1[a1_0x3e46d0(0x92)])(),__metadata(a1_0x3e46d0(0x7b),core_1[a1_0x3e46d0(0x88)])],CustomConfiguration[a1_0x3e46d0(0x68)],a1_0x3e46d0(0x91),void 0x0),CustomConfiguration=__decorate([(0x0,decorator_1[a1_0x3e46d0(0x71)])({'namespace':a1_0x3e46d0(0x89),'conflictCheck':![],'importConfigs':[{'default':ConfigDefault}]})],CustomConfiguration),exports[a1_0x3e46d0(0x6e)]=CustomConfiguration;
@@ -0,0 +1,7 @@
1
+ export declare function AnnEnumMsg(message: string, type?: string): PropertyDecorator;
2
+ export declare function getAnnEnumMsg(target: any, code: number | string, type?: string): string;
3
+ export declare function getAnnEnumList(target: any, type?: string): {
4
+ [key: string]: string;
5
+ [key: number]: string;
6
+ };
7
+ export declare function getAnnEnumArray(target: any, filters?: Array<number | string>, type?: string): (string | number)[];
@@ -0,0 +1 @@
1
+ 'use strict';function a2_0x1b4f(){const _0x23d783=['AnnEnumMsg','saveClassMetadata','default','targetMsg','push','Enum\x20Code:\x20','indexOf','\x20=\x20number\x20|\x20string;','15412BJUAzE','42JSOqzi','218774SQkTDu','@midwayjs/decorator','ann:enum','getAnnEnumList','\x20is\x20not\x20duplicated','getAnnEnumMsg','196870wMziHF','defineProperty','getClassMetadata','21780KLwrQy','70317oudxvU','__esModule','getAnnEnumArray','3616844crDNSl','912076HuQwCH','1736ifrNVn','\x20Property('];a2_0x1b4f=function(){return _0x23d783;};return a2_0x1b4f();}function a2_0x22b0(_0x250982,_0x531359){const _0x1b4fd8=a2_0x1b4f();return a2_0x22b0=function(_0x22b08e,_0x2fa68c){_0x22b08e=_0x22b08e-0x100;let _0x2702ca=_0x1b4fd8[_0x22b08e];return _0x2702ca;},a2_0x22b0(_0x250982,_0x531359);}const a2_0x966939=a2_0x22b0;(function(_0x3f4903,_0x2d339e){const _0xe7717e=a2_0x22b0,_0x159b7f=_0x3f4903();while(!![]){try{const _0x1d9b7e=parseInt(_0xe7717e(0x117))/0x1+parseInt(_0xe7717e(0x115))/0x2+parseInt(_0xe7717e(0x106))/0x3+-parseInt(_0xe7717e(0x10a))/0x4+parseInt(_0xe7717e(0x102))/0x5*(parseInt(_0xe7717e(0x116))/0x6)+parseInt(_0xe7717e(0x109))/0x7+-parseInt(_0xe7717e(0x10b))/0x8*(parseInt(_0xe7717e(0x105))/0x9);if(_0x1d9b7e===_0x2d339e)break;else _0x159b7f['push'](_0x159b7f['shift']());}catch(_0x2f4500){_0x159b7f['push'](_0x159b7f['shift']());}}}(a2_0x1b4f,0x4692e));Object[a2_0x966939(0x103)](exports,a2_0x966939(0x107),{'value':!![]}),exports[a2_0x966939(0x108)]=exports[a2_0x966939(0x11a)]=exports['getAnnEnumMsg']=exports['AnnEnumMsg']=void 0x0;const decorator_1=require(a2_0x966939(0x118)),ANN_ENUM=a2_0x966939(0x119);function AnnEnumMsg(_0x7a8f7c,_0x2ee3a4=a2_0x966939(0x10f)){return(_0x405714,_0x5f177c)=>{const _0x5e4a29=a2_0x22b0;var _0x252b46;const _0x249ada=_0x405714===null||_0x405714===void 0x0?void 0x0:_0x405714[_0x5f177c],_0x34492a=(0x0,decorator_1[_0x5e4a29(0x104)])(ANN_ENUM,_0x405714)||{};if(!_0x249ada)throw new Error(((_0x405714===null||_0x405714===void 0x0?void 0x0:_0x405714['name'])||_0x405714)+_0x5e4a29(0x10c)+_0x5f177c+')must\x20be\x20\x27static\x20readonly\x20'+_0x5f177c+_0x5e4a29(0x114));if((_0x252b46=_0x34492a===null||_0x34492a===void 0x0?void 0x0:_0x34492a[_0x2ee3a4])===null||_0x252b46===void 0x0?void 0x0:_0x252b46[_0x249ada])throw new Error('Enum\x20Code:\x20'+_0x7a8f7c+'('+_0x249ada+')\x20is\x20duplicated,please\x20check\x20before\x20adding');!(_0x34492a===null||_0x34492a===void 0x0?void 0x0:_0x34492a[_0x2ee3a4])&&(_0x34492a[_0x2ee3a4]={}),_0x34492a[_0x2ee3a4][_0x249ada]={'targetKey':_0x5f177c,'targetMsg':_0x7a8f7c},(0x0,decorator_1[_0x5e4a29(0x10e)])(ANN_ENUM,_0x34492a,_0x405714);};}exports[a2_0x966939(0x10d)]=AnnEnumMsg;function getAnnEnumMsg(_0x55aab7,_0x40b738,_0x1ce06d='default'){const _0x4e36a4=a2_0x966939;var _0x2bc4a4,_0x394114;const _0x2cfd74=(0x0,decorator_1[_0x4e36a4(0x104)])(ANN_ENUM,_0x55aab7)||{};if(!((_0x2bc4a4=_0x2cfd74===null||_0x2cfd74===void 0x0?void 0x0:_0x2cfd74[_0x1ce06d])===null||_0x2bc4a4===void 0x0?void 0x0:_0x2bc4a4[_0x40b738]))throw new Error(_0x4e36a4(0x112)+_0x40b738+_0x4e36a4(0x100));return((_0x394114=_0x2cfd74[_0x1ce06d][_0x40b738])===null||_0x394114===void 0x0?void 0x0:_0x394114[_0x4e36a4(0x110)])||undefined;}exports[a2_0x966939(0x101)]=getAnnEnumMsg;function getAnnEnumList(_0x3cd6dd,_0x27161e=a2_0x966939(0x10f)){const _0x4f6d9e=a2_0x966939;var _0x527f23,_0xe320a;const _0x5aa419={},_0x3da182=(0x0,decorator_1['getClassMetadata'])(ANN_ENUM,_0x3cd6dd)||{};if(_0x3da182===null||_0x3da182===void 0x0?void 0x0:_0x3da182[_0x27161e])for(const _0x511228 in _0x3da182[_0x27161e]){((_0xe320a=(_0x527f23=_0x3da182[_0x27161e])===null||_0x527f23===void 0x0?void 0x0:_0x527f23[_0x511228])===null||_0xe320a===void 0x0?void 0x0:_0xe320a['targetMsg'])&&(_0x5aa419[_0x511228]=_0x3da182[_0x27161e][_0x511228][_0x4f6d9e(0x110)]);}return _0x5aa419;}exports['getAnnEnumList']=getAnnEnumList;function getAnnEnumArray(_0x5231dd,_0x1d087c=[],_0x2e39df=a2_0x966939(0x10f)){const _0xd6b1b7=a2_0x966939,_0x5ba10d=[],_0x5a0206=(0x0,decorator_1[_0xd6b1b7(0x104)])(ANN_ENUM,_0x5231dd)||{};if(_0x5a0206===null||_0x5a0206===void 0x0?void 0x0:_0x5a0206[_0x2e39df])for(const _0x52b448 in _0x5a0206[_0x2e39df]){_0x1d087c[_0xd6b1b7(0x113)](parseFloat(_0x52b448))==-0x1&&_0x5ba10d[_0xd6b1b7(0x111)](parseFloat(_0x52b448));}return _0x5ba10d;}exports[a2_0x966939(0x108)]=getAnnEnumArray;
@@ -0,0 +1,5 @@
1
+ export declare function getAnnErrorMsg(code: number): string;
2
+ export declare function getAnnErrorList(): {
3
+ [key: number]: string;
4
+ };
5
+ export declare function AnnErrorMsg(message: string): PropertyDecorator;
@@ -0,0 +1 @@
1
+ 'use strict';const a3_0x372df7=a3_0x1459;(function(_0x2a39a4,_0xe4f4df){const _0x434b94=a3_0x1459,_0x540323=_0x2a39a4();while(!![]){try{const _0x243e91=parseInt(_0x434b94(0xe8))/0x1*(parseInt(_0x434b94(0xf5))/0x2)+-parseInt(_0x434b94(0xf9))/0x3+-parseInt(_0x434b94(0xe9))/0x4+-parseInt(_0x434b94(0xee))/0x5*(parseInt(_0x434b94(0xeb))/0x6)+-parseInt(_0x434b94(0xf8))/0x7+-parseInt(_0x434b94(0xf6))/0x8*(parseInt(_0x434b94(0xed))/0x9)+parseInt(_0x434b94(0xec))/0xa*(parseInt(_0x434b94(0xea))/0xb);if(_0x243e91===_0xe4f4df)break;else _0x540323['push'](_0x540323['shift']());}catch(_0x4c8d79){_0x540323['push'](_0x540323['shift']());}}}(a3_0xcbed,0xc4a5a));Object[a3_0x372df7(0xef)](exports,'__esModule',{'value':!![]}),exports['AnnErrorMsg']=exports[a3_0x372df7(0xf0)]=exports['getAnnErrorMsg']=void 0x0;const AnnErrorObj={};function getAnnErrorMsg(_0x47018d){if(!(AnnErrorObj===null||AnnErrorObj===void 0x0?void 0x0:AnnErrorObj[_0x47018d]))throw new Error('Error\x20Code:\x20'+_0x47018d+'\x20is\x20not\x20duplicated');return AnnErrorObj[_0x47018d]||undefined;}exports[a3_0x372df7(0xf3)]=getAnnErrorMsg;function a3_0xcbed(){const _0x8f61ad=['11979368qCMTes',')must\x20be\x20\x27static\x20readonly\x20','9158548XKKbwd','4430799cUbEYq','14myWcUL','1932732ZXjPfM','11beOXnU','199176zHXURs','65598010EWHxCK','9XRPRYi','190wPNuAf','defineProperty','getAnnErrorList','Error\x20Code:\x20',')\x20is\x20duplicated,please\x20check\x20before\x20adding','getAnnErrorMsg','\x20=\x20number;','39002tXrfCw'];a3_0xcbed=function(){return _0x8f61ad;};return a3_0xcbed();}function a3_0x1459(_0x591e30,_0x4704b8){const _0xcbedc3=a3_0xcbed();return a3_0x1459=function(_0x145907,_0x1d3882){_0x145907=_0x145907-0xe8;let _0x1383b2=_0xcbedc3[_0x145907];return _0x1383b2;},a3_0x1459(_0x591e30,_0x4704b8);}function getAnnErrorList(){return AnnErrorObj;}exports[a3_0x372df7(0xf0)]=getAnnErrorList;function AnnErrorMsg(_0x22b4ed){return(_0x54ba6a,_0x4180e1)=>{const _0x2953b4=a3_0x1459,_0x5b5d9e=_0x54ba6a===null||_0x54ba6a===void 0x0?void 0x0:_0x54ba6a[_0x4180e1];if(!_0x5b5d9e)throw new Error(((_0x54ba6a===null||_0x54ba6a===void 0x0?void 0x0:_0x54ba6a['name'])||_0x54ba6a)+'\x20Property('+_0x4180e1+_0x2953b4(0xf7)+_0x4180e1+_0x2953b4(0xf4));if(AnnErrorObj===null||AnnErrorObj===void 0x0?void 0x0:AnnErrorObj[_0x5b5d9e])throw new Error(_0x2953b4(0xf1)+_0x22b4ed+'('+_0x5b5d9e+_0x2953b4(0xf2));AnnErrorObj[_0x5b5d9e]=_0x22b4ed;};}exports['AnnErrorMsg']=AnnErrorMsg;
@@ -0,0 +1,13 @@
1
+ export declare class AnnError extends Error {
2
+ readonly code: number;
3
+ readonly result: {
4
+ [key: string]: any;
5
+ };
6
+ static readonly UNKNOW = 100000;
7
+ static readonly PARAMS = 102000;
8
+ static readonly NOFIND = 103000;
9
+ static readonly NOAUTH = 104000;
10
+ constructor(code: number, result?: {
11
+ [key: string]: any;
12
+ });
13
+ }
@@ -0,0 +1 @@
1
+ 'use strict';var a4_0x1dbeb0=a4_0x5c9c;function a4_0x5c9c(_0x2336b3,_0x5792ce){var _0x1e9e86=a4_0x1e9e();return a4_0x5c9c=function(_0x5c9cc1,_0x3b7c60){_0x5c9cc1=_0x5c9cc1-0x14c;var _0x4f63cd=_0x1e9e86[_0x5c9cc1];return _0x4f63cd;},a4_0x5c9c(_0x2336b3,_0x5792ce);}(function(_0x3b75a5,_0xff481){var _0x332517=a4_0x5c9c,_0x60e1d=_0x3b75a5();while(!![]){try{var _0x27d69c=parseInt(_0x332517(0x158))/0x1+parseInt(_0x332517(0x151))/0x2*(parseInt(_0x332517(0x169))/0x3)+parseInt(_0x332517(0x15f))/0x4+parseInt(_0x332517(0x150))/0x5*(-parseInt(_0x332517(0x168))/0x6)+parseInt(_0x332517(0x15d))/0x7*(parseInt(_0x332517(0x153))/0x8)+-parseInt(_0x332517(0x165))/0x9*(parseInt(_0x332517(0x14d))/0xa)+parseInt(_0x332517(0x160))/0xb;if(_0x27d69c===_0xff481)break;else _0x60e1d['push'](_0x60e1d['shift']());}catch(_0x5c8c51){_0x60e1d['push'](_0x60e1d['shift']());}}}(a4_0x1e9e,0xca54d));function a4_0x1e9e(){var _0x44cdfb=['56Xyragd','code','2585548XQFORQ','5272597bcBHBn','constructor','decorate','UNKNOW','design:type','8071983QERZgX','object','length','3746730dfEwyJ','991866ZmFXfE','NOFIND','10pWVUxy','getOwnPropertyDescriptor','name','10WozQRF','6THEbNR','NOAUTH','102784TRVYeE','getAnnErrorMsg','PARAMS','AnnErrorMsg','result','754182TOYRDU','AnnError','__esModule','metadata','function'];a4_0x1e9e=function(){return _0x44cdfb;};return a4_0x1e9e();}var __decorate=this&&this['__decorate']||function(_0x2b406c,_0x2ad164,_0x4798c7,_0x58075e){var _0x2091fa=a4_0x5c9c,_0x4507aa=arguments[_0x2091fa(0x167)],_0x1f07bb=_0x4507aa<0x3?_0x2ad164:_0x58075e===null?_0x58075e=Object[_0x2091fa(0x14e)](_0x2ad164,_0x4798c7):_0x58075e,_0x349f49;if(typeof Reflect==='object'&&typeof Reflect[_0x2091fa(0x162)]===_0x2091fa(0x15c))_0x1f07bb=Reflect[_0x2091fa(0x162)](_0x2b406c,_0x2ad164,_0x4798c7,_0x58075e);else{for(var _0x5e6b74=_0x2b406c[_0x2091fa(0x167)]-0x1;_0x5e6b74>=0x0;_0x5e6b74--)if(_0x349f49=_0x2b406c[_0x5e6b74])_0x1f07bb=(_0x4507aa<0x3?_0x349f49(_0x1f07bb):_0x4507aa>0x3?_0x349f49(_0x2ad164,_0x4798c7,_0x1f07bb):_0x349f49(_0x2ad164,_0x4798c7))||_0x1f07bb;}return _0x4507aa>0x3&&_0x1f07bb&&Object['defineProperty'](_0x2ad164,_0x4798c7,_0x1f07bb),_0x1f07bb;},__metadata=this&&this['__metadata']||function(_0x2114ac,_0x1aefbf){var _0x5aea45=a4_0x5c9c;if(typeof Reflect===_0x5aea45(0x166)&&typeof Reflect['metadata']===_0x5aea45(0x15c))return Reflect[_0x5aea45(0x15b)](_0x2114ac,_0x1aefbf);};Object['defineProperty'](exports,a4_0x1dbeb0(0x15a),{'value':!![]}),exports[a4_0x1dbeb0(0x159)]=void 0x0;const AnnErrorMsg_1=require('../decorator/AnnErrorMsg');class AnnError extends Error{constructor(_0x5eaa79,_0x2a5328){var _0x3f85e8=a4_0x1dbeb0;super((0x0,AnnErrorMsg_1[_0x3f85e8(0x154)])(_0x5eaa79)),this[_0x3f85e8(0x14f)]=this[_0x3f85e8(0x161)]['name'],(this[_0x3f85e8(0x15e)]=_0x5eaa79,this[_0x3f85e8(0x157)]=_0x2a5328||{});}}AnnError[a4_0x1dbeb0(0x163)]=0x186a0,AnnError[a4_0x1dbeb0(0x155)]=0x18e70,AnnError[a4_0x1dbeb0(0x14c)]=0x19258,AnnError['NOAUTH']=0x19640,__decorate([(0x0,AnnErrorMsg_1[a4_0x1dbeb0(0x156)])('未知错误'),__metadata('design:type',Object)],AnnError,a4_0x1dbeb0(0x163),void 0x0),__decorate([(0x0,AnnErrorMsg_1[a4_0x1dbeb0(0x156)])('参数错误'),__metadata(a4_0x1dbeb0(0x164),Object)],AnnError,'PARAMS',void 0x0),__decorate([(0x0,AnnErrorMsg_1[a4_0x1dbeb0(0x156)])('不存在对应数据'),__metadata(a4_0x1dbeb0(0x164),Object)],AnnError,a4_0x1dbeb0(0x14c),void 0x0),__decorate([(0x0,AnnErrorMsg_1[a4_0x1dbeb0(0x156)])('没有权限执行该操作'),__metadata(a4_0x1dbeb0(0x164),Object)],AnnError,a4_0x1dbeb0(0x152),void 0x0),exports[a4_0x1dbeb0(0x159)]=AnnError;
@@ -0,0 +1,7 @@
1
+ import { AnnError } from './AnnError';
2
+ export declare class AnnErrorRender extends AnnError {
3
+ constructor(code: number, result?: {
4
+ [key: string]: any;
5
+ });
6
+ render(ctx: any, app: any): Promise<void>;
7
+ }
@@ -0,0 +1 @@
1
+ 'use strict';const a5_0x38620a=a5_0x13ee;(function(_0x805cce,_0x5c5a51){const _0x37f5aa=a5_0x13ee,_0x4bf89c=_0x805cce();while(!![]){try{const _0x5d9318=parseInt(_0x37f5aa(0x8d))/0x1*(-parseInt(_0x37f5aa(0x89))/0x2)+parseInt(_0x37f5aa(0x8c))/0x3+-parseInt(_0x37f5aa(0x87))/0x4*(parseInt(_0x37f5aa(0x86))/0x5)+-parseInt(_0x37f5aa(0x8f))/0x6+-parseInt(_0x37f5aa(0x90))/0x7+-parseInt(_0x37f5aa(0x88))/0x8+-parseInt(_0x37f5aa(0x8e))/0x9*(-parseInt(_0x37f5aa(0x8a))/0xa);if(_0x5d9318===_0x5c5a51)break;else _0x4bf89c['push'](_0x4bf89c['shift']());}catch(_0x7f57b3){_0x4bf89c['push'](_0x4bf89c['shift']());}}}(a5_0x1442,0x4101d));Object[a5_0x38620a(0x92)](exports,a5_0x38620a(0x85),{'value':!![]}),exports['AnnErrorRender']=void 0x0;const AnnError_1=require('./AnnError');class AnnErrorRender extends AnnError_1[a5_0x38620a(0x84)]{constructor(_0x21c9df,_0x4fa866){super(_0x21c9df,_0x4fa866);}async['render'](_0x4ff7b1,_0x1f1b11){const _0x18f063=a5_0x38620a;throw this['name']+_0x18f063(0x91);}}exports[a5_0x38620a(0x8b)]=AnnErrorRender;function a5_0x13ee(_0x319e16,_0x6f34b6){const _0x144294=a5_0x1442();return a5_0x13ee=function(_0x13ee47,_0x3a87a1){_0x13ee47=_0x13ee47-0x84;let _0x5ca3e9=_0x144294[_0x13ee47];return _0x5ca3e9;},a5_0x13ee(_0x319e16,_0x6f34b6);}function a5_0x1442(){const _0x5cc709=['20RmXcIo','AnnErrorRender','504756QerSBT','157372xDdDLe','8816859WNeoeE','3104196bntAAx','3564169gxPvgE','\x20is\x20not\x20is\x20not\x20duplicated\x20function\x20render','defineProperty','AnnError','__esModule','15rQtJrz','70276wwODNj','3738408rVcaTY','4sEVURn'];a5_0x1442=function(){return _0x5cc709;};return a5_0x1442();}
@@ -0,0 +1,12 @@
1
+ export declare class AnnError extends Error {
2
+ readonly code: number;
3
+ readonly extra: {
4
+ [key: string]: any;
5
+ };
6
+ static readonly PARAMS_ERROR = 100001;
7
+ static readonly PARAMS_NOAUTH = 102001;
8
+ static readonly PARAMS_UNKNOW = 100000;
9
+ constructor(code: number, extra?: {
10
+ [key: string]: any;
11
+ });
12
+ }