anncic-api 3.7.18 → 3.7.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/config/config.default.d.ts +47 -47
- package/dist/config/config.default.js +1 -1
- package/dist/config/config.local.d.ts +6 -6
- package/dist/config/config.local.js +1 -1
- package/dist/config/config.production.d.ts +5 -5
- package/dist/config/config.production.js +1 -1
- package/dist/configuration.d.ts +17 -17
- package/dist/configuration.js +1 -1
- package/dist/decorator/Action.d.ts +14 -14
- package/dist/decorator/Action.js +1 -1
- package/dist/decorator/ActionApitest.d.ts +2 -2
- package/dist/decorator/ActionApitest.js +1 -1
- package/dist/decorator/Intercept.d.ts +5 -5
- package/dist/decorator/Intercept.js +1 -1
- package/dist/exception/ApiError.d.ts +9 -8
- package/dist/exception/ApiError.js +1 -1
- package/dist/helper/getAppsConfig.d.ts +1 -1
- package/dist/helper/getAppsConfig.js +1 -1
- package/dist/helper/getRoutes.d.ts +11 -11
- package/dist/helper/getRoutes.js +1 -1
- package/dist/helper/getSwaggerJson.d.ts +40 -40
- package/dist/helper/getSwaggerJson.js +1 -1
- package/dist/index.d.ts +21 -21
- package/dist/index.js +1 -1
- package/dist/service/ApiService.d.ts +12 -12
- package/dist/service/ApiService.js +1 -1
- package/dist/service/ApitestService.d.ts +19 -19
- package/dist/service/ApitestService.js +1 -1
- package/dist/service/ExcelService.d.ts +46 -46
- package/dist/service/ExcelService.js +1 -1
- package/dist/service/ExcelStream.d.ts +48 -47
- package/dist/service/ExcelStream.js +1 -1
- package/dist/types/action.d.ts +47 -47
- package/dist/types/action.js +1 -1
- package/dist/types/common.d.ts +14 -13
- package/dist/types/common.js +1 -1
- package/dist/types/intercept.d.ts +3 -3
- package/dist/types/intercept.js +1 -1
- package/package.json +9 -9
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
export interface getRouteOption {
|
|
2
|
-
noreq?: boolean;
|
|
3
|
-
prefix?: string;
|
|
4
|
-
module?: string | boolean;
|
|
5
|
-
filter?: string[];
|
|
6
|
-
filepath?: boolean;
|
|
7
|
-
intercept?: boolean;
|
|
8
|
-
}
|
|
9
|
-
export declare function getRoutes(filter?: getRouteOption): {
|
|
10
|
-
[key: string]: any;
|
|
11
|
-
};
|
|
1
|
+
export interface getRouteOption {
|
|
2
|
+
noreq?: boolean;
|
|
3
|
+
prefix?: string;
|
|
4
|
+
module?: string | boolean;
|
|
5
|
+
filter?: string[];
|
|
6
|
+
filepath?: boolean;
|
|
7
|
+
intercept?: boolean;
|
|
8
|
+
}
|
|
9
|
+
export declare function getRoutes(filter?: getRouteOption): {
|
|
10
|
+
[key: string]: any;
|
|
11
|
+
};
|
package/dist/helper/getRoutes.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function a9_0x1a05(){const _0x4a9fce=['Boolean','routerOptions','min','INJECT_CUSTOM_PARAM','concat','(((.+)+)+)+$','Object','path','@anncic-api/validator','header','routerName','flags.label','HEADERS','properties','QUERY','propertyData','filter','intercept','getClassMetadata','648732bLLlar','FILESSTREAM','args','method','apply','BODY','filepath','166325ptAgLe','children','@midwayjs/core','ACTION_ROUTE_KEY','allow','constructor','iterator','RouteParamTypes','prefix','lodash','rules','4BLpJky','route','getMethodParamTypes','PARAM','flags.presence','File','parameterIndex','find','object','WEB_ROUTER_PARAM_KEY','describe','required','metadata','文件上传-','join','response','string','substring','static/apitest','486108ycfhyV','limit','title','1295400BBPOVZ','default','boolean','get','pprefix','items','startsWith','request','keys','split','key','body','query','RULES_KEY','../types/action','defineProperty','getClassExtendedMetadata','errors','file','toString','number','format','indexOf','3RStwJs','function','max','endsWith','884255GdTxaq','routes','summary','push','type','/static/apitest','isArray','__esModule','replace','description','1183902ueANCV','search','length','ACTION_KEY','module','373732ZQcJht','listModule'];a9_0x1a05=function(){return _0x4a9fce;};return a9_0x1a05();}const a9_0x3c2853=a9_0x7706;(function(_0x521623,_0x47a762){const _0x3c21cb=a9_0x7706,_0x5ee46b=_0x521623();while(!![]){try{const _0x601dd0=parseInt(_0x3c21cb(0x205))/0x1+-parseInt(_0x3c21cb(0x1e9))/0x2*(-parseInt(_0x3c21cb(0x23d))/0x3)+parseInt(_0x3c21cb(0x210))/0x4*(-parseInt(_0x3c21cb(0x241))/0x5)+-parseInt(_0x3c21cb(0x1e4))/0x6+-parseInt(_0x3c21cb(0x1fe))/0x7+parseInt(_0x3c21cb(0x226))/0x8+parseInt(_0x3c21cb(0x223))/0x9;if(_0x601dd0===_0x47a762)break;else _0x5ee46b['push'](_0x5ee46b['shift']());}catch(_0x36499e){_0x5ee46b['push'](_0x5ee46b['shift']());}}}(a9_0x1a05,0x18f8c));const a9_0xe5c171=(function(){let _0x275c0c=!![];return function(_0x351d2e,_0x94904f){const _0x5eca50=_0x275c0c?function(){const _0x3ba585=a9_0x7706;if(_0x94904f){const _0x171c0f=_0x94904f[_0x3ba585(0x202)](_0x351d2e,arguments);return _0x94904f=null,_0x171c0f;}}:function(){};return _0x275c0c=![],_0x5eca50;};}()),a9_0xd5b4c7=a9_0xe5c171(this,function(){const _0x3d2bfb=a9_0x7706;return a9_0xd5b4c7['toString']()['search']('(((.+)+)+)+$')[_0x3d2bfb(0x239)]()[_0x3d2bfb(0x20a)](a9_0xd5b4c7)[_0x3d2bfb(0x1e5)](_0x3d2bfb(0x1f0));});a9_0xd5b4c7();'use strict';Object[a9_0x3c2853(0x235)](exports,a9_0x3c2853(0x1e1),{'value':!![]}),exports['getRoutes']=getRoutes;const lodash_1=require(a9_0x3c2853(0x20e)),validator_1=require(a9_0x3c2853(0x1f3)),core_1=require(a9_0x3c2853(0x207)),core_2=require(a9_0x3c2853(0x207)),core_3=require(a9_0x3c2853(0x207)),action_1=require(a9_0x3c2853(0x234));function a9_0x7706(_0x5af16d,_0x458f74){const _0xd7af54=a9_0x1a05();return a9_0x7706=function(_0xd5b4c7,_0xe5c171){_0xd5b4c7=_0xd5b4c7-0x1e1;let _0x1a0559=_0xd7af54[_0xd5b4c7];return _0x1a0559;},a9_0x7706(_0x5af16d,_0x458f74);}function getRoutes(_0x51513f={'prefix':'/','module':![]}){const _0x5eab84=a9_0x3c2853;var _0x3d9092,_0xf990b6;const _0x3afeb8=(0x0,core_3[_0x5eab84(0x1ea)])(action_1[_0x5eab84(0x1e7)]),_0x1381af={},_0x409bd3=Array[_0x5eab84(0x247)](_0x51513f[_0x5eab84(0x1fb)]||[])?_0x51513f[_0x5eab84(0x1fb)]||[]:[_0x51513f['filter']];_0x58d65a:for(const _0x53589a of _0x3afeb8){let _0x452411=(0x0,core_3[_0x5eab84(0x1fd)])(action_1[_0x5eab84(0x1e7)],_0x53589a),_0x1bfede=(0x0,core_3[_0x5eab84(0x1fd)])(action_1[_0x5eab84(0x208)],_0x53589a);if(_0x452411&&_0x1bfede){let _0x395108=_0x452411[_0x5eab84(0x20d)],_0x1d0653={};if(_0x51513f['module']&&(0x0,lodash_1[_0x5eab84(0x229)])(_0x452411,_0x5eab84(0x1e8),![])!=_0x51513f[_0x5eab84(0x1e8)])continue _0x58d65a;else{if(_0x51513f[_0x5eab84(0x1e8)]===![]&&!!(0x0,lodash_1['get'])(_0x452411,_0x5eab84(0x1e8),null))continue _0x58d65a;}if(_0x51513f['prefix']&&!_0x395108[_0x5eab84(0x22c)](_0x51513f['prefix']))continue _0x58d65a;_0x395108!=='/'?(_0x1d0653[_0x5eab84(0x243)]=(_0x452411===null||_0x452411===void 0x0?void 0x0:_0x452411['routerOptions']['tagName'])||(/^\//['test'](_0x395108)?_0x395108[_0x5eab84(0x22f)]('/')[0x1]:_0x395108),_0x1d0653[_0x5eab84(0x1e3)]=(_0x452411===null||_0x452411===void 0x0?void 0x0:_0x452411[_0x5eab84(0x1ec)]['description'])||_0x1d0653['summary'],_0x1d0653[_0x5eab84(0x242)]=[]):(_0x1d0653[_0x5eab84(0x243)]=(_0x452411===null||_0x452411===void 0x0?void 0x0:_0x452411[_0x5eab84(0x1ec)]['tagName'])||_0x5eab84(0x227),_0x1d0653[_0x5eab84(0x1e3)]=(_0x452411===null||_0x452411===void 0x0?void 0x0:_0x452411['routerOptions']['description'])||'',_0x1d0653[_0x5eab84(0x242)]=[]);_0x51513f[_0x5eab84(0x204)]&&(_0x1d0653['filepath']=_0x452411===null||_0x452411===void 0x0?void 0x0:_0x452411[_0x5eab84(0x204)]);(_0x452411===null||_0x452411===void 0x0?void 0x0:_0x452411['pprefix'])&&(_0x1d0653[_0x5eab84(0x20d)]=_0x452411[_0x5eab84(0x22a)]);(_0x452411===null||_0x452411===void 0x0?void 0x0:_0x452411['module'])&&(_0x1d0653['module']=_0x452411[_0x5eab84(0x1e8)]);let _0x1e1ab2=(0x0,core_3[_0x5eab84(0x1fd)])(core_2[_0x5eab84(0x1ee)],_0x53589a)||{};if(typeof _0x1bfede[Symbol[_0x5eab84(0x20b)]]==='function')for(let _0x19a2b4 of _0x1bfede){if((_0x51513f===null||_0x51513f===void 0x0?void 0x0:_0x51513f[_0x5eab84(0x1fc)])&&!(_0x19a2b4===null||_0x19a2b4===void 0x0?void 0x0:_0x19a2b4['intercept']))continue;let _0x52327b={};_0x52327b[_0x5eab84(0x201)]=_0x19a2b4['requestMethod'],_0x52327b[_0x5eab84(0x211)]=(_0x395108+_0x19a2b4[_0x5eab84(0x1f2)])[_0x5eab84(0x1e2)](/\/{2,}/g,'/'),_0x52327b[_0x5eab84(0x243)]=(_0x19a2b4===null||_0x19a2b4===void 0x0?void 0x0:_0x19a2b4[_0x5eab84(0x1f5)])||_0x1d0653[_0x5eab84(0x243)]||_0x5eab84(0x227),_0x52327b[_0x5eab84(0x1e3)]=(_0x19a2b4===null||_0x19a2b4===void 0x0?void 0x0:_0x19a2b4[_0x5eab84(0x1e3)])||'',_0x52327b['request']=[],_0x52327b[_0x5eab84(0x21f)]=getMethodResponse(_0x53589a,_0x19a2b4[_0x5eab84(0x201)]);_0x52327b[_0x5eab84(0x211)][_0x5eab84(0x240)]('/')&&(_0x52327b['route']=_0x52327b[_0x5eab84(0x211)][_0x5eab84(0x221)](0x0,_0x52327b[_0x5eab84(0x211)][_0x5eab84(0x1e6)]-0x1));if(!(0x0,lodash_1['startsWith'])(_0x52327b['route'],_0x5eab84(0x222))&&!(0x0,lodash_1['startsWith'])(_0x52327b['route'],_0x5eab84(0x246))&&_0x409bd3[_0x5eab84(0x23c)](_0x52327b[_0x5eab84(0x211)])===-0x1){if(!(_0x51513f===null||_0x51513f===void 0x0?void 0x0:_0x51513f['noreq'])){let _0x387e71=(0x0,core_3[_0x5eab84(0x212)])(new _0x53589a(),_0x19a2b4[_0x5eab84(0x201)]);for(const _0x47a436 in _0x387e71){let _0x2d2d94=(_0x3d9092=_0x1e1ab2[_0x19a2b4['method']])===null||_0x3d9092===void 0x0?void 0x0:_0x3d9092[_0x5eab84(0x217)](_0x44b039=>_0x44b039['parameterIndex']==_0x47a436&&_0x44b039[_0x5eab84(0x230)]===core_2[_0x5eab84(0x219)]&&(_0x44b039===null||_0x44b039===void 0x0?void 0x0:_0x44b039[_0x5eab84(0x21c)]));if(_0x2d2d94===null||_0x2d2d94===void 0x0?void 0x0:_0x2d2d94[_0x5eab84(0x21c)]){let _0x46aed3=convertTypeToString(_0x2d2d94['metadata'][_0x5eab84(0x245)]||0x0);if(['query',_0x5eab84(0x231)][_0x5eab84(0x23c)](_0x46aed3)!=-0x1&&_0x2d2d94[_0x5eab84(0x21c)][_0x5eab84(0x1fa)][_0x5eab84(0x23c)](':')==-0x1&&!_0x52327b[_0x5eab84(0x22d)][_0x5eab84(0x217)](_0x285079=>_0x285079['key']==_0x2d2d94['metadata']['propertyData']))_0x52327b[_0x5eab84(0x22d)][_0x5eab84(0x244)]({'key':_0x2d2d94['metadata']['propertyData'],'title':_0x2d2d94[_0x5eab84(0x21c)][_0x5eab84(0x1fa)],'type':convertSchemaType(_0x387e71[_0x2d2d94[_0x5eab84(0x216)]]['name']),'required':![],'default':'','desc':''});else{if(_0x46aed3==_0x5eab84(0x238)){let _0x4be4ac=((_0xf990b6=_0x2d2d94===null||_0x2d2d94===void 0x0?void 0x0:_0x2d2d94['metadata'])===null||_0xf990b6===void 0x0?void 0x0:_0xf990b6[_0x5eab84(0x1fa)])||_0x5eab84(0x238);_0x4be4ac[_0x5eab84(0x23c)](':')==-0x1&&!_0x52327b['request'][_0x5eab84(0x217)](_0x1f954=>_0x1f954[_0x5eab84(0x230)]==_0x4be4ac&&_0x1f954[_0x5eab84(0x245)]=='file')&&_0x52327b[_0x5eab84(0x22d)][_0x5eab84(0x244)]({'key':_0x4be4ac,'title':_0x5eab84(0x21d)+_0x4be4ac,'type':'file','required':!![],'default':'','desc':''});}}}else{const _0x1ac47c=(0x0,core_3[_0x5eab84(0x236)])(validator_1[_0x5eab84(0x233)],_0x387e71[_0x47a436]);_0x1ac47c&&_0x52327b['request'][_0x5eab84(0x244)](...getJoiRequest(_0x1ac47c));}}}_0x1d0653[_0x5eab84(0x242)][_0x5eab84(0x244)](_0x52327b);}}if(_0x1d0653[_0x5eab84(0x242)][_0x5eab84(0x1e6)]>0x0){let _0x2e64a2=_0x1381af[_0x395108];_0x2e64a2?(_0x2e64a2['summary']!=_0x1d0653[_0x5eab84(0x243)]&&(_0x2e64a2[_0x5eab84(0x243)]=_0x2e64a2[_0x5eab84(0x243)]+','+_0x1d0653[_0x5eab84(0x243)]),_0x2e64a2['description']!=_0x1d0653[_0x5eab84(0x1e3)]&&(_0x2e64a2[_0x5eab84(0x1e3)]=_0x2e64a2[_0x5eab84(0x1e3)]+','+_0x1d0653[_0x5eab84(0x1e3)]),_0x2e64a2[_0x5eab84(0x242)]=_0x2e64a2[_0x5eab84(0x242)][_0x5eab84(0x1ef)](_0x1d0653['routes']),_0x1381af[_0x395108]=_0x2e64a2):_0x1381af[_0x395108]=_0x1d0653;}}}return _0x1381af;}function getJoiRequest(_0x32012a){const _0x1f811d=a9_0x3c2853;var _0x581a5d,_0x113f6f;const _0x26d566=[];for(let _0x5d8048 in _0x32012a){const _0x3671fd={'title':'','key':'','type':'','description':'','rules':{},'children':[]},_0x3e246e=typeof _0x32012a[_0x5d8048]['describe']==_0x1f811d(0x23e)?_0x32012a[_0x5d8048][_0x1f811d(0x21a)]():_0x32012a[_0x5d8048];_0x3671fd[_0x1f811d(0x230)]=_0x5d8048,_0x3671fd['type']=_0x3e246e[_0x1f811d(0x245)],_0x3671fd[_0x1f811d(0x225)]=(0x0,lodash_1['get'])(_0x3e246e,_0x1f811d(0x1f6),_0x5d8048),_0x3671fd['default']=(0x0,lodash_1[_0x1f811d(0x229)])(_0x3e246e,'flags.default',''),_0x3671fd[_0x1f811d(0x21b)]=(0x0,lodash_1['get'])(_0x3e246e,_0x1f811d(0x214),'')==_0x1f811d(0x21b),_0x3671fd[_0x1f811d(0x1e3)]=(0x0,lodash_1[_0x1f811d(0x229)])(_0x3e246e,'flags.description','');if(_0x3e246e['type']==_0x1f811d(0x218))(_0x3e246e===null||_0x3e246e===void 0x0?void 0x0:_0x3e246e[_0x1f811d(0x22e)])&&(_0x3671fd[_0x1f811d(0x206)]=getJoiRequest(_0x3e246e['keys']));else _0x3e246e[_0x1f811d(0x245)]=='array'&&_0x3e246e[_0x1f811d(0x22b)]&&Array[_0x1f811d(0x247)](_0x3e246e[_0x1f811d(0x22b)])&&(((_0x113f6f=(_0x581a5d=_0x3e246e===null||_0x3e246e===void 0x0?void 0x0:_0x3e246e[_0x1f811d(0x22b)])===null||_0x581a5d===void 0x0?void 0x0:_0x581a5d[0x0])===null||_0x113f6f===void 0x0?void 0x0:_0x113f6f['keys'])&&(_0x3671fd[_0x1f811d(0x206)]=getJoiRequest(_0x3e246e[_0x1f811d(0x22b)][0x0][_0x1f811d(0x22e)])));_0x3e246e['allow']&&Array[_0x1f811d(0x247)](_0x3e246e[_0x1f811d(0x209)])&&_0x3e246e[_0x1f811d(0x209)][_0x1f811d(0x1e6)]>0x0&&(_0x3671fd[_0x1f811d(0x1e3)]='只允许:['+_0x3e246e[_0x1f811d(0x209)][_0x1f811d(0x21e)](',')+'];'+_0x3671fd['description']);if(_0x3671fd[_0x1f811d(0x230)]&&_0x3671fd[_0x1f811d(0x245)]){const _0x1ad332={};for(const _0x1415d2 of _0x3e246e[_0x1f811d(0x20f)]||[]){if(_0x1415d2['name']===_0x1f811d(0x1ed)&&_0x1415d2[_0x1f811d(0x200)])_0x1ad332[_0x1f811d(0x1ed)]=_0x1415d2[_0x1f811d(0x200)][_0x1f811d(0x224)];else _0x1415d2['name']===_0x1f811d(0x23f)&&(_0x1ad332[_0x1f811d(0x23f)]=_0x1415d2[_0x1f811d(0x200)][_0x1f811d(0x224)]);}_0x3671fd[_0x1f811d(0x20f)]=_0x1ad332;}_0x3671fd[_0x1f811d(0x230)]&&_0x3671fd[_0x1f811d(0x225)]&&_0x26d566[_0x1f811d(0x244)](_0x3671fd);}return _0x26d566;}function convertSchemaType(_0x5abc0a){const _0x2f4745=a9_0x3c2853;switch(_0x5abc0a){case _0x2f4745(0x1f1):return'object';case _0x2f4745(0x1eb):return _0x2f4745(0x228);case'Number':return _0x2f4745(0x23a);case'String':return _0x2f4745(0x220);case _0x2f4745(0x215):return _0x2f4745(0x238);default:return'string';}}function convertTypeToString(_0x1f6326){const _0x1c8d07=a9_0x3c2853;switch(_0x1f6326){case core_1[_0x1c8d07(0x20c)][_0x1c8d07(0x1f7)]:return _0x1c8d07(0x1f4);case core_1[_0x1c8d07(0x20c)][_0x1c8d07(0x1f9)]:return _0x1c8d07(0x232);case core_1['RouteParamTypes'][_0x1c8d07(0x213)]:return _0x1c8d07(0x1f2);case core_1[_0x1c8d07(0x20c)][_0x1c8d07(0x203)]:return _0x1c8d07(0x231);case core_1[_0x1c8d07(0x20c)]['FIELDS']:case core_1['RouteParamTypes'][_0x1c8d07(0x1ff)]:case core_1['RouteParamTypes']['FILESTREAM']:return _0x1c8d07(0x238);default:return _0x1c8d07(0x1f4);}}function getMethodResponse(_0x2b2aff,_0x41fb6d){const _0x2bc30e=a9_0x3c2853,_0x52fa8c=(0x0,core_3[_0x2bc30e(0x1fd)])(action_1['ACTION_RESPONSE_KEY'],_0x2b2aff);if(!_0x52fa8c)return null;const _0x2041a2=_0x52fa8c[_0x2bc30e(0x217)](_0xc0cc39=>_0xc0cc39[_0x2bc30e(0x201)]===_0x41fb6d);if(!_0x2041a2)return null;return{'format':_0x2041a2[_0x2bc30e(0x23b)]||_0x2bc30e(0x227),'type':_0x2041a2[_0x2bc30e(0x245)],'description':_0x2041a2[_0x2bc30e(0x1e3)]||'','properties':_0x2041a2[_0x2bc30e(0x1f8)]||[],'errors':_0x2041a2[_0x2bc30e(0x237)]||[]};}
|
|
1
|
+
const a9_0x14fc1b=a9_0x14d0;function a9_0x14d0(_0x2ffe56,_0x4ce9e4){const _0x124733=a9_0x7ac8();return a9_0x14d0=function(_0x399ac4,_0x2d1330){_0x399ac4=_0x399ac4-0xab;let _0x7ac841=_0x124733[_0x399ac4];return _0x7ac841;},a9_0x14d0(_0x2ffe56,_0x4ce9e4);}(function(_0x511248,_0x5e6602){const _0x145eb4=a9_0x14d0,_0x5a5500=_0x511248();while(!![]){try{const _0xeac4f4=parseInt(_0x145eb4(0xd4))/0x1+-parseInt(_0x145eb4(0xf3))/0x2*(parseInt(_0x145eb4(0xcc))/0x3)+parseInt(_0x145eb4(0xd0))/0x4+-parseInt(_0x145eb4(0xcd))/0x5+-parseInt(_0x145eb4(0xd8))/0x6*(-parseInt(_0x145eb4(0xd1))/0x7)+-parseInt(_0x145eb4(0xc3))/0x8+-parseInt(_0x145eb4(0xc1))/0x9;if(_0xeac4f4===_0x5e6602)break;else _0x5a5500['push'](_0x5a5500['shift']());}catch(_0x575050){_0x5a5500['push'](_0x5a5500['shift']());}}}(a9_0x7ac8,0x43efb));const a9_0x2d1330=(function(){let _0x3fbd48=!![];return function(_0x21267a,_0x4aeb3c){const _0x3cabf0=_0x3fbd48?function(){const _0xb08eda=a9_0x14d0;if(_0x4aeb3c){const _0x55e4f5=_0x4aeb3c[_0xb08eda(0x105)](_0x21267a,arguments);return _0x4aeb3c=null,_0x55e4f5;}}:function(){};return _0x3fbd48=![],_0x3cabf0;};}()),a9_0x399ac4=a9_0x2d1330(this,function(){const _0xb8ac75=a9_0x14d0;return a9_0x399ac4[_0xb8ac75(0xfa)]()[_0xb8ac75(0xbb)]('(((.+)+)+)+$')[_0xb8ac75(0xfa)]()[_0xb8ac75(0x108)](a9_0x399ac4)[_0xb8ac75(0xbb)](_0xb8ac75(0xfe));});a9_0x399ac4();'use strict';Object[a9_0x14fc1b(0xac)](exports,'__esModule',{'value':!![]}),exports[a9_0x14fc1b(0xe2)]=void 0x0;const lodash_1=require(a9_0x14fc1b(0xed)),validator_1=require('@anncic-api/validator'),core_1=require('@midwayjs/core'),core_2=require(a9_0x14fc1b(0xd7)),core_3=require('@midwayjs/core'),action_1=require(a9_0x14fc1b(0xd5));function getRoutes(_0xd123a6={'prefix':'/','module':![]}){const _0x2a9a01=a9_0x14fc1b;var _0x147f18,_0x19eb7e;const _0x3713e1=(0x0,core_3['listModule'])(action_1[_0x2a9a01(0xbc)]),_0xc04c1d={},_0x52b168=Array[_0x2a9a01(0xfb)](_0xd123a6[_0x2a9a01(0xad)]||[])?_0xd123a6[_0x2a9a01(0xad)]||[]:[_0xd123a6['filter']];_0x5f7a8e:for(const _0xc0efea of _0x3713e1){let _0x2f6ada=(0x0,core_3[_0x2a9a01(0xe7)])(action_1['ACTION_KEY'],_0xc0efea),_0x323ff9=(0x0,core_3['getClassMetadata'])(action_1[_0x2a9a01(0xca)],_0xc0efea);if(_0x2f6ada&&_0x323ff9){let _0x33c4c3=_0x2f6ada[_0x2a9a01(0xdc)],_0xe7b275={};if(_0xd123a6[_0x2a9a01(0xe3)]&&(0x0,lodash_1[_0x2a9a01(0xb6)])(_0x2f6ada,_0x2a9a01(0xe3),![])!=_0xd123a6['module'])continue _0x5f7a8e;else{if(_0xd123a6['module']===![]&&!!(0x0,lodash_1[_0x2a9a01(0xb6)])(_0x2f6ada,_0x2a9a01(0xe3),null))continue _0x5f7a8e;}if(_0xd123a6[_0x2a9a01(0xdc)]&&!_0x33c4c3[_0x2a9a01(0xbd)](_0xd123a6[_0x2a9a01(0xdc)]))continue _0x5f7a8e;_0x33c4c3!=='/'?(_0xe7b275[_0x2a9a01(0x102)]=(_0x2f6ada===null||_0x2f6ada===void 0x0?void 0x0:_0x2f6ada[_0x2a9a01(0xd6)]['tagName'])||(/^\//[_0x2a9a01(0xaf)](_0x33c4c3)?_0x33c4c3[_0x2a9a01(0xb7)]('/')[0x1]:_0x33c4c3),_0xe7b275['description']=(_0x2f6ada===null||_0x2f6ada===void 0x0?void 0x0:_0x2f6ada[_0x2a9a01(0xd6)]['description'])||_0xe7b275[_0x2a9a01(0x102)],_0xe7b275['routes']=[]):(_0xe7b275[_0x2a9a01(0x102)]=(_0x2f6ada===null||_0x2f6ada===void 0x0?void 0x0:_0x2f6ada[_0x2a9a01(0xd6)][_0x2a9a01(0xf9)])||'default',_0xe7b275[_0x2a9a01(0xf5)]=(_0x2f6ada===null||_0x2f6ada===void 0x0?void 0x0:_0x2f6ada[_0x2a9a01(0xd6)]['description'])||'',_0xe7b275[_0x2a9a01(0xea)]=[]);_0xd123a6[_0x2a9a01(0xe0)]&&(_0xe7b275[_0x2a9a01(0xe0)]=_0x2f6ada===null||_0x2f6ada===void 0x0?void 0x0:_0x2f6ada[_0x2a9a01(0xe0)]);(_0x2f6ada===null||_0x2f6ada===void 0x0?void 0x0:_0x2f6ada[_0x2a9a01(0xce)])&&(_0xe7b275['prefix']=_0x2f6ada[_0x2a9a01(0xce)]);(_0x2f6ada===null||_0x2f6ada===void 0x0?void 0x0:_0x2f6ada[_0x2a9a01(0xe3)])&&(_0xe7b275[_0x2a9a01(0xe3)]=_0x2f6ada[_0x2a9a01(0xe3)]);let _0x637387=(0x0,core_3['getClassMetadata'])(core_2['INJECT_CUSTOM_PARAM'],_0xc0efea)||{};if(typeof _0x323ff9[Symbol[_0x2a9a01(0xbe)]]===_0x2a9a01(0x107))for(let _0xd08f52 of _0x323ff9){if((_0xd123a6===null||_0xd123a6===void 0x0?void 0x0:_0xd123a6['intercept'])&&!(_0xd08f52===null||_0xd08f52===void 0x0?void 0x0:_0xd08f52[_0x2a9a01(0xf2)]))continue;let _0x4d3a50={};_0x4d3a50[_0x2a9a01(0xdf)]=_0xd08f52[_0x2a9a01(0x106)],_0x4d3a50[_0x2a9a01(0xe9)]=(_0x33c4c3+_0xd08f52[_0x2a9a01(0xdd)])['replace'](/\/{2,}/g,'/'),_0x4d3a50['summary']=(_0xd08f52===null||_0xd08f52===void 0x0?void 0x0:_0xd08f52['routerName'])||_0xe7b275[_0x2a9a01(0x102)]||_0x2a9a01(0x104),_0x4d3a50['description']=(_0xd08f52===null||_0xd08f52===void 0x0?void 0x0:_0xd08f52[_0x2a9a01(0xf5)])||'',_0x4d3a50['request']=[],_0x4d3a50['response']=getMethodResponse(_0xc0efea,_0xd08f52[_0x2a9a01(0xdf)]);_0x4d3a50[_0x2a9a01(0xe9)][_0x2a9a01(0xcf)]('/')&&(_0x4d3a50[_0x2a9a01(0xe9)]=_0x4d3a50['route']['substring'](0x0,_0x4d3a50[_0x2a9a01(0xe9)]['length']-0x1));if(!(0x0,lodash_1[_0x2a9a01(0xbd)])(_0x4d3a50[_0x2a9a01(0xe9)],'static/apitest')&&!(0x0,lodash_1[_0x2a9a01(0xbd)])(_0x4d3a50[_0x2a9a01(0xe9)],_0x2a9a01(0xe8))&&_0x52b168[_0x2a9a01(0xb8)](_0x4d3a50[_0x2a9a01(0xe9)])===-0x1){if(!(_0xd123a6===null||_0xd123a6===void 0x0?void 0x0:_0xd123a6[_0x2a9a01(0xf6)])){let _0x4b175c=(0x0,core_3[_0x2a9a01(0x103)])(new _0xc0efea(),_0xd08f52['method']);for(const _0x25a517 in _0x4b175c){let _0x568a59=(_0x147f18=_0x637387[_0xd08f52[_0x2a9a01(0xdf)]])===null||_0x147f18===void 0x0?void 0x0:_0x147f18[_0x2a9a01(0xb1)](_0x2f98ef=>_0x2f98ef[_0x2a9a01(0xe5)]==_0x25a517&&_0x2f98ef[_0x2a9a01(0xf1)]===core_2['WEB_ROUTER_PARAM_KEY']&&(_0x2f98ef===null||_0x2f98ef===void 0x0?void 0x0:_0x2f98ef['metadata']));if(_0x568a59===null||_0x568a59===void 0x0?void 0x0:_0x568a59['metadata']){let _0x48f854=convertTypeToString(_0x568a59[_0x2a9a01(0xba)][_0x2a9a01(0xbf)]||0x0);if(['query',_0x2a9a01(0xb2)][_0x2a9a01(0xb8)](_0x48f854)!=-0x1&&_0x568a59[_0x2a9a01(0xba)][_0x2a9a01(0xab)][_0x2a9a01(0xb8)](':')==-0x1&&!_0x4d3a50[_0x2a9a01(0xdb)][_0x2a9a01(0xb1)](_0x4ef0f8=>_0x4ef0f8[_0x2a9a01(0xf1)]==_0x568a59[_0x2a9a01(0xba)][_0x2a9a01(0xab)]))_0x4d3a50[_0x2a9a01(0xdb)][_0x2a9a01(0xf8)]({'key':_0x568a59[_0x2a9a01(0xba)][_0x2a9a01(0xab)],'title':_0x568a59[_0x2a9a01(0xba)][_0x2a9a01(0xab)],'type':convertSchemaType(_0x4b175c[_0x568a59['parameterIndex']][_0x2a9a01(0xe1)]),'required':![],'default':'','desc':''});else{if(_0x48f854==_0x2a9a01(0xc0)){let _0x3ec1ea=((_0x19eb7e=_0x568a59===null||_0x568a59===void 0x0?void 0x0:_0x568a59[_0x2a9a01(0xba)])===null||_0x19eb7e===void 0x0?void 0x0:_0x19eb7e['propertyData'])||_0x2a9a01(0xc0);_0x3ec1ea['indexOf'](':')==-0x1&&!_0x4d3a50[_0x2a9a01(0xdb)]['find'](_0x3df650=>_0x3df650[_0x2a9a01(0xf1)]==_0x3ec1ea&&_0x3df650['type']==_0x2a9a01(0xc0))&&_0x4d3a50[_0x2a9a01(0xdb)]['push']({'key':_0x3ec1ea,'title':'文件上传-'+_0x3ec1ea,'type':_0x2a9a01(0xc0),'required':!![],'default':'','desc':''});}}}else{const _0xe4b8a8=(0x0,core_3['getClassExtendedMetadata'])(validator_1[_0x2a9a01(0xda)],_0x4b175c[_0x25a517]);_0xe4b8a8&&_0x4d3a50[_0x2a9a01(0xdb)][_0x2a9a01(0xf8)](...getJoiRequest(_0xe4b8a8));}}}_0xe7b275[_0x2a9a01(0xea)][_0x2a9a01(0xf8)](_0x4d3a50);}}if(_0xe7b275[_0x2a9a01(0xea)][_0x2a9a01(0xee)]>0x0){let _0x522a77=_0xc04c1d[_0x33c4c3];_0x522a77?(_0x522a77[_0x2a9a01(0x102)]!=_0xe7b275[_0x2a9a01(0x102)]&&(_0x522a77[_0x2a9a01(0x102)]=_0x522a77[_0x2a9a01(0x102)]+','+_0xe7b275['summary']),_0x522a77[_0x2a9a01(0xf5)]!=_0xe7b275[_0x2a9a01(0xf5)]&&(_0x522a77[_0x2a9a01(0xf5)]=_0x522a77[_0x2a9a01(0xf5)]+','+_0xe7b275[_0x2a9a01(0xf5)]),_0x522a77[_0x2a9a01(0xea)]=_0x522a77[_0x2a9a01(0xea)][_0x2a9a01(0xd2)](_0xe7b275[_0x2a9a01(0xea)]),_0xc04c1d[_0x33c4c3]=_0x522a77):_0xc04c1d[_0x33c4c3]=_0xe7b275;}}}return _0xc04c1d;}exports['getRoutes']=getRoutes;function getJoiRequest(_0x2ad4c4){const _0x3bb4c3=a9_0x14fc1b;var _0x5135c7,_0x552e25;const _0x5beb2c=[];for(let _0x1fa952 in _0x2ad4c4){const _0xb16939={'title':'','key':'','type':'','description':'','rules':{},'children':[]},_0x4341=typeof _0x2ad4c4[_0x1fa952]['describe']=='function'?_0x2ad4c4[_0x1fa952][_0x3bb4c3(0xec)]():_0x2ad4c4[_0x1fa952];_0xb16939['key']=_0x1fa952,_0xb16939[_0x3bb4c3(0xbf)]=_0x4341['type'],_0xb16939[_0x3bb4c3(0xfc)]=(0x0,lodash_1[_0x3bb4c3(0xb6)])(_0x4341,'flags.label',_0x1fa952),_0xb16939[_0x3bb4c3(0x104)]=(0x0,lodash_1[_0x3bb4c3(0xb6)])(_0x4341,'flags.default',''),_0xb16939[_0x3bb4c3(0xc7)]=(0x0,lodash_1['get'])(_0x4341,_0x3bb4c3(0xfd),'')==_0x3bb4c3(0xc7),_0xb16939['description']=(0x0,lodash_1['get'])(_0x4341,'flags.description','');if(_0x4341[_0x3bb4c3(0xbf)]=='object')(_0x4341===null||_0x4341===void 0x0?void 0x0:_0x4341[_0x3bb4c3(0x100)])&&(_0xb16939[_0x3bb4c3(0xc2)]=getJoiRequest(_0x4341[_0x3bb4c3(0x100)]));else _0x4341['type']==_0x3bb4c3(0xff)&&_0x4341['items']&&Array[_0x3bb4c3(0xfb)](_0x4341[_0x3bb4c3(0xf0)])&&(((_0x552e25=(_0x5135c7=_0x4341===null||_0x4341===void 0x0?void 0x0:_0x4341[_0x3bb4c3(0xf0)])===null||_0x5135c7===void 0x0?void 0x0:_0x5135c7[0x0])===null||_0x552e25===void 0x0?void 0x0:_0x552e25[_0x3bb4c3(0x100)])&&(_0xb16939[_0x3bb4c3(0xc2)]=getJoiRequest(_0x4341[_0x3bb4c3(0xf0)][0x0][_0x3bb4c3(0x100)])));_0x4341['allow']&&Array[_0x3bb4c3(0xfb)](_0x4341[_0x3bb4c3(0xde)])&&_0x4341[_0x3bb4c3(0xde)][_0x3bb4c3(0xee)]>0x0&&(_0xb16939[_0x3bb4c3(0xf5)]=_0x3bb4c3(0xd3)+_0x4341[_0x3bb4c3(0xde)]['join'](',')+'];'+_0xb16939[_0x3bb4c3(0xf5)]);if(_0xb16939[_0x3bb4c3(0xf1)]&&_0xb16939['type']){const _0x54459e={};for(const _0x25b8fc of _0x4341[_0x3bb4c3(0xb4)]||[]){if(_0x25b8fc['name']==='min'&&_0x25b8fc[_0x3bb4c3(0xb0)])_0x54459e[_0x3bb4c3(0xae)]=_0x25b8fc[_0x3bb4c3(0xb0)][_0x3bb4c3(0xb3)];else _0x25b8fc[_0x3bb4c3(0xe1)]==='max'&&(_0x54459e[_0x3bb4c3(0xeb)]=_0x25b8fc[_0x3bb4c3(0xb0)][_0x3bb4c3(0xb3)]);}_0xb16939['rules']=_0x54459e;}_0xb16939['key']&&_0xb16939[_0x3bb4c3(0xfc)]&&_0x5beb2c['push'](_0xb16939);}return _0x5beb2c;}function a9_0x7ac8(){const _0xf18ce6=['args','find','body','limit','rules','object','get','split','indexOf','QUERY','metadata','search','ACTION_KEY','startsWith','iterator','type','file','2284416EPLgoh','children','720072ImNElk','format','properties','errors','required','number','Boolean','ACTION_ROUTE_KEY','header','877767VYFZnw','1887175ePLExX','pprefix','endsWith','1676884CJUgaH','7JQJYRT','concat','只允许:[','451002ZTbQZc','../types/action','routerOptions','@midwayjs/core','2531406AhPdnL','string','RULES_KEY','request','prefix','path','allow','method','filepath','name','getRoutes','module','query','parameterIndex','FIELDS','getClassMetadata','/static/apitest','route','routes','max','describe','lodash','length','RouteParamTypes','items','key','intercept','2rtHdHG','boolean','description','noreq','BODY','push','tagName','toString','isArray','title','flags.presence','(((.+)+)+)+$','array','keys','File','summary','getMethodParamTypes','default','apply','requestMethod','function','constructor','propertyData','defineProperty','filter','min','test'];a9_0x7ac8=function(){return _0xf18ce6;};return a9_0x7ac8();}function convertSchemaType(_0xf33fd9){const _0x2381d5=a9_0x14fc1b;switch(_0xf33fd9){case'Object':return _0x2381d5(0xb5);case _0x2381d5(0xc9):return _0x2381d5(0xf4);case'Number':return _0x2381d5(0xc8);case'String':return _0x2381d5(0xd9);case _0x2381d5(0x101):return'file';default:return _0x2381d5(0xd9);}}function convertTypeToString(_0x53af61){const _0x40c58c=a9_0x14fc1b;switch(_0x53af61){case core_1[_0x40c58c(0xef)]['HEADERS']:return _0x40c58c(0xcb);case core_1[_0x40c58c(0xef)][_0x40c58c(0xb9)]:return _0x40c58c(0xe4);case core_1[_0x40c58c(0xef)]['PARAM']:return _0x40c58c(0xdd);case core_1[_0x40c58c(0xef)][_0x40c58c(0xf7)]:return'body';case core_1[_0x40c58c(0xef)][_0x40c58c(0xe6)]:case core_1['RouteParamTypes']['FILESSTREAM']:case core_1[_0x40c58c(0xef)]['FILESTREAM']:return _0x40c58c(0xc0);default:return _0x40c58c(0xcb);}}function getMethodResponse(_0x5ece1b,_0x19c388){const _0x4dbf53=a9_0x14fc1b,_0x38281f=(0x0,core_3[_0x4dbf53(0xe7)])(action_1['ACTION_RESPONSE_KEY'],_0x5ece1b);if(!_0x38281f)return null;const _0x481fc2=_0x38281f[_0x4dbf53(0xb1)](_0x60fc8e=>_0x60fc8e[_0x4dbf53(0xdf)]===_0x19c388);if(!_0x481fc2)return null;return{'format':_0x481fc2[_0x4dbf53(0xc4)]||'default','type':_0x481fc2['type'],'description':_0x481fc2[_0x4dbf53(0xf5)]||'','properties':_0x481fc2[_0x4dbf53(0xc5)]||[],'errors':_0x481fc2[_0x4dbf53(0xc6)]||[]};}
|
|
@@ -1,40 +1,40 @@
|
|
|
1
|
-
import { getRouteOption } from "./getRoutes";
|
|
2
|
-
export interface SwaggerDefinition {
|
|
3
|
-
type: string;
|
|
4
|
-
properties?: {
|
|
5
|
-
[key: string]: SchemaObject;
|
|
6
|
-
};
|
|
7
|
-
required?: string[];
|
|
8
|
-
description?: string;
|
|
9
|
-
items?: SchemaObject;
|
|
10
|
-
}
|
|
11
|
-
export interface SwaggerJsonOption extends getRouteOption {
|
|
12
|
-
host?: string;
|
|
13
|
-
basePath?: string;
|
|
14
|
-
schemes?: string[];
|
|
15
|
-
title?: string;
|
|
16
|
-
description?: string;
|
|
17
|
-
version?: string;
|
|
18
|
-
definitions?: {
|
|
19
|
-
[key: string]: SwaggerDefinition;
|
|
20
|
-
};
|
|
21
|
-
extraDefinitions?: {
|
|
22
|
-
[key: string]: SwaggerDefinition;
|
|
23
|
-
};
|
|
24
|
-
}
|
|
25
|
-
interface SchemaObject {
|
|
26
|
-
type?: string;
|
|
27
|
-
format?: string;
|
|
28
|
-
description?: string;
|
|
29
|
-
default?: string | number | boolean;
|
|
30
|
-
properties?: Record<string, SchemaObject>;
|
|
31
|
-
items?: SchemaObject;
|
|
32
|
-
required?: string[];
|
|
33
|
-
minimum?: number;
|
|
34
|
-
maximum?: number;
|
|
35
|
-
enum?: (string | number)[];
|
|
36
|
-
oneOf?: SchemaObject[];
|
|
37
|
-
$ref?: string;
|
|
38
|
-
}
|
|
39
|
-
export declare function getSwaggerJson(filter?: SwaggerJsonOption): Record<string, any>;
|
|
40
|
-
export {};
|
|
1
|
+
import { getRouteOption } from "./getRoutes";
|
|
2
|
+
export interface SwaggerDefinition {
|
|
3
|
+
type: string;
|
|
4
|
+
properties?: {
|
|
5
|
+
[key: string]: SchemaObject;
|
|
6
|
+
};
|
|
7
|
+
required?: string[];
|
|
8
|
+
description?: string;
|
|
9
|
+
items?: SchemaObject;
|
|
10
|
+
}
|
|
11
|
+
export interface SwaggerJsonOption extends getRouteOption {
|
|
12
|
+
host?: string;
|
|
13
|
+
basePath?: string;
|
|
14
|
+
schemes?: string[];
|
|
15
|
+
title?: string;
|
|
16
|
+
description?: string;
|
|
17
|
+
version?: string;
|
|
18
|
+
definitions?: {
|
|
19
|
+
[key: string]: SwaggerDefinition;
|
|
20
|
+
};
|
|
21
|
+
extraDefinitions?: {
|
|
22
|
+
[key: string]: SwaggerDefinition;
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
interface SchemaObject {
|
|
26
|
+
type?: string;
|
|
27
|
+
format?: string;
|
|
28
|
+
description?: string;
|
|
29
|
+
default?: string | number | boolean;
|
|
30
|
+
properties?: Record<string, SchemaObject>;
|
|
31
|
+
items?: SchemaObject;
|
|
32
|
+
required?: string[];
|
|
33
|
+
minimum?: number;
|
|
34
|
+
maximum?: number;
|
|
35
|
+
enum?: (string | number)[];
|
|
36
|
+
oneOf?: SchemaObject[];
|
|
37
|
+
$ref?: string;
|
|
38
|
+
}
|
|
39
|
+
export declare function getSwaggerJson(filter?: SwaggerJsonOption): Record<string, any>;
|
|
40
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a10_0x460c3f=a10_0x2c5a;(function(_0xa2c0d6,_0x335585){const _0x4a8852=a10_0x2c5a,_0x7b91b3=_0xa2c0d6();while(!![]){try{const _0x33d7b7=-parseInt(_0x4a8852(0xbe))/0x1+parseInt(_0x4a8852(0xba))/0x2*(parseInt(_0x4a8852(0x9a))/0x3)+-parseInt(_0x4a8852(0x8b))/0x4+-parseInt(_0x4a8852(0xbb))/0x5+parseInt(_0x4a8852(0xd7))/0x6+parseInt(_0x4a8852(0x8e))/0x7+parseInt(_0x4a8852(0xaf))/0x8;if(_0x33d7b7===_0x335585)break;else _0x7b91b3['push'](_0x7b91b3['shift']());}catch(_0x47bcae){_0x7b91b3['push'](_0x7b91b3['shift']());}}}(a10_0x359c,0x82bb5));function a10_0x2c5a(_0x3c912f,_0x15b706){const _0x48b38b=a10_0x359c();return a10_0x2c5a=function(_0x19545d,_0x5aeb83){_0x19545d=_0x19545d-0x87;let _0x359c4c=_0x48b38b[_0x19545d];return _0x359c4c;},a10_0x2c5a(_0x3c912f,_0x15b706);}const a10_0x5aeb83=(function(){let _0x4427ea=!![];return function(_0x147862,_0x2f04bd){const _0x1200dd=_0x4427ea?function(){const _0x403849=a10_0x2c5a;if(_0x2f04bd){const _0x644746=_0x2f04bd[_0x403849(0xa3)](_0x147862,arguments);return _0x2f04bd=null,_0x644746;}}:function(){};return _0x4427ea=![],_0x1200dd;};}()),a10_0x19545d=a10_0x5aeb83(this,function(){const _0x5d86c2=a10_0x2c5a;return a10_0x19545d[_0x5d86c2(0x9b)]()[_0x5d86c2(0xa7)](_0x5d86c2(0xa6))[_0x5d86c2(0x9b)]()['constructor'](a10_0x19545d)[_0x5d86c2(0xa7)](_0x5d86c2(0xa6));});a10_0x19545d();'use strict';Object[a10_0x460c3f(0xd2)](exports,a10_0x460c3f(0xc6),{'value':!![]}),exports[a10_0x460c3f(0xdd)]=getSwaggerJson;const getRoutes_1=require('./getRoutes'),MEDIA_TYPE_JSON=a10_0x460c3f(0x9e),MEDIA_TYPE_FORM_DATA='multipart/form-data',PARAM_IN_PATH=a10_0x460c3f(0xe0),PARAM_IN_QUERY=a10_0x460c3f(0xc4);function convertRouteToSwaggerFormat(_0x4e23e9){const _0x34da3f=a10_0x460c3f;return _0x4e23e9[_0x34da3f(0xd1)](/:([^\/]+)/g,_0x34da3f(0xd6));}const DEFAULT_DEFINITIONS={'ApiResponse':{'type':a10_0x460c3f(0x8f),'properties':{'code':{'type':a10_0x460c3f(0xe8),'description':a10_0x460c3f(0xc1)},'data':{'type':a10_0x460c3f(0x8f),'description':'返回数据'},'extra':{'type':a10_0x460c3f(0x8f),'description':a10_0x460c3f(0xac)}},'required':[a10_0x460c3f(0x96)]},'ApiResponseList':{'type':'object','properties':{'code':{'type':a10_0x460c3f(0xe8),'description':a10_0x460c3f(0xc1)},'data':{'type':a10_0x460c3f(0xe5),'items':{'type':a10_0x460c3f(0x8f)},'description':a10_0x460c3f(0xc0)},'extra':{'type':'object','properties':{'pageinfo':{'type':a10_0x460c3f(0x8f),'description':a10_0x460c3f(0x90)},'pagetotal':{'type':a10_0x460c3f(0xe8),'description':'总数量'}},'description':a10_0x460c3f(0xac)}},'required':[a10_0x460c3f(0x96)]},'ApiError':{'type':a10_0x460c3f(0x8f),'properties':{'code':{'type':a10_0x460c3f(0xe8),'description':'错误码'},'message':{'type':a10_0x460c3f(0xcc),'description':a10_0x460c3f(0xeb)}},'required':['code','message']}},BASE_RESPONSE_PROPERTIES={'code':{'type':'integer','description':a10_0x460c3f(0x91)}};function getSwaggerJson(_0x5ea460={'prefix':'/','module':![]}){const _0x2c3d8e=a10_0x460c3f,_0x535928=(0x0,getRoutes_1[_0x2c3d8e(0x92)])(_0x5ea460),_0x4ad21d=new Map(),_0x2aab38=new Map(),_0xc667b7=_0x5ea460[_0x2c3d8e(0xad)]?_0x5ea460['definitions']:{...DEFAULT_DEFINITIONS,..._0x5ea460[_0x2c3d8e(0xb5)]||{}},_0x4aebc8=_0x5ea460['host']||_0x2c3d8e(0xe2),_0x3bcb5e=_0x5ea460[_0x2c3d8e(0xc5)]||'/',_0x3aa3e3=(_0x5ea460[_0x2c3d8e(0x99)]||[_0x2c3d8e(0xb8)])[0x0],_0x84646a={'openapi':'3.0.0','info':{'title':_0x5ea460[_0x2c3d8e(0xd8)]||_0x2c3d8e(0x8c),'description':_0x5ea460[_0x2c3d8e(0xaa)]||_0x2c3d8e(0x95),'version':_0x5ea460[_0x2c3d8e(0xca)]||'1.0.0'},'servers':[{'url':_0x3aa3e3+'://'+_0x4aebc8+_0x3bcb5e,'description':_0x2c3d8e(0xe6)}],'tags':[],'paths':{},'components':{'schemas':_0xc667b7}};for(const _0x57641e in _0x535928){const _0x576392=_0x535928[_0x57641e],_0x1bdf59=(_0x576392===null||_0x576392===void 0x0?void 0x0:_0x576392[_0x2c3d8e(0xaa)])||(_0x576392===null||_0x576392===void 0x0?void 0x0:_0x576392[_0x2c3d8e(0xa9)])||_0x2c3d8e(0xd0),_0x2c58d7=buildTagHierarchy(_0x57641e,_0x576392);addTagsToMap(_0x4ad21d,_0x2c58d7,_0x1bdf59);const _0x73901c=_0x2c58d7[_0x2c58d7['length']-0x1]||'';for(const _0x20c811 of(_0x576392===null||_0x576392===void 0x0?void 0x0:_0x576392[_0x2c3d8e(0xbd)])||[]){if(!_0x20c811[_0x2c3d8e(0xb9)])continue;const _0x58c800=convertRouteToSwaggerFormat(_0x20c811[_0x2c3d8e(0xb9)]);!_0x84646a[_0x2c3d8e(0xcd)][_0x58c800]&&(_0x84646a[_0x2c3d8e(0xcd)][_0x58c800]={});if(!_0x84646a[_0x2c3d8e(0xcd)][_0x58c800][_0x20c811['method']]){const {parameters:_0x35e52c,requestBody:_0x455b17,hasBody:_0x168f8c}=buildParameters(_0x20c811[_0x2c3d8e(0xe4)]||[],_0x58c800,_0x20c811[_0x2c3d8e(0xb7)]);_0x84646a[_0x2c3d8e(0xcd)][_0x58c800][_0x20c811[_0x2c3d8e(0xb7)]]={'summary':_0x20c811['summary'],'description':(_0x20c811===null||_0x20c811===void 0x0?void 0x0:_0x20c811[_0x2c3d8e(0xaa)])||'','tags':_0x73901c?[_0x73901c]:[],'operationId':buildOperationId(_0x58c800,_0x20c811[_0x2c3d8e(0xb7)],_0x2aab38),'parameters':_0x35e52c,..._0x168f8c&&{'requestBody':_0x455b17},'responses':buildRouteResponse(_0x20c811===null||_0x20c811===void 0x0?void 0x0:_0x20c811[_0x2c3d8e(0xce)])};}}}return _0x84646a[_0x2c3d8e(0xd4)]=Array[_0x2c3d8e(0xc8)](_0x4ad21d[_0x2c3d8e(0xd9)]())[_0x2c3d8e(0xe9)](_0x194a34=>{const _0x51b538=_0x2c3d8e;var _0x3866f0;return((_0x3866f0=_0x194a34[_0x51b538(0xab)])===null||_0x3866f0===void 0x0?void 0x0:_0x3866f0[_0x51b538(0x88)]())&&_0x194a34[_0x51b538(0xab)]!=='/';})[_0x2c3d8e(0xa2)](_0x371c10=>{const _0x714901=_0x2c3d8e;var _0x2f470f;return{'name':_0x371c10[_0x714901(0xab)]['trim'](),'description':((_0x2f470f=_0x371c10['description'])===null||_0x2f470f===void 0x0?void 0x0:_0x2f470f[_0x714901(0x88)]())||_0x371c10['name'][_0x714901(0x88)]()};})[_0x2c3d8e(0xe7)]((_0x24365f,_0x2dbea7)=>_0x24365f['name'][_0x2c3d8e(0xc9)](_0x2dbea7[_0x2c3d8e(0xab)])),_0x84646a;}function buildTagHierarchy(_0x341250,_0xb800f){const _0x736374=a10_0x460c3f,_0x19f50e=(_0xb800f===null||_0xb800f===void 0x0?void 0x0:_0xb800f[_0x736374(0xde)])||null,_0x564321=(_0xb800f===null||_0xb800f===void 0x0?void 0x0:_0xb800f[_0x736374(0xdf)])||null,_0x14efd8=(_0x341250===null||_0x341250===void 0x0?void 0x0:_0x341250[_0x736374(0x88)]())||'';if(!_0x14efd8||_0x14efd8==='/')return[];if(!_0x19f50e&&!_0x564321)return[_0x14efd8];const _0x43aa5f=[];_0x19f50e&&_0x19f50e!=='/'&&_0x19f50e!==''&&_0x43aa5f[_0x736374(0x9c)](..._0x19f50e[_0x736374(0xd1)](/^\/|\/$/g,'')[_0x736374(0xe1)]('/')[_0x736374(0xe9)](Boolean));if(_0x564321&&_0x564321!==''){const _0xe4c027=_0x564321[_0x736374(0x88)]();!_0x43aa5f[_0x736374(0xb1)](_0xe4c027)&&_0x43aa5f[_0x736374(0x9c)](_0xe4c027);}let _0xaf90db=_0x14efd8;const _0x2dcc86=_0x43aa5f[_0x736374(0xa8)]('/');_0x2dcc86&&_0xaf90db[_0x736374(0xb1)](_0x2dcc86)&&(_0xaf90db=_0xaf90db['slice'](_0xaf90db[_0x736374(0xcf)](_0x2dcc86)+_0x2dcc86[_0x736374(0xdc)]));_0xaf90db=_0xaf90db[_0x736374(0xd1)](/^\/|\/$/g,'')['trim']();_0xaf90db&&_0x43aa5f[_0x736374(0x9c)](_0xaf90db);const _0x5b2423=[];let _0x575b21='';for(const _0x5877f5 of _0x43aa5f){_0x575b21=_0x575b21?_0x575b21+'/'+_0x5877f5:_0x5877f5,_0x5b2423[_0x736374(0x9c)](_0x575b21);}return _0x5b2423[_0x736374(0xdc)]>0x0?_0x5b2423:[_0x14efd8];}function addTagsToMap(_0x49796b,_0x5af3f3,_0x399e3f){const _0x361875=a10_0x460c3f;_0x5af3f3[_0x361875(0x9f)]((_0x1b4c78,_0x4a1fcc)=>{const _0x394ae1=_0x361875;if(!_0x1b4c78||_0x1b4c78==='/')return;!_0x49796b[_0x394ae1(0xdb)](_0x1b4c78)&&_0x49796b[_0x394ae1(0xb4)](_0x1b4c78,{'name':_0x1b4c78,'description':_0x4a1fcc===_0x5af3f3[_0x394ae1(0xdc)]-0x1?_0x399e3f:_0x1b4c78});});}function buildOperationId(_0x5ce8d8,_0x4c70b1,_0x4a9285){const _0x2e9c67=a10_0x460c3f,_0x5ed0a9=_0x5ce8d8[_0x2e9c67(0xe1)]('/')[_0x2e9c67(0xe9)](Boolean)[_0x2e9c67(0xa2)](_0x51ac2b=>{const _0x573255=_0x2e9c67,_0x464423=_0x51ac2b[_0x573255(0x87)](/(?<=\{)[^\/]+(?=\})/);return _0x464423?_0x464423[0x0]:_0x51ac2b;})['filter'](_0x46cf88=>_0x46cf88[_0x2e9c67(0xd1)](/[^a-zA-Z0-9]/g,'')),_0x272a11=_0x5ed0a9[_0x2e9c67(0xa2)](_0x2d9274=>_0x2d9274[_0x2e9c67(0xae)](0x0)[_0x2e9c67(0xa1)]()+_0x2d9274[_0x2e9c67(0xc7)](0x1))['join'](''),_0x200756=_0x272a11||_0x2e9c67(0xc3),_0x117556=_0x4a9285['get'](_0x200756)||0x0;return _0x4a9285['set'](_0x200756,_0x117556+0x1),_0x117556>0x0?''+_0x200756+(_0x4c70b1[_0x2e9c67(0xae)](0x0)[_0x2e9c67(0xa1)]()+_0x4c70b1[_0x2e9c67(0xc7)](0x1)):_0x200756;}function buildParameters(_0x23c5d3,_0x1629b9,_0x591cb6=a10_0x460c3f(0x93)){const _0x18b3da=a10_0x460c3f;var _0x8176ed;const _0x4ee693=[],_0x2f8bf3=[],_0x2e4ff7=[],_0x2bfff3=[_0x18b3da(0xa4),_0x18b3da(0xbf),'PATCH'][_0x18b3da(0xb1)](_0x591cb6[_0x18b3da(0xa1)]()),_0x1f0427=_0x1629b9['match'](/(?<=\{)[^\/]+(?=\})/g)||[];for(const _0x183dbc of _0x1f0427){_0x4ee693[_0x18b3da(0x9c)]({'name':_0x183dbc,'in':PARAM_IN_PATH,'required':!![],'schema':{'type':_0x18b3da(0xcc)},'description':'路由参数:\x20'+_0x183dbc});}for(const _0x40ef0a of _0x23c5d3){switch(_0x40ef0a['type']){case'file':_0x2e4ff7[_0x18b3da(0x9c)](_0x40ef0a);break;case _0x18b3da(0xc4):_0x4ee693[_0x18b3da(0x9c)]({'name':_0x40ef0a[_0x18b3da(0xcb)],'in':PARAM_IN_QUERY,'required':_0x40ef0a[_0x18b3da(0xa5)]||![],'schema':normalizeTypeSchema(_0x40ef0a,![]),'description':_0x40ef0a['description']||_0x40ef0a[_0x18b3da(0xd8)]||_0x40ef0a['key']});break;case _0x18b3da(0xe0):break;case'body':_0x2f8bf3[_0x18b3da(0x9c)](_0x40ef0a);break;default:if(((_0x8176ed=_0x40ef0a[_0x18b3da(0x8a)])===null||_0x8176ed===void 0x0?void 0x0:_0x8176ed['length'])>0x0)_0x2f8bf3[_0x18b3da(0x9c)](_0x40ef0a);else _0x2bfff3?_0x2f8bf3[_0x18b3da(0x9c)](_0x40ef0a):_0x4ee693[_0x18b3da(0x9c)]({'name':_0x40ef0a[_0x18b3da(0xcb)],'in':PARAM_IN_QUERY,'required':_0x40ef0a[_0x18b3da(0xa5)]||![],'schema':normalizeTypeSchema(_0x40ef0a,![]),'description':_0x40ef0a[_0x18b3da(0xaa)]||_0x40ef0a[_0x18b3da(0xd8)]||_0x40ef0a['key']});}}if(_0x2e4ff7[_0x18b3da(0xdc)]>0x0)return{'parameters':_0x4ee693,'requestBody':{'content':{[MEDIA_TYPE_FORM_DATA]:{'schema':buildMultipartFormDataSchema([..._0x2e4ff7,..._0x2f8bf3])}},'required':!![]},'hasBody':!![]};if(_0x2f8bf3[_0x18b3da(0xdc)]>0x0){const _0x24448f=_0x2f8bf3[_0x18b3da(0xe9)](_0x255db6=>_0x255db6[_0x18b3da(0xa5)])[_0x18b3da(0xa2)](_0x1a0f9f=>_0x1a0f9f[_0x18b3da(0xcb)]),_0x25c454=buildProperties(_0x2f8bf3,![]);return{'parameters':_0x4ee693,'requestBody':{'content':{[MEDIA_TYPE_JSON]:{'schema':{'type':_0x18b3da(0x8f),'properties':_0x25c454,..._0x24448f['length']>0x0&&{'required':_0x24448f}}}},'required':_0x2f8bf3[_0x18b3da(0x97)](_0x307b82=>_0x307b82['required'])},'hasBody':!![]};}return{'parameters':_0x4ee693,'hasBody':![]};}function buildMultipartFormDataSchema(_0x56e5e5){const _0x44c152=a10_0x460c3f,_0x2c021e={},_0x4ce4df=[];for(const _0x2630bc of _0x56e5e5){const _0x57c524=_0x2630bc[_0x44c152(0xb2)]===_0x44c152(0xe3);_0x2c021e[_0x2630bc['key']]=_0x57c524?{'type':_0x44c152(0xcc),'format':_0x44c152(0xc2)}:normalizeTypeSchema(_0x2630bc,![]);if(_0x2630bc[_0x44c152(0xa5)])_0x4ce4df[_0x44c152(0x9c)](_0x2630bc[_0x44c152(0xcb)]);}const _0x239467={'type':'object','properties':_0x2c021e};if(_0x4ce4df[_0x44c152(0xdc)]>0x0)_0x239467[_0x44c152(0xa5)]=_0x4ce4df;return _0x239467;}function a10_0x359c(){const _0x2bcc71=['default','replace','defineProperty','max','tags','message','{$1}','5360988PJIWlV','title','values','custom','has','length','getSwaggerJson','prefix','module','path','split','localhost:7001','file','request','array','默认服务器','sort','integer','filter','page','错误信息','match','trim','#/components/schemas/ApiResponse','children','411620QSbyTj','接口文档','format','3809589oyTnOn','object','分页参数','状态码,0表示成功','getRoutes','GET','#/components/schemas/ApiError','本接口文档由API自动解析生成','code','some','#/components/schemas/ApiResponseList','schemes','3RNrJox','toString','push','errors','application/json','forEach','rules','toUpperCase','map','apply','POST','required','(((.+)+)+)+$','search','join','summary','description','name','附加数据,如分页信息','definitions','charAt','1551600rnJXfR','请求成功','includes','type','min','set','extraDefinitions','properties','method','http','route','1805766hUlVZU','4310105bfNlvw','date','routes','1034155QObTnv','PUT','返回数据列表','状态码,0表示成功,其他为错误码','binary','root','query','basePath','__esModule','slice','from','localeCompare','version','key','string','paths','response','indexOf'];a10_0x359c=function(){return _0x2bcc71;};return a10_0x359c();}function buildRouteResponse(_0x4c8418){const _0x2fd44a=a10_0x460c3f;var _0x57a1f1;if(!_0x4c8418)return{'description':_0x2fd44a(0xb0),'content':{[MEDIA_TYPE_JSON]:{'schema':{'oneOf':[{'$ref':_0x2fd44a(0x89)},{'$ref':_0x2fd44a(0x98)},{'$ref':_0x2fd44a(0x94)}]}}}};const _0x1a91a6=_0x4c8418[_0x2fd44a(0x8d)]||_0x2fd44a(0xd0),_0x40e1f7=[];return _0x1a91a6===_0x2fd44a(0xda)?_0x40e1f7['push']({'type':_0x2fd44a(0x8f),'properties':buildProperties(_0x4c8418['properties']||[],!![])}):_0x40e1f7[_0x2fd44a(0x9c)](buildDefaultResponseSchema(_0x4c8418)),((_0x57a1f1=_0x4c8418[_0x2fd44a(0x9d)])===null||_0x57a1f1===void 0x0?void 0x0:_0x57a1f1[_0x2fd44a(0xdc)])>0x0&&_0x40e1f7[_0x2fd44a(0x9c)](..._0x4c8418['errors'][_0x2fd44a(0xa2)](_0x3ee8c6=>({'type':_0x2fd44a(0x8f),'properties':{'code':{'type':'integer','description':'错误码:\x20'+_0x3ee8c6[_0x2fd44a(0x96)]},'message':{'type':'string','description':_0x3ee8c6[_0x2fd44a(0xd5)]}},'example':{'code':_0x3ee8c6[_0x2fd44a(0x96)],'message':_0x3ee8c6[_0x2fd44a(0xd5)]}}))),{'description':_0x4c8418[_0x2fd44a(0xaa)]||_0x2fd44a(0xb0),'content':{[MEDIA_TYPE_JSON]:{'schema':_0x40e1f7[_0x2fd44a(0xdc)]===0x1?_0x40e1f7[0x0]:{'oneOf':_0x40e1f7}}}};}function buildDefaultResponseSchema(_0x3a6592){const _0x2167e4=a10_0x460c3f,_0x2a5c3d=buildProperties(_0x3a6592[_0x2167e4(0xb6)]||[],!![]);if(_0x3a6592['type']===_0x2167e4(0xea))return{'type':_0x2167e4(0x8f),'properties':{...BASE_RESPONSE_PROPERTIES,'data':{'type':_0x2167e4(0xe5),'items':_0x2a5c3d,'description':_0x2167e4(0xc0)},'extra':{'type':_0x2167e4(0x8f),'properties':{'pageinfo':{'type':_0x2167e4(0x8f),'description':_0x2167e4(0x90)},'pagetotal':{'type':_0x2167e4(0xe8),'description':'总数量'}}}},'required':[_0x2167e4(0x96)]};if(_0x3a6592[_0x2167e4(0xb2)]===_0x2167e4(0xe5))return{'type':_0x2167e4(0x8f),'properties':{...BASE_RESPONSE_PROPERTIES,'data':{'type':_0x2167e4(0xe5),'items':_0x2a5c3d,'description':_0x2167e4(0xc0)}},'required':[_0x2167e4(0x96)]};return{'type':_0x2167e4(0x8f),'properties':{...BASE_RESPONSE_PROPERTIES,'data':_0x2a5c3d},'required':[_0x2167e4(0x96)]};}function normalizeTypeSchema(_0x2ad8b3,_0x33ceba=![]){const _0x52ff61=a10_0x460c3f;var _0x3f33f7,_0x24b760,_0x522d2b,_0x3ae3cb;const _0x267955=_0x2ad8b3['type']||_0x52ff61(0xcc),_0x179966=_0x33ceba?_0x2ad8b3[_0x52ff61(0xaa)]||_0x2ad8b3[_0x52ff61(0xcb)]:_0x2ad8b3['description']||_0x2ad8b3[_0x52ff61(0xd8)]||_0x2ad8b3['key'];if(_0x267955==='date'){const _0x5db97c={'type':_0x52ff61(0xcc),'format':_0x52ff61(0xbc),'description':_0x179966};return _0x2ad8b3[_0x52ff61(0xd0)]!==undefined&&_0x2ad8b3['default']!==''&&(_0x5db97c['default']=_0x2ad8b3[_0x52ff61(0xd0)]),_0x5db97c;}if(_0x267955===_0x52ff61(0xe5)){const _0x2ae283=((_0x3f33f7=_0x2ad8b3['children'])===null||_0x3f33f7===void 0x0?void 0x0:_0x3f33f7[_0x52ff61(0xdc)])>0x0?buildProperties(_0x2ad8b3[_0x52ff61(0x8a)],_0x33ceba):{'type':_0x52ff61(0xcc)};return{'type':'array','items':_0x2ae283,'description':_0x179966};}if(_0x267955===_0x52ff61(0x8f)){const _0x1f2bf5=((_0x24b760=_0x2ad8b3['children'])===null||_0x24b760===void 0x0?void 0x0:_0x24b760[_0x52ff61(0xdc)])>0x0?buildProperties(_0x2ad8b3[_0x52ff61(0x8a)],_0x33ceba):{};return{'type':_0x52ff61(0x8f),'properties':_0x1f2bf5,'description':_0x179966};}const _0x42348a={'type':_0x267955,'description':_0x179966};return _0x2ad8b3['default']!==undefined&&_0x2ad8b3[_0x52ff61(0xd0)]!==''&&(_0x42348a[_0x52ff61(0xd0)]=_0x2ad8b3[_0x52ff61(0xd0)]),((_0x522d2b=_0x2ad8b3['rules'])===null||_0x522d2b===void 0x0?void 0x0:_0x522d2b[_0x52ff61(0xb3)])!==undefined&&(_0x42348a['minimum']=_0x2ad8b3[_0x52ff61(0xa0)]['min']),((_0x3ae3cb=_0x2ad8b3[_0x52ff61(0xa0)])===null||_0x3ae3cb===void 0x0?void 0x0:_0x3ae3cb[_0x52ff61(0xd3)])!==undefined&&(_0x42348a['maximum']=_0x2ad8b3[_0x52ff61(0xa0)]['max']),_0x42348a;}function buildProperties(_0xa56344,_0x5aa13d=![]){const _0x5e441d=a10_0x460c3f;if(!_0xa56344||_0xa56344['length']===0x0)return{};const _0x9f0162={};for(const _0xe17162 of _0xa56344){_0x9f0162[_0xe17162[_0x5e441d(0xcb)]]=normalizeTypeSchema(_0xe17162,_0x5aa13d);}return _0x9f0162;}
|
|
1
|
+
const a10_0x5be8c0=a10_0x2332;(function(_0x35e577,_0x28ed2f){const _0x5775ed=a10_0x2332,_0x4dcdcb=_0x35e577();while(!![]){try{const _0x42e4b2=-parseInt(_0x5775ed(0xb3))/0x1+-parseInt(_0x5775ed(0xc2))/0x2*(-parseInt(_0x5775ed(0xc6))/0x3)+parseInt(_0x5775ed(0xcd))/0x4+-parseInt(_0x5775ed(0xa6))/0x5*(parseInt(_0x5775ed(0xdd))/0x6)+parseInt(_0x5775ed(0xac))/0x7+-parseInt(_0x5775ed(0xe3))/0x8*(-parseInt(_0x5775ed(0xab))/0x9)+-parseInt(_0x5775ed(0x10a))/0xa;if(_0x42e4b2===_0x28ed2f)break;else _0x4dcdcb['push'](_0x4dcdcb['shift']());}catch(_0x420753){_0x4dcdcb['push'](_0x4dcdcb['shift']());}}}(a10_0x1db7,0xefa18));const a10_0x2fca35=(function(){let _0x5e1d9a=!![];return function(_0x5ddf3c,_0x5de422){const _0x203384=_0x5e1d9a?function(){const _0x489895=a10_0x2332;if(_0x5de422){const _0x4f50c2=_0x5de422[_0x489895(0xca)](_0x5ddf3c,arguments);return _0x5de422=null,_0x4f50c2;}}:function(){};return _0x5e1d9a=![],_0x203384;};}()),a10_0x795119=a10_0x2fca35(this,function(){const _0x40faa8=a10_0x2332;return a10_0x795119[_0x40faa8(0xb6)]()[_0x40faa8(0x108)](_0x40faa8(0xa4))[_0x40faa8(0xb6)]()['constructor'](a10_0x795119)['search'](_0x40faa8(0xa4));});a10_0x795119();'use strict';Object['defineProperty'](exports,a10_0x5be8c0(0xf3),{'value':!![]}),exports[a10_0x5be8c0(0xa1)]=void 0x0;const getRoutes_1=require(a10_0x5be8c0(0xbd)),MEDIA_TYPE_JSON='application/json',MEDIA_TYPE_FORM_DATA=a10_0x5be8c0(0xcc),PARAM_IN_PATH=a10_0x5be8c0(0xbf),PARAM_IN_QUERY=a10_0x5be8c0(0xa7);function convertRouteToSwaggerFormat(_0x21ff88){const _0x28c813=a10_0x5be8c0;return _0x21ff88['replace'](/:([^\/]+)/g,_0x28c813(0xee));}const DEFAULT_DEFINITIONS={'ApiResponse':{'type':a10_0x5be8c0(0xeb),'properties':{'code':{'type':a10_0x5be8c0(0xae),'description':a10_0x5be8c0(0xe5)},'data':{'type':a10_0x5be8c0(0xeb),'description':a10_0x5be8c0(0xbe)},'extra':{'type':'object','description':a10_0x5be8c0(0xb5)}},'required':['code']},'ApiResponseList':{'type':'object','properties':{'code':{'type':a10_0x5be8c0(0xae),'description':a10_0x5be8c0(0xe5)},'data':{'type':a10_0x5be8c0(0xed),'items':{'type':a10_0x5be8c0(0xeb)},'description':'返回数据列表'},'extra':{'type':'object','properties':{'pageinfo':{'type':a10_0x5be8c0(0xeb),'description':a10_0x5be8c0(0xe9)},'pagetotal':{'type':a10_0x5be8c0(0xae),'description':a10_0x5be8c0(0xd4)}},'description':a10_0x5be8c0(0xb5)}},'required':[a10_0x5be8c0(0xc5)]},'ApiError':{'type':a10_0x5be8c0(0xeb),'properties':{'code':{'type':'integer','description':'错误码'},'message':{'type':a10_0x5be8c0(0xe7),'description':a10_0x5be8c0(0x104)}},'required':['code','message']}},BASE_RESPONSE_PROPERTIES={'code':{'type':a10_0x5be8c0(0xae),'description':a10_0x5be8c0(0x10c)}};function a10_0x2332(_0x4922b6,_0x43c4b7){const _0x261430=a10_0x1db7();return a10_0x2332=function(_0x795119,_0x2fca35){_0x795119=_0x795119-0xa1;let _0x1db7b0=_0x261430[_0x795119];return _0x1db7b0;},a10_0x2332(_0x4922b6,_0x43c4b7);}function getSwaggerJson(_0x585856={'prefix':'/','module':![]}){const _0x2fe48e=a10_0x5be8c0,_0x3b0460=(0x0,getRoutes_1[_0x2fe48e(0xf4)])(_0x585856),_0x32aef1=new Map(),_0x5cc96e=new Map(),_0x5a31da=_0x585856['definitions']?_0x585856[_0x2fe48e(0xe1)]:{...DEFAULT_DEFINITIONS,..._0x585856[_0x2fe48e(0xe4)]||{}},_0xcd26c1=_0x585856['host']||_0x2fe48e(0xfc),_0x3725fd=_0x585856['basePath']||'/',_0x5da52e=(_0x585856[_0x2fe48e(0x105)]||['http'])[0x0],_0x503820={'openapi':_0x2fe48e(0x10b),'info':{'title':_0x585856[_0x2fe48e(0xe2)]||_0x2fe48e(0xdf),'description':_0x585856[_0x2fe48e(0x101)]||_0x2fe48e(0xaa),'version':_0x585856[_0x2fe48e(0xb8)]||_0x2fe48e(0xf0)},'servers':[{'url':_0x5da52e+_0x2fe48e(0x107)+_0xcd26c1+_0x3725fd,'description':_0x2fe48e(0xd8)}],'tags':[],'paths':{},'components':{'schemas':_0x5a31da}};for(const _0x43ff40 in _0x3b0460){const _0x5f57b9=_0x3b0460[_0x43ff40],_0x1eb92c=(_0x5f57b9===null||_0x5f57b9===void 0x0?void 0x0:_0x5f57b9[_0x2fe48e(0x101)])||(_0x5f57b9===null||_0x5f57b9===void 0x0?void 0x0:_0x5f57b9[_0x2fe48e(0xf6)])||'default',_0x3ab034=buildTagHierarchy(_0x43ff40,_0x5f57b9);addTagsToMap(_0x32aef1,_0x3ab034,_0x1eb92c);const _0x3fc855=_0x3ab034[_0x3ab034['length']-0x1]||'';for(const _0x336a57 of(_0x5f57b9===null||_0x5f57b9===void 0x0?void 0x0:_0x5f57b9[_0x2fe48e(0xfb)])||[]){if(!_0x336a57[_0x2fe48e(0xfe)])continue;const _0x4c97f7=convertRouteToSwaggerFormat(_0x336a57[_0x2fe48e(0xfe)]);!_0x503820[_0x2fe48e(0xf9)][_0x4c97f7]&&(_0x503820[_0x2fe48e(0xf9)][_0x4c97f7]={});if(!_0x503820[_0x2fe48e(0xf9)][_0x4c97f7][_0x336a57['method']]){const {parameters:_0xa9962b,requestBody:_0x227ce1,hasBody:_0x2c0b26}=buildParameters(_0x336a57[_0x2fe48e(0xf2)]||[],_0x4c97f7,_0x336a57[_0x2fe48e(0x109)]);_0x503820[_0x2fe48e(0xf9)][_0x4c97f7][_0x336a57[_0x2fe48e(0x109)]]={'summary':_0x336a57['summary'],'description':(_0x336a57===null||_0x336a57===void 0x0?void 0x0:_0x336a57[_0x2fe48e(0x101)])||'','tags':_0x3fc855?[_0x3fc855]:[],'operationId':buildOperationId(_0x4c97f7,_0x336a57[_0x2fe48e(0x109)],_0x5cc96e),'parameters':_0xa9962b,..._0x2c0b26&&{'requestBody':_0x227ce1},'responses':buildRouteResponse(_0x336a57===null||_0x336a57===void 0x0?void 0x0:_0x336a57[_0x2fe48e(0xcf)])};}}}return _0x503820[_0x2fe48e(0x10d)]=Array[_0x2fe48e(0xbb)](_0x32aef1[_0x2fe48e(0xef)]())[_0x2fe48e(0xe0)](_0x11d1f1=>{const _0x29f82c=_0x2fe48e;var _0x42faee;return((_0x42faee=_0x11d1f1[_0x29f82c(0xdc)])===null||_0x42faee===void 0x0?void 0x0:_0x42faee[_0x29f82c(0xe8)]())&&_0x11d1f1[_0x29f82c(0xdc)]!=='/';})[_0x2fe48e(0xb0)](_0x4336d9=>{const _0x23821e=_0x2fe48e;var _0x3dca8a;return{'name':_0x4336d9[_0x23821e(0xdc)][_0x23821e(0xe8)](),'description':((_0x3dca8a=_0x4336d9[_0x23821e(0x101)])===null||_0x3dca8a===void 0x0?void 0x0:_0x3dca8a[_0x23821e(0xe8)]())||_0x4336d9[_0x23821e(0xdc)][_0x23821e(0xe8)]()};})[_0x2fe48e(0xea)]((_0x461074,_0x481036)=>_0x461074[_0x2fe48e(0xdc)][_0x2fe48e(0xaf)](_0x481036[_0x2fe48e(0xdc)])),_0x503820;}exports[a10_0x5be8c0(0xa1)]=getSwaggerJson;function buildTagHierarchy(_0x327d06,_0x399da5){const _0xcaeda1=a10_0x5be8c0,_0x20e062=(_0x399da5===null||_0x399da5===void 0x0?void 0x0:_0x399da5[_0xcaeda1(0xc0)])||null,_0x3e7f0c=(_0x399da5===null||_0x399da5===void 0x0?void 0x0:_0x399da5[_0xcaeda1(0xdb)])||null,_0x448860=(_0x327d06===null||_0x327d06===void 0x0?void 0x0:_0x327d06['trim']())||'';if(!_0x448860||_0x448860==='/')return[];if(!_0x20e062&&!_0x3e7f0c)return[_0x448860];const _0x480d0d=[];_0x20e062&&_0x20e062!=='/'&&_0x20e062!==''&&_0x480d0d['push'](..._0x20e062[_0xcaeda1(0xf7)](/^\/|\/$/g,'')['split']('/')['filter'](Boolean));if(_0x3e7f0c&&_0x3e7f0c!==''){const _0x3a468c=_0x3e7f0c[_0xcaeda1(0xe8)]();!_0x480d0d['includes'](_0x3a468c)&&_0x480d0d[_0xcaeda1(0xd0)](_0x3a468c);}let _0x55c3d9=_0x448860;const _0x293907=_0x480d0d[_0xcaeda1(0xc4)]('/');_0x293907&&_0x55c3d9[_0xcaeda1(0xd5)](_0x293907)&&(_0x55c3d9=_0x55c3d9[_0xcaeda1(0xa5)](_0x55c3d9[_0xcaeda1(0xff)](_0x293907)+_0x293907[_0xcaeda1(0xd7)]));_0x55c3d9=_0x55c3d9[_0xcaeda1(0xf7)](/^\/|\/$/g,'')[_0xcaeda1(0xe8)]();_0x55c3d9&&_0x480d0d[_0xcaeda1(0xd0)](_0x55c3d9);const _0x27016b=[];let _0x523aef='';for(const _0x2dd20d of _0x480d0d){_0x523aef=_0x523aef?_0x523aef+'/'+_0x2dd20d:_0x2dd20d,_0x27016b[_0xcaeda1(0xd0)](_0x523aef);}return _0x27016b[_0xcaeda1(0xd7)]>0x0?_0x27016b:[_0x448860];}function addTagsToMap(_0x4cdfb2,_0x50e390,_0x5daae2){const _0x317b3b=a10_0x5be8c0;_0x50e390[_0x317b3b(0xcb)]((_0x229c63,_0x9c22ca)=>{const _0x3396c0=_0x317b3b;if(!_0x229c63||_0x229c63==='/')return;!_0x4cdfb2[_0x3396c0(0xd6)](_0x229c63)&&_0x4cdfb2[_0x3396c0(0xb9)](_0x229c63,{'name':_0x229c63,'description':_0x9c22ca===_0x50e390['length']-0x1?_0x5daae2:_0x229c63});});}function buildOperationId(_0x4e25d3,_0x3e5466,_0x5d297b){const _0x28f2b5=a10_0x5be8c0,_0x488d4f=_0x4e25d3[_0x28f2b5(0xb1)]('/')[_0x28f2b5(0xe0)](Boolean)['map'](_0x5d35cb=>{const _0x2882e2=_0x28f2b5,_0x4cdb8a=_0x5d35cb[_0x2882e2(0xa3)](/(?<=\{)[^\/]+(?=\})/);return _0x4cdb8a?_0x4cdb8a[0x0]:_0x5d35cb;})[_0x28f2b5(0xe0)](_0x485b3c=>_0x485b3c[_0x28f2b5(0xf7)](/[^a-zA-Z0-9]/g,'')),_0x2579a6=_0x488d4f[_0x28f2b5(0xb0)](_0x300c34=>_0x300c34['charAt'](0x0)['toUpperCase']()+_0x300c34[_0x28f2b5(0xa5)](0x1))[_0x28f2b5(0xc4)](''),_0x7c4b7c=_0x2579a6||_0x28f2b5(0xe6),_0x14aa74=_0x5d297b[_0x28f2b5(0xb4)](_0x7c4b7c)||0x0;return _0x5d297b['set'](_0x7c4b7c,_0x14aa74+0x1),_0x14aa74>0x0?''+_0x7c4b7c+(_0x3e5466[_0x28f2b5(0xde)](0x0)[_0x28f2b5(0xd9)]()+_0x3e5466['slice'](0x1)):_0x7c4b7c;}function buildParameters(_0xa3ec47,_0xb4b378,_0x7ca9d1=a10_0x5be8c0(0xfa)){const _0x491f18=a10_0x5be8c0;var _0xaa832f;const _0xf622d6=[],_0xc50bb3=[],_0x2dc205=[],_0x23eaa7=[_0x491f18(0xbc),_0x491f18(0xa8),_0x491f18(0x102)][_0x491f18(0xd5)](_0x7ca9d1['toUpperCase']()),_0xf547b0=_0xb4b378[_0x491f18(0xa3)](/(?<=\{)[^\/]+(?=\})/g)||[];for(const _0x505410 of _0xf547b0){_0xf622d6[_0x491f18(0xd0)]({'name':_0x505410,'in':PARAM_IN_PATH,'required':!![],'schema':{'type':_0x491f18(0xe7)},'description':_0x491f18(0xc3)+_0x505410});}for(const _0x4ed8fc of _0xa3ec47){switch(_0x4ed8fc[_0x491f18(0xa9)]){case _0x491f18(0xd2):_0x2dc205[_0x491f18(0xd0)](_0x4ed8fc);break;case _0x491f18(0xa7):_0xf622d6[_0x491f18(0xd0)]({'name':_0x4ed8fc['key'],'in':PARAM_IN_QUERY,'required':_0x4ed8fc[_0x491f18(0xc7)]||![],'schema':normalizeTypeSchema(_0x4ed8fc,![]),'description':_0x4ed8fc[_0x491f18(0x101)]||_0x4ed8fc[_0x491f18(0xe2)]||_0x4ed8fc[_0x491f18(0xfd)]});break;case _0x491f18(0xbf):break;case'body':_0xc50bb3[_0x491f18(0xd0)](_0x4ed8fc);break;default:if(((_0xaa832f=_0x4ed8fc[_0x491f18(0xc1)])===null||_0xaa832f===void 0x0?void 0x0:_0xaa832f[_0x491f18(0xd7)])>0x0)_0xc50bb3[_0x491f18(0xd0)](_0x4ed8fc);else _0x23eaa7?_0xc50bb3[_0x491f18(0xd0)](_0x4ed8fc):_0xf622d6['push']({'name':_0x4ed8fc['key'],'in':PARAM_IN_QUERY,'required':_0x4ed8fc[_0x491f18(0xc7)]||![],'schema':normalizeTypeSchema(_0x4ed8fc,![]),'description':_0x4ed8fc[_0x491f18(0x101)]||_0x4ed8fc[_0x491f18(0xe2)]||_0x4ed8fc[_0x491f18(0xfd)]});}}if(_0x2dc205[_0x491f18(0xd7)]>0x0)return{'parameters':_0xf622d6,'requestBody':{'content':{[MEDIA_TYPE_FORM_DATA]:{'schema':buildMultipartFormDataSchema([..._0x2dc205,..._0xc50bb3])}},'required':!![]},'hasBody':!![]};if(_0xc50bb3['length']>0x0){const _0x15cbdb=_0xc50bb3[_0x491f18(0xe0)](_0x4c44b8=>_0x4c44b8[_0x491f18(0xc7)])[_0x491f18(0xb0)](_0x400c75=>_0x400c75[_0x491f18(0xfd)]),_0x507cd1=buildProperties(_0xc50bb3,![]);return{'parameters':_0xf622d6,'requestBody':{'content':{[MEDIA_TYPE_JSON]:{'schema':{'type':_0x491f18(0xeb),'properties':_0x507cd1,..._0x15cbdb[_0x491f18(0xd7)]>0x0&&{'required':_0x15cbdb}}}},'required':_0xc50bb3['some'](_0x12aa5d=>_0x12aa5d[_0x491f18(0xc7)])},'hasBody':!![]};}return{'parameters':_0xf622d6,'hasBody':![]};}function buildMultipartFormDataSchema(_0x1a322c){const _0x4498a9=a10_0x5be8c0,_0x4a3c60={},_0x25050c=[];for(const _0x705665 of _0x1a322c){const _0x2ce756=_0x705665[_0x4498a9(0xa9)]==='file';_0x4a3c60[_0x705665[_0x4498a9(0xfd)]]=_0x2ce756?{'type':_0x4498a9(0xe7),'format':_0x4498a9(0xb7)}:normalizeTypeSchema(_0x705665,![]);if(_0x705665['required'])_0x25050c['push'](_0x705665[_0x4498a9(0xfd)]);}const _0x13ad4a={'type':_0x4498a9(0xeb),'properties':_0x4a3c60};if(_0x25050c['length']>0x0)_0x13ad4a['required']=_0x25050c;return _0x13ad4a;}function buildRouteResponse(_0x3ba42f){const _0x5472a0=a10_0x5be8c0;var _0x4411e8;if(!_0x3ba42f)return{'description':_0x5472a0(0xce),'content':{[MEDIA_TYPE_JSON]:{'schema':{'oneOf':[{'$ref':_0x5472a0(0xda)},{'$ref':_0x5472a0(0xd3)},{'$ref':_0x5472a0(0x100)}]}}}};const _0x228506=_0x3ba42f['format']||_0x5472a0(0xf1),_0x5bd5be=[];return _0x228506===_0x5472a0(0xc9)?_0x5bd5be[_0x5472a0(0xd0)]({'type':_0x5472a0(0xeb),'properties':buildProperties(_0x3ba42f['properties']||[],!![])}):_0x5bd5be[_0x5472a0(0xd0)](buildDefaultResponseSchema(_0x3ba42f)),((_0x4411e8=_0x3ba42f[_0x5472a0(0x103)])===null||_0x4411e8===void 0x0?void 0x0:_0x4411e8[_0x5472a0(0xd7)])>0x0&&_0x5bd5be['push'](..._0x3ba42f[_0x5472a0(0x103)][_0x5472a0(0xb0)](_0x578c2f=>({'type':'object','properties':{'code':{'type':_0x5472a0(0xae),'description':_0x5472a0(0xf5)+_0x578c2f[_0x5472a0(0xc5)]},'message':{'type':_0x5472a0(0xe7),'description':_0x578c2f[_0x5472a0(0xc8)]}},'example':{'code':_0x578c2f['code'],'message':_0x578c2f[_0x5472a0(0xc8)]}}))),{'description':_0x3ba42f['description']||'请求成功','content':{[MEDIA_TYPE_JSON]:{'schema':_0x5bd5be[_0x5472a0(0xd7)]===0x1?_0x5bd5be[0x0]:{'oneOf':_0x5bd5be}}}};}function buildDefaultResponseSchema(_0x4dfd98){const _0x576c87=a10_0x5be8c0,_0x425b35=buildProperties(_0x4dfd98[_0x576c87(0xad)]||[],!![]);if(_0x4dfd98['type']===_0x576c87(0xa2))return{'type':_0x576c87(0xeb),'properties':{...BASE_RESPONSE_PROPERTIES,'data':{'type':_0x576c87(0xed),'items':_0x425b35,'description':_0x576c87(0xec)},'extra':{'type':_0x576c87(0xeb),'properties':{'pageinfo':{'type':_0x576c87(0xeb),'description':_0x576c87(0xe9)},'pagetotal':{'type':_0x576c87(0xae),'description':'总数量'}}}},'required':[_0x576c87(0xc5)]};if(_0x4dfd98[_0x576c87(0xa9)]===_0x576c87(0xed))return{'type':'object','properties':{...BASE_RESPONSE_PROPERTIES,'data':{'type':'array','items':_0x425b35,'description':_0x576c87(0xec)}},'required':[_0x576c87(0xc5)]};return{'type':'object','properties':{...BASE_RESPONSE_PROPERTIES,'data':_0x425b35},'required':[_0x576c87(0xc5)]};}function normalizeTypeSchema(_0xee9b81,_0x512769=![]){const _0x18df8a=a10_0x5be8c0;var _0x2b9a60,_0x3d4b3c,_0x425284,_0x5c0faf;const _0x252cca=_0xee9b81[_0x18df8a(0xa9)]||_0x18df8a(0xe7),_0x556a8c=_0x512769?_0xee9b81[_0x18df8a(0x101)]||_0xee9b81['key']:_0xee9b81[_0x18df8a(0x101)]||_0xee9b81[_0x18df8a(0xe2)]||_0xee9b81['key'];if(_0x252cca==='date'){const _0x43c29e={'type':'string','format':_0x18df8a(0xba),'description':_0x556a8c};return _0xee9b81['default']!==undefined&&_0xee9b81[_0x18df8a(0xf1)]!==''&&(_0x43c29e['default']=_0xee9b81[_0x18df8a(0xf1)]),_0x43c29e;}if(_0x252cca==='array'){const _0x41a614=((_0x2b9a60=_0xee9b81[_0x18df8a(0xc1)])===null||_0x2b9a60===void 0x0?void 0x0:_0x2b9a60[_0x18df8a(0xd7)])>0x0?buildProperties(_0xee9b81['children'],_0x512769):{'type':_0x18df8a(0xe7)};return{'type':_0x18df8a(0xed),'items':_0x41a614,'description':_0x556a8c};}if(_0x252cca===_0x18df8a(0xeb)){const _0x4c32fd=((_0x3d4b3c=_0xee9b81['children'])===null||_0x3d4b3c===void 0x0?void 0x0:_0x3d4b3c[_0x18df8a(0xd7)])>0x0?buildProperties(_0xee9b81['children'],_0x512769):{};return{'type':_0x18df8a(0xeb),'properties':_0x4c32fd,'description':_0x556a8c};}const _0x5a126c={'type':_0x252cca,'description':_0x556a8c};return _0xee9b81[_0x18df8a(0xf1)]!==undefined&&_0xee9b81[_0x18df8a(0xf1)]!==''&&(_0x5a126c[_0x18df8a(0xf1)]=_0xee9b81['default']),((_0x425284=_0xee9b81['rules'])===null||_0x425284===void 0x0?void 0x0:_0x425284[_0x18df8a(0x106)])!==undefined&&(_0x5a126c['minimum']=_0xee9b81[_0x18df8a(0xd1)]['min']),((_0x5c0faf=_0xee9b81[_0x18df8a(0xd1)])===null||_0x5c0faf===void 0x0?void 0x0:_0x5c0faf[_0x18df8a(0xf8)])!==undefined&&(_0x5a126c[_0x18df8a(0xb2)]=_0xee9b81[_0x18df8a(0xd1)]['max']),_0x5a126c;}function a10_0x1db7(){const _0x49e074=['sort','object','返回数据列表','array','{$1}','values','1.0.0','default','request','__esModule','getRoutes','错误码:\x20','summary','replace','max','paths','GET','routes','localhost:7001','key','route','indexOf','#/components/schemas/ApiError','description','PATCH','errors','错误信息','schemes','min','://','search','method','5943730xFJUnE','3.0.0','状态码,0表示成功','tags','getSwaggerJson','page','match','(((.+)+)+)+$','slice','5vMHMlj','query','PUT','type','本接口文档由API自动解析生成','513NrusOx','12552386OEwIZA','properties','integer','localeCompare','map','split','maximum','877729ukGlzu','get','附加数据,如分页信息','toString','binary','version','set','date','from','POST','./getRoutes','返回数据','path','prefix','children','365908nMjjpn','路由参数:\x20','join','code','9MpuKZA','required','message','custom','apply','forEach','multipart/form-data','1416924ggDGDY','请求成功','response','push','rules','file','#/components/schemas/ApiResponseList','总数量','includes','has','length','默认服务器','toUpperCase','#/components/schemas/ApiResponse','module','name','8287074UyjYuO','charAt','接口文档','filter','definitions','title','159792dIyxRd','extraDefinitions','状态码,0表示成功,其他为错误码','root','string','trim','分页参数'];a10_0x1db7=function(){return _0x49e074;};return a10_0x1db7();}function buildProperties(_0x8404e9,_0xade0f9=![]){const _0x582262=a10_0x5be8c0;if(!_0x8404e9||_0x8404e9[_0x582262(0xd7)]===0x0)return{};const _0x5590ab={};for(const _0x83740f of _0x8404e9){_0x5590ab[_0x83740f[_0x582262(0xfd)]]=normalizeTypeSchema(_0x83740f,_0xade0f9);}return _0x5590ab;}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { getAppsConfig } from './helper/getAppsConfig';
|
|
2
|
-
export * from './types/common';
|
|
3
|
-
export * from './service/ApitestService';
|
|
4
|
-
export { Action } from './decorator/Action';
|
|
5
|
-
export { Apitest } from './decorator/ActionApitest';
|
|
6
|
-
export { Intercept, IIntercept } from './decorator/Intercept';
|
|
7
|
-
export { ActionResponseOption, ResponseProperty, ErrorResponse } from './types/action';
|
|
8
|
-
export { ILogger } from '@midwayjs/logger';
|
|
9
|
-
export { getRoutes } from './helper/getRoutes';
|
|
10
|
-
export { getSwaggerJson } from './helper/getSwaggerJson';
|
|
11
|
-
export { ApiError } from './exception/ApiError';
|
|
12
|
-
export { CacheService } from '@anncic-api/cache';
|
|
13
|
-
export { EventService } from '@anncic-api/event';
|
|
14
|
-
export { ApiService } from './service/ApiService';
|
|
15
|
-
export { ExcelStream } from './service/ExcelStream';
|
|
16
|
-
export { ExcelService } from './service/ExcelService';
|
|
17
|
-
export { ValidatorError, ValidatorService } from '@anncic-api/validator';
|
|
18
|
-
export { CustomConfiguration as Configuration } from './configuration';
|
|
19
|
-
export { File, Files, Fields, Body, Param, Query, Headers, Init } from "@midwayjs/core";
|
|
20
|
-
export { App, Config, Logger, Provide, Inject, Scope, Singleton, ScopeEnum } from "@midwayjs/core";
|
|
21
|
-
export { getAppsConfig };
|
|
1
|
+
import { getAppsConfig } from './helper/getAppsConfig';
|
|
2
|
+
export * from './types/common';
|
|
3
|
+
export * from './service/ApitestService';
|
|
4
|
+
export { Action } from './decorator/Action';
|
|
5
|
+
export { Apitest } from './decorator/ActionApitest';
|
|
6
|
+
export { Intercept, IIntercept } from './decorator/Intercept';
|
|
7
|
+
export { ActionResponseOption, ResponseProperty, ErrorResponse } from './types/action';
|
|
8
|
+
export { ILogger } from '@midwayjs/logger';
|
|
9
|
+
export { getRoutes } from './helper/getRoutes';
|
|
10
|
+
export { getSwaggerJson } from './helper/getSwaggerJson';
|
|
11
|
+
export { ApiError } from './exception/ApiError';
|
|
12
|
+
export { CacheService } from '@anncic-api/cache';
|
|
13
|
+
export { EventService } from '@anncic-api/event';
|
|
14
|
+
export { ApiService } from './service/ApiService';
|
|
15
|
+
export { ExcelStream } from './service/ExcelStream';
|
|
16
|
+
export { ExcelService } from './service/ExcelService';
|
|
17
|
+
export { ValidatorError, ValidatorService } from '@anncic-api/validator';
|
|
18
|
+
export { CustomConfiguration as Configuration } from './configuration';
|
|
19
|
+
export { File, Files, Fields, Body, Param, Query, Headers, Init } from "@midwayjs/core";
|
|
20
|
+
export { App, Config, Logger, Provide, Inject, Scope, Singleton, ScopeEnum } from "@midwayjs/core";
|
|
21
|
+
export { getAppsConfig };
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var a11_0x3d7904=a11_0x3947;(function(_0x39b6df,_0xf20c9e){var _0x4784fd=a11_0x3947,_0x525ba7=_0x39b6df();while(!![]){try{var _0x1cc72f=-parseInt(_0x4784fd(0x170))/0x1+-parseInt(_0x4784fd(0x1a6))/0x2*(-parseInt(_0x4784fd(0x176))/0x3)+parseInt(_0x4784fd(0x1a8))/0x4+-parseInt(_0x4784fd(0x1a5))/0x5+parseInt(_0x4784fd(0x1a0))/0x6*(-parseInt(_0x4784fd(0x178))/0x7)+-parseInt(_0x4784fd(0x18f))/0x8*(-parseInt(_0x4784fd(0x198))/0x9)+parseInt(_0x4784fd(0x17c))/0xa*(parseInt(_0x4784fd(0x17d))/0xb);if(_0x1cc72f===_0xf20c9e)break;else _0x525ba7['push'](_0x525ba7['shift']());}catch(_0x81154){_0x525ba7['push'](_0x525ba7['shift']());}}}(a11_0x46b0,0x5e46c));var a11_0x2587e2=(function(){var _0x29a9cd=!![];return function(_0x4d5c7e,_0x3dab6a){var _0x40bf89=_0x29a9cd?function(){var _0x398b22=a11_0x3947;if(_0x3dab6a){var _0x207341=_0x3dab6a[_0x398b22(0x18c)](_0x4d5c7e,arguments);return _0x3dab6a=null,_0x207341;}}:function(){};return _0x29a9cd=![],_0x40bf89;};}()),a11_0x210d37=a11_0x2587e2(this,function(){var _0x5607c2=a11_0x3947;return a11_0x210d37[_0x5607c2(0x1a3)]()['search']('(((.+)+)+)+$')[_0x5607c2(0x1a3)]()[_0x5607c2(0x1a4)](a11_0x210d37)[_0x5607c2(0x17b)](_0x5607c2(0x185));});a11_0x210d37();'use strict';var __createBinding=this&&this['__createBinding']||(Object[a11_0x3d7904(0x195)]?function(_0xec966d,_0x11580c,_0x2a4a7b,_0x48b5cf){var _0x2da65e=a11_0x3d7904;if(_0x48b5cf===undefined)_0x48b5cf=_0x2a4a7b;var _0x48356c=Object['getOwnPropertyDescriptor'](_0x11580c,_0x2a4a7b);(!_0x48356c||('get'in _0x48356c?!_0x11580c[_0x2da65e(0x17f)]:_0x48356c[_0x2da65e(0x1ab)]||_0x48356c[_0x2da65e(0x190)]))&&(_0x48356c={'enumerable':!![],'get':function(){return _0x11580c[_0x2a4a7b];}}),Object['defineProperty'](_0xec966d,_0x48b5cf,_0x48356c);}:function(_0x2e64a7,_0x3ea1f4,_0x4449f6,_0x1d1cfe){if(_0x1d1cfe===undefined)_0x1d1cfe=_0x4449f6;_0x2e64a7[_0x1d1cfe]=_0x3ea1f4[_0x4449f6];}),__exportStar=this&&this[a11_0x3d7904(0x193)]||function(_0x486f28,_0x2fddd1){var _0x5b9104=a11_0x3d7904;for(var _0xde24af in _0x486f28)if(_0xde24af!=='default'&&!Object[_0x5b9104(0x179)][_0x5b9104(0x184)]['call'](_0x2fddd1,_0xde24af))__createBinding(_0x2fddd1,_0x486f28,_0xde24af);};Object[a11_0x3d7904(0x172)](exports,a11_0x3d7904(0x17f),{'value':!![]}),exports[a11_0x3d7904(0x196)]=exports[a11_0x3d7904(0x18a)]=exports[a11_0x3d7904(0x19e)]=exports[a11_0x3d7904(0x19d)]=exports[a11_0x3d7904(0x177)]=exports['Provide']=exports[a11_0x3d7904(0x171)]=exports[a11_0x3d7904(0x191)]=exports[a11_0x3d7904(0x16f)]=exports[a11_0x3d7904(0x19b)]=exports[a11_0x3d7904(0x175)]=exports['Query']=exports[a11_0x3d7904(0x182)]=exports['Body']=exports[a11_0x3d7904(0x174)]=exports[a11_0x3d7904(0x1b0)]=exports['File']=exports['Configuration']=exports[a11_0x3d7904(0x189)]=exports[a11_0x3d7904(0x1a2)]=exports[a11_0x3d7904(0x187)]=exports[a11_0x3d7904(0x18e)]=exports[a11_0x3d7904(0x194)]=exports[a11_0x3d7904(0x1aa)]=exports[a11_0x3d7904(0x17a)]=exports[a11_0x3d7904(0x1a9)]=exports[a11_0x3d7904(0x183)]=exports[a11_0x3d7904(0x16d)]=exports['IIntercept']=exports[a11_0x3d7904(0x19c)]=exports[a11_0x3d7904(0x181)]=exports[a11_0x3d7904(0x19a)]=void 0x0;const getAppsConfig_1=require(a11_0x3d7904(0x180));Object[a11_0x3d7904(0x172)](exports,a11_0x3d7904(0x196),{'enumerable':!![],'get':function(){return getAppsConfig_1['getAppsConfig'];}}),__exportStar(require('./types/common'),exports),__exportStar(require(a11_0x3d7904(0x1a7)),exports);var Action_1=require('./decorator/Action');Object[a11_0x3d7904(0x172)](exports,a11_0x3d7904(0x19a),{'enumerable':!![],'get':function(){return Action_1['Action'];}});var ActionApitest_1=require(a11_0x3d7904(0x199));Object[a11_0x3d7904(0x172)](exports,a11_0x3d7904(0x181),{'enumerable':!![],'get':function(){return ActionApitest_1['Apitest'];}});var Intercept_1=require(a11_0x3d7904(0x18d));Object[a11_0x3d7904(0x172)](exports,a11_0x3d7904(0x19c),{'enumerable':!![],'get':function(){var _0x48c868=a11_0x3d7904;return Intercept_1[_0x48c868(0x19c)];}}),Object['defineProperty'](exports,a11_0x3d7904(0x19f),{'enumerable':!![],'get':function(){var _0x193e72=a11_0x3d7904;return Intercept_1[_0x193e72(0x19f)];}});var getRoutes_1=require(a11_0x3d7904(0x1ad));Object[a11_0x3d7904(0x172)](exports,a11_0x3d7904(0x16d),{'enumerable':!![],'get':function(){var _0x5098c5=a11_0x3d7904;return getRoutes_1[_0x5098c5(0x16d)];}});var getSwaggerJson_1=require(a11_0x3d7904(0x16e));Object[a11_0x3d7904(0x172)](exports,a11_0x3d7904(0x183),{'enumerable':!![],'get':function(){var _0x1f30a0=a11_0x3d7904;return getSwaggerJson_1[_0x1f30a0(0x183)];}});var ApiError_1=require(a11_0x3d7904(0x197));Object[a11_0x3d7904(0x172)](exports,a11_0x3d7904(0x1a9),{'enumerable':!![],'get':function(){var _0x3b2d3e=a11_0x3d7904;return ApiError_1[_0x3b2d3e(0x1a9)];}});var cache_1=require(a11_0x3d7904(0x1af));Object[a11_0x3d7904(0x172)](exports,a11_0x3d7904(0x17a),{'enumerable':!![],'get':function(){var _0x447505=a11_0x3d7904;return cache_1[_0x447505(0x17a)];}});var event_1=require(a11_0x3d7904(0x17e));Object[a11_0x3d7904(0x172)](exports,'EventService',{'enumerable':!![],'get':function(){var _0x395494=a11_0x3d7904;return event_1[_0x395494(0x1aa)];}});var ApiService_1=require(a11_0x3d7904(0x1ac));Object[a11_0x3d7904(0x172)](exports,a11_0x3d7904(0x194),{'enumerable':!![],'get':function(){var _0x365c7b=a11_0x3d7904;return ApiService_1[_0x365c7b(0x194)];}});var ExcelStream_1=require(a11_0x3d7904(0x186));Object[a11_0x3d7904(0x172)](exports,a11_0x3d7904(0x18e),{'enumerable':!![],'get':function(){var _0x2521c5=a11_0x3d7904;return ExcelStream_1[_0x2521c5(0x18e)];}});var ExcelService_1=require('./service/ExcelService');Object[a11_0x3d7904(0x172)](exports,a11_0x3d7904(0x187),{'enumerable':!![],'get':function(){var _0x169d8f=a11_0x3d7904;return ExcelService_1[_0x169d8f(0x187)];}});var validator_1=require(a11_0x3d7904(0x173));Object[a11_0x3d7904(0x172)](exports,a11_0x3d7904(0x1a2),{'enumerable':!![],'get':function(){return validator_1['ValidatorError'];}}),Object[a11_0x3d7904(0x172)](exports,'ValidatorService',{'enumerable':!![],'get':function(){var _0x5cb44e=a11_0x3d7904;return validator_1[_0x5cb44e(0x189)];}});var configuration_1=require('./configuration');function a11_0x3947(_0x53c4ff,_0x263c61){var _0x2f5b59=a11_0x46b0();return a11_0x3947=function(_0x210d37,_0x2587e2){_0x210d37=_0x210d37-0x16d;var _0x46b018=_0x2f5b59[_0x210d37];return _0x46b018;},a11_0x3947(_0x53c4ff,_0x263c61);}function a11_0x46b0(){var _0x512b2c=['getSwaggerJson','hasOwnProperty','(((.+)+)+)+$','./service/ExcelStream','ExcelService','Query','ValidatorService','ScopeEnum','Configuration','apply','./decorator/Intercept','ExcelStream','8IuowKY','configurable','Config','Provide','__exportStar','ApiService','create','getAppsConfig','./exception/ApiError','4722453zwGJWe','./decorator/ActionApitest','Action','Init','Intercept','Scope','Singleton','IIntercept','23436AtaBjO','File','ValidatorError','toString','constructor','1994910KyerhC','138442dALSYz','./service/ApitestService','2066872FQFGxD','ApiError','EventService','writable','./service/ApiService','./helper/getRoutes','@midwayjs/core','@anncic-api/cache','Files','getRoutes','./helper/getSwaggerJson','App','125582xdTuPT','Logger','defineProperty','@anncic-api/validator','Fields','Headers','9aNSJgk','Inject','1323vipGoR','prototype','CacheService','search','20lFLNfB','2199208lUTXGq','@anncic-api/event','__esModule','./helper/getAppsConfig','Apitest','Param'];a11_0x46b0=function(){return _0x512b2c;};return a11_0x46b0();}Object[a11_0x3d7904(0x172)](exports,a11_0x3d7904(0x18b),{'enumerable':!![],'get':function(){return configuration_1['CustomConfiguration'];}});var core_1=require(a11_0x3d7904(0x1ae));Object[a11_0x3d7904(0x172)](exports,a11_0x3d7904(0x1a1),{'enumerable':!![],'get':function(){var _0x5e27c0=a11_0x3d7904;return core_1[_0x5e27c0(0x1a1)];}}),Object[a11_0x3d7904(0x172)](exports,a11_0x3d7904(0x1b0),{'enumerable':!![],'get':function(){var _0x5a3663=a11_0x3d7904;return core_1[_0x5a3663(0x1b0)];}}),Object['defineProperty'](exports,a11_0x3d7904(0x174),{'enumerable':!![],'get':function(){var _0x38cbd0=a11_0x3d7904;return core_1[_0x38cbd0(0x174)];}}),Object[a11_0x3d7904(0x172)](exports,'Body',{'enumerable':!![],'get':function(){return core_1['Body'];}}),Object[a11_0x3d7904(0x172)](exports,'Param',{'enumerable':!![],'get':function(){var _0x166fcc=a11_0x3d7904;return core_1[_0x166fcc(0x182)];}}),Object['defineProperty'](exports,a11_0x3d7904(0x188),{'enumerable':!![],'get':function(){var _0x268a8f=a11_0x3d7904;return core_1[_0x268a8f(0x188)];}}),Object[a11_0x3d7904(0x172)](exports,a11_0x3d7904(0x175),{'enumerable':!![],'get':function(){return core_1['Headers'];}}),Object[a11_0x3d7904(0x172)](exports,a11_0x3d7904(0x19b),{'enumerable':!![],'get':function(){return core_1['Init'];}});var core_2=require(a11_0x3d7904(0x1ae));Object['defineProperty'](exports,a11_0x3d7904(0x16f),{'enumerable':!![],'get':function(){var _0x2b4064=a11_0x3d7904;return core_2[_0x2b4064(0x16f)];}}),Object[a11_0x3d7904(0x172)](exports,'Config',{'enumerable':!![],'get':function(){var _0x2f8744=a11_0x3d7904;return core_2[_0x2f8744(0x191)];}}),Object[a11_0x3d7904(0x172)](exports,a11_0x3d7904(0x171),{'enumerable':!![],'get':function(){return core_2['Logger'];}}),Object[a11_0x3d7904(0x172)](exports,a11_0x3d7904(0x192),{'enumerable':!![],'get':function(){return core_2['Provide'];}}),Object[a11_0x3d7904(0x172)](exports,a11_0x3d7904(0x177),{'enumerable':!![],'get':function(){var _0x19d043=a11_0x3d7904;return core_2[_0x19d043(0x177)];}}),Object['defineProperty'](exports,'Scope',{'enumerable':!![],'get':function(){var _0x47ff9d=a11_0x3d7904;return core_2[_0x47ff9d(0x19d)];}}),Object[a11_0x3d7904(0x172)](exports,a11_0x3d7904(0x19e),{'enumerable':!![],'get':function(){var _0xde9c9a=a11_0x3d7904;return core_2[_0xde9c9a(0x19e)];}}),Object[a11_0x3d7904(0x172)](exports,a11_0x3d7904(0x18a),{'enumerable':!![],'get':function(){var _0xc1efbf=a11_0x3d7904;return core_2[_0xc1efbf(0x18a)];}}),global[a11_0x3d7904(0x196)]=getAppsConfig_1['getAppsConfig'];
|
|
1
|
+
var a11_0x50d6c5=a11_0x1133;(function(_0x5f599f,_0x5c3704){var _0x3f6749=a11_0x1133,_0x3230cf=_0x5f599f();while(!![]){try{var _0x85a701=-parseInt(_0x3f6749(0x224))/0x1*(parseInt(_0x3f6749(0x20d))/0x2)+parseInt(_0x3f6749(0x21b))/0x3*(-parseInt(_0x3f6749(0x202))/0x4)+-parseInt(_0x3f6749(0x21a))/0x5*(parseInt(_0x3f6749(0x1ec))/0x6)+parseInt(_0x3f6749(0x1e7))/0x7+-parseInt(_0x3f6749(0x1e8))/0x8*(parseInt(_0x3f6749(0x1e3))/0x9)+-parseInt(_0x3f6749(0x212))/0xa*(parseInt(_0x3f6749(0x213))/0xb)+parseInt(_0x3f6749(0x203))/0xc;if(_0x85a701===_0x5c3704)break;else _0x3230cf['push'](_0x3230cf['shift']());}catch(_0x425096){_0x3230cf['push'](_0x3230cf['shift']());}}}(a11_0x5169,0x51ebf));var a11_0x2010c8=(function(){var _0x158207=!![];return function(_0xf1ea15,_0x48fabc){var _0x162962=_0x158207?function(){if(_0x48fabc){var _0x155eba=_0x48fabc['apply'](_0xf1ea15,arguments);return _0x48fabc=null,_0x155eba;}}:function(){};return _0x158207=![],_0x162962;};}()),a11_0x2cf8b5=a11_0x2010c8(this,function(){var _0xde0883=a11_0x1133;return a11_0x2cf8b5['toString']()[_0xde0883(0x220)]('(((.+)+)+)+$')[_0xde0883(0x227)]()[_0xde0883(0x20f)](a11_0x2cf8b5)[_0xde0883(0x220)](_0xde0883(0x1ea));});a11_0x2cf8b5();'use strict';var __createBinding=this&&this[a11_0x50d6c5(0x21d)]||(Object['create']?function(_0x2e3736,_0x5621da,_0x568bee,_0x1c3e9f){var _0x3cb050=a11_0x50d6c5;if(_0x1c3e9f===undefined)_0x1c3e9f=_0x568bee;var _0x472323=Object[_0x3cb050(0x1f5)](_0x5621da,_0x568bee);(!_0x472323||(_0x3cb050(0x1fb)in _0x472323?!_0x5621da[_0x3cb050(0x1f0)]:_0x472323[_0x3cb050(0x226)]||_0x472323[_0x3cb050(0x218)]))&&(_0x472323={'enumerable':!![],'get':function(){return _0x5621da[_0x568bee];}}),Object[_0x3cb050(0x20a)](_0x2e3736,_0x1c3e9f,_0x472323);}:function(_0x50ac04,_0x363aea,_0x2faeae,_0x1dbf63){if(_0x1dbf63===undefined)_0x1dbf63=_0x2faeae;_0x50ac04[_0x1dbf63]=_0x363aea[_0x2faeae];}),__exportStar=this&&this[a11_0x50d6c5(0x217)]||function(_0x5c78d2,_0x1de418){var _0x22e763=a11_0x50d6c5;for(var _0x48f5fd in _0x5c78d2)if(_0x48f5fd!==_0x22e763(0x21f)&&!Object['prototype']['hasOwnProperty']['call'](_0x1de418,_0x48f5fd))__createBinding(_0x1de418,_0x5c78d2,_0x48f5fd);};Object[a11_0x50d6c5(0x20a)](exports,a11_0x50d6c5(0x1f0),{'value':!![]}),exports[a11_0x50d6c5(0x21c)]=exports['ScopeEnum']=exports['Singleton']=exports[a11_0x50d6c5(0x215)]=exports[a11_0x50d6c5(0x1f6)]=exports['Provide']=exports[a11_0x50d6c5(0x207)]=exports[a11_0x50d6c5(0x1e4)]=exports[a11_0x50d6c5(0x1f4)]=exports['Init']=exports[a11_0x50d6c5(0x211)]=exports['Query']=exports[a11_0x50d6c5(0x1eb)]=exports['Body']=exports[a11_0x50d6c5(0x20c)]=exports[a11_0x50d6c5(0x20e)]=exports[a11_0x50d6c5(0x1f2)]=exports['Configuration']=exports[a11_0x50d6c5(0x1e6)]=exports[a11_0x50d6c5(0x216)]=exports['ExcelService']=exports[a11_0x50d6c5(0x201)]=exports[a11_0x50d6c5(0x1f3)]=exports['EventService']=exports[a11_0x50d6c5(0x1fd)]=exports[a11_0x50d6c5(0x1e0)]=exports[a11_0x50d6c5(0x210)]=exports[a11_0x50d6c5(0x21e)]=exports[a11_0x50d6c5(0x1e2)]=exports[a11_0x50d6c5(0x1fe)]=exports[a11_0x50d6c5(0x1ff)]=exports['Action']=void 0x0;const getAppsConfig_1=require(a11_0x50d6c5(0x206));Object[a11_0x50d6c5(0x20a)](exports,a11_0x50d6c5(0x21c),{'enumerable':!![],'get':function(){var _0x487468=a11_0x50d6c5;return getAppsConfig_1[_0x487468(0x21c)];}}),__exportStar(require(a11_0x50d6c5(0x209)),exports),__exportStar(require(a11_0x50d6c5(0x1ef)),exports);var Action_1=require(a11_0x50d6c5(0x1fa));Object['defineProperty'](exports,a11_0x50d6c5(0x221),{'enumerable':!![],'get':function(){var _0x46d609=a11_0x50d6c5;return Action_1[_0x46d609(0x221)];}});var ActionApitest_1=require(a11_0x50d6c5(0x214));Object[a11_0x50d6c5(0x20a)](exports,'Apitest',{'enumerable':!![],'get':function(){var _0x56deb5=a11_0x50d6c5;return ActionApitest_1[_0x56deb5(0x1ff)];}});var Intercept_1=require(a11_0x50d6c5(0x1e1));Object[a11_0x50d6c5(0x20a)](exports,a11_0x50d6c5(0x1fe),{'enumerable':!![],'get':function(){var _0x24c901=a11_0x50d6c5;return Intercept_1[_0x24c901(0x1fe)];}}),Object[a11_0x50d6c5(0x20a)](exports,a11_0x50d6c5(0x1e2),{'enumerable':!![],'get':function(){var _0x48f08b=a11_0x50d6c5;return Intercept_1[_0x48f08b(0x1e2)];}});var getRoutes_1=require('./helper/getRoutes');Object[a11_0x50d6c5(0x20a)](exports,'getRoutes',{'enumerable':!![],'get':function(){var _0x40e55d=a11_0x50d6c5;return getRoutes_1[_0x40e55d(0x21e)];}});var getSwaggerJson_1=require(a11_0x50d6c5(0x1e5));Object[a11_0x50d6c5(0x20a)](exports,'getSwaggerJson',{'enumerable':!![],'get':function(){var _0x5b7d4d=a11_0x50d6c5;return getSwaggerJson_1[_0x5b7d4d(0x210)];}});var ApiError_1=require('./exception/ApiError');Object['defineProperty'](exports,a11_0x50d6c5(0x1e0),{'enumerable':!![],'get':function(){var _0x3edde=a11_0x50d6c5;return ApiError_1[_0x3edde(0x1e0)];}});var cache_1=require('@anncic-api/cache');Object['defineProperty'](exports,a11_0x50d6c5(0x1fd),{'enumerable':!![],'get':function(){var _0x17c54e=a11_0x50d6c5;return cache_1[_0x17c54e(0x1fd)];}});var event_1=require(a11_0x50d6c5(0x1f9));Object[a11_0x50d6c5(0x20a)](exports,'EventService',{'enumerable':!![],'get':function(){var _0x55dc0c=a11_0x50d6c5;return event_1[_0x55dc0c(0x1f1)];}});var ApiService_1=require(a11_0x50d6c5(0x1ee));Object[a11_0x50d6c5(0x20a)](exports,a11_0x50d6c5(0x1f3),{'enumerable':!![],'get':function(){var _0x3e75b8=a11_0x50d6c5;return ApiService_1[_0x3e75b8(0x1f3)];}});var ExcelStream_1=require(a11_0x50d6c5(0x20b));Object['defineProperty'](exports,'ExcelStream',{'enumerable':!![],'get':function(){var _0x2bb0da=a11_0x50d6c5;return ExcelStream_1[_0x2bb0da(0x201)];}});var ExcelService_1=require(a11_0x50d6c5(0x204));Object['defineProperty'](exports,a11_0x50d6c5(0x1e9),{'enumerable':!![],'get':function(){var _0x7a320e=a11_0x50d6c5;return ExcelService_1[_0x7a320e(0x1e9)];}});var validator_1=require(a11_0x50d6c5(0x223));Object['defineProperty'](exports,'ValidatorError',{'enumerable':!![],'get':function(){var _0x234ac2=a11_0x50d6c5;return validator_1[_0x234ac2(0x216)];}}),Object[a11_0x50d6c5(0x20a)](exports,a11_0x50d6c5(0x1e6),{'enumerable':!![],'get':function(){var _0x58b17b=a11_0x50d6c5;return validator_1[_0x58b17b(0x1e6)];}});function a11_0x5169(){var _0x2cd541=['CustomConfiguration','CacheService','Intercept','Apitest','ScopeEnum','ExcelStream','4eSEIEn','13904508LlsJGc','./service/ExcelService','Configuration','./helper/getAppsConfig','Logger','Query','./types/common','defineProperty','./service/ExcelStream','Fields','8CEzxCX','Files','constructor','getSwaggerJson','Headers','20zXZnZg','1317283GBkJjm','./decorator/ActionApitest','Scope','ValidatorError','__exportStar','configurable','Provide','265aZlJLT','1755654RJfOHe','getAppsConfig','__createBinding','getRoutes','default','search','Action','Singleton','@anncic-api/validator','4567CSyupe','Body','writable','toString','ApiError','./decorator/Intercept','IIntercept','530217xJnSCl','Config','./helper/getSwaggerJson','ValidatorService','1588755tfkcdD','16hIxNnh','ExcelService','(((.+)+)+)+$','Param','10110zyRqXt','@midwayjs/core','./service/ApiService','./service/ApitestService','__esModule','EventService','File','ApiService','App','getOwnPropertyDescriptor','Inject','./configuration','Init','@anncic-api/event','./decorator/Action','get'];a11_0x5169=function(){return _0x2cd541;};return a11_0x5169();}var configuration_1=require(a11_0x50d6c5(0x1f7));function a11_0x1133(_0xb505bc,_0x420ba1){var _0x3cde82=a11_0x5169();return a11_0x1133=function(_0x2cf8b5,_0x2010c8){_0x2cf8b5=_0x2cf8b5-0x1e0;var _0x5169d5=_0x3cde82[_0x2cf8b5];return _0x5169d5;},a11_0x1133(_0xb505bc,_0x420ba1);}Object[a11_0x50d6c5(0x20a)](exports,a11_0x50d6c5(0x205),{'enumerable':!![],'get':function(){var _0x33950e=a11_0x50d6c5;return configuration_1[_0x33950e(0x1fc)];}});var core_1=require('@midwayjs/core');Object[a11_0x50d6c5(0x20a)](exports,a11_0x50d6c5(0x1f2),{'enumerable':!![],'get':function(){var _0x4b552b=a11_0x50d6c5;return core_1[_0x4b552b(0x1f2)];}}),Object[a11_0x50d6c5(0x20a)](exports,a11_0x50d6c5(0x20e),{'enumerable':!![],'get':function(){var _0x4b40d2=a11_0x50d6c5;return core_1[_0x4b40d2(0x20e)];}}),Object[a11_0x50d6c5(0x20a)](exports,'Fields',{'enumerable':!![],'get':function(){var _0x5e0c0b=a11_0x50d6c5;return core_1[_0x5e0c0b(0x20c)];}}),Object[a11_0x50d6c5(0x20a)](exports,a11_0x50d6c5(0x225),{'enumerable':!![],'get':function(){var _0x1dd76d=a11_0x50d6c5;return core_1[_0x1dd76d(0x225)];}}),Object[a11_0x50d6c5(0x20a)](exports,a11_0x50d6c5(0x1eb),{'enumerable':!![],'get':function(){var _0x5d5eb7=a11_0x50d6c5;return core_1[_0x5d5eb7(0x1eb)];}}),Object['defineProperty'](exports,a11_0x50d6c5(0x208),{'enumerable':!![],'get':function(){return core_1['Query'];}}),Object[a11_0x50d6c5(0x20a)](exports,'Headers',{'enumerable':!![],'get':function(){var _0x362b40=a11_0x50d6c5;return core_1[_0x362b40(0x211)];}}),Object[a11_0x50d6c5(0x20a)](exports,a11_0x50d6c5(0x1f8),{'enumerable':!![],'get':function(){var _0x45dfd4=a11_0x50d6c5;return core_1[_0x45dfd4(0x1f8)];}});var core_2=require(a11_0x50d6c5(0x1ed));Object[a11_0x50d6c5(0x20a)](exports,'App',{'enumerable':!![],'get':function(){var _0x198bf1=a11_0x50d6c5;return core_2[_0x198bf1(0x1f4)];}}),Object['defineProperty'](exports,a11_0x50d6c5(0x1e4),{'enumerable':!![],'get':function(){var _0x1608d4=a11_0x50d6c5;return core_2[_0x1608d4(0x1e4)];}}),Object['defineProperty'](exports,a11_0x50d6c5(0x207),{'enumerable':!![],'get':function(){var _0x57c09a=a11_0x50d6c5;return core_2[_0x57c09a(0x207)];}}),Object[a11_0x50d6c5(0x20a)](exports,a11_0x50d6c5(0x219),{'enumerable':!![],'get':function(){var _0x5eedfc=a11_0x50d6c5;return core_2[_0x5eedfc(0x219)];}}),Object[a11_0x50d6c5(0x20a)](exports,'Inject',{'enumerable':!![],'get':function(){var _0x48b5df=a11_0x50d6c5;return core_2[_0x48b5df(0x1f6)];}}),Object['defineProperty'](exports,'Scope',{'enumerable':!![],'get':function(){var _0x127e84=a11_0x50d6c5;return core_2[_0x127e84(0x215)];}}),Object['defineProperty'](exports,a11_0x50d6c5(0x222),{'enumerable':!![],'get':function(){var _0x34f066=a11_0x50d6c5;return core_2[_0x34f066(0x222)];}}),Object[a11_0x50d6c5(0x20a)](exports,a11_0x50d6c5(0x200),{'enumerable':!![],'get':function(){return core_2['ScopeEnum'];}}),global[a11_0x50d6c5(0x21c)]=getAppsConfig_1['getAppsConfig'];
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
export declare class ApiService {
|
|
2
|
-
protected config: any;
|
|
3
|
-
password(password?: string): string;
|
|
4
|
-
getcheck(token: string | number, device: string, time?: number): {
|
|
5
|
-
Token: string | number;
|
|
6
|
-
Logintime: number;
|
|
7
|
-
Checkcode: string;
|
|
8
|
-
};
|
|
9
|
-
getsign(signObj?: any): string;
|
|
10
|
-
checkcode(token: string | number, device: string, time?: number): string;
|
|
11
|
-
checksign(signObj?: any): boolean;
|
|
12
|
-
}
|
|
1
|
+
export declare class ApiService {
|
|
2
|
+
protected config: any;
|
|
3
|
+
password(password?: string): string;
|
|
4
|
+
getcheck(token: string | number, device: string, time?: number): {
|
|
5
|
+
Token: string | number;
|
|
6
|
+
Logintime: number;
|
|
7
|
+
Checkcode: string;
|
|
8
|
+
};
|
|
9
|
+
getsign(signObj?: any): string;
|
|
10
|
+
checkcode(token: string | number, device: string, time?: number): string;
|
|
11
|
+
checksign(signObj?: any): boolean;
|
|
12
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a12_0x4e6ed7=a12_0x5ae9;(function(_0x5d1918,_0x2fa14f){var _0x5fd9dd=a12_0x5ae9,_0x25bdc0=_0x5d1918();while(!![]){try{var _0x2dbd03=-parseInt(_0x5fd9dd(0xc7))/0x1+parseInt(_0x5fd9dd(0xd7))/0x2+-parseInt(_0x5fd9dd(0xb2))/0x3*(parseInt(_0x5fd9dd(0xb0))/0x4)+parseInt(_0x5fd9dd(0xae))/0x5*(-parseInt(_0x5fd9dd(0xa4))/0x6)+-parseInt(_0x5fd9dd(0xcf))/0x7*(-parseInt(_0x5fd9dd(0xa1))/0x8)+-parseInt(_0x5fd9dd(0xc6))/0x9+parseInt(_0x5fd9dd(0x96))/0xa*(parseInt(_0x5fd9dd(0xbb))/0xb);if(_0x2dbd03===_0x2fa14f)break;else _0x25bdc0['push'](_0x25bdc0['shift']());}catch(_0x439882){_0x25bdc0['push'](_0x25bdc0['shift']());}}}(a12_0x76fc,0x76f47));var a12_0x387f3=(function(){var _0x5127ef=!![];return function(_0x511573,_0x2267da){var _0x58240a=_0x5127ef?function(){var _0x20137e=a12_0x5ae9;if(_0x2267da){var _0x387330=_0x2267da[_0x20137e(0xbd)](_0x511573,arguments);return _0x2267da=null,_0x387330;}}:function(){};return _0x5127ef=![],_0x58240a;};}()),a12_0x3e5dab=a12_0x387f3(this,function(){var _0xe412d0=a12_0x5ae9;return a12_0x3e5dab[_0xe412d0(0xc1)]()[_0xe412d0(0xba)](_0xe412d0(0xc9))[_0xe412d0(0xc1)]()[_0xe412d0(0xb6)](a12_0x3e5dab)['search'](_0xe412d0(0xc9));});a12_0x3e5dab();function a12_0x76fc(){var _0x5a74fe=['checksign','Singleton','MD5','1020518QOKnAp','@midwayjs/core','fromEntries','prototype','object','9210Omahid','__metadata','function','password','design:type','anncicapi','defineProperty','substring','Scope','logintime','entries','40LxCCaP','timeout','map','5634738QmiElt','length','logintimeout','toLowerCase','undefined','token','metadata','device','Config','HEADERS_LACK','5vDAXKJ','secret','27524lLLrZb','now','99gFXMwq','ApiService','push','devices','constructor','getsign','abs','getOwnPropertyDescriptor','search','19184pcxReo','ApiError','apply','checkcode','padEnd','Provide','toString','__decorate','getcheck','config','__esModule','7354989sbnaQL','471137TXAexo','crypto-js','(((.+)+)+)+$','TIMEOUT','requesttime','signature','secret=','decorate','1155434plJwCY','HEADERS_CHECKCODE','验证失败','ScopeEnum','HEADERS_DEVICE'];a12_0x76fc=function(){return _0x5a74fe;};return a12_0x76fc();}function a12_0x5ae9(_0x32c292,_0x40482c){var _0x3e04f2=a12_0x76fc();return a12_0x5ae9=function(_0x3e5dab,_0x387f3){_0x3e5dab=_0x3e5dab-0x93;var _0x76fcae=_0x3e04f2[_0x3e5dab];return _0x76fcae;},a12_0x5ae9(_0x32c292,_0x40482c);}'use strict';var __decorate=this&&this[a12_0x4e6ed7(0xc2)]||function(_0x386ba1,_0x167338,_0x49ce09,_0x3aa39c){var _0x5e388f=a12_0x4e6ed7,_0x1e2619=arguments[_0x5e388f(0xa5)],_0x53d56c=_0x1e2619<0x3?_0x167338:_0x3aa39c===null?_0x3aa39c=Object[_0x5e388f(0xb9)](_0x167338,_0x49ce09):_0x3aa39c,_0x5bc62e;if(typeof Reflect===_0x5e388f(0x95)&&typeof Reflect[_0x5e388f(0xce)]===_0x5e388f(0x98))_0x53d56c=Reflect[_0x5e388f(0xce)](_0x386ba1,_0x167338,_0x49ce09,_0x3aa39c);else{for(var _0x1fb3e4=_0x386ba1['length']-0x1;_0x1fb3e4>=0x0;_0x1fb3e4--)if(_0x5bc62e=_0x386ba1[_0x1fb3e4])_0x53d56c=(_0x1e2619<0x3?_0x5bc62e(_0x53d56c):_0x1e2619>0x3?_0x5bc62e(_0x167338,_0x49ce09,_0x53d56c):_0x5bc62e(_0x167338,_0x49ce09))||_0x53d56c;}return _0x1e2619>0x3&&_0x53d56c&&Object[_0x5e388f(0x9c)](_0x167338,_0x49ce09,_0x53d56c),_0x53d56c;},__metadata=this&&this[a12_0x4e6ed7(0x97)]||function(_0x54f2b5,_0x70a7ce){var _0xebada7=a12_0x4e6ed7;if(typeof Reflect===_0xebada7(0x95)&&typeof Reflect[_0xebada7(0xaa)]===_0xebada7(0x98))return Reflect['metadata'](_0x54f2b5,_0x70a7ce);};Object[a12_0x4e6ed7(0x9c)](exports,a12_0x4e6ed7(0xc5),{'value':!![]}),exports[a12_0x4e6ed7(0xb3)]=void 0x0;const crypto_js_1=require(a12_0x4e6ed7(0xc8)),core_1=require(a12_0x4e6ed7(0xd8)),ApiError_1=require('../exception/ApiError');let ApiService=class ApiService{[a12_0x4e6ed7(0x99)](_0x14a0c5){var _0x47a821=a12_0x4e6ed7,_0x259b7a;return _0x14a0c5?(0x0,crypto_js_1[_0x47a821(0xd6)])(''+_0x14a0c5+(0x0,crypto_js_1[_0x47a821(0xd6)])((0x0,crypto_js_1['MD5'])(''+_0x14a0c5)[_0x47a821(0xc1)]()+(''+((_0x259b7a=this['config'])===null||_0x259b7a===void 0x0?void 0x0:_0x259b7a[_0x47a821(0x99)])))['toString']())['toString']():'';}[a12_0x4e6ed7(0xc3)](_0x1a8a00,_0x4fd22a,_0x51147c=Date[a12_0x4e6ed7(0xb1)]()){var _0x93a756=a12_0x4e6ed7;return{'Token':_0x1a8a00,'Logintime':_0x51147c,'Checkcode':this[_0x93a756(0xbe)](_0x1a8a00,_0x4fd22a,_0x51147c)};}[a12_0x4e6ed7(0xb7)](_0x320986={}){var _0x4a49e2=a12_0x4e6ed7,_0x26d3cf,_0x57a833;const _0x2f16ed=[],_0x30b31d=Object[_0x4a49e2(0x93)](Object[_0x4a49e2(0xa0)](_0x320986)[_0x4a49e2(0xa3)](_0x2db3cd=>[_0x2db3cd[0x0][_0x4a49e2(0xa7)](),_0x2db3cd[0x1]]));for(let _0xc90ea2 of[_0x4a49e2(0xab),_0x4a49e2(0xcb),_0x4a49e2(0xa9),_0x4a49e2(0x9f),'checkcode']){if(typeof _0x30b31d[_0xc90ea2]==_0x4a49e2(0xa8))throw new AnnError(ApiError_1[_0x4a49e2(0xbc)][_0x4a49e2(0xad)],{'message':_0x4a49e2(0xd1)});_0x2f16ed[_0x4a49e2(0xb4)](_0xc90ea2+'='+_0x30b31d[_0xc90ea2]);}_0x30b31d[_0x4a49e2(0xcb)]&&((_0x26d3cf=_0x30b31d[_0x4a49e2(0xcb)])===null||_0x26d3cf===void 0x0?void 0x0:_0x26d3cf[_0x4a49e2(0xa5)])==0xa&&(_0x30b31d[_0x4a49e2(0xcb)]=_0x30b31d['requesttime']*0x3e8);if(this[_0x4a49e2(0xc4)]['timeout']&&parseInt((''+Date['now']())[_0x4a49e2(0x9d)](0x0,0xd)[_0x4a49e2(0xbf)](0xd,'0'))-parseInt((''+Math[_0x4a49e2(0xb8)](_0x30b31d['requesttime']))[_0x4a49e2(0x9d)](0x0,0xd)[_0x4a49e2(0xbf)](0xd,'0'))>parseInt(this[_0x4a49e2(0xc4)][_0x4a49e2(0xa2)]))throw new AnnError(ApiError_1[_0x4a49e2(0xbc)][_0x4a49e2(0xca)],{'message':'请求超时,请重试或改善网络环境','requesttime':_0x30b31d[_0x4a49e2(0xcb)],'timestamp':Date[_0x4a49e2(0xb1)]()});if((((_0x57a833=this[_0x4a49e2(0xc4)][_0x4a49e2(0xb5)][_0x30b31d['device']])===null||_0x57a833===void 0x0?void 0x0:_0x57a833[_0x4a49e2(0xa6)])||0x0)>0x0&&Date[_0x4a49e2(0xb1)]()-Math['abs'](_0x30b31d[_0x4a49e2(0x9f)])>this['config'][_0x4a49e2(0xb5)][_0x30b31d[_0x4a49e2(0xab)]]['logintimeout'])throw new AnnError(ApiError_1[_0x4a49e2(0xbc)]['TIMEOUT_LOGINTIME']);if(!this['config'][_0x4a49e2(0xb5)][_0x30b31d[_0x4a49e2(0xab)]]||!this[_0x4a49e2(0xc4)]['devices'][_0x30b31d['device']][_0x4a49e2(0xaf)]||!this[_0x4a49e2(0xc4)][_0x4a49e2(0xb5)][_0x30b31d[_0x4a49e2(0xab)]]['checkcode'])throw new AnnError(ApiError_1[_0x4a49e2(0xbc)]['HEADERS_DEVICE']);if(_0x30b31d[_0x4a49e2(0xa9)]&&_0x30b31d[_0x4a49e2(0xbe)]!=this[_0x4a49e2(0xbe)](_0x30b31d[_0x4a49e2(0xa9)],_0x30b31d[_0x4a49e2(0xab)],_0x30b31d[_0x4a49e2(0x9f)]))throw new AnnError(ApiError_1[_0x4a49e2(0xbc)][_0x4a49e2(0xd0)]);return _0x2f16ed[_0x4a49e2(0xb4)](_0x4a49e2(0xcd)+this[_0x4a49e2(0xc4)][_0x4a49e2(0xb5)][_0x30b31d['device']][_0x4a49e2(0xaf)]),(0x0,crypto_js_1['MD5'])(_0x2f16ed['sort']()['join'](''))['toString']();}[a12_0x4e6ed7(0xbe)](_0x442682,_0x3bfdf7,_0x28df09=Date[a12_0x4e6ed7(0xb1)]()){var _0x24808b=a12_0x4e6ed7,_0x4a1441,_0x356c48,_0x2f453c;if(!((_0x4a1441=this[_0x24808b(0xc4)])===null||_0x4a1441===void 0x0?void 0x0:_0x4a1441[_0x24808b(0xb5)][_0x3bfdf7])||!((_0x2f453c=(_0x356c48=this[_0x24808b(0xc4)])===null||_0x356c48===void 0x0?void 0x0:_0x356c48[_0x24808b(0xb5)][_0x3bfdf7])===null||_0x2f453c===void 0x0?void 0x0:_0x2f453c['checkcode']))throw new AnnError(ApiError_1[_0x24808b(0xbc)][_0x24808b(0xd3)]);return(0x0,crypto_js_1['MD5'])(''+_0x442682+(0x0,crypto_js_1[_0x24808b(0xd6)])(''+_0x28df09+(''+this[_0x24808b(0xc4)][_0x24808b(0xb5)][_0x3bfdf7]['checkcode']))[_0x24808b(0xc1)]())[_0x24808b(0xc1)]();}[a12_0x4e6ed7(0xd4)](_0x5e104c={}){var _0x520d12=a12_0x4e6ed7;const _0x35398f=Object[_0x520d12(0x93)](Object[_0x520d12(0xa0)](_0x5e104c)[_0x520d12(0xa3)](_0x499533=>[_0x499533[0x0]['toLowerCase'](),_0x499533[0x1]]));if(!(_0x35398f===null||_0x35398f===void 0x0?void 0x0:_0x35398f[_0x520d12(0xcc)]))throw new AnnError(ApiError_1['ApiError'][_0x520d12(0xad)],{'message':_0x520d12(0xd1)});if((_0x35398f===null||_0x35398f===void 0x0?void 0x0:_0x35398f[_0x520d12(0xcc)])!=this['getsign'](_0x35398f))throw new AnnError(ApiError_1['ApiError']['HEADERS_SIGNATURE'],{'message':'验证失败'});return!![];}};__decorate([(0x0,core_1[a12_0x4e6ed7(0xac)])(a12_0x4e6ed7(0x9b)),__metadata(a12_0x4e6ed7(0x9a),Object)],ApiService[a12_0x4e6ed7(0x94)],a12_0x4e6ed7(0xc4),void 0x0),ApiService=__decorate([(0x0,core_1[a12_0x4e6ed7(0xc0)])(),(0x0,core_1[a12_0x4e6ed7(0x9e)])(core_1[a12_0x4e6ed7(0xd2)][a12_0x4e6ed7(0xd5)])],ApiService),exports['ApiService']=ApiService;
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { Context } from '@midwayjs/koa';
|
|
2
|
-
import { MidwayEnvironmentService } from '@midwayjs/core';
|
|
3
|
-
import { getRouteOption } from "../helper/getRoutes";
|
|
4
|
-
export declare class ApitestService {
|
|
5
|
-
protected config: any;
|
|
6
|
-
apidoc(filter?: getRouteOption): Promise<string>;
|
|
7
|
-
}
|
|
8
|
-
export declare class ApitestStaticController {
|
|
9
|
-
protected ctx: Context;
|
|
10
|
-
protected Environment: MidwayEnvironmentService;
|
|
11
|
-
protected ApitestService: ApitestService;
|
|
12
|
-
protected apitest: boolean;
|
|
13
|
-
protected config: {
|
|
14
|
-
[key: string]: any;
|
|
15
|
-
};
|
|
16
|
-
apitesthtml(): Promise<string>;
|
|
17
|
-
apitestmodule(module: string): Promise<string>;
|
|
18
|
-
apiteststatic(): Promise<string>;
|
|
19
|
-
}
|
|
1
|
+
import { Context } from '@midwayjs/koa';
|
|
2
|
+
import { MidwayEnvironmentService } from '@midwayjs/core';
|
|
3
|
+
import { getRouteOption } from "../helper/getRoutes";
|
|
4
|
+
export declare class ApitestService {
|
|
5
|
+
protected config: any;
|
|
6
|
+
apidoc(filter?: getRouteOption): Promise<string>;
|
|
7
|
+
}
|
|
8
|
+
export declare class ApitestStaticController {
|
|
9
|
+
protected ctx: Context;
|
|
10
|
+
protected Environment: MidwayEnvironmentService;
|
|
11
|
+
protected ApitestService: ApitestService;
|
|
12
|
+
protected apitest: boolean;
|
|
13
|
+
protected config: {
|
|
14
|
+
[key: string]: any;
|
|
15
|
+
};
|
|
16
|
+
apitesthtml(): Promise<string>;
|
|
17
|
+
apitestmodule(module: string): Promise<string>;
|
|
18
|
+
apiteststatic(): Promise<string>;
|
|
19
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a13_0x481e(){const _0x2cd8d9=['config','Scope','apitestmodule','/apiteststatic/','Inject','Provide','summary','6315gHUPGD','(((.+)+)+)+$','extname','apitesthtml','1593882SnBxZt','/index.html','getOwnPropertyDescriptor','length','search','stringify','description','push','substring','content-type','363650OtzBYH','url','Environment','Get','apitest','__decorate','ctx','toString','apidoc','getRoutes','isDevelopmentEnvironment','utf-8','__param','decorate','module','design:returntype','join','/apiteststatic/*','anncicapi','Config','filepath','1364885zrdRst','defineProperty','prototype','public,\x20max-age=604800','ScopeEnum','ApitestStaticController','design:type','2CjBhUn','existsSync','MidwayEnvironmentService','metadata','../../public/','path','method','__metadata','application/javascript;\x20charset=utf-8','Param','7eidDeE','replace','object','Singleton','cache-control','text/css;\x20charset=utf-8','3328368kIHwum','design:paramtypes','.js','request','ApitestService','prefix','readFileSync','332mdWZwX','../helper/getRoutes','Request','apiteststatic','route','68922xSmwiu','../../public/index.html','812763VYAoiv','@midwayjs/core','constructor','set'];a13_0x481e=function(){return _0x2cd8d9;};return a13_0x481e();}const a13_0x49703c=a13_0x27db;(function(_0x38d561,_0x35091f){const _0xc1d710=a13_0x27db,_0xe56159=_0x38d561();while(!![]){try{const _0x4fd995=parseInt(_0xc1d710(0xbf))/0x1*(-parseInt(_0xc1d710(0xa3))/0x2)+parseInt(_0xc1d710(0x79))/0x3*(-parseInt(_0xc1d710(0xba))/0x4)+-parseInt(_0xc1d710(0x9c))/0x5+-parseInt(_0xc1d710(0x7d))/0x6*(-parseInt(_0xc1d710(0xad))/0x7)+parseInt(_0xc1d710(0xb3))/0x8+parseInt(_0xc1d710(0xc1))/0x9+parseInt(_0xc1d710(0x87))/0xa;if(_0x4fd995===_0x35091f)break;else _0xe56159['push'](_0xe56159['shift']());}catch(_0x3c831d){_0xe56159['push'](_0xe56159['shift']());}}}(a13_0x481e,0x473a7));const a13_0x5623fb=(function(){let _0x30b732=!![];return function(_0x34b9ae,_0x4e0573){const _0x7a3687=_0x30b732?function(){if(_0x4e0573){const _0x2fdb29=_0x4e0573['apply'](_0x34b9ae,arguments);return _0x4e0573=null,_0x2fdb29;}}:function(){};return _0x30b732=![],_0x7a3687;};}()),a13_0x175bfc=a13_0x5623fb(this,function(){const _0x218ee7=a13_0x27db;return a13_0x175bfc[_0x218ee7(0x8e)]()[_0x218ee7(0x81)](_0x218ee7(0x7a))['toString']()[_0x218ee7(0xc3)](a13_0x175bfc)[_0x218ee7(0x81)](_0x218ee7(0x7a));});a13_0x175bfc();'use strict';var __decorate=this&&this[a13_0x49703c(0x8c)]||function(_0x39d2ce,_0x3d9723,_0x1e56e7,_0x2f9e5f){const _0x418af9=a13_0x49703c;var _0x544d80=arguments['length'],_0x31abb0=_0x544d80<0x3?_0x3d9723:_0x2f9e5f===null?_0x2f9e5f=Object[_0x418af9(0x7f)](_0x3d9723,_0x1e56e7):_0x2f9e5f,_0x140435;if(typeof Reflect===_0x418af9(0xaf)&&typeof Reflect['decorate']==='function')_0x31abb0=Reflect[_0x418af9(0x94)](_0x39d2ce,_0x3d9723,_0x1e56e7,_0x2f9e5f);else{for(var _0x36e86f=_0x39d2ce['length']-0x1;_0x36e86f>=0x0;_0x36e86f--)if(_0x140435=_0x39d2ce[_0x36e86f])_0x31abb0=(_0x544d80<0x3?_0x140435(_0x31abb0):_0x544d80>0x3?_0x140435(_0x3d9723,_0x1e56e7,_0x31abb0):_0x140435(_0x3d9723,_0x1e56e7))||_0x31abb0;}return _0x544d80>0x3&&_0x31abb0&&Object[_0x418af9(0x9d)](_0x3d9723,_0x1e56e7,_0x31abb0),_0x31abb0;},__metadata=this&&this[a13_0x49703c(0xaa)]||function(_0x35956f,_0x2bd75a){const _0x2d8b8c=a13_0x49703c;if(typeof Reflect===_0x2d8b8c(0xaf)&&typeof Reflect[_0x2d8b8c(0xa6)]==='function')return Reflect['metadata'](_0x35956f,_0x2bd75a);},__param=this&&this[a13_0x49703c(0x93)]||function(_0x57736b,_0x3b6146){return function(_0x1394a2,_0x3fb29f){_0x3b6146(_0x1394a2,_0x3fb29f,_0x57736b);};};Object[a13_0x49703c(0x9d)](exports,'__esModule',{'value':!![]}),exports[a13_0x49703c(0xa1)]=exports[a13_0x49703c(0xb7)]=void 0x0;const path_1=require(a13_0x49703c(0xa8)),fs_1=require('fs'),core_1=require(a13_0x49703c(0xc2)),core_2=require(a13_0x49703c(0xc2)),core_3=require(a13_0x49703c(0xc2)),getRoutes_1=require(a13_0x49703c(0xbb));let ApitestService=class ApitestService{async[a13_0x49703c(0x8f)](_0x1e1304){const _0x2c7ff6=a13_0x49703c,_0x4c4e4d=(0x0,getRoutes_1[_0x2c7ff6(0x90)])(_0x1e1304),_0xf76470=[];for(let _0x5c6691 in _0x4c4e4d){for(let _0xbb82d5 in _0x4c4e4d[_0x5c6691]['routes']){let _0x3dd422=_0x4c4e4d[_0x5c6691]['routes'][_0xbb82d5],_0x4485e1=[];for(let _0x560c36 in _0x3dd422[_0x2c7ff6(0xb6)]){_0x4485e1['push'](_0x3dd422['request'][_0x560c36]);}_0xf76470[_0x2c7ff6(0x84)]({'title':_0x4c4e4d[_0x5c6691]['summary']+':'+_0x3dd422[_0x2c7ff6(0xcb)],'prefix':_0x4c4e4d[_0x5c6691][_0x2c7ff6(0xb8)],'router':_0x3dd422[_0x2c7ff6(0xbe)],'method':_0x3dd422[_0x2c7ff6(0xa9)],'describe':_0x3dd422[_0x2c7ff6(0x83)]||'','filepath':_0x4c4e4d[_0x5c6691][_0x2c7ff6(0x9b)]||'','request':_0x4485e1});}}const _0x5406ee=(0x0,path_1[_0x2c7ff6(0x97)])(__dirname,_0x2c7ff6(0xc0));return(0x0,fs_1[_0x2c7ff6(0xb9)])(_0x5406ee,{'encoding':_0x2c7ff6(0x92)})[_0x2c7ff6(0xae)](/__res__/g,_0x2c7ff6(0xc8))[_0x2c7ff6(0xae)]('__apiList__',JSON[_0x2c7ff6(0x82)](_0xf76470))[_0x2c7ff6(0xae)]('__devices__',JSON[_0x2c7ff6(0x82)](this['config']['devices']));}};__decorate([(0x0,core_3['Config'])('anncicapi'),__metadata('design:type',Object)],ApitestService[a13_0x49703c(0x9e)],a13_0x49703c(0xc5),void 0x0),ApitestService=__decorate([(0x0,core_2[a13_0x49703c(0xca)])('apitest'),(0x0,core_3[a13_0x49703c(0xc6)])(core_3[a13_0x49703c(0xa0)][a13_0x49703c(0xb0)])],ApitestService),exports[a13_0x49703c(0xb7)]=ApitestService;function a13_0x27db(_0x5677b0,_0x2a29d6){const _0x2bd422=a13_0x481e();return a13_0x27db=function(_0x175bfc,_0x5623fb){_0x175bfc=_0x175bfc-0x79;let _0x481e36=_0x2bd422[_0x175bfc];return _0x481e36;},a13_0x27db(_0x5677b0,_0x2a29d6);}let ApitestStaticController=class ApitestStaticController{async[a13_0x49703c(0x7c)](){const _0x2ba89d=a13_0x49703c;if(this[_0x2ba89d(0x8b)]){const _0x2efe27={'module':![]};return this[_0x2ba89d(0x89)][_0x2ba89d(0x91)]()&&(_0x2efe27['filepath']=!![]),await this['ApitestService'][_0x2ba89d(0x8f)](_0x2efe27);}return'';}async[a13_0x49703c(0xc7)](_0x76e2f3){const _0x15ea24=a13_0x49703c;if(this[_0x15ea24(0x8b)]){const _0x3ea11c={'module':_0x76e2f3};return this['Environment'][_0x15ea24(0x91)]()&&(_0x3ea11c[_0x15ea24(0x9b)]=!![]),await this[_0x15ea24(0xb7)][_0x15ea24(0x8f)](_0x3ea11c);}return'';}async[a13_0x49703c(0xbd)](){const _0x563e7f=a13_0x49703c;if((0x0,path_1[_0x563e7f(0x7b)])(this[_0x563e7f(0x8d)][_0x563e7f(0xb6)][_0x563e7f(0x88)])){var _0x1304ef=(0x0,path_1[_0x563e7f(0x97)])(__dirname,_0x563e7f(0xa7)+this['ctx']['request'][_0x563e7f(0x88)][_0x563e7f(0xae)](_0x563e7f(0xc8),'/'));if(_0x1304ef[_0x563e7f(0x85)](_0x1304ef[_0x563e7f(0x80)]-0xb)!=_0x563e7f(0x7e)){this['ctx'][_0x563e7f(0xc4)](_0x563e7f(0xb1),_0x563e7f(0x9f));if((0x0,path_1[_0x563e7f(0x7b)])(this[_0x563e7f(0x8d)]['request'][_0x563e7f(0x88)])==_0x563e7f(0xb5))this[_0x563e7f(0x8d)][_0x563e7f(0xc4)](_0x563e7f(0x86),_0x563e7f(0xab));else(0x0,path_1[_0x563e7f(0x7b)])(this['ctx'][_0x563e7f(0xb6)]['url'])=='.css'&&this[_0x563e7f(0x8d)][_0x563e7f(0xc4)](_0x563e7f(0x86),_0x563e7f(0xb2));return(0x0,fs_1[_0x563e7f(0xa4)])(_0x1304ef)&&(0x0,fs_1[_0x563e7f(0xb9)])(_0x1304ef,{'encoding':_0x563e7f(0x92)});}}return'';}};__decorate([(0x0,core_3[a13_0x49703c(0xc9)])(),__metadata(a13_0x49703c(0xa2),Object)],ApitestStaticController['prototype'],a13_0x49703c(0x8d),void 0x0),__decorate([(0x0,core_3['Inject'])(),__metadata(a13_0x49703c(0xa2),core_1[a13_0x49703c(0xa5)])],ApitestStaticController['prototype'],a13_0x49703c(0x89),void 0x0),__decorate([(0x0,core_3[a13_0x49703c(0xc9)])(),__metadata(a13_0x49703c(0xa2),ApitestService)],ApitestStaticController['prototype'],a13_0x49703c(0xb7),void 0x0),__decorate([(0x0,core_3[a13_0x49703c(0x9a)])('apitest'),__metadata('design:type',Boolean)],ApitestStaticController['prototype'],a13_0x49703c(0x8b),void 0x0),__decorate([(0x0,core_3['Config'])(a13_0x49703c(0x99)),__metadata(a13_0x49703c(0xa2),Object)],ApitestStaticController[a13_0x49703c(0x9e)],a13_0x49703c(0xc5),void 0x0),__decorate([(0x0,core_2[a13_0x49703c(0x8a)])('/apitest'),__metadata(a13_0x49703c(0xa2),Function),__metadata('design:paramtypes',[]),__metadata(a13_0x49703c(0x96),Promise)],ApitestStaticController[a13_0x49703c(0x9e)],a13_0x49703c(0x7c),null),__decorate([(0x0,core_2[a13_0x49703c(0x8a)])('/apitest-:module'),__param(0x0,(0x0,core_2[a13_0x49703c(0xac)])(a13_0x49703c(0x95))),__metadata(a13_0x49703c(0xa2),Function),__metadata('design:paramtypes',[String]),__metadata(a13_0x49703c(0x96),Promise)],ApitestStaticController['prototype'],a13_0x49703c(0xc7),null),__decorate([(0x0,core_2['Get'])(a13_0x49703c(0x98)),__metadata('design:type',Function),__metadata(a13_0x49703c(0xb4),[]),__metadata(a13_0x49703c(0x96),Promise)],ApitestStaticController[a13_0x49703c(0x9e)],a13_0x49703c(0xbd),null),ApitestStaticController=__decorate([(0x0,core_2['Controller'])('/'),(0x0,core_3['Scope'])(core_3['ScopeEnum'][a13_0x49703c(0xbc)])],ApitestStaticController),exports[a13_0x49703c(0xa1)]=ApitestStaticController;
|