@anncic-api/validator 3.3.8 → 3.3.10

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.
@@ -1 +1 @@
1
- const a0_0x1d86ff=a0_0x1be3;function a0_0x1be3(_0x4724b9,_0x529eb0){const _0x397502=a0_0x1329();return a0_0x1be3=function(_0x38f4c4,_0x4b39a7){_0x38f4c4=_0x38f4c4-0x91;let _0x1329ed=_0x397502[_0x38f4c4];return _0x1329ed;},a0_0x1be3(_0x4724b9,_0x529eb0);}function a0_0x1329(){const _0x30fe4e=['980844vJFuVi','default','2162836TmOvMq','ValidatorError','658096dhaktx','112TMPbaO','PARAMS','../exception/ValidatorError','toString','apply','5GZdUWH','5235378ogfNxd','1981102UuPZWM','__esModule','../../locales/zh_CN.json','../../locales/en_US.json','3769062rzdzGY','search','string','50261886AMFlKU'];a0_0x1329=function(){return _0x30fe4e;};return a0_0x1329();}(function(_0x20ff0c,_0x55006b){const _0x24370b=a0_0x1be3,_0xbda71f=_0x20ff0c();while(!![]){try{const _0x216c94=-parseInt(_0x24370b(0x9c))/0x1+-parseInt(_0x24370b(0x94))/0x2+-parseInt(_0x24370b(0x98))/0x3+parseInt(_0x24370b(0x9e))/0x4+-parseInt(_0x24370b(0x92))/0x5*(parseInt(_0x24370b(0x93))/0x6)+parseInt(_0x24370b(0xa1))/0x7*(-parseInt(_0x24370b(0xa0))/0x8)+parseInt(_0x24370b(0x9b))/0x9;if(_0x216c94===_0x55006b)break;else _0xbda71f['push'](_0xbda71f['shift']());}catch(_0x33f3c3){_0xbda71f['push'](_0xbda71f['shift']());}}}(a0_0x1329,0xad0fb));const a0_0x4b39a7=(function(){let _0x30c0c9=!![];return function(_0x4526c8,_0x4c9352){const _0xc785d7=_0x30c0c9?function(){const _0xb12889=a0_0x1be3;if(_0x4c9352){const _0x518877=_0x4c9352[_0xb12889(0x91)](_0x4526c8,arguments);return _0x4c9352=null,_0x518877;}}:function(){};return _0x30c0c9=![],_0xc785d7;};}()),a0_0x38f4c4=a0_0x4b39a7(this,function(){const _0x37358d=a0_0x1be3;return a0_0x38f4c4['toString']()[_0x37358d(0x99)]('(((.+)+)+)+$')[_0x37358d(0xa4)]()['constructor'](a0_0x38f4c4)['search']('(((.+)+)+)+$');});a0_0x38f4c4();'use strict';Object['defineProperty'](exports,a0_0x1d86ff(0x95),{'value':!![]});const ValidatorError_1=require(a0_0x1d86ff(0xa3));exports[a0_0x1d86ff(0x9d)]={'validator':{'errorStatus':ValidatorError_1[a0_0x1d86ff(0x9f)][a0_0x1d86ff(0xa2)],'validationOptions':{'allowUnknown':!![],'stripUnknown':!![],'dateFormat':a0_0x1d86ff(0x9a)}},'i18n':{'localeTable':{'en_US':{'validator':require(a0_0x1d86ff(0x97))},'zh_CN':{'validator':require(a0_0x1d86ff(0x96))}}}};
1
+ const a0_0xd73d4f=a0_0x34bb;(function(_0x2aa2b2,_0x587742){const _0x5edbf8=a0_0x34bb,_0x586ffe=_0x2aa2b2();while(!![]){try{const _0x3d59d2=parseInt(_0x5edbf8(0x90))/0x1*(parseInt(_0x5edbf8(0x8d))/0x2)+parseInt(_0x5edbf8(0x82))/0x3*(-parseInt(_0x5edbf8(0x85))/0x4)+-parseInt(_0x5edbf8(0x8e))/0x5+parseInt(_0x5edbf8(0x7f))/0x6+parseInt(_0x5edbf8(0x87))/0x7+-parseInt(_0x5edbf8(0x84))/0x8+-parseInt(_0x5edbf8(0x91))/0x9*(parseInt(_0x5edbf8(0x83))/0xa);if(_0x3d59d2===_0x587742)break;else _0x586ffe['push'](_0x586ffe['shift']());}catch(_0x4f454c){_0x586ffe['push'](_0x586ffe['shift']());}}}(a0_0x43d3,0xb57ca));function a0_0x43d3(){const _0x24cb1e=['279mHpXdd','(((.+)+)+)+$','toString','__esModule','5190456pgHDZh','../../locales/en_US.json','string','854691anrCdr','375170FoOaTW','4447664hWDBjV','4fRlqmN','PARAMS','10185665nsESPM','../exception/ValidatorError','constructor','ValidatorError','search','defineProperty','2ygKASO','1553750UpiYGo','default','737831hzVsox'];a0_0x43d3=function(){return _0x24cb1e;};return a0_0x43d3();}const a0_0x28aec3=(function(){let _0x31ba06=!![];return function(_0x233543,_0x430b76){const _0x2e14eb=_0x31ba06?function(){if(_0x430b76){const _0x2c4e7c=_0x430b76['apply'](_0x233543,arguments);return _0x430b76=null,_0x2c4e7c;}}:function(){};return _0x31ba06=![],_0x2e14eb;};}()),a0_0x4c846b=a0_0x28aec3(this,function(){const _0x38af75=a0_0x34bb;return a0_0x4c846b['toString']()[_0x38af75(0x8b)]('(((.+)+)+)+$')[_0x38af75(0x7d)]()[_0x38af75(0x89)](a0_0x4c846b)[_0x38af75(0x8b)](_0x38af75(0x92));});a0_0x4c846b();'use strict';function a0_0x34bb(_0x1db6b4,_0x31371c){const _0x74fd58=a0_0x43d3();return a0_0x34bb=function(_0x4c846b,_0x28aec3){_0x4c846b=_0x4c846b-0x7d;let _0x43d30f=_0x74fd58[_0x4c846b];return _0x43d30f;},a0_0x34bb(_0x1db6b4,_0x31371c);}Object[a0_0xd73d4f(0x8c)](exports,a0_0xd73d4f(0x7e),{'value':!![]});const ValidatorError_1=require(a0_0xd73d4f(0x88));exports[a0_0xd73d4f(0x8f)]={'validator':{'errorStatus':ValidatorError_1[a0_0xd73d4f(0x8a)][a0_0xd73d4f(0x86)],'validationOptions':{'allowUnknown':!![],'stripUnknown':!![],'dateFormat':a0_0xd73d4f(0x81)}},'i18n':{'localeTable':{'en_US':{'validator':require(a0_0xd73d4f(0x80))},'zh_CN':{'validator':require('../../locales/zh_CN.json')}}}};
@@ -1 +1 @@
1
- const a1_0x48ce41=a1_0x5775;(function(_0x34f190,_0x48af58){const _0x49ea3d=a1_0x5775,_0x57186d=_0x34f190();while(!![]){try{const _0x435656=-parseInt(_0x49ea3d(0xe8))/0x1+-parseInt(_0x49ea3d(0xc9))/0x2+parseInt(_0x49ea3d(0xdf))/0x3*(parseInt(_0x49ea3d(0xc8))/0x4)+parseInt(_0x49ea3d(0xef))/0x5*(-parseInt(_0x49ea3d(0xcd))/0x6)+-parseInt(_0x49ea3d(0xd4))/0x7*(-parseInt(_0x49ea3d(0xd9))/0x8)+parseInt(_0x49ea3d(0xec))/0x9*(parseInt(_0x49ea3d(0xc3))/0xa)+parseInt(_0x49ea3d(0xd2))/0xb*(parseInt(_0x49ea3d(0xf6))/0xc);if(_0x435656===_0x48af58)break;else _0x57186d['push'](_0x57186d['shift']());}catch(_0x1a7641){_0x57186d['push'](_0x57186d['shift']());}}}(a1_0x1b63,0xbcd21));const a1_0x5ac4b4=(function(){let _0x391d79=!![];return function(_0xe68130,_0x2918fa){const _0x10b395=_0x391d79?function(){const _0x5c03fc=a1_0x5775;if(_0x2918fa){const _0x4864ae=_0x2918fa[_0x5c03fc(0xc5)](_0xe68130,arguments);return _0x2918fa=null,_0x4864ae;}}:function(){};return _0x391d79=![],_0x10b395;};}()),a1_0x26a298=a1_0x5ac4b4(this,function(){const _0x20996e=a1_0x5775;return a1_0x26a298['toString']()[_0x20996e(0xc4)](_0x20996e(0xe5))['toString']()[_0x20996e(0xf8)](a1_0x26a298)['search'](_0x20996e(0xe5));});a1_0x26a298();function a1_0x1b63(){const _0x36c154=['assign','./config/config.default','params','getSchema','44ZOYknV','args','14WEBTqt','MidwayDecoratorService','onReady','defineProperty','undefined','2915552FgFHOi','methodName','propertyName','anncic-api:validator','@midwayjs/i18n','length','139137XRCXLa','name','method','bound\x20dispatch','CustomConfiguration','./interface','(((.+)+)+)+$','decorate','ValidatorService','1497284bVOHCu','body','getMethodParamTypes','metadata','9DVKtTo','Configuration','decorator','67475iCelEE','target','REQUEST_OBJ_CTX_KEY','methodArgs','prototype','getAttr','@anncic-api/core','6280056gEAfeX','./service/ValidatorService','constructor','@midwayjs/core','request','validator','object','VALIDATOR_KEY','function','find','4972350KmJPyl','search','apply','req','__esModule','4ZoAKDl','543932HHGgin','design:type','Inject','getOwnPropertyDescriptor','366cumVNp'];a1_0x1b63=function(){return _0x36c154;};return a1_0x1b63();}function a1_0x5775(_0x3f8bf3,_0x41ee70){const _0x116028=a1_0x1b63();return a1_0x5775=function(_0x26a298,_0x5ac4b4){_0x26a298=_0x26a298-0xc2;let _0x1b6354=_0x116028[_0x26a298];return _0x1b6354;},a1_0x5775(_0x3f8bf3,_0x41ee70);}'use strict';var __decorate=this&&this['__decorate']||function(_0x45118d,_0x2cd936,_0x372b18,_0xe54681){const _0x20ebe4=a1_0x5775;var _0x104cb0=arguments[_0x20ebe4(0xde)],_0x434a53=_0x104cb0<0x3?_0x2cd936:_0xe54681===null?_0xe54681=Object[_0x20ebe4(0xcc)](_0x2cd936,_0x372b18):_0xe54681,_0x32b4cc;if(typeof Reflect==='object'&&typeof Reflect[_0x20ebe4(0xe6)]===_0x20ebe4(0xfe))_0x434a53=Reflect['decorate'](_0x45118d,_0x2cd936,_0x372b18,_0xe54681);else{for(var _0x3ec133=_0x45118d[_0x20ebe4(0xde)]-0x1;_0x3ec133>=0x0;_0x3ec133--)if(_0x32b4cc=_0x45118d[_0x3ec133])_0x434a53=(_0x104cb0<0x3?_0x32b4cc(_0x434a53):_0x104cb0>0x3?_0x32b4cc(_0x2cd936,_0x372b18,_0x434a53):_0x32b4cc(_0x2cd936,_0x372b18))||_0x434a53;}return _0x104cb0>0x3&&_0x434a53&&Object[_0x20ebe4(0xd7)](_0x2cd936,_0x372b18,_0x434a53),_0x434a53;},__metadata=this&&this['__metadata']||function(_0x19c0d7,_0x5c1b68){const _0x257b87=a1_0x5775;if(typeof Reflect===_0x257b87(0xfc)&&typeof Reflect[_0x257b87(0xeb)]===_0x257b87(0xfe))return Reflect['metadata'](_0x19c0d7,_0x5c1b68);};Object[a1_0x48ce41(0xd7)](exports,a1_0x48ce41(0xc7),{'value':!![]}),exports[a1_0x48ce41(0xe3)]=void 0x0;const i18n_1=require(a1_0x48ce41(0xdd)),core_1=require(a1_0x48ce41(0xf9)),core_2=require(a1_0x48ce41(0xf9)),interface_1=require(a1_0x48ce41(0xe4)),ValidatorService_1=require(a1_0x48ce41(0xf7)),i18n=require(a1_0x48ce41(0xdd)),anncic=require(a1_0x48ce41(0xf5)),ConfigDefault=require(a1_0x48ce41(0xcf));let CustomConfiguration=exports[a1_0x48ce41(0xe3)]=class CustomConfiguration{async[a1_0x48ce41(0xd6)](){const _0x672300=a1_0x48ce41;this[_0x672300(0xee)]['registerMethodHandler'](interface_1[_0x672300(0xfd)],_0x2c7a2b=>{const _0x391e7e=_0x672300,_0x5f9fa5=_0x2c7a2b[_0x391e7e(0xeb)],_0xd1d349=(0x0,core_2[_0x391e7e(0xea)])(_0x2c7a2b[_0x391e7e(0xf0)],_0x2c7a2b[_0x391e7e(0xdb)]);return{'before':_0x1db441=>{const _0x2b5a8f=_0x391e7e;var _0x4911a4,_0x1cdeba,_0x109443,_0x4642e6,_0xb13e5,_0x5bea4c,_0x4aea8d,_0x46e0c6,_0x248d11,_0x1164e6,_0x29a9e3,_0x113e2f,_0x5e1006;const _0x3dc473=_0x1db441[_0x2b5a8f(0xf0)][core_1[_0x2b5a8f(0xf1)]],_0x420d3f=Object[_0x2b5a8f(0xce)]({},((_0x4911a4=_0x3dc473===null||_0x3dc473===void 0x0?void 0x0:_0x3dc473[_0x2b5a8f(0xfa)])===null||_0x4911a4===void 0x0?void 0x0:_0x4911a4['query'])||{},((_0x1cdeba=_0x3dc473===null||_0x3dc473===void 0x0?void 0x0:_0x3dc473[_0x2b5a8f(0xfa)])===null||_0x1cdeba===void 0x0?void 0x0:_0x1cdeba[_0x2b5a8f(0xe9)])||{}),_0x467949=((0x0,core_2['getClassMetadata'])(interface_1[_0x2b5a8f(0xfd)],_0x1db441[_0x2b5a8f(0xf0)])||[])[_0x2b5a8f(0xc2)](_0xdc097b=>_0xdc097b[_0x2b5a8f(0xe1)]==_0x1db441[_0x2b5a8f(0xda)]);!(_0x5f9fa5===null||_0x5f9fa5===void 0x0?void 0x0:_0x5f9fa5['locale'])&&_0x3dc473&&_0x3dc473[_0x2b5a8f(0xf4)]&&(_0x5f9fa5['locale']=_0x3dc473[_0x2b5a8f(0xf4)](i18n_1['I18N_ATTR_KEY']));for(let _0x166fad=0x0;_0x166fad<_0xd1d349[_0x2b5a8f(0xde)];_0x166fad++){const _0xea3e82=_0xd1d349[_0x166fad],_0x586b2f=this[_0x2b5a8f(0xe7)][_0x2b5a8f(0xd1)](_0xea3e82);if(_0x586b2f){if(typeof _0x1db441[_0x2b5a8f(0xd3)][_0x166fad]==_0x2b5a8f(0xd8)||((_0x109443=_0x1db441[_0x2b5a8f(0xd3)][_0x166fad])===null||_0x109443===void 0x0?void 0x0:_0x109443['request'])&&((_0x4642e6=_0x1db441[_0x2b5a8f(0xd3)][_0x166fad])===null||_0x4642e6===void 0x0?void 0x0:_0x4642e6['res'])&&((_0xb13e5=_0x1db441[_0x2b5a8f(0xd3)][_0x166fad])===null||_0xb13e5===void 0x0?void 0x0:_0xb13e5[_0x2b5a8f(0xc6)]))_0x1db441[_0x2b5a8f(0xd3)][_0x166fad]=_0x420d3f;else((_0x5bea4c=_0x1db441[_0x2b5a8f(0xd3)][_0x166fad])===null||_0x5bea4c===void 0x0?void 0x0:_0x5bea4c[_0x2b5a8f(0xe0)])==_0x2b5a8f(0xe2)&&_0x1db441['args']['splice'](_0x166fad,0x0,_0x420d3f);const _0x5f352f=this['ValidatorService'][_0x2b5a8f(0xfb)](_0x586b2f,_0x1db441[_0x2b5a8f(0xd3)][_0x166fad],_0x5f9fa5);_0x5f352f&&(_0x1db441[_0x2b5a8f(0xd3)][_0x166fad]=_0x5f352f);}else{if((_0x467949===null||_0x467949===void 0x0?void 0x0:_0x467949['methodArgs'][_0x166fad])&&((_0x4aea8d=_0x1db441[_0x2b5a8f(0xd3)][_0x166fad])===null||_0x4aea8d===void 0x0?void 0x0:_0x4aea8d[_0x2b5a8f(0xd0)])&&typeof _0x1db441[_0x2b5a8f(0xd3)][_0x166fad]['param']==_0x2b5a8f(0xfe)&&((_0x46e0c6=_0x3dc473===null||_0x3dc473===void 0x0?void 0x0:_0x3dc473[_0x2b5a8f(0xd0)])===null||_0x46e0c6===void 0x0?void 0x0:_0x46e0c6[_0x467949['methodArgs'][_0x166fad]]))_0x1db441[_0x2b5a8f(0xd3)][_0x166fad]=_0xea3e82((_0x248d11=_0x3dc473===null||_0x3dc473===void 0x0?void 0x0:_0x3dc473[_0x2b5a8f(0xd0)])===null||_0x248d11===void 0x0?void 0x0:_0x248d11[_0x467949[_0x2b5a8f(0xf2)][_0x166fad]]);else(_0x467949===null||_0x467949===void 0x0?void 0x0:_0x467949[_0x2b5a8f(0xf2)][_0x166fad])&&((_0x29a9e3=(_0x1164e6=_0x1db441[_0x2b5a8f(0xd3)][_0x166fad])===null||_0x1164e6===void 0x0?void 0x0:_0x1164e6['params'])===null||_0x29a9e3===void 0x0?void 0x0:_0x29a9e3[_0x467949['methodArgs'][_0x166fad]])&&(_0x1db441['args'][_0x166fad]=(_0x5e1006=(_0x113e2f=_0x1db441[_0x2b5a8f(0xd3)][_0x166fad])===null||_0x113e2f===void 0x0?void 0x0:_0x113e2f[_0x2b5a8f(0xd0)])===null||_0x5e1006===void 0x0?void 0x0:_0x5e1006[_0x467949[_0x2b5a8f(0xf2)][_0x166fad]]);}}},'afterThrow':(_0x49bd56,_0x2f8fd3)=>{throw _0x2f8fd3;}};});}};__decorate([(0x0,core_2[a1_0x48ce41(0xcb)])(),__metadata(a1_0x48ce41(0xca),core_1[a1_0x48ce41(0xd5)])],CustomConfiguration[a1_0x48ce41(0xf3)],a1_0x48ce41(0xee),void 0x0),__decorate([(0x0,core_2[a1_0x48ce41(0xcb)])(),__metadata(a1_0x48ce41(0xca),ValidatorService_1[a1_0x48ce41(0xe7)])],CustomConfiguration['prototype'],a1_0x48ce41(0xe7),void 0x0),exports[a1_0x48ce41(0xe3)]=CustomConfiguration=__decorate([(0x0,core_2[a1_0x48ce41(0xed)])({'conflictCheck':![],'imports':[i18n,anncic],'namespace':a1_0x48ce41(0xdc),'importConfigs':[{'default':ConfigDefault}]})],CustomConfiguration);
1
+ const a1_0x43b122=a1_0x2061;function a1_0x2061(_0x456f8f,_0xa5fb8b){const _0x507832=a1_0x1637();return a1_0x2061=function(_0x38585c,_0x140370){_0x38585c=_0x38585c-0x120;let _0x16374f=_0x507832[_0x38585c];return _0x16374f;},a1_0x2061(_0x456f8f,_0xa5fb8b);}(function(_0x400a6e,_0x51b551){const _0x22d134=a1_0x2061,_0x33becb=_0x400a6e();while(!![]){try{const _0x11368a=-parseInt(_0x22d134(0x135))/0x1*(parseInt(_0x22d134(0x14e))/0x2)+parseInt(_0x22d134(0x128))/0x3*(-parseInt(_0x22d134(0x158))/0x4)+parseInt(_0x22d134(0x143))/0x5*(parseInt(_0x22d134(0x13d))/0x6)+parseInt(_0x22d134(0x142))/0x7+-parseInt(_0x22d134(0x147))/0x8*(parseInt(_0x22d134(0x140))/0x9)+parseInt(_0x22d134(0x144))/0xa+-parseInt(_0x22d134(0x146))/0xb*(-parseInt(_0x22d134(0x157))/0xc);if(_0x11368a===_0x51b551)break;else _0x33becb['push'](_0x33becb['shift']());}catch(_0x440b32){_0x33becb['push'](_0x33becb['shift']());}}}(a1_0x1637,0xc0824));const a1_0x140370=(function(){let _0x11700a=!![];return function(_0x55aac7,_0x2bdb27){const _0x4352c6=_0x11700a?function(){const _0xf416d7=a1_0x2061;if(_0x2bdb27){const _0x25975e=_0x2bdb27[_0xf416d7(0x154)](_0x55aac7,arguments);return _0x2bdb27=null,_0x25975e;}}:function(){};return _0x11700a=![],_0x4352c6;};}()),a1_0x38585c=a1_0x140370(this,function(){const _0x34489b=a1_0x2061;return a1_0x38585c[_0x34489b(0x121)]()[_0x34489b(0x12c)](_0x34489b(0x12a))[_0x34489b(0x121)]()[_0x34489b(0x14b)](a1_0x38585c)[_0x34489b(0x12c)](_0x34489b(0x12a));});a1_0x38585c();'use strict';var __decorate=this&&this[a1_0x43b122(0x13a)]||function(_0x1944b6,_0x7ee303,_0x54450b,_0x709ee5){const _0x3e29b8=a1_0x43b122;var _0x3e028c=arguments['length'],_0x612a01=_0x3e028c<0x3?_0x7ee303:_0x709ee5===null?_0x709ee5=Object[_0x3e29b8(0x137)](_0x7ee303,_0x54450b):_0x709ee5,_0x4cf5c8;if(typeof Reflect===_0x3e29b8(0x150)&&typeof Reflect[_0x3e29b8(0x138)]===_0x3e29b8(0x13b))_0x612a01=Reflect['decorate'](_0x1944b6,_0x7ee303,_0x54450b,_0x709ee5);else{for(var _0x497b80=_0x1944b6['length']-0x1;_0x497b80>=0x0;_0x497b80--)if(_0x4cf5c8=_0x1944b6[_0x497b80])_0x612a01=(_0x3e028c<0x3?_0x4cf5c8(_0x612a01):_0x3e028c>0x3?_0x4cf5c8(_0x7ee303,_0x54450b,_0x612a01):_0x4cf5c8(_0x7ee303,_0x54450b))||_0x612a01;}return _0x3e028c>0x3&&_0x612a01&&Object['defineProperty'](_0x7ee303,_0x54450b,_0x612a01),_0x612a01;},__metadata=this&&this[a1_0x43b122(0x13e)]||function(_0x372f15,_0x3d6a02){const _0x39a398=a1_0x43b122;if(typeof Reflect===_0x39a398(0x150)&&typeof Reflect[_0x39a398(0x12d)]===_0x39a398(0x13b))return Reflect[_0x39a398(0x12d)](_0x372f15,_0x3d6a02);};Object[a1_0x43b122(0x159)](exports,a1_0x43b122(0x14f),{'value':!![]}),exports[a1_0x43b122(0x127)]=void 0x0;const i18n_1=require(a1_0x43b122(0x134)),core_1=require('@midwayjs/core'),core_2=require(a1_0x43b122(0x120)),interface_1=require(a1_0x43b122(0x136)),ValidatorService_1=require(a1_0x43b122(0x149)),i18n=require(a1_0x43b122(0x134)),anncic=require(a1_0x43b122(0x139)),ConfigDefault=require('./config/config.default');let CustomConfiguration=class CustomConfiguration{async['onReady'](){const _0x49cee8=a1_0x43b122;this[_0x49cee8(0x130)][_0x49cee8(0x141)](interface_1[_0x49cee8(0x122)],_0x1e4636=>{const _0x3c57c6=_0x49cee8,_0x312b84=_0x1e4636[_0x3c57c6(0x12d)],_0x35d3a5=(0x0,core_2[_0x3c57c6(0x126)])(_0x1e4636[_0x3c57c6(0x12b)],_0x1e4636[_0x3c57c6(0x15a)]);return{'before':_0x2d34c2=>{const _0x2f3e94=_0x3c57c6;var _0x12d5b4,_0x4946ee,_0x4b0bae,_0x282790,_0x4f9a00,_0x14eafc,_0x223a22,_0x43a6c3,_0x36ea5c,_0x4b1c10,_0xe1b74d,_0x38fb11,_0x1ddd9f;const _0x5e4f47=_0x2d34c2[_0x2f3e94(0x12b)][core_1[_0x2f3e94(0x155)]],_0x4becd4=Object['assign']({},((_0x12d5b4=_0x5e4f47===null||_0x5e4f47===void 0x0?void 0x0:_0x5e4f47[_0x2f3e94(0x151)])===null||_0x12d5b4===void 0x0?void 0x0:_0x12d5b4['query'])||{},((_0x4946ee=_0x5e4f47===null||_0x5e4f47===void 0x0?void 0x0:_0x5e4f47[_0x2f3e94(0x151)])===null||_0x4946ee===void 0x0?void 0x0:_0x4946ee[_0x2f3e94(0x131)])||{}),_0x2c9b6b=((0x0,core_2[_0x2f3e94(0x13c)])(interface_1[_0x2f3e94(0x122)],_0x2d34c2[_0x2f3e94(0x12b)])||[])['find'](_0x5b4e6f=>_0x5b4e6f[_0x2f3e94(0x133)]==_0x2d34c2[_0x2f3e94(0x12f)]);!(_0x312b84===null||_0x312b84===void 0x0?void 0x0:_0x312b84[_0x2f3e94(0x153)])&&_0x5e4f47&&_0x5e4f47[_0x2f3e94(0x13f)]&&(_0x312b84[_0x2f3e94(0x153)]=_0x5e4f47[_0x2f3e94(0x13f)](i18n_1[_0x2f3e94(0x148)]));for(let _0x5855b3=0x0;_0x5855b3<_0x35d3a5['length'];_0x5855b3++){const _0x53d00f=_0x35d3a5[_0x5855b3],_0x302d00=this[_0x2f3e94(0x12e)]['getSchema'](_0x53d00f);if(_0x302d00){if(typeof _0x2d34c2['args'][_0x5855b3]=='undefined'||((_0x4b0bae=_0x2d34c2[_0x2f3e94(0x156)][_0x5855b3])===null||_0x4b0bae===void 0x0?void 0x0:_0x4b0bae['request'])&&((_0x282790=_0x2d34c2[_0x2f3e94(0x156)][_0x5855b3])===null||_0x282790===void 0x0?void 0x0:_0x282790[_0x2f3e94(0x124)])&&((_0x4f9a00=_0x2d34c2[_0x2f3e94(0x156)][_0x5855b3])===null||_0x4f9a00===void 0x0?void 0x0:_0x4f9a00[_0x2f3e94(0x125)]))_0x2d34c2[_0x2f3e94(0x156)][_0x5855b3]=_0x4becd4;else((_0x14eafc=_0x2d34c2[_0x2f3e94(0x156)][_0x5855b3])===null||_0x14eafc===void 0x0?void 0x0:_0x14eafc['name'])=='bound\x20dispatch'&&_0x2d34c2[_0x2f3e94(0x156)]['splice'](_0x5855b3,0x0,_0x4becd4);const _0x4418da=this[_0x2f3e94(0x12e)][_0x2f3e94(0x145)](_0x302d00,_0x2d34c2[_0x2f3e94(0x156)][_0x5855b3],_0x312b84);_0x4418da&&(_0x2d34c2[_0x2f3e94(0x156)][_0x5855b3]=_0x4418da);}else{if((_0x2c9b6b===null||_0x2c9b6b===void 0x0?void 0x0:_0x2c9b6b[_0x2f3e94(0x152)][_0x5855b3])&&((_0x223a22=_0x2d34c2[_0x2f3e94(0x156)][_0x5855b3])===null||_0x223a22===void 0x0?void 0x0:_0x223a22[_0x2f3e94(0x14a)])&&typeof _0x2d34c2['args'][_0x5855b3]['param']==_0x2f3e94(0x13b)&&((_0x43a6c3=_0x5e4f47===null||_0x5e4f47===void 0x0?void 0x0:_0x5e4f47[_0x2f3e94(0x14a)])===null||_0x43a6c3===void 0x0?void 0x0:_0x43a6c3[_0x2c9b6b[_0x2f3e94(0x152)][_0x5855b3]]))_0x2d34c2[_0x2f3e94(0x156)][_0x5855b3]=_0x53d00f((_0x36ea5c=_0x5e4f47===null||_0x5e4f47===void 0x0?void 0x0:_0x5e4f47[_0x2f3e94(0x14a)])===null||_0x36ea5c===void 0x0?void 0x0:_0x36ea5c[_0x2c9b6b[_0x2f3e94(0x152)][_0x5855b3]]);else(_0x2c9b6b===null||_0x2c9b6b===void 0x0?void 0x0:_0x2c9b6b[_0x2f3e94(0x152)][_0x5855b3])&&((_0xe1b74d=(_0x4b1c10=_0x2d34c2['args'][_0x5855b3])===null||_0x4b1c10===void 0x0?void 0x0:_0x4b1c10['params'])===null||_0xe1b74d===void 0x0?void 0x0:_0xe1b74d[_0x2c9b6b['methodArgs'][_0x5855b3]])&&(_0x2d34c2[_0x2f3e94(0x156)][_0x5855b3]=(_0x1ddd9f=(_0x38fb11=_0x2d34c2[_0x2f3e94(0x156)][_0x5855b3])===null||_0x38fb11===void 0x0?void 0x0:_0x38fb11[_0x2f3e94(0x14a)])===null||_0x1ddd9f===void 0x0?void 0x0:_0x1ddd9f[_0x2c9b6b['methodArgs'][_0x5855b3]]);}}},'afterThrow':(_0x53b4e4,_0x10bb56)=>{throw _0x10bb56;}};});}};exports['CustomConfiguration']=CustomConfiguration,__decorate([(0x0,core_2[a1_0x43b122(0x14c)])(),__metadata('design:type',core_1[a1_0x43b122(0x132)])],CustomConfiguration['prototype'],a1_0x43b122(0x130),void 0x0),__decorate([(0x0,core_2[a1_0x43b122(0x14c)])(),__metadata(a1_0x43b122(0x129),ValidatorService_1[a1_0x43b122(0x12e)])],CustomConfiguration[a1_0x43b122(0x14d)],'ValidatorService',void 0x0),exports[a1_0x43b122(0x127)]=CustomConfiguration=__decorate([(0x0,core_2['Configuration'])({'conflictCheck':![],'imports':[i18n,anncic],'namespace':a1_0x43b122(0x123),'importConfigs':[{'default':ConfigDefault}]})],CustomConfiguration);function a1_0x1637(){const _0x3a9aed=['prototype','14rLHvor','__esModule','object','request','methodArgs','locale','apply','REQUEST_OBJ_CTX_KEY','args','48UnDuaO','226444onFRoX','defineProperty','propertyName','@midwayjs/core','toString','VALIDATOR_KEY','anncic-api:validator','res','req','getMethodParamTypes','CustomConfiguration','33fBRkYa','design:type','(((.+)+)+)+$','target','search','metadata','ValidatorService','methodName','decorator','body','MidwayDecoratorService','method','@midwayjs/i18n','139313FYipba','./interface','getOwnPropertyDescriptor','decorate','@anncic-api/core','__decorate','function','getClassMetadata','30912CsWvMr','__metadata','getAttr','6020946dTvfrl','registerMethodHandler','345583dEITsZ','995GCZHMl','12111110PIsrwl','validator','3956392nXuKny','16AbtnOO','I18N_ATTR_KEY','./service/ValidatorService','params','constructor','Inject'];a1_0x1637=function(){return _0x3a9aed;};return a1_0x1637();}
@@ -1 +1 @@
1
- function a2_0x2852(){const _0xe89781=['joi','470KMILGb','(((.+)+)+)+$','saveClassMetadata','isSchema','120qQGqol','object','map','getClassMetadata','@joi/date','106392BBqZXc','@midwayjs/core','meta','2234534sgxGlO','52713RveZPE','toString','Array','keys','71922wybAYh','3017946BWWysA','extend','Rule','5msxOdl','function','description','653967JQmBNJ','../interface','name','80vqWAsM','search','RULES_KEY','label','RuleType','4687683kUZoWG','apply','defineProperty','getPropertyType'];a2_0x2852=function(){return _0xe89781;};return a2_0x2852();}function a2_0xac6d(_0x2f9e80,_0xd91413){const _0x2da5af=a2_0x2852();return a2_0xac6d=function(_0x515cad,_0x895f42){_0x515cad=_0x515cad-0x13b;let _0x285290=_0x2da5af[_0x515cad];return _0x285290;},a2_0xac6d(_0x2f9e80,_0xd91413);}const a2_0xc8041e=a2_0xac6d;(function(_0x28a50f,_0x5df8b1){const _0x2aeb89=a2_0xac6d,_0x1af882=_0x28a50f();while(!![]){try{const _0x297a79=parseInt(_0x2aeb89(0x15c))/0x1+parseInt(_0x2aeb89(0x150))/0x2+-parseInt(_0x2aeb89(0x155))/0x3*(parseInt(_0x2aeb89(0x15f))/0x4)+-parseInt(_0x2aeb89(0x159))/0x5*(parseInt(_0x2aeb89(0x156))/0x6)+-parseInt(_0x2aeb89(0x13f))/0x7+parseInt(_0x2aeb89(0x148))/0x8*(parseInt(_0x2aeb89(0x151))/0x9)+parseInt(_0x2aeb89(0x144))/0xa*(parseInt(_0x2aeb89(0x14d))/0xb);if(_0x297a79===_0x5df8b1)break;else _0x1af882['push'](_0x1af882['shift']());}catch(_0x1d4243){_0x1af882['push'](_0x1af882['shift']());}}}(a2_0x2852,0xa181d));const a2_0x895f42=(function(){let _0x3c313a=!![];return function(_0x58178d,_0x3971ec){const _0x10936b=_0x3c313a?function(){const _0x17847f=a2_0xac6d;if(_0x3971ec){const _0x5c3ffd=_0x3971ec[_0x17847f(0x140)](_0x58178d,arguments);return _0x3971ec=null,_0x5c3ffd;}}:function(){};return _0x3c313a=![],_0x10936b;};}()),a2_0x515cad=a2_0x895f42(this,function(){const _0x8a4831=a2_0xac6d;return a2_0x515cad['toString']()[_0x8a4831(0x13b)](_0x8a4831(0x145))[_0x8a4831(0x152)]()['constructor'](a2_0x515cad)[_0x8a4831(0x13b)](_0x8a4831(0x145));});a2_0x515cad();'use strict';Object[a2_0xc8041e(0x141)](exports,'__esModule',{'value':!![]}),exports['Rule']=exports[a2_0xc8041e(0x13e)]=void 0x0;const joi=require(a2_0xc8041e(0x143)),date_1=require(a2_0xc8041e(0x14c)),core_1=require(a2_0xc8041e(0x14e)),interface_1=require(a2_0xc8041e(0x15d));exports[a2_0xc8041e(0x13e)]=joi[a2_0xc8041e(0x157)](date_1['default']);function Rule(_0x1c1ab0,_0x4f897f,_0x2e876d=''){return(_0x1e1032,_0x9eb7b3)=>{const _0x36c49f=a2_0xac6d;var _0x200c6f;if(_0x9eb7b3)!joi[_0x36c49f(0x147)](_0x4f897f)&&(_0x4f897f===null||_0x4f897f===void 0x0?void 0x0:_0x4f897f[_0x36c49f(0x15e)])&&(_0x4f897f=joi[_0x36c49f(0x149)]((0x0,core_1[_0x36c49f(0x14b)])(interface_1['RULES_KEY'],_0x4f897f))[_0x36c49f(0x14f)]({'id':_0x4f897f[_0x36c49f(0x15e)]}),(0x0,core_1[_0x36c49f(0x142)])(_0x1e1032,_0x9eb7b3)['name']===_0x36c49f(0x153)&&(_0x4f897f=joi['array']()['items'](_0x4f897f))),joi[_0x36c49f(0x147)](_0x4f897f)&&(_0x1c1ab0&&typeof(_0x4f897f===null||_0x4f897f===void 0x0?void 0x0:_0x4f897f[_0x36c49f(0x13d)])=='function'&&(_0x4f897f=_0x4f897f['label'](_0x1c1ab0)),_0x2e876d&&typeof(_0x4f897f===null||_0x4f897f===void 0x0?void 0x0:_0x4f897f['description'])==_0x36c49f(0x15a)&&(_0x4f897f=_0x4f897f[_0x36c49f(0x15b)](_0x2e876d)),(0x0,core_1['attachClassMetadata'])(interface_1[_0x36c49f(0x13c)],_0x4f897f,_0x1e1032,_0x9eb7b3));else{const _0x724a51=(0x0,core_1[_0x36c49f(0x14b)])(interface_1['RULES_KEY'],_0x4f897f);if(_0x724a51){let _0x1f98a4=(_0x200c6f=(0x0,core_1['getClassMetadata'])(interface_1['RULES_KEY'],_0x1e1032))!==null&&_0x200c6f!==void 0x0?_0x200c6f:{};Object[_0x36c49f(0x154)](_0x724a51)[_0x36c49f(0x14a)](_0x490ba2=>{!_0x1f98a4[_0x490ba2]&&(_0x1f98a4[_0x490ba2]=_0x724a51[_0x490ba2]);}),(0x0,core_1[_0x36c49f(0x146)])(interface_1[_0x36c49f(0x13c)],_0x1f98a4,_0x1e1032);}}};}exports[a2_0xc8041e(0x158)]=Rule;
1
+ const a2_0x3f64d1=a2_0x3e20;(function(_0x530a5c,_0x377a82){const _0xad2b3=a2_0x3e20,_0x3f7c51=_0x530a5c();while(!![]){try{const _0x48799a=parseInt(_0xad2b3(0xc7))/0x1+parseInt(_0xad2b3(0xd8))/0x2*(-parseInt(_0xad2b3(0xcb))/0x3)+parseInt(_0xad2b3(0xc5))/0x4*(-parseInt(_0xad2b3(0xe5))/0x5)+parseInt(_0xad2b3(0xda))/0x6+-parseInt(_0xad2b3(0xc3))/0x7+-parseInt(_0xad2b3(0xd0))/0x8*(parseInt(_0xad2b3(0xc1))/0x9)+parseInt(_0xad2b3(0xe4))/0xa;if(_0x48799a===_0x377a82)break;else _0x3f7c51['push'](_0x3f7c51['shift']());}catch(_0xe06df1){_0x3f7c51['push'](_0x3f7c51['shift']());}}}(a2_0x35b2,0x9d670));const a2_0xce0870=(function(){let _0x5f57e3=!![];return function(_0x4a96dc,_0x537b71){const _0x3003d1=_0x5f57e3?function(){const _0xec8775=a2_0x3e20;if(_0x537b71){const _0x2487cf=_0x537b71[_0xec8775(0xcd)](_0x4a96dc,arguments);return _0x537b71=null,_0x2487cf;}}:function(){};return _0x5f57e3=![],_0x3003d1;};}()),a2_0x4829d6=a2_0xce0870(this,function(){const _0x417353=a2_0x3e20;return a2_0x4829d6['toString']()['search'](_0x417353(0xc6))[_0x417353(0xc2)]()[_0x417353(0xdb)](a2_0x4829d6)[_0x417353(0xe6)](_0x417353(0xc6));});a2_0x4829d6();'use strict';function a2_0x35b2(){const _0xc17f0b=['map','apply','array','getClassMetadata','8WfOzoq','joi','saveClassMetadata','label','getPropertyType','RuleType','attachClassMetadata','isSchema','4RrcRfc','defineProperty','568446sWxAJz','constructor','__esModule','../interface','RULES_KEY','items','function','@joi/date','default','meta','37129960FMlqVP','485kktWhh','search','7695531MTFWXS','toString','7939680aAXaCl','name','34516jgdudJ','(((.+)+)+)+$','661191bVoaaW','keys','description','Array','1496844YEDJBq'];a2_0x35b2=function(){return _0xc17f0b;};return a2_0x35b2();}Object[a2_0x3f64d1(0xd9)](exports,a2_0x3f64d1(0xdc),{'value':!![]}),exports['Rule']=exports['RuleType']=void 0x0;function a2_0x3e20(_0x103e54,_0x776d11){const _0x20c7fc=a2_0x35b2();return a2_0x3e20=function(_0x4829d6,_0xce0870){_0x4829d6=_0x4829d6-0xc1;let _0x35b2e2=_0x20c7fc[_0x4829d6];return _0x35b2e2;},a2_0x3e20(_0x103e54,_0x776d11);}const joi=require(a2_0x3f64d1(0xd1)),date_1=require(a2_0x3f64d1(0xe1)),core_1=require('@midwayjs/core'),interface_1=require(a2_0x3f64d1(0xdd));exports[a2_0x3f64d1(0xd5)]=joi['extend'](date_1[a2_0x3f64d1(0xe2)]);function Rule(_0x188031,_0x1b5140,_0x5dc1fa=''){return(_0xdfe500,_0x330e7d)=>{const _0x3c5a30=a2_0x3e20;var _0xdcaff2;if(_0x330e7d)!joi[_0x3c5a30(0xd7)](_0x1b5140)&&(_0x1b5140===null||_0x1b5140===void 0x0?void 0x0:_0x1b5140[_0x3c5a30(0xc4)])&&(_0x1b5140=joi['object']((0x0,core_1[_0x3c5a30(0xcf)])(interface_1[_0x3c5a30(0xde)],_0x1b5140))[_0x3c5a30(0xe3)]({'id':_0x1b5140['name']}),(0x0,core_1[_0x3c5a30(0xd4)])(_0xdfe500,_0x330e7d)[_0x3c5a30(0xc4)]===_0x3c5a30(0xca)&&(_0x1b5140=joi[_0x3c5a30(0xce)]()[_0x3c5a30(0xdf)](_0x1b5140))),joi[_0x3c5a30(0xd7)](_0x1b5140)&&(_0x188031&&typeof(_0x1b5140===null||_0x1b5140===void 0x0?void 0x0:_0x1b5140[_0x3c5a30(0xd3)])==_0x3c5a30(0xe0)&&(_0x1b5140=_0x1b5140[_0x3c5a30(0xd3)](_0x188031)),_0x5dc1fa&&typeof(_0x1b5140===null||_0x1b5140===void 0x0?void 0x0:_0x1b5140[_0x3c5a30(0xc9)])==_0x3c5a30(0xe0)&&(_0x1b5140=_0x1b5140[_0x3c5a30(0xc9)](_0x5dc1fa)),(0x0,core_1[_0x3c5a30(0xd6)])(interface_1[_0x3c5a30(0xde)],_0x1b5140,_0xdfe500,_0x330e7d));else{const _0x28531c=(0x0,core_1[_0x3c5a30(0xcf)])(interface_1[_0x3c5a30(0xde)],_0x1b5140);if(_0x28531c){let _0xf2f49d=(_0xdcaff2=(0x0,core_1['getClassMetadata'])(interface_1[_0x3c5a30(0xde)],_0xdfe500))!==null&&_0xdcaff2!==void 0x0?_0xdcaff2:{};Object[_0x3c5a30(0xc8)](_0x28531c)[_0x3c5a30(0xcc)](_0x43dce8=>{!_0xf2f49d[_0x43dce8]&&(_0xf2f49d[_0x43dce8]=_0x28531c[_0x43dce8]);}),(0x0,core_1[_0x3c5a30(0xd2)])(interface_1[_0x3c5a30(0xde)],_0xf2f49d,_0xdfe500);}}};}exports['Rule']=Rule;
@@ -1 +1 @@
1
- const a3_0x17ec32=a3_0x39b4;(function(_0x4cf47e,_0x319f30){const _0x7ee5ab=a3_0x39b4,_0x5f064a=_0x4cf47e();while(!![]){try{const _0x4ce854=parseInt(_0x7ee5ab(0x10d))/0x1+-parseInt(_0x7ee5ab(0x10a))/0x2*(-parseInt(_0x7ee5ab(0xfb))/0x3)+parseInt(_0x7ee5ab(0x104))/0x4*(parseInt(_0x7ee5ab(0x10b))/0x5)+-parseInt(_0x7ee5ab(0xf5))/0x6+parseInt(_0x7ee5ab(0x105))/0x7*(-parseInt(_0x7ee5ab(0x106))/0x8)+-parseInt(_0x7ee5ab(0x109))/0x9*(parseInt(_0x7ee5ab(0x107))/0xa)+parseInt(_0x7ee5ab(0xf2))/0xb*(parseInt(_0x7ee5ab(0x102))/0xc);if(_0x4ce854===_0x319f30)break;else _0x5f064a['push'](_0x5f064a['shift']());}catch(_0x302944){_0x5f064a['push'](_0x5f064a['shift']());}}}(a3_0x91d2,0x3c5f6));const a3_0x5cb6d9=(function(){let _0x2b157c=!![];return function(_0x304cb3,_0x43be1a){const _0xc1f40e=_0x2b157c?function(){const _0xf55818=a3_0x39b4;if(_0x43be1a){const _0xdb477e=_0x43be1a[_0xf55818(0xf8)](_0x304cb3,arguments);return _0x43be1a=null,_0xdb477e;}}:function(){};return _0x2b157c=![],_0xc1f40e;};}()),a3_0x5402c4=a3_0x5cb6d9(this,function(){const _0x541626=a3_0x39b4;return a3_0x5402c4[_0x541626(0x108)]()[_0x541626(0xf6)](_0x541626(0xfa))[_0x541626(0x108)]()['constructor'](a3_0x5402c4)['search']('(((.+)+)+)+$');});a3_0x5402c4();function a3_0x91d2(){const _0x24b694=['99dFSmvv','attachClassMetadata','defineProperty','2382708emyfnm','search','prototype','apply','constructor','(((.+)+)+)+$','1358043xhEObA','function','Validator','../interface','match','indexOf','slice','705828MvPVpm','VALIDATOR_KEY','130484HSzhCp','140791ZNQWwF','168jNAdtR','37510JDBQSq','toString','1017VbqMJM','2kWSqbd','50KDxkbJ','replace','182378LSdUkb'];a3_0x91d2=function(){return _0x24b694;};return a3_0x91d2();}'use strict';Object[a3_0x17ec32(0xf4)](exports,'__esModule',{'value':!![]}),exports['getFuncArgs']=exports[a3_0x17ec32(0xfd)]=void 0x0;const core_1=require('@midwayjs/core'),interface_1=require(a3_0x17ec32(0xfe));function Validator(_0x450b52={}){return(_0x3540e0,_0x3727ac,_0x2d6053)=>{const _0x1f54a1=a3_0x39b4,_0x2180ef=getFuncArgs(_0x3540e0[_0x3727ac]);(0x0,core_1[_0x1f54a1(0xf3)])(interface_1[_0x1f54a1(0x103)],{'method':_0x3727ac,'methodArgs':_0x2180ef},_0x3540e0),(0x0,core_1['createCustomMethodDecorator'])(interface_1[_0x1f54a1(0x103)],_0x450b52)(_0x3540e0,_0x3727ac,_0x2d6053);};}exports['Validator']=Validator;function getFuncArgs(_0x373b57){const _0x13ea15=a3_0x17ec32;if(typeof _0x373b57==_0x13ea15(0xfc)){const _0x36a7ae=/=>.*$/mg,_0x34a29b=/=[^,)]+/mg,_0x18f9fb=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/mg,_0x1d28c9=(_0x373b57[_0x13ea15(0xf7)]?_0x373b57['prototype'][_0x13ea15(0xf9)]['toString']():_0x373b57['toString']())['replace'](_0x18f9fb,'')[_0x13ea15(0x10c)](_0x36a7ae,'')[_0x13ea15(0x10c)](_0x34a29b,''),_0x39d1ef=_0x1d28c9[_0x13ea15(0x101)](_0x1d28c9[_0x13ea15(0x100)]('(')+0x1,_0x1d28c9['indexOf'](')'))[_0x13ea15(0xff)](/([^\s,]+)/g)||[];return _0x39d1ef;}}function a3_0x39b4(_0x42ac71,_0x4886ec){const _0x22d6c1=a3_0x91d2();return a3_0x39b4=function(_0x5402c4,_0x5cb6d9){_0x5402c4=_0x5402c4-0xf2;let _0x91d216=_0x22d6c1[_0x5402c4];return _0x91d216;},a3_0x39b4(_0x42ac71,_0x4886ec);}exports['getFuncArgs']=getFuncArgs;
1
+ const a3_0x2c8c0b=a3_0x5b60;(function(_0x45e64e,_0x5c9691){const _0x471bb7=a3_0x5b60,_0x1c1295=_0x45e64e();while(!![]){try{const _0x52ae2f=-parseInt(_0x471bb7(0x1b0))/0x1*(parseInt(_0x471bb7(0x1c2))/0x2)+-parseInt(_0x471bb7(0x1b6))/0x3+-parseInt(_0x471bb7(0x1c4))/0x4+-parseInt(_0x471bb7(0x1b5))/0x5*(parseInt(_0x471bb7(0x1b9))/0x6)+-parseInt(_0x471bb7(0x1be))/0x7+parseInt(_0x471bb7(0x1c3))/0x8*(parseInt(_0x471bb7(0x1b7))/0x9)+-parseInt(_0x471bb7(0x1ab))/0xa*(-parseInt(_0x471bb7(0x1ae))/0xb);if(_0x52ae2f===_0x5c9691)break;else _0x1c1295['push'](_0x1c1295['shift']());}catch(_0x2c54a9){_0x1c1295['push'](_0x1c1295['shift']());}}}(a3_0x1b5c,0xd6cc2));const a3_0x484d51=(function(){let _0x351927=!![];return function(_0xc7730f,_0x40c301){const _0x15450e=_0x351927?function(){const _0x1af375=a3_0x5b60;if(_0x40c301){const _0x323e7f=_0x40c301[_0x1af375(0x1b4)](_0xc7730f,arguments);return _0x40c301=null,_0x323e7f;}}:function(){};return _0x351927=![],_0x15450e;};}()),a3_0x51a066=a3_0x484d51(this,function(){const _0x3d78e7=a3_0x5b60;return a3_0x51a066['toString']()['search']('(((.+)+)+)+$')['toString']()[_0x3d78e7(0x1c1)](a3_0x51a066)['search'](_0x3d78e7(0x1b2));});a3_0x51a066();function a3_0x5b60(_0x273343,_0x2ab210){const _0x10c8c2=a3_0x1b5c();return a3_0x5b60=function(_0x51a066,_0x484d51){_0x51a066=_0x51a066-0x1ab;let _0x1b5c0b=_0x10c8c2[_0x51a066];return _0x1b5c0b;},a3_0x5b60(_0x273343,_0x2ab210);}'use strict';Object['defineProperty'](exports,a3_0x2c8c0b(0x1b1),{'value':!![]}),exports['getFuncArgs']=exports[a3_0x2c8c0b(0x1bb)]=void 0x0;const core_1=require('@midwayjs/core'),interface_1=require(a3_0x2c8c0b(0x1b3));function Validator(_0x57702b={}){return(_0x217d8f,_0x38167a,_0x508564)=>{const _0x52bfc4=a3_0x5b60,_0x231032=getFuncArgs(_0x217d8f[_0x38167a]);(0x0,core_1['attachClassMetadata'])(interface_1[_0x52bfc4(0x1c0)],{'method':_0x38167a,'methodArgs':_0x231032},_0x217d8f),(0x0,core_1['createCustomMethodDecorator'])(interface_1[_0x52bfc4(0x1c0)],_0x57702b)(_0x217d8f,_0x38167a,_0x508564);};}exports['Validator']=Validator;function getFuncArgs(_0x5cbbd3){const _0x8e02ea=a3_0x2c8c0b;if(typeof _0x5cbbd3==_0x8e02ea(0x1bc)){const _0x863b43=/=>.*$/mg,_0x89feb6=/=[^,)]+/mg,_0x5f293e=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/mg,_0x2453a0=(_0x5cbbd3['prototype']?_0x5cbbd3[_0x8e02ea(0x1ba)][_0x8e02ea(0x1c1)][_0x8e02ea(0x1b8)]():_0x5cbbd3[_0x8e02ea(0x1b8)]())[_0x8e02ea(0x1bd)](_0x5f293e,'')[_0x8e02ea(0x1bd)](_0x863b43,'')[_0x8e02ea(0x1bd)](_0x89feb6,''),_0x3df60d=_0x2453a0[_0x8e02ea(0x1ad)](_0x2453a0['indexOf']('(')+0x1,_0x2453a0[_0x8e02ea(0x1ac)](')'))[_0x8e02ea(0x1bf)](/([^\s,]+)/g)||[];return _0x3df60d;}}function a3_0x1b5c(){const _0x5775ae=['(((.+)+)+)+$','../interface','apply','7184525vjKcSZ','1782234QQVWyv','1233IcJdHx','toString','6sDAGnF','prototype','Validator','function','replace','984620zdPSNn','match','VALIDATOR_KEY','constructor','2022Dvbvcx','9536VwsVxN','65216QbXKhe','310TOtDda','indexOf','slice','1235454phqeig','getFuncArgs','571lIexoI','__esModule'];a3_0x1b5c=function(){return _0x5775ae;};return a3_0x1b5c();}exports[a3_0x2c8c0b(0x1af)]=getFuncArgs;
@@ -1 +1 @@
1
- var a4_0xc49f06=a4_0x4325;(function(_0x40b396,_0x367d53){var _0x19c8d5=a4_0x4325,_0x4815e1=_0x40b396();while(!![]){try{var _0x1f8e6b=-parseInt(_0x19c8d5(0xab))/0x1+-parseInt(_0x19c8d5(0xa3))/0x2+parseInt(_0x19c8d5(0xa6))/0x3*(-parseInt(_0x19c8d5(0xa9))/0x4)+parseInt(_0x19c8d5(0xb0))/0x5*(parseInt(_0x19c8d5(0xaf))/0x6)+parseInt(_0x19c8d5(0x9d))/0x7+-parseInt(_0x19c8d5(0xa8))/0x8+-parseInt(_0x19c8d5(0x9e))/0x9;if(_0x1f8e6b===_0x367d53)break;else _0x4815e1['push'](_0x4815e1['shift']());}catch(_0x3c58d6){_0x4815e1['push'](_0x4815e1['shift']());}}}(a4_0x4a7e,0x8ea82));var a4_0x3d38e5=(function(){var _0x210f03=!![];return function(_0x23f418,_0x3ba780){var _0x4bbd85=_0x210f03?function(){var _0x4dbfa1=a4_0x4325;if(_0x3ba780){var _0x5189e6=_0x3ba780[_0x4dbfa1(0xae)](_0x23f418,arguments);return _0x3ba780=null,_0x5189e6;}}:function(){};return _0x210f03=![],_0x4bbd85;};}()),a4_0x3dd07c=a4_0x3d38e5(this,function(){var _0x16ff2e=a4_0x4325;return a4_0x3dd07c[_0x16ff2e(0x9a)]()[_0x16ff2e(0x9f)](_0x16ff2e(0xad))[_0x16ff2e(0x9a)]()[_0x16ff2e(0xac)](a4_0x3dd07c)[_0x16ff2e(0x9f)]('(((.+)+)+)+$');});a4_0x3dd07c();'use strict';var __decorate=this&&this['__decorate']||function(_0x1a901e,_0x199768,_0x595b68,_0x3af88e){var _0x2f055a=a4_0x4325,_0x45254a=arguments[_0x2f055a(0xaa)],_0x517197=_0x45254a<0x3?_0x199768:_0x3af88e===null?_0x3af88e=Object['getOwnPropertyDescriptor'](_0x199768,_0x595b68):_0x3af88e,_0x461452;if(typeof Reflect==='object'&&typeof Reflect[_0x2f055a(0xa1)]===_0x2f055a(0xb2))_0x517197=Reflect[_0x2f055a(0xa1)](_0x1a901e,_0x199768,_0x595b68,_0x3af88e);else{for(var _0xf16563=_0x1a901e[_0x2f055a(0xaa)]-0x1;_0xf16563>=0x0;_0xf16563--)if(_0x461452=_0x1a901e[_0xf16563])_0x517197=(_0x45254a<0x3?_0x461452(_0x517197):_0x45254a>0x3?_0x461452(_0x199768,_0x595b68,_0x517197):_0x461452(_0x199768,_0x595b68))||_0x517197;}return _0x45254a>0x3&&_0x517197&&Object['defineProperty'](_0x199768,_0x595b68,_0x517197),_0x517197;},__metadata=this&&this['__metadata']||function(_0x23fbff,_0x4ec734){var _0x1b8d96=a4_0x4325;if(typeof Reflect===_0x1b8d96(0x9c)&&typeof Reflect[_0x1b8d96(0xa4)]==='function')return Reflect[_0x1b8d96(0xa4)](_0x23fbff,_0x4ec734);};function a4_0x4a7e(){var _0x1900f5=['constructor','(((.+)+)+)+$','apply','36lVNsyZ','892930NzFyBN','ValidatorError','function','toString','defineProperty','object','7989975TOThUi','1262709oNMuPF','search','NOFIND_SCHEMA','decorate','AnnErrorMsg','1030544xomFys','metadata','design:type','411vzMFNo','PARAMS','992528GyWXwX','4892WuOkem','length','681429WcWbWr'];a4_0x4a7e=function(){return _0x1900f5;};return a4_0x4a7e();}function a4_0x4325(_0xf49fc3,_0x444914){var _0x4ace75=a4_0x4a7e();return a4_0x4325=function(_0x3dd07c,_0x3d38e5){_0x3dd07c=_0x3dd07c-0x9a;var _0x4a7ec0=_0x4ace75[_0x3dd07c];return _0x4a7ec0;},a4_0x4325(_0xf49fc3,_0x444914);}Object[a4_0xc49f06(0x9b)](exports,'__esModule',{'value':!![]}),exports[a4_0xc49f06(0xb1)]=void 0x0;const core_1=require('@anncic-api/core');class ValidatorError extends AnnError{}exports[a4_0xc49f06(0xb1)]=ValidatorError,ValidatorError[a4_0xc49f06(0xa7)]=0x18c1e,ValidatorError[a4_0xc49f06(0xa0)]=0x18c1c,__decorate([(0x0,core_1[a4_0xc49f06(0xa2)])('参数验证失败'),__metadata(a4_0xc49f06(0xa5),Object)],ValidatorError,a4_0xc49f06(0xa7),void 0x0),__decorate([(0x0,core_1[a4_0xc49f06(0xa2)])('参数验证失败'),__metadata('design:type',Object)],ValidatorError,a4_0xc49f06(0xa0),void 0x0);
1
+ var a4_0x56befa=a4_0x4a75;(function(_0x25602a,_0x540ccd){var _0x47c99c=a4_0x4a75,_0x521f0a=_0x25602a();while(!![]){try{var _0x296ac1=parseInt(_0x47c99c(0x76))/0x1*(parseInt(_0x47c99c(0x78))/0x2)+-parseInt(_0x47c99c(0x87))/0x3*(parseInt(_0x47c99c(0x82))/0x4)+-parseInt(_0x47c99c(0x6d))/0x5+-parseInt(_0x47c99c(0x70))/0x6+-parseInt(_0x47c99c(0x75))/0x7+-parseInt(_0x47c99c(0x77))/0x8+parseInt(_0x47c99c(0x81))/0x9*(parseInt(_0x47c99c(0x7a))/0xa);if(_0x296ac1===_0x540ccd)break;else _0x521f0a['push'](_0x521f0a['shift']());}catch(_0x103502){_0x521f0a['push'](_0x521f0a['shift']());}}}(a4_0x54c4,0x6f482));function a4_0x54c4(){var _0x16da27=['NOFIND_SCHEMA','function','ValidatorError','3000060ukSgZK','defineProperty','apply','1069794dokCho','@anncic-api/core','object','(((.+)+)+)+$','__decorate','4366411aYccUr','59cBhWpu','2587320svIanK','14324dqKZPU','constructor','2930rWBcxc','design:type','metadata','decorate','参数验证失败','AnnErrorMsg','search','61470fqzohp','969756xcPJrK','length','getOwnPropertyDescriptor','PARAMS','toString','3nYEQKd'];a4_0x54c4=function(){return _0x16da27;};return a4_0x54c4();}var a4_0x377181=(function(){var _0xaaa49d=!![];return function(_0x45384e,_0x1add2f){var _0x568e45=_0xaaa49d?function(){var _0x40118f=a4_0x4a75;if(_0x1add2f){var _0x5ae2c4=_0x1add2f[_0x40118f(0x6f)](_0x45384e,arguments);return _0x1add2f=null,_0x5ae2c4;}}:function(){};return _0xaaa49d=![],_0x568e45;};}()),a4_0x1eb751=a4_0x377181(this,function(){var _0x472bee=a4_0x4a75;return a4_0x1eb751[_0x472bee(0x86)]()['search'](_0x472bee(0x73))[_0x472bee(0x86)]()[_0x472bee(0x79)](a4_0x1eb751)[_0x472bee(0x80)](_0x472bee(0x73));});a4_0x1eb751();'use strict';var __decorate=this&&this[a4_0x56befa(0x74)]||function(_0x3dcb99,_0x450ac2,_0x1f8005,_0x57dc54){var _0x5770d8=a4_0x56befa,_0x110a0b=arguments[_0x5770d8(0x83)],_0x51ebfd=_0x110a0b<0x3?_0x450ac2:_0x57dc54===null?_0x57dc54=Object[_0x5770d8(0x84)](_0x450ac2,_0x1f8005):_0x57dc54,_0x56d8e7;if(typeof Reflect===_0x5770d8(0x72)&&typeof Reflect['decorate']===_0x5770d8(0x6b))_0x51ebfd=Reflect[_0x5770d8(0x7d)](_0x3dcb99,_0x450ac2,_0x1f8005,_0x57dc54);else{for(var _0x3bdb2e=_0x3dcb99[_0x5770d8(0x83)]-0x1;_0x3bdb2e>=0x0;_0x3bdb2e--)if(_0x56d8e7=_0x3dcb99[_0x3bdb2e])_0x51ebfd=(_0x110a0b<0x3?_0x56d8e7(_0x51ebfd):_0x110a0b>0x3?_0x56d8e7(_0x450ac2,_0x1f8005,_0x51ebfd):_0x56d8e7(_0x450ac2,_0x1f8005))||_0x51ebfd;}return _0x110a0b>0x3&&_0x51ebfd&&Object[_0x5770d8(0x6e)](_0x450ac2,_0x1f8005,_0x51ebfd),_0x51ebfd;},__metadata=this&&this['__metadata']||function(_0x5a3387,_0x243de6){var _0x1576a7=a4_0x56befa;if(typeof Reflect===_0x1576a7(0x72)&&typeof Reflect['metadata']===_0x1576a7(0x6b))return Reflect[_0x1576a7(0x7c)](_0x5a3387,_0x243de6);};function a4_0x4a75(_0x5b7c7d,_0x6c4a1e){var _0x40a066=a4_0x54c4();return a4_0x4a75=function(_0x1eb751,_0x377181){_0x1eb751=_0x1eb751-0x6b;var _0x54c4c2=_0x40a066[_0x1eb751];return _0x54c4c2;},a4_0x4a75(_0x5b7c7d,_0x6c4a1e);}Object[a4_0x56befa(0x6e)](exports,'__esModule',{'value':!![]}),exports[a4_0x56befa(0x6c)]=void 0x0;const core_1=require(a4_0x56befa(0x71));class ValidatorError extends AnnError{}exports[a4_0x56befa(0x6c)]=ValidatorError,ValidatorError[a4_0x56befa(0x85)]=0x18c1e,ValidatorError[a4_0x56befa(0x88)]=0x18c1c,__decorate([(0x0,core_1['AnnErrorMsg'])(a4_0x56befa(0x7e)),__metadata(a4_0x56befa(0x7b),Object)],ValidatorError,'PARAMS',void 0x0),__decorate([(0x0,core_1[a4_0x56befa(0x7f)])(a4_0x56befa(0x7e)),__metadata('design:type',Object)],ValidatorError,a4_0x56befa(0x88),void 0x0);
@@ -1 +1 @@
1
- const a5_0x527e6f=a5_0x3dad;(function(_0x9c5dfd,_0x3271a2){const _0xddcfc0=a5_0x3dad,_0x2ad7c5=_0x9c5dfd();while(!![]){try{const _0x10bb9c=-parseInt(_0xddcfc0(0x99))/0x1*(parseInt(_0xddcfc0(0x98))/0x2)+-parseInt(_0xddcfc0(0x89))/0x3*(parseInt(_0xddcfc0(0x8f))/0x4)+parseInt(_0xddcfc0(0x9b))/0x5*(-parseInt(_0xddcfc0(0x94))/0x6)+-parseInt(_0xddcfc0(0x9e))/0x7*(parseInt(_0xddcfc0(0x8d))/0x8)+parseInt(_0xddcfc0(0x95))/0x9*(-parseInt(_0xddcfc0(0x9f))/0xa)+parseInt(_0xddcfc0(0x9c))/0xb+-parseInt(_0xddcfc0(0x9d))/0xc*(-parseInt(_0xddcfc0(0x9a))/0xd);if(_0x10bb9c===_0x3271a2)break;else _0x2ad7c5['push'](_0x2ad7c5['shift']());}catch(_0xda3398){_0x2ad7c5['push'](_0x2ad7c5['shift']());}}}(a5_0x3776,0x80439));const a5_0x205af8=(function(){let _0x1546d1=!![];return function(_0x487001,_0x6ab9ca){const _0x80948e=_0x1546d1?function(){const _0x239fc0=a5_0x3dad;if(_0x6ab9ca){const _0x4c36cc=_0x6ab9ca[_0x239fc0(0x93)](_0x487001,arguments);return _0x6ab9ca=null,_0x4c36cc;}}:function(){};return _0x1546d1=![],_0x80948e;};}()),a5_0x2bd59c=a5_0x205af8(this,function(){const _0x28c07c=a5_0x3dad;return a5_0x2bd59c[_0x28c07c(0x90)]()[_0x28c07c(0x96)](_0x28c07c(0x8e))[_0x28c07c(0x90)]()[_0x28c07c(0x97)](a5_0x2bd59c)['search'](_0x28c07c(0x8e));});a5_0x2bd59c();'use strict';function a5_0x3dad(_0x1fc8c7,_0x5e0b8c){const _0x36ce1e=a5_0x3776();return a5_0x3dad=function(_0x2bd59c,_0x205af8){_0x2bd59c=_0x2bd59c-0x86;let _0x377660=_0x36ce1e[_0x2bd59c];return _0x377660;},a5_0x3dad(_0x1fc8c7,_0x5e0b8c);}Object['defineProperty'](exports,a5_0x527e6f(0x8a),{'value':!![]}),exports['OmitDto']=exports[a5_0x527e6f(0x86)]=void 0x0;const core_1=require(a5_0x527e6f(0x8b)),interface_1=require('../interface');function PickDto(_0x29e7b7,_0x32fa72){const _0x33af1e=a5_0x527e6f,_0xf57eb6=function(){};_0xf57eb6[_0x33af1e(0x8c)]=_0x29e7b7[_0x33af1e(0x8c)];const _0x4d8513=(0x0,core_1[_0x33af1e(0x92)])(interface_1['RULES_KEY'],_0x29e7b7),_0x2fc467={};for(const _0x381cc9 of _0x32fa72){_0x4d8513[_0x381cc9]&&(_0x2fc467[_0x381cc9]=_0x4d8513[_0x381cc9]);}return(0x0,core_1['saveClassMetadata'])(interface_1[_0x33af1e(0x91)],_0x2fc467,_0xf57eb6),_0xf57eb6;}exports[a5_0x527e6f(0x86)]=PickDto;function a5_0x3776(){const _0x2b7e12=['@midwayjs/core','prototype','8ziOqBh','(((.+)+)+)+$','4604XpZgxs','toString','RULES_KEY','getClassExtendedMetadata','apply','435228qwzrmh','6204951MQjtYu','search','constructor','137002hijwQD','10WaXhUa','2587RTCeLL','65Baxmgn','3775068HlEPKP','226092pENGBw','6564698jzSuTx','10EjPcgm','PickDto','assign','saveClassMetadata','813wedTbd','__esModule'];a5_0x3776=function(){return _0x2b7e12;};return a5_0x3776();}function OmitDto(_0x409c23,_0x3959b3){const _0x36f614=a5_0x527e6f,_0x43d6a0=function(){};_0x43d6a0['prototype']=_0x409c23[_0x36f614(0x8c)];const _0x2a80d2=(0x0,core_1['getClassExtendedMetadata'])(interface_1['RULES_KEY'],_0x409c23),_0x404bd4=Object[_0x36f614(0x87)]({},_0x2a80d2);for(const _0x43a816 of _0x3959b3){delete _0x404bd4[_0x43a816];}return(0x0,core_1[_0x36f614(0x88)])(interface_1[_0x36f614(0x91)],_0x404bd4,_0x43d6a0),_0x43d6a0;}exports['OmitDto']=OmitDto;
1
+ const a5_0x22629a=a5_0x1c85;(function(_0x115a18,_0x5ebd38){const _0x53e246=a5_0x1c85,_0x5404ae=_0x115a18();while(!![]){try{const _0x3bc4a6=parseInt(_0x53e246(0x1db))/0x1*(-parseInt(_0x53e246(0x1ea))/0x2)+-parseInt(_0x53e246(0x1e6))/0x3*(-parseInt(_0x53e246(0x1e9))/0x4)+parseInt(_0x53e246(0x1ec))/0x5*(-parseInt(_0x53e246(0x1ef))/0x6)+parseInt(_0x53e246(0x1f2))/0x7*(parseInt(_0x53e246(0x1ed))/0x8)+parseInt(_0x53e246(0x1e3))/0x9+parseInt(_0x53e246(0x1f1))/0xa*(-parseInt(_0x53e246(0x1df))/0xb)+parseInt(_0x53e246(0x1ee))/0xc*(parseInt(_0x53e246(0x1f0))/0xd);if(_0x3bc4a6===_0x5ebd38)break;else _0x5404ae['push'](_0x5404ae['shift']());}catch(_0x579859){_0x5404ae['push'](_0x5404ae['shift']());}}}(a5_0x5309,0xdacbd));function a5_0x1c85(_0x5a79c8,_0x2c17a5){const _0x49bb80=a5_0x5309();return a5_0x1c85=function(_0x19e35a,_0x40c574){_0x19e35a=_0x19e35a-0x1db;let _0x530959=_0x49bb80[_0x19e35a];return _0x530959;},a5_0x1c85(_0x5a79c8,_0x2c17a5);}const a5_0x40c574=(function(){let _0x3d2e44=!![];return function(_0x253621,_0xa40ef0){const _0x55035=_0x3d2e44?function(){const _0x19ed75=a5_0x1c85;if(_0xa40ef0){const _0x378144=_0xa40ef0[_0x19ed75(0x1dd)](_0x253621,arguments);return _0xa40ef0=null,_0x378144;}}:function(){};return _0x3d2e44=![],_0x55035;};}()),a5_0x19e35a=a5_0x40c574(this,function(){const _0x42dce1=a5_0x1c85;return a5_0x19e35a[_0x42dce1(0x1f4)]()['search'](_0x42dce1(0x1e0))[_0x42dce1(0x1f4)]()['constructor'](a5_0x19e35a)['search'](_0x42dce1(0x1e0));});a5_0x19e35a();'use strict';Object[a5_0x22629a(0x1de)](exports,a5_0x22629a(0x1eb),{'value':!![]}),exports[a5_0x22629a(0x1f3)]=exports[a5_0x22629a(0x1e7)]=void 0x0;const core_1=require('@midwayjs/core'),interface_1=require(a5_0x22629a(0x1e1));function PickDto(_0x186c30,_0x3a6397){const _0x5c70d1=a5_0x22629a,_0x3b4b46=function(){};_0x3b4b46[_0x5c70d1(0x1e4)]=_0x186c30[_0x5c70d1(0x1e4)];const _0x1d4cfe=(0x0,core_1[_0x5c70d1(0x1e8)])(interface_1['RULES_KEY'],_0x186c30),_0x3ce1cb={};for(const _0x1cc1d9 of _0x3a6397){_0x1d4cfe[_0x1cc1d9]&&(_0x3ce1cb[_0x1cc1d9]=_0x1d4cfe[_0x1cc1d9]);}return(0x0,core_1[_0x5c70d1(0x1e5)])(interface_1[_0x5c70d1(0x1e2)],_0x3ce1cb,_0x3b4b46),_0x3b4b46;}function a5_0x5309(){const _0x425e36=['RULES_KEY','13614696sTHGOZ','prototype','saveClassMetadata','125667CfloXx','PickDto','getClassExtendedMetadata','88LhftoB','16MiKNXB','__esModule','7575PLDndI','1588824HaAUeN','108nNGaqB','6210EnvyIG','4771zfoVce','473630QKABmc','49lTxHgO','OmitDto','toString','4681SLLBfx','assign','apply','defineProperty','308xARGGW','(((.+)+)+)+$','../interface'];a5_0x5309=function(){return _0x425e36;};return a5_0x5309();}exports[a5_0x22629a(0x1e7)]=PickDto;function OmitDto(_0x1470af,_0x5c5127){const _0x399a40=a5_0x22629a,_0x3def77=function(){};_0x3def77[_0x399a40(0x1e4)]=_0x1470af[_0x399a40(0x1e4)];const _0x1a862e=(0x0,core_1[_0x399a40(0x1e8)])(interface_1[_0x399a40(0x1e2)],_0x1470af),_0x33464c=Object[_0x399a40(0x1dc)]({},_0x1a862e);for(const _0x132787 of _0x5c5127){delete _0x33464c[_0x132787];}return(0x0,core_1[_0x399a40(0x1e5)])(interface_1['RULES_KEY'],_0x33464c,_0x3def77),_0x3def77;}exports['OmitDto']=OmitDto;
@@ -1 +1 @@
1
- function a6_0x240d(){const _0x3d9821=['9XkZUml','getClassExtendedMetadata','@midwayjs/core','626975QCnGqg','5022936GIPRJA','getSchema','object','2158844EFYJBk','__esModule','(((.+)+)+)+$','16180664UcaCst','defineProperty','19372idCpaa','81GsONcM','constructor','3170680iuEnSt','toString','2610230DLkQAG','search'];a6_0x240d=function(){return _0x3d9821;};return a6_0x240d();}const a6_0x534ac6=a6_0x5e61;function a6_0x5e61(_0x3ec120,_0x4d4a87){const _0x547e40=a6_0x240d();return a6_0x5e61=function(_0xf9dd67,_0x28d29c){_0xf9dd67=_0xf9dd67-0x1c6;let _0x240def=_0x547e40[_0xf9dd67];return _0x240def;},a6_0x5e61(_0x3ec120,_0x4d4a87);}(function(_0x56068a,_0x24762e){const _0x38ba04=a6_0x5e61,_0x4dd1b9=_0x56068a();while(!![]){try{const _0x114955=-parseInt(_0x38ba04(0x1ce))/0x1+parseInt(_0x38ba04(0x1d7))/0x2*(-parseInt(_0x38ba04(0x1d8))/0x3)+-parseInt(_0x38ba04(0x1d2))/0x4+-parseInt(_0x38ba04(0x1c7))/0x5+parseInt(_0x38ba04(0x1cf))/0x6+-parseInt(_0x38ba04(0x1c9))/0x7+parseInt(_0x38ba04(0x1d5))/0x8*(parseInt(_0x38ba04(0x1cb))/0x9);if(_0x114955===_0x24762e)break;else _0x4dd1b9['push'](_0x4dd1b9['shift']());}catch(_0x22405e){_0x4dd1b9['push'](_0x4dd1b9['shift']());}}}(a6_0x240d,0x67a39));const a6_0x28d29c=(function(){let _0x176699=!![];return function(_0x4384b7,_0x332cef){const _0x13025f=_0x176699?function(){if(_0x332cef){const _0x3a4deb=_0x332cef['apply'](_0x4384b7,arguments);return _0x332cef=null,_0x3a4deb;}}:function(){};return _0x176699=![],_0x13025f;};}()),a6_0xf9dd67=a6_0x28d29c(this,function(){const _0x32160c=a6_0x5e61;return a6_0xf9dd67[_0x32160c(0x1c8)]()[_0x32160c(0x1ca)](_0x32160c(0x1d4))[_0x32160c(0x1c8)]()[_0x32160c(0x1c6)](a6_0xf9dd67)[_0x32160c(0x1ca)](_0x32160c(0x1d4));});a6_0xf9dd67();'use strict';Object[a6_0x534ac6(0x1d6)](exports,a6_0x534ac6(0x1d3),{'value':!![]}),exports[a6_0x534ac6(0x1d0)]=void 0x0;const Joi=require('joi'),core_1=require(a6_0x534ac6(0x1cd)),interface_1=require('../interface');function getSchema(_0x3b3e3d){const _0x2f0cdc=a6_0x534ac6,_0x1c255d=(0x0,core_1[_0x2f0cdc(0x1cc)])(interface_1['RULES_KEY'],_0x3b3e3d);if(_0x1c255d)return Joi[_0x2f0cdc(0x1d1)](_0x1c255d);}exports[a6_0x534ac6(0x1d0)]=getSchema;
1
+ const a6_0x4c222a=a6_0xffe7;(function(_0x1493e5,_0x3ee984){const _0x2e8d09=a6_0xffe7,_0x1806e4=_0x1493e5();while(!![]){try{const _0x3ce046=parseInt(_0x2e8d09(0x1ce))/0x1+parseInt(_0x2e8d09(0x1d7))/0x2+-parseInt(_0x2e8d09(0x1d2))/0x3+-parseInt(_0x2e8d09(0x1d3))/0x4*(-parseInt(_0x2e8d09(0x1c4))/0x5)+-parseInt(_0x2e8d09(0x1d0))/0x6*(parseInt(_0x2e8d09(0x1c7))/0x7)+parseInt(_0x2e8d09(0x1d6))/0x8*(parseInt(_0x2e8d09(0x1d8))/0x9)+parseInt(_0x2e8d09(0x1d5))/0xa*(-parseInt(_0x2e8d09(0x1c3))/0xb);if(_0x3ce046===_0x3ee984)break;else _0x1806e4['push'](_0x1806e4['shift']());}catch(_0x3e2052){_0x1806e4['push'](_0x1806e4['shift']());}}}(a6_0x54e0,0x1d2c6));const a6_0x474ad6=(function(){let _0x4fa54c=!![];return function(_0x1e2e8c,_0x449837){const _0x8c73e7=_0x4fa54c?function(){const _0x1b8aac=a6_0xffe7;if(_0x449837){const _0x366898=_0x449837[_0x1b8aac(0x1ca)](_0x1e2e8c,arguments);return _0x449837=null,_0x366898;}}:function(){};return _0x4fa54c=![],_0x8c73e7;};}()),a6_0x75fadf=a6_0x474ad6(this,function(){const _0x3b296e=a6_0xffe7;return a6_0x75fadf[_0x3b296e(0x1c2)]()[_0x3b296e(0x1cf)](_0x3b296e(0x1c9))['toString']()[_0x3b296e(0x1cc)](a6_0x75fadf)[_0x3b296e(0x1cf)]('(((.+)+)+)+$');});function a6_0x54e0(){const _0x508148=['object','301ecrLgp','getSchema','(((.+)+)+)+$','apply','@midwayjs/core','constructor','joi','70200rsNtOK','search','324KSVdpH','../interface','653055omSDQs','68WYKMGw','getClassExtendedMetadata','10uFLFEp','8soYUeb','410742rZUOHK','2070612szZQpF','__esModule','toString','3196545iTWhyD','36605LjveYf','defineProperty'];a6_0x54e0=function(){return _0x508148;};return a6_0x54e0();}function a6_0xffe7(_0x302c17,_0xbd7f12){const _0xadcdd3=a6_0x54e0();return a6_0xffe7=function(_0x75fadf,_0x474ad6){_0x75fadf=_0x75fadf-0x1c1;let _0x54e026=_0xadcdd3[_0x75fadf];return _0x54e026;},a6_0xffe7(_0x302c17,_0xbd7f12);}a6_0x75fadf();'use strict';Object[a6_0x4c222a(0x1c5)](exports,a6_0x4c222a(0x1c1),{'value':!![]}),exports[a6_0x4c222a(0x1c8)]=void 0x0;const Joi=require(a6_0x4c222a(0x1cd)),core_1=require(a6_0x4c222a(0x1cb)),interface_1=require(a6_0x4c222a(0x1d1));function getSchema(_0x4575ba){const _0x3c514c=a6_0x4c222a,_0x5603c9=(0x0,core_1[_0x3c514c(0x1d4)])(interface_1['RULES_KEY'],_0x4575ba);if(_0x5603c9)return Joi[_0x3c514c(0x1c6)](_0x5603c9);}exports['getSchema']=getSchema;
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- var a7_0x3ef561=a7_0x2d2d;(function(_0x4b7bc4,_0xcabff2){var _0x25d696=a7_0x2d2d,_0x104fe5=_0x4b7bc4();while(!![]){try{var _0x258713=-parseInt(_0x25d696(0xa0))/0x1*(-parseInt(_0x25d696(0x8c))/0x2)+-parseInt(_0x25d696(0x87))/0x3*(parseInt(_0x25d696(0xa4))/0x4)+parseInt(_0x25d696(0x90))/0x5+-parseInt(_0x25d696(0x89))/0x6+parseInt(_0x25d696(0x99))/0x7+-parseInt(_0x25d696(0x96))/0x8+-parseInt(_0x25d696(0x9f))/0x9*(-parseInt(_0x25d696(0x85))/0xa);if(_0x258713===_0xcabff2)break;else _0x104fe5['push'](_0x104fe5['shift']());}catch(_0x5fdacd){_0x104fe5['push'](_0x104fe5['shift']());}}}(a7_0x4cba,0x5591b));var a7_0x94cd0b=(function(){var _0x1fc109=!![];return function(_0xfd91ba,_0x4bab37){var _0xcf12da=_0x1fc109?function(){if(_0x4bab37){var _0x415c70=_0x4bab37['apply'](_0xfd91ba,arguments);return _0x4bab37=null,_0x415c70;}}:function(){};return _0x1fc109=![],_0xcf12da;};}()),a7_0x1cf4d9=a7_0x94cd0b(this,function(){var _0x42615d=a7_0x2d2d;return a7_0x1cf4d9[_0x42615d(0xa5)]()[_0x42615d(0x95)](_0x42615d(0x97))[_0x42615d(0xa5)]()[_0x42615d(0x84)](a7_0x1cf4d9)[_0x42615d(0x95)](_0x42615d(0x97));});a7_0x1cf4d9();'use strict';function a7_0x2d2d(_0x4d4c1e,_0x2a5b02){var _0x4587cc=a7_0x4cba();return a7_0x2d2d=function(_0x1cf4d9,_0x94cd0b){_0x1cf4d9=_0x1cf4d9-0x84;var _0x4cba58=_0x4587cc[_0x1cf4d9];return _0x4cba58;},a7_0x2d2d(_0x4d4c1e,_0x2a5b02);}var __createBinding=this&&this['__createBinding']||(Object['create']?function(_0x1f64e5,_0x568f44,_0xafd3f3,_0x3ce10e){var _0x57c4f7=a7_0x2d2d;if(_0x3ce10e===undefined)_0x3ce10e=_0xafd3f3;var _0x5ca33b=Object[_0x57c4f7(0x9d)](_0x568f44,_0xafd3f3);(!_0x5ca33b||(_0x57c4f7(0xa3)in _0x5ca33b?!_0x568f44[_0x57c4f7(0xa2)]:_0x5ca33b[_0x57c4f7(0x94)]||_0x5ca33b[_0x57c4f7(0x93)]))&&(_0x5ca33b={'enumerable':!![],'get':function(){return _0x568f44[_0xafd3f3];}}),Object[_0x57c4f7(0x8f)](_0x1f64e5,_0x3ce10e,_0x5ca33b);}:function(_0x105b95,_0x522416,_0x545ef7,_0x2c7b29){if(_0x2c7b29===undefined)_0x2c7b29=_0x545ef7;_0x105b95[_0x2c7b29]=_0x522416[_0x545ef7];}),__exportStar=this&&this['__exportStar']||function(_0x27f5f6,_0x5cd372){var _0x86697b=a7_0x2d2d;for(var _0x4b59cb in _0x27f5f6)if(_0x4b59cb!==_0x86697b(0xa1)&&!Object[_0x86697b(0x92)][_0x86697b(0x9c)][_0x86697b(0x9b)](_0x5cd372,_0x4b59cb))__createBinding(_0x5cd372,_0x27f5f6,_0x4b59cb);};Object[a7_0x3ef561(0x8f)](exports,a7_0x3ef561(0xa2),{'value':!![]}),exports[a7_0x3ef561(0x88)]=exports[a7_0x3ef561(0x98)]=exports[a7_0x3ef561(0x8a)]=exports[a7_0x3ef561(0x8d)]=exports[a7_0x3ef561(0x8e)]=exports[a7_0x3ef561(0x9e)]=void 0x0,__exportStar(require('./interface'),exports),__exportStar(require(a7_0x3ef561(0xa6)),exports),__exportStar(require('./helper/getSchema'),exports);var Validator_1=require(a7_0x3ef561(0x8b));Object[a7_0x3ef561(0x8f)](exports,a7_0x3ef561(0x9e),{'enumerable':!![],'get':function(){var _0x235b4f=a7_0x3ef561;return Validator_1[_0x235b4f(0x9e)];}});var Rule_1=require(a7_0x3ef561(0x9a));Object[a7_0x3ef561(0x8f)](exports,a7_0x3ef561(0x8e),{'enumerable':!![],'get':function(){var _0x51bb11=a7_0x3ef561;return Rule_1[_0x51bb11(0x8e)];}}),Object['defineProperty'](exports,'RuleType',{'enumerable':!![],'get':function(){var _0x705964=a7_0x3ef561;return Rule_1[_0x705964(0x8d)];}});var ValidatorError_1=require(a7_0x3ef561(0x86));Object['defineProperty'](exports,a7_0x3ef561(0x8a),{'enumerable':!![],'get':function(){var _0x2029b4=a7_0x3ef561;return ValidatorError_1[_0x2029b4(0x8a)];}});function a7_0x4cba(){var _0x2921a9=['toString','./helper/dtoHelper','constructor','20lqmbCW','./exception/ValidatorError','685857MFrUbO','Configuration','3853200UlseVR','ValidatorError','./decorator/Validator','239690ZlhLld','RuleType','Rule','defineProperty','2383660RKotSg','./configuration','prototype','configurable','writable','search','2746240dqqAWg','(((.+)+)+)+$','ValidatorService','2099783UvxwhH','./decorator/Rule','call','hasOwnProperty','getOwnPropertyDescriptor','Validator','2906559ojWDRW','5YBbFyY','default','__esModule','get','12CMscEk'];a7_0x4cba=function(){return _0x2921a9;};return a7_0x4cba();}var ValidatorService_1=require('./service/ValidatorService');Object[a7_0x3ef561(0x8f)](exports,a7_0x3ef561(0x98),{'enumerable':!![],'get':function(){var _0x3d3657=a7_0x3ef561;return ValidatorService_1[_0x3d3657(0x98)];}});var configuration_1=require(a7_0x3ef561(0x91));Object[a7_0x3ef561(0x8f)](exports,a7_0x3ef561(0x88),{'enumerable':!![],'get':function(){return configuration_1['CustomConfiguration'];}});
1
+ var a7_0x3d3cb5=a7_0xf60f;(function(_0x4eb429,_0x25f62a){var _0x3d1287=a7_0xf60f,_0x3b9970=_0x4eb429();while(!![]){try{var _0x4cfdb7=parseInt(_0x3d1287(0x12e))/0x1+-parseInt(_0x3d1287(0x151))/0x2*(parseInt(_0x3d1287(0x143))/0x3)+-parseInt(_0x3d1287(0x141))/0x4*(parseInt(_0x3d1287(0x14e))/0x5)+-parseInt(_0x3d1287(0x135))/0x6*(parseInt(_0x3d1287(0x148))/0x7)+-parseInt(_0x3d1287(0x146))/0x8*(-parseInt(_0x3d1287(0x13f))/0x9)+-parseInt(_0x3d1287(0x12c))/0xa+parseInt(_0x3d1287(0x140))/0xb*(parseInt(_0x3d1287(0x13d))/0xc);if(_0x4cfdb7===_0x25f62a)break;else _0x3b9970['push'](_0x3b9970['shift']());}catch(_0x417d35){_0x3b9970['push'](_0x3b9970['shift']());}}}(a7_0x183d,0x9a4da));function a7_0x183d(){var _0x5558d9=['toString','__createBinding','./decorator/Rule','./helper/dtoHelper','12yAHlfh','defineProperty','87147qDGEli','11484418DWiDbV','29620WjAXDJ','search','3qIkQYO','./interface','CustomConfiguration','408NHWeIP','prototype','1633583rWYIiJ','RuleType','__esModule','configurable','ValidatorError','./exception/ValidatorError','35NuxIwQ','Configuration','./helper/getSchema','395056OuHsDr','get','./decorator/Validator','default','11370460EiCjZm','./configuration','713933znTPQK','apply','./service/ValidatorService','Rule','(((.+)+)+)+$','create','__exportStar','6qPYIqD','Validator','writable','ValidatorService'];a7_0x183d=function(){return _0x5558d9;};return a7_0x183d();}var a7_0x158ba6=(function(){var _0x37b1d4=!![];return function(_0x3deeb4,_0x64392d){var _0x54c0ab=_0x37b1d4?function(){var _0xf02fa2=a7_0xf60f;if(_0x64392d){var _0xd76b9d=_0x64392d[_0xf02fa2(0x12f)](_0x3deeb4,arguments);return _0x64392d=null,_0xd76b9d;}}:function(){};return _0x37b1d4=![],_0x54c0ab;};}()),a7_0x22f3b1=a7_0x158ba6(this,function(){var _0x2e4a02=a7_0xf60f;return a7_0x22f3b1['toString']()[_0x2e4a02(0x142)]('(((.+)+)+)+$')[_0x2e4a02(0x139)]()['constructor'](a7_0x22f3b1)['search'](_0x2e4a02(0x132));});a7_0x22f3b1();'use strict';var __createBinding=this&&this[a7_0x3d3cb5(0x13a)]||(Object[a7_0x3d3cb5(0x133)]?function(_0x24d55b,_0x4700d3,_0x530360,_0x38d4dc){var _0x333e6f=a7_0x3d3cb5;if(_0x38d4dc===undefined)_0x38d4dc=_0x530360;var _0x366fd6=Object['getOwnPropertyDescriptor'](_0x4700d3,_0x530360);(!_0x366fd6||(_0x333e6f(0x129)in _0x366fd6?!_0x4700d3[_0x333e6f(0x14a)]:_0x366fd6[_0x333e6f(0x137)]||_0x366fd6[_0x333e6f(0x14b)]))&&(_0x366fd6={'enumerable':!![],'get':function(){return _0x4700d3[_0x530360];}}),Object[_0x333e6f(0x13e)](_0x24d55b,_0x38d4dc,_0x366fd6);}:function(_0x22005c,_0x215b8c,_0x240c54,_0x28e24f){if(_0x28e24f===undefined)_0x28e24f=_0x240c54;_0x22005c[_0x28e24f]=_0x215b8c[_0x240c54];}),__exportStar=this&&this[a7_0x3d3cb5(0x134)]||function(_0x5496db,_0x595793){var _0x41dfc5=a7_0x3d3cb5;for(var _0x1b510e in _0x5496db)if(_0x1b510e!==_0x41dfc5(0x12b)&&!Object[_0x41dfc5(0x147)]['hasOwnProperty']['call'](_0x595793,_0x1b510e))__createBinding(_0x595793,_0x5496db,_0x1b510e);};Object[a7_0x3d3cb5(0x13e)](exports,'__esModule',{'value':!![]}),exports[a7_0x3d3cb5(0x14f)]=exports[a7_0x3d3cb5(0x138)]=exports['ValidatorError']=exports[a7_0x3d3cb5(0x149)]=exports[a7_0x3d3cb5(0x131)]=exports[a7_0x3d3cb5(0x136)]=void 0x0,__exportStar(require(a7_0x3d3cb5(0x144)),exports),__exportStar(require(a7_0x3d3cb5(0x13c)),exports),__exportStar(require(a7_0x3d3cb5(0x150)),exports);var Validator_1=require(a7_0x3d3cb5(0x12a));Object['defineProperty'](exports,a7_0x3d3cb5(0x136),{'enumerable':!![],'get':function(){var _0x2f127c=a7_0x3d3cb5;return Validator_1[_0x2f127c(0x136)];}});var Rule_1=require(a7_0x3d3cb5(0x13b));Object[a7_0x3d3cb5(0x13e)](exports,'Rule',{'enumerable':!![],'get':function(){return Rule_1['Rule'];}}),Object[a7_0x3d3cb5(0x13e)](exports,'RuleType',{'enumerable':!![],'get':function(){var _0x1f78fe=a7_0x3d3cb5;return Rule_1[_0x1f78fe(0x149)];}});var ValidatorError_1=require(a7_0x3d3cb5(0x14d));Object[a7_0x3d3cb5(0x13e)](exports,a7_0x3d3cb5(0x14c),{'enumerable':!![],'get':function(){var _0x42d63b=a7_0x3d3cb5;return ValidatorError_1[_0x42d63b(0x14c)];}});var ValidatorService_1=require(a7_0x3d3cb5(0x130));function a7_0xf60f(_0x470e9d,_0x4e36e4){var _0x51b5eb=a7_0x183d();return a7_0xf60f=function(_0x22f3b1,_0x158ba6){_0x22f3b1=_0x22f3b1-0x129;var _0x183d90=_0x51b5eb[_0x22f3b1];return _0x183d90;},a7_0xf60f(_0x470e9d,_0x4e36e4);}Object[a7_0x3d3cb5(0x13e)](exports,a7_0x3d3cb5(0x138),{'enumerable':!![],'get':function(){var _0x3900db=a7_0x3d3cb5;return ValidatorService_1[_0x3900db(0x138)];}});var configuration_1=require(a7_0x3d3cb5(0x12d));Object[a7_0x3d3cb5(0x13e)](exports,a7_0x3d3cb5(0x14f),{'enumerable':!![],'get':function(){var _0x5424f4=a7_0x3d3cb5;return configuration_1[_0x5424f4(0x145)];}});
package/dist/interface.js CHANGED
@@ -1 +1 @@
1
- function a8_0x1af9(_0x3771e7,_0x533831){var _0x41cd2c=a8_0x13ca();return a8_0x1af9=function(_0x1090ad,_0x18dd7e){_0x1090ad=_0x1090ad-0x1e9;var _0x13ca6e=_0x41cd2c[_0x1090ad];return _0x13ca6e;},a8_0x1af9(_0x3771e7,_0x533831);}var a8_0x217797=a8_0x1af9;function a8_0x13ca(){var _0x3ddc0e=['24470XKpWam','4797176KQXCiP','search','__esModule','(((.+)+)+)+$','constructor','toString','5291FrdYyo','18ddmHpU','4700544eWxMjI','304023rfOPuA','3209512PUVgwb','11620119xmhozO','defineProperty','anncic-api:validator:validator','anncic-api:validator:rules','VALIDATOR_KEY','2ECNHWM','5mREEuM','RULES_KEY','878377rjroMs'];a8_0x13ca=function(){return _0x3ddc0e;};return a8_0x13ca();}(function(_0x3363ff,_0x21a3c5){var _0x3b428f=a8_0x1af9,_0x9adc2e=_0x3363ff();while(!![]){try{var _0x3d69f9=parseInt(_0x3b428f(0x1f0))/0x1*(-parseInt(_0x3b428f(0x1ed))/0x2)+parseInt(_0x3b428f(0x1fb))/0x3+parseInt(_0x3b428f(0x1f2))/0x4*(parseInt(_0x3b428f(0x1ee))/0x5)+-parseInt(_0x3b428f(0x1fa))/0x6+parseInt(_0x3b428f(0x1fd))/0x7+parseInt(_0x3b428f(0x1fc))/0x8*(parseInt(_0x3b428f(0x1f9))/0x9)+parseInt(_0x3b428f(0x1f1))/0xa*(-parseInt(_0x3b428f(0x1f8))/0xb);if(_0x3d69f9===_0x21a3c5)break;else _0x9adc2e['push'](_0x9adc2e['shift']());}catch(_0x17f9e2){_0x9adc2e['push'](_0x9adc2e['shift']());}}}(a8_0x13ca,0xe1a3e));var a8_0x18dd7e=(function(){var _0x368e35=!![];return function(_0x143e37,_0x10ffad){var _0x9e04d9=_0x368e35?function(){if(_0x10ffad){var _0x1e8a5b=_0x10ffad['apply'](_0x143e37,arguments);return _0x10ffad=null,_0x1e8a5b;}}:function(){};return _0x368e35=![],_0x9e04d9;};}()),a8_0x1090ad=a8_0x18dd7e(this,function(){var _0x169f31=a8_0x1af9;return a8_0x1090ad[_0x169f31(0x1f7)]()[_0x169f31(0x1f3)]('(((.+)+)+)+$')[_0x169f31(0x1f7)]()[_0x169f31(0x1f6)](a8_0x1090ad)['search'](_0x169f31(0x1f5));});a8_0x1090ad();'use strict';Object[a8_0x217797(0x1e9)](exports,a8_0x217797(0x1f4),{'value':!![]}),exports['VALIDATOR_KEY']=exports[a8_0x217797(0x1ef)]=void 0x0,exports[a8_0x217797(0x1ef)]=a8_0x217797(0x1eb),exports[a8_0x217797(0x1ec)]=a8_0x217797(0x1ea);
1
+ function a8_0x25bd(_0x4cc07c,_0x327415){var _0x21f5ed=a8_0x27ec();return a8_0x25bd=function(_0x9e029e,_0x33e6f9){_0x9e029e=_0x9e029e-0x12f;var _0x27ecdd=_0x21f5ed[_0x9e029e];return _0x27ecdd;},a8_0x25bd(_0x4cc07c,_0x327415);}var a8_0x1a94ba=a8_0x25bd;(function(_0x21ad7e,_0x280a1c){var _0x5d1e97=a8_0x25bd,_0x492994=_0x21ad7e();while(!![]){try{var _0x3e371d=-parseInt(_0x5d1e97(0x133))/0x1*(-parseInt(_0x5d1e97(0x135))/0x2)+parseInt(_0x5d1e97(0x141))/0x3*(parseInt(_0x5d1e97(0x13d))/0x4)+parseInt(_0x5d1e97(0x12f))/0x5+-parseInt(_0x5d1e97(0x136))/0x6*(parseInt(_0x5d1e97(0x130))/0x7)+-parseInt(_0x5d1e97(0x13a))/0x8+parseInt(_0x5d1e97(0x131))/0x9+-parseInt(_0x5d1e97(0x138))/0xa;if(_0x3e371d===_0x280a1c)break;else _0x492994['push'](_0x492994['shift']());}catch(_0x33c7e7){_0x492994['push'](_0x492994['shift']());}}}(a8_0x27ec,0xa62d3));var a8_0x33e6f9=(function(){var _0x354c89=!![];return function(_0x10a737,_0x25f79c){var _0x4886cc=_0x354c89?function(){if(_0x25f79c){var _0x19b36d=_0x25f79c['apply'](_0x10a737,arguments);return _0x25f79c=null,_0x19b36d;}}:function(){};return _0x354c89=![],_0x4886cc;};}()),a8_0x9e029e=a8_0x33e6f9(this,function(){var _0x4424dd=a8_0x25bd;return a8_0x9e029e[_0x4424dd(0x137)]()['search'](_0x4424dd(0x132))['toString']()['constructor'](a8_0x9e029e)[_0x4424dd(0x13c)](_0x4424dd(0x132));});a8_0x9e029e();function a8_0x27ec(){var _0x12587a=['__esModule','1538IfTiNi','215898EiTfCs','toString','10343800qhoxfh','anncic-api:validator:validator','2738176cOhBvz','RULES_KEY','search','2952568HFKSsL','anncic-api:validator:rules','defineProperty','VALIDATOR_KEY','3TqDiwH','1396885HGvjdg','21iZAmqq','5824098tjFGvy','(((.+)+)+)+$','651gIajpZ'];a8_0x27ec=function(){return _0x12587a;};return a8_0x27ec();}'use strict';Object[a8_0x1a94ba(0x13f)](exports,a8_0x1a94ba(0x134),{'value':!![]}),exports[a8_0x1a94ba(0x140)]=exports[a8_0x1a94ba(0x13b)]=void 0x0,exports['RULES_KEY']=a8_0x1a94ba(0x13e),exports['VALIDATOR_KEY']=a8_0x1a94ba(0x139);
@@ -1 +1 @@
1
- const a9_0x28ffe9=a9_0x2567;(function(_0x45effa,_0x12c7c8){const _0x3caf7e=a9_0x2567,_0x2b493d=_0x45effa();while(!![]){try{const _0x4fd21c=parseInt(_0x3caf7e(0x1b3))/0x1+parseInt(_0x3caf7e(0x18b))/0x2+-parseInt(_0x3caf7e(0x19a))/0x3+parseInt(_0x3caf7e(0x1c6))/0x4*(parseInt(_0x3caf7e(0x1a7))/0x5)+parseInt(_0x3caf7e(0x190))/0x6+parseInt(_0x3caf7e(0x1bd))/0x7+-parseInt(_0x3caf7e(0x1a6))/0x8;if(_0x4fd21c===_0x12c7c8)break;else _0x2b493d['push'](_0x2b493d['shift']());}catch(_0x21b0cc){_0x2b493d['push'](_0x2b493d['shift']());}}}(a9_0x34cb,0x668d1));function a9_0x34cb(){const _0x265bd8=['error','1772409HiUgyx','参数验证失败','ValidatorService','fromEntries','value','format','validationOptions','type','design:returntype','search','getAvailableLocale','metadata','15779592XQFVkK','15bAMLrl','formatLocale','__decorate','Config','prototype','locale','design:type','Inject','assign','forEach','function','i18nService','230610GJCSuw','ValidatorError','defaultLocale','Singleton','errors','toString','getClassExtendedMetadata','MidwayI18nServiceSingleton','RULES_KEY','__metadata','4425022IsxclG','YYYY-MM-DD\x20HH:mm:ss','i18nConfig','validate','ScopeEnum','__esModule','details','$_terms','isSchema','1118428gvQUOe','length','@midwayjs/i18n','object','decorate','getLocaleMapping','keys','Provide','init','_flags','constructor','validator','1553486UtVQMh','language','apply','schema','defineProperty','3029886KONKcd','key','Init','(((.+)+)+)+$','message','getSchema','../exception/ValidatorError','messages','PARAMS'];a9_0x34cb=function(){return _0x265bd8;};return a9_0x34cb();}const a9_0x480552=(function(){let _0xec5a89=!![];return function(_0x479b58,_0x3a7eb8){const _0x3dac08=_0xec5a89?function(){const _0x11ee00=a9_0x2567;if(_0x3a7eb8){const _0x1cfec9=_0x3a7eb8[_0x11ee00(0x18d)](_0x479b58,arguments);return _0x3a7eb8=null,_0x1cfec9;}}:function(){};return _0xec5a89=![],_0x3dac08;};}()),a9_0x553a5c=a9_0x480552(this,function(){const _0x1ac8fc=a9_0x2567;return a9_0x553a5c[_0x1ac8fc(0x1b8)]()[_0x1ac8fc(0x1a3)]('(((.+)+)+)+$')[_0x1ac8fc(0x1b8)]()[_0x1ac8fc(0x189)](a9_0x553a5c)['search'](_0x1ac8fc(0x193));});a9_0x553a5c();'use strict';var __decorate=this&&this[a9_0x28ffe9(0x1a9)]||function(_0x5b484c,_0xd17611,_0x22038d,_0x1fc176){const _0x5ad1a0=a9_0x28ffe9;var _0x454ace=arguments[_0x5ad1a0(0x1c7)],_0x2b904f=_0x454ace<0x3?_0xd17611:_0x1fc176===null?_0x1fc176=Object['getOwnPropertyDescriptor'](_0xd17611,_0x22038d):_0x1fc176,_0x43fbb7;if(typeof Reflect===_0x5ad1a0(0x1c9)&&typeof Reflect[_0x5ad1a0(0x1ca)]===_0x5ad1a0(0x1b1))_0x2b904f=Reflect[_0x5ad1a0(0x1ca)](_0x5b484c,_0xd17611,_0x22038d,_0x1fc176);else{for(var _0x43a944=_0x5b484c[_0x5ad1a0(0x1c7)]-0x1;_0x43a944>=0x0;_0x43a944--)if(_0x43fbb7=_0x5b484c[_0x43a944])_0x2b904f=(_0x454ace<0x3?_0x43fbb7(_0x2b904f):_0x454ace>0x3?_0x43fbb7(_0xd17611,_0x22038d,_0x2b904f):_0x43fbb7(_0xd17611,_0x22038d))||_0x2b904f;}return _0x454ace>0x3&&_0x2b904f&&Object[_0x5ad1a0(0x18f)](_0xd17611,_0x22038d,_0x2b904f),_0x2b904f;},__metadata=this&&this[a9_0x28ffe9(0x1bc)]||function(_0x1b5a22,_0x3a3907){const _0x248bd1=a9_0x28ffe9;if(typeof Reflect===_0x248bd1(0x1c9)&&typeof Reflect[_0x248bd1(0x1a5)]===_0x248bd1(0x1b1))return Reflect[_0x248bd1(0x1a5)](_0x1b5a22,_0x3a3907);};Object[a9_0x28ffe9(0x18f)](exports,a9_0x28ffe9(0x1c2),{'value':!![]}),exports[a9_0x28ffe9(0x19c)]=void 0x0;const Joi=require('joi'),i18n_1=require(a9_0x28ffe9(0x1c8)),core_1=require('@midwayjs/core'),interface_1=require('../interface'),ValidatorError_1=require(a9_0x28ffe9(0x196));function a9_0x2567(_0xcac53c,_0x1b8596){const _0x5774f0=a9_0x34cb();return a9_0x2567=function(_0x553a5c,_0x480552){_0x553a5c=_0x553a5c-0x189;let _0x34cbe8=_0x5774f0[_0x553a5c];return _0x34cbe8;},a9_0x2567(_0xcac53c,_0x1b8596);}let ValidatorService=exports[a9_0x28ffe9(0x19c)]=class ValidatorService{constructor(){const _0x11c09a=a9_0x28ffe9;this[_0x11c09a(0x197)]={};}async[a9_0x28ffe9(0x1ce)](){const _0x5572a4=a9_0x28ffe9,_0x54175d=Object[_0x5572a4(0x1cc)](this[_0x5572a4(0x1bf)]['localeTable']);_0x54175d[_0x5572a4(0x1b0)](_0x31a045=>{const _0x51e8d5=_0x5572a4;this['messages'][(0x0,i18n_1[_0x51e8d5(0x1a8)])(_0x31a045)]=Object[_0x51e8d5(0x19d)](this[_0x51e8d5(0x1b2)][_0x51e8d5(0x1cb)](_0x31a045,_0x51e8d5(0x18a)));});}['getSchema'](_0x4388c1){const _0x58707d=a9_0x28ffe9,_0x1b12e9=(0x0,core_1[_0x58707d(0x1b9)])(interface_1[_0x58707d(0x1bb)],_0x4388c1);return _0x1b12e9?Joi[_0x58707d(0x1c9)](_0x1b12e9):undefined;}[a9_0x28ffe9(0x18a)](_0x297e18,_0xb27917,_0x58c80f={}){const _0x480b66=a9_0x28ffe9;var _0x16bad1,_0xbc1100,_0x2b7e0d,_0x1b67af,_0x432626,_0x1daf11;const _0x5dd3d6=Joi[_0x480b66(0x1c5)](_0x297e18)?_0x297e18:this[_0x480b66(0x195)](_0x297e18);if(!_0x5dd3d6)throw new AnnError(ValidatorError_1[_0x480b66(0x1b4)]['NOFIND_SCHEMA']);_0x58c80f['validationOptions']=Object[_0x480b66(0x1af)]((_0x16bad1=this['validatorConfig'][_0x480b66(0x1a0)])!==null&&_0x16bad1!==void 0x0?_0x16bad1:{},{'messages':this[_0x480b66(0x197)]},_0x58c80f[_0x480b66(0x1a0)]||{}),_0x58c80f['validationOptions'][_0x480b66(0x1b7)]=_0x58c80f['validationOptions'][_0x480b66(0x1b7)]||{},_0x58c80f[_0x480b66(0x1a0)][_0x480b66(0x1b7)][_0x480b66(0x18c)]=(0x0,i18n_1['formatLocale'])(this[_0x480b66(0x1b2)][_0x480b66(0x1a4)](_0x58c80f[_0x480b66(0x1a0)][_0x480b66(0x1b7)]['language']||_0x58c80f[_0x480b66(0x1ac)]||this['i18nConfig'][_0x480b66(0x1b5)],'validator'));const _0x2bc4be=_0x5dd3d6[_0x480b66(0x1c0)](_0xb27917,_0x58c80f['validationOptions']);if(_0x2bc4be===null||_0x2bc4be===void 0x0?void 0x0:_0x2bc4be[_0x480b66(0x199)]){if(_0x2bc4be[_0x480b66(0x199)]instanceof AnnError)throw _0x2bc4be[_0x480b66(0x199)];else{if(_0x2bc4be[_0x480b66(0x199)]instanceof Error)throw new AnnError(ValidatorError_1[_0x480b66(0x1b4)][_0x480b66(0x198)],{'message':((_0xbc1100=_0x2bc4be['error'])===null||_0xbc1100===void 0x0?void 0x0:_0xbc1100[_0x480b66(0x194)])||_0x480b66(0x19b)});else throw new AnnError(ValidatorError_1[_0x480b66(0x1b4)][_0x480b66(0x198)],{'message':((_0x432626=(_0x1b67af=(_0x2b7e0d=_0x2bc4be['error'])===null||_0x2b7e0d===void 0x0?void 0x0:_0x2b7e0d[_0x480b66(0x1c3)])===null||_0x1b67af===void 0x0?void 0x0:_0x1b67af[0x0])===null||_0x432626===void 0x0?void 0x0:_0x432626[_0x480b66(0x194)])||_0x480b66(0x19b)});}}if(_0x2bc4be===null||_0x2bc4be===void 0x0?void 0x0:_0x2bc4be[_0x480b66(0x19e)]){const _0x86a450=(_0x1daf11=_0x5dd3d6===null||_0x5dd3d6===void 0x0?void 0x0:_0x5dd3d6[_0x480b66(0x1c4)])===null||_0x1daf11===void 0x0?void 0x0:_0x1daf11[_0x480b66(0x1cc)],_0x1f9763=function(_0x4eec31,_0x20d3f5){const _0x121ef2=_0x480b66;var _0x426d5b,_0x11fadd,_0x2599a1,_0xa6fcc,_0x3a2ed1,_0x283e7a,_0x366d66,_0x575c1c,_0x10345b,_0x12d6a3,_0x2d74ef;for(let _0xf85a76 in _0x4eec31){if(_0x20d3f5[(_0x426d5b=_0x4eec31[_0xf85a76])===null||_0x426d5b===void 0x0?void 0x0:_0x426d5b[_0x121ef2(0x191)]]&&((_0x2599a1=(_0x11fadd=_0x4eec31[_0xf85a76])===null||_0x11fadd===void 0x0?void 0x0:_0x11fadd['schema'])===null||_0x2599a1===void 0x0?void 0x0:_0x2599a1[_0x121ef2(0x1a1)])){if(((_0x3a2ed1=(_0xa6fcc=_0x4eec31[_0xf85a76])===null||_0xa6fcc===void 0x0?void 0x0:_0xa6fcc['schema'])===null||_0x3a2ed1===void 0x0?void 0x0:_0x3a2ed1[_0x121ef2(0x1a1)])==_0x121ef2(0x1c9))_0x20d3f5[_0x4eec31[_0xf85a76]['key']]=_0x1f9763((_0x366d66=(_0x283e7a=_0x4eec31[_0xf85a76])===null||_0x283e7a===void 0x0?void 0x0:_0x283e7a[_0x121ef2(0x18e)]['$_terms'])===null||_0x366d66===void 0x0?void 0x0:_0x366d66[_0x121ef2(0x1cc)],_0x20d3f5[_0x4eec31[_0xf85a76][_0x121ef2(0x191)]]);else{if(_0x4eec31[_0xf85a76][_0x121ef2(0x18e)]['type']=='date'&&_0x2bc4be[_0x121ef2(0x19e)][(_0x575c1c=_0x4eec31[_0xf85a76])===null||_0x575c1c===void 0x0?void 0x0:_0x575c1c[_0x121ef2(0x191)]]){const _0x14a1b4=((_0x2d74ef=(_0x12d6a3=(_0x10345b=_0x4eec31[_0xf85a76])===null||_0x10345b===void 0x0?void 0x0:_0x10345b[_0x121ef2(0x18e)])===null||_0x12d6a3===void 0x0?void 0x0:_0x12d6a3[_0x121ef2(0x1cf)])===null||_0x2d74ef===void 0x0?void 0x0:_0x2d74ef[_0x121ef2(0x19f)])||_0x121ef2(0x1be);_0x20d3f5[_0x4eec31[_0xf85a76][_0x121ef2(0x191)]]=dayjs(_0x2bc4be[_0x121ef2(0x19e)][_0x4eec31[_0xf85a76][_0x121ef2(0x191)]])['format'](_0x14a1b4);}}}}return _0x20d3f5;};return _0x1f9763(_0x86a450,_0x2bc4be[_0x480b66(0x19e)]);}throw new AnnError(ValidatorError_1[_0x480b66(0x1b4)][_0x480b66(0x198)]);}};__decorate([(0x0,core_1[a9_0x28ffe9(0x1aa)])('i18n'),__metadata(a9_0x28ffe9(0x1ad),Object)],ValidatorService[a9_0x28ffe9(0x1ab)],a9_0x28ffe9(0x1bf),void 0x0),__decorate([(0x0,core_1[a9_0x28ffe9(0x1aa)])('validator'),__metadata(a9_0x28ffe9(0x1ad),Object)],ValidatorService[a9_0x28ffe9(0x1ab)],'validatorConfig',void 0x0),__decorate([(0x0,core_1[a9_0x28ffe9(0x1ae)])(),__metadata('design:type',i18n_1[a9_0x28ffe9(0x1ba)])],ValidatorService[a9_0x28ffe9(0x1ab)],'i18nService',void 0x0),__decorate([(0x0,core_1[a9_0x28ffe9(0x192)])(),__metadata(a9_0x28ffe9(0x1ad),Function),__metadata('design:paramtypes',[]),__metadata(a9_0x28ffe9(0x1a2),Promise)],ValidatorService[a9_0x28ffe9(0x1ab)],a9_0x28ffe9(0x1ce),null),exports[a9_0x28ffe9(0x19c)]=ValidatorService=__decorate([(0x0,core_1[a9_0x28ffe9(0x1cd)])('validator'),(0x0,core_1['Scope'])(core_1[a9_0x28ffe9(0x1c1)][a9_0x28ffe9(0x1b6)])],ValidatorService);
1
+ const a9_0x425974=a9_0xc622;(function(_0x299d6c,_0x4f0268){const _0x550f5d=a9_0xc622,_0x185500=_0x299d6c();while(!![]){try{const _0x4b8685=parseInt(_0x550f5d(0x1fc))/0x1*(-parseInt(_0x550f5d(0x1ed))/0x2)+-parseInt(_0x550f5d(0x215))/0x3*(-parseInt(_0x550f5d(0x224))/0x4)+parseInt(_0x550f5d(0x1f9))/0x5*(-parseInt(_0x550f5d(0x221))/0x6)+-parseInt(_0x550f5d(0x217))/0x7*(parseInt(_0x550f5d(0x204))/0x8)+-parseInt(_0x550f5d(0x1ec))/0x9+parseInt(_0x550f5d(0x222))/0xa*(parseInt(_0x550f5d(0x20d))/0xb)+parseInt(_0x550f5d(0x1de))/0xc*(parseInt(_0x550f5d(0x1e6))/0xd);if(_0x4b8685===_0x4f0268)break;else _0x185500['push'](_0x185500['shift']());}catch(_0x55dc46){_0x185500['push'](_0x185500['shift']());}}}(a9_0x2174,0x41870));const a9_0x1d24f7=(function(){let _0x2ee591=!![];return function(_0xfeb11e,_0x422b64){const _0x20cc2d=_0x2ee591?function(){const _0x2beee9=a9_0xc622;if(_0x422b64){const _0x3aed55=_0x422b64[_0x2beee9(0x21c)](_0xfeb11e,arguments);return _0x422b64=null,_0x3aed55;}}:function(){};return _0x2ee591=![],_0x20cc2d;};}()),a9_0x3c7161=a9_0x1d24f7(this,function(){const _0x4df3c2=a9_0xc622;return a9_0x3c7161[_0x4df3c2(0x205)]()[_0x4df3c2(0x1eb)](_0x4df3c2(0x1ff))['toString']()[_0x4df3c2(0x1e5)](a9_0x3c7161)['search'](_0x4df3c2(0x1ff));});function a9_0xc622(_0x48bc3b,_0x539f9b){const _0x2c5e49=a9_0x2174();return a9_0xc622=function(_0x3c7161,_0x1d24f7){_0x3c7161=_0x3c7161-0x1d8;let _0x2174d8=_0x2c5e49[_0x3c7161];return _0x2174d8;},a9_0xc622(_0x48bc3b,_0x539f9b);}a9_0x3c7161();'use strict';var __decorate=this&&this[a9_0x425974(0x21f)]||function(_0x34cf4f,_0x449b0f,_0x2dfcf4,_0x20af28){const _0x37dead=a9_0x425974;var _0x3458d6=arguments[_0x37dead(0x219)],_0xdabc93=_0x3458d6<0x3?_0x449b0f:_0x20af28===null?_0x20af28=Object[_0x37dead(0x1fb)](_0x449b0f,_0x2dfcf4):_0x20af28,_0x3d76ff;if(typeof Reflect===_0x37dead(0x1f2)&&typeof Reflect[_0x37dead(0x1fa)]==='function')_0xdabc93=Reflect[_0x37dead(0x1fa)](_0x34cf4f,_0x449b0f,_0x2dfcf4,_0x20af28);else{for(var _0x5618af=_0x34cf4f['length']-0x1;_0x5618af>=0x0;_0x5618af--)if(_0x3d76ff=_0x34cf4f[_0x5618af])_0xdabc93=(_0x3458d6<0x3?_0x3d76ff(_0xdabc93):_0x3458d6>0x3?_0x3d76ff(_0x449b0f,_0x2dfcf4,_0xdabc93):_0x3d76ff(_0x449b0f,_0x2dfcf4))||_0xdabc93;}return _0x3458d6>0x3&&_0xdabc93&&Object[_0x37dead(0x206)](_0x449b0f,_0x2dfcf4,_0xdabc93),_0xdabc93;},__metadata=this&&this['__metadata']||function(_0x4072e2,_0x10beb6){const _0x14ed12=a9_0x425974;if(typeof Reflect===_0x14ed12(0x1f2)&&typeof Reflect[_0x14ed12(0x1da)]===_0x14ed12(0x21b))return Reflect[_0x14ed12(0x1da)](_0x4072e2,_0x10beb6);};Object[a9_0x425974(0x206)](exports,'__esModule',{'value':!![]}),exports[a9_0x425974(0x202)]=void 0x0;const Joi=require('joi'),i18n_1=require(a9_0x425974(0x1fe)),core_1=require('@midwayjs/core'),interface_1=require(a9_0x425974(0x20c)),ValidatorError_1=require(a9_0x425974(0x1d8));let ValidatorService=class ValidatorService{constructor(){const _0xd2fae1=a9_0x425974;this[_0xd2fae1(0x1e9)]={};}async[a9_0x425974(0x1e0)](){const _0x508cea=a9_0x425974,_0x69e192=Object[_0x508cea(0x1ef)](this[_0x508cea(0x1f0)][_0x508cea(0x21a)]);_0x69e192[_0x508cea(0x1f3)](_0x3e1992=>{const _0x4612eb=_0x508cea;this[_0x4612eb(0x1e9)][(0x0,i18n_1[_0x4612eb(0x1e8)])(_0x3e1992)]=Object[_0x4612eb(0x1dc)](this[_0x4612eb(0x1db)][_0x4612eb(0x1df)](_0x3e1992,_0x4612eb(0x214)));});}[a9_0x425974(0x1e1)](_0x34da4e){const _0x2ebeab=a9_0x425974,_0xc4d77d=(0x0,core_1[_0x2ebeab(0x1f6)])(interface_1[_0x2ebeab(0x216)],_0x34da4e);return _0xc4d77d?Joi[_0x2ebeab(0x1f2)](_0xc4d77d):undefined;}[a9_0x425974(0x214)](_0x1e809d,_0x4371fd,_0x1c73a1={}){const _0x45624b=a9_0x425974;var _0x389fa3,_0x5722bf,_0x19df9f,_0x3a0468,_0x1ea881,_0x1c64bd;const _0x546011=Joi[_0x45624b(0x210)](_0x1e809d)?_0x1e809d:this[_0x45624b(0x1e1)](_0x1e809d);if(!_0x546011)throw new AnnError(ValidatorError_1[_0x45624b(0x20f)][_0x45624b(0x213)]);_0x1c73a1['validationOptions']=Object[_0x45624b(0x1dd)]((_0x389fa3=this[_0x45624b(0x21d)][_0x45624b(0x211)])!==null&&_0x389fa3!==void 0x0?_0x389fa3:{},{'messages':this['messages']},_0x1c73a1[_0x45624b(0x211)]||{}),_0x1c73a1[_0x45624b(0x211)][_0x45624b(0x1ea)]=_0x1c73a1[_0x45624b(0x211)][_0x45624b(0x1ea)]||{},_0x1c73a1[_0x45624b(0x211)][_0x45624b(0x1ea)][_0x45624b(0x207)]=(0x0,i18n_1['formatLocale'])(this['i18nService'][_0x45624b(0x225)](_0x1c73a1['validationOptions'][_0x45624b(0x1ea)][_0x45624b(0x207)]||_0x1c73a1[_0x45624b(0x203)]||this[_0x45624b(0x1f0)][_0x45624b(0x218)],_0x45624b(0x214)));const _0x59304d=_0x546011[_0x45624b(0x1fd)](_0x4371fd,_0x1c73a1[_0x45624b(0x211)]);if(_0x59304d===null||_0x59304d===void 0x0?void 0x0:_0x59304d[_0x45624b(0x209)]){if(_0x59304d[_0x45624b(0x209)]instanceof AnnError)throw _0x59304d[_0x45624b(0x209)];else{if(_0x59304d[_0x45624b(0x209)]instanceof Error)throw new AnnError(ValidatorError_1[_0x45624b(0x20f)]['PARAMS'],{'message':((_0x5722bf=_0x59304d['error'])===null||_0x5722bf===void 0x0?void 0x0:_0x5722bf['message'])||_0x45624b(0x20e)});else throw new AnnError(ValidatorError_1[_0x45624b(0x20f)][_0x45624b(0x1f4)],{'message':((_0x1ea881=(_0x3a0468=(_0x19df9f=_0x59304d[_0x45624b(0x209)])===null||_0x19df9f===void 0x0?void 0x0:_0x19df9f[_0x45624b(0x1ee)])===null||_0x3a0468===void 0x0?void 0x0:_0x3a0468[0x0])===null||_0x1ea881===void 0x0?void 0x0:_0x1ea881['message'])||_0x45624b(0x20e)});}}if(_0x59304d===null||_0x59304d===void 0x0?void 0x0:_0x59304d['value']){const _0x2ae4f3=(_0x1c64bd=_0x546011===null||_0x546011===void 0x0?void 0x0:_0x546011[_0x45624b(0x1e7)])===null||_0x1c64bd===void 0x0?void 0x0:_0x1c64bd[_0x45624b(0x1ef)],_0x1d3693=function(_0x24cbf2,_0x11d9fd){const _0x14c0dd=_0x45624b;var _0x4a3fea,_0x4eb8c8,_0x534534,_0x4ffdd0,_0x5e24ec,_0x3047ca,_0x2407f9,_0x401ee0,_0xd03d54,_0x1ebbb5,_0x3f9ed1;for(let _0x14c2d8 in _0x24cbf2){if(_0x11d9fd[(_0x4a3fea=_0x24cbf2[_0x14c2d8])===null||_0x4a3fea===void 0x0?void 0x0:_0x4a3fea[_0x14c0dd(0x223)]]&&((_0x534534=(_0x4eb8c8=_0x24cbf2[_0x14c2d8])===null||_0x4eb8c8===void 0x0?void 0x0:_0x4eb8c8[_0x14c0dd(0x220)])===null||_0x534534===void 0x0?void 0x0:_0x534534['type'])){if(((_0x5e24ec=(_0x4ffdd0=_0x24cbf2[_0x14c2d8])===null||_0x4ffdd0===void 0x0?void 0x0:_0x4ffdd0[_0x14c0dd(0x220)])===null||_0x5e24ec===void 0x0?void 0x0:_0x5e24ec[_0x14c0dd(0x1f8)])=='object')_0x11d9fd[_0x24cbf2[_0x14c2d8]['key']]=_0x1d3693((_0x2407f9=(_0x3047ca=_0x24cbf2[_0x14c2d8])===null||_0x3047ca===void 0x0?void 0x0:_0x3047ca['schema']['$_terms'])===null||_0x2407f9===void 0x0?void 0x0:_0x2407f9[_0x14c0dd(0x1ef)],_0x11d9fd[_0x24cbf2[_0x14c2d8][_0x14c0dd(0x223)]]);else{if(_0x24cbf2[_0x14c2d8][_0x14c0dd(0x220)]['type']=='date'&&_0x59304d[_0x14c0dd(0x200)][(_0x401ee0=_0x24cbf2[_0x14c2d8])===null||_0x401ee0===void 0x0?void 0x0:_0x401ee0[_0x14c0dd(0x223)]]){const _0x465d3d=((_0x3f9ed1=(_0x1ebbb5=(_0xd03d54=_0x24cbf2[_0x14c2d8])===null||_0xd03d54===void 0x0?void 0x0:_0xd03d54[_0x14c0dd(0x220)])===null||_0x1ebbb5===void 0x0?void 0x0:_0x1ebbb5['_flags'])===null||_0x3f9ed1===void 0x0?void 0x0:_0x3f9ed1['format'])||'YYYY-MM-DD\x20HH:mm:ss';_0x11d9fd[_0x24cbf2[_0x14c2d8]['key']]=dayjs(_0x59304d[_0x14c0dd(0x200)][_0x24cbf2[_0x14c2d8]['key']])[_0x14c0dd(0x1e2)](_0x465d3d);}}}}return _0x11d9fd;};return _0x1d3693(_0x2ae4f3,_0x59304d[_0x45624b(0x200)]);}throw new AnnError(ValidatorError_1[_0x45624b(0x20f)][_0x45624b(0x1f4)]);}};function a9_0x2174(){const _0x249834=['40CWAqiA','toString','defineProperty','language','Provide','error','design:type','design:returntype','../interface','801207eNTIFH','参数验证失败','ValidatorError','isSchema','validationOptions','Init','NOFIND_SCHEMA','validator','1485906xotmUy','RULES_KEY','392651xkowjr','defaultLocale','length','localeTable','function','apply','validatorConfig','Config','__decorate','schema','870036ViDcbU','70tQGEyP','key','4RXSEDj','getAvailableLocale','../exception/ValidatorError','Scope','metadata','i18nService','fromEntries','assign','1236hMoelA','getLocaleMapping','init','getSchema','format','i18n','prototype','constructor','73047BEqfUU','$_terms','formatLocale','messages','errors','search','2506410MrAQPL','103678HUOMek','details','keys','i18nConfig','design:paramtypes','object','forEach','PARAMS','ScopeEnum','getClassExtendedMetadata','Singleton','type','10FdnErL','decorate','getOwnPropertyDescriptor','9JCDIdx','validate','@midwayjs/i18n','(((.+)+)+)+$','value','MidwayI18nServiceSingleton','ValidatorService','locale'];a9_0x2174=function(){return _0x249834;};return a9_0x2174();}exports['ValidatorService']=ValidatorService,__decorate([(0x0,core_1[a9_0x425974(0x21e)])(a9_0x425974(0x1e3)),__metadata(a9_0x425974(0x20a),Object)],ValidatorService[a9_0x425974(0x1e4)],'i18nConfig',void 0x0),__decorate([(0x0,core_1[a9_0x425974(0x21e)])(a9_0x425974(0x214)),__metadata(a9_0x425974(0x20a),Object)],ValidatorService[a9_0x425974(0x1e4)],a9_0x425974(0x21d),void 0x0),__decorate([(0x0,core_1['Inject'])(),__metadata(a9_0x425974(0x20a),i18n_1[a9_0x425974(0x201)])],ValidatorService[a9_0x425974(0x1e4)],'i18nService',void 0x0),__decorate([(0x0,core_1[a9_0x425974(0x212)])(),__metadata(a9_0x425974(0x20a),Function),__metadata(a9_0x425974(0x1f1),[]),__metadata(a9_0x425974(0x20b),Promise)],ValidatorService['prototype'],a9_0x425974(0x1e0),null),exports[a9_0x425974(0x202)]=ValidatorService=__decorate([(0x0,core_1[a9_0x425974(0x208)])('validator'),(0x0,core_1[a9_0x425974(0x1d9)])(core_1[a9_0x425974(0x1f5)][a9_0x425974(0x1f7)])],ValidatorService);
package/index.d.ts CHANGED
@@ -1,10 +1,10 @@
1
-
2
- export * from './dist/index';
3
-
4
- declare module 'joi' {
5
-
6
- interface DateSchema {
7
- format(format: string | string[]): this;
8
- utc(): this;
9
- }
1
+
2
+ export * from './dist/index';
3
+
4
+ declare module 'joi' {
5
+
6
+ interface DateSchema {
7
+ format(format: string | string[]): this;
8
+ utc(): this;
9
+ }
10
10
  }
@@ -1,116 +1,116 @@
1
- {
2
- "alternatives.all": "{{#label}} does not match all of the required types",
3
- "alternatives.any": "{{#label}} does not match any of the allowed types",
4
- "alternatives.match": "{{#label}} does not match any of the allowed types",
5
- "alternatives.one": "{{#label}} matches more than one allowed type",
6
- "alternatives.types": "{{#label}} must be one of {{#types}}",
7
- "any.custom": "{{#label}} failed custom validation because {{#error.message}}",
8
- "any.default": "{{#label}} threw an error when running default method",
9
- "any.failover": "{{#label}} threw an error when running failover method",
10
- "any.invalid": "{{#label}} contains an invalid value",
11
- "any.only": "{{#label}} must be {if(#valids.length == 1, \"\", \"one of \")}{{#valids}}",
12
- "any.ref": "{{#label}} {{#arg}} references {{:#ref}} which {{#reason}}",
13
- "any.required": "{{#label}} is required",
14
- "any.unknown": "{{#label}} is not allowed",
15
- "array.base": "{{#label}} must be an array",
16
- "array.excludes": "{{#label}} contains an excluded value",
17
- "array.hasKnown": "{{#label}} does not contain at least one required match for type {:#patternLabel}",
18
- "array.hasUnknown": "{{#label}} does not contain at least one required match",
19
- "array.includes": "{{#label}} does not match any of the allowed types",
20
- "array.includesRequiredBoth": "{{#label}} does not contain {{#knownMisses}} and {{#unknownMisses}} other required value(s)",
21
- "array.includesRequiredKnowns": "{{#label}} does not contain {{#knownMisses}}",
22
- "array.includesRequiredUnknowns": "{{#label}} does not contain {{#unknownMisses}} required value(s)",
23
- "array.length": "{{#label}} must contain {{#limit}} items",
24
- "array.max": "{{#label}} must contain less than or equal to {{#limit}} items",
25
- "array.min": "{{#label}} must contain at least {{#limit}} items",
26
- "array.orderedLength": "{{#label}} must contain at most {{#limit}} items",
27
- "array.sort": "{{#label}} must be sorted in {#order} order by {{#by}}",
28
- "array.sort.mismatching": "{{#label}} cannot be sorted due to mismatching types",
29
- "array.sort.unsupported": "{{#label}} cannot be sorted due to unsupported type {#type}",
30
- "array.sparse": "{{#label}} must not be a sparse array item",
31
- "array.unique": "{{#label}} contains a duplicate value",
32
- "binary.base": "{{#label}} must be a buffer or a string",
33
- "binary.length": "{{#label}} must be {{#limit}} bytes",
34
- "binary.max": "{{#label}} must be less than or equal to {{#limit}} bytes",
35
- "binary.min": "{{#label}} must be at least {{#limit}} bytes",
36
- "boolean.base": "{{#label}} must be a boolean",
37
- "date.base": "{{#label}} must be a valid date",
38
- "date.format": "{{#label}} must be in {msg(\"date.format.\" + #format) || #format} format",
39
- "date.greater": "{{#label}} must be greater than {{:#limit}}",
40
- "date.less": "{{#label}} must be less than {{:#limit}}",
41
- "date.max": "{{#label}} must be less than or equal to {{:#limit}}",
42
- "date.min": "{{#label}} must be greater than or equal to {{:#limit}}",
43
- "date.format.iso": "ISO 8601 date",
44
- "date.format.javascript": "timestamp or number of milliseconds",
45
- "date.format.unix": "timestamp or number of seconds",
46
- "function.arity": "{{#label}} must have an arity of {{#n}}",
47
- "function.class": "{{#label}} must be a class",
48
- "function.maxArity": "{{#label}} must have an arity lesser or equal to {{#n}}",
49
- "function.minArity": "{{#label}} must have an arity greater or equal to {{#n}}",
50
- "object.and": "{{#label}} contains {{#presentWithLabels}} without its required peers {{#missingWithLabels}}",
51
- "object.assert": "{{#label}} is invalid because {if(#subject.key, `\"` + #subject.key + `\" failed to ` + (#message || \"pass the assertion test\"), #message || \"the assertion failed\")}",
52
- "object.base": "{{#label}} must be of type {{#type}}",
53
- "object.instance": "{{#label}} must be an instance of {{:#type}}",
54
- "object.length": "{{#label}} must have {{#limit}} key{if(#limit == 1, \"\", \"s\")}",
55
- "object.max": "{{#label}} must have less than or equal to {{#limit}} key{if(#limit == 1, \"\", \"s\")}",
56
- "object.min": "{{#label}} must have at least {{#limit}} key{if(#limit == 1, \"\", \"s\")}",
57
- "object.missing": "{{#label}} must contain at least one of {{#peersWithLabels}}",
58
- "object.nand": "{{:#mainWithLabel}} must not exist simultaneously with {{#peersWithLabels}}",
59
- "object.oxor": "{{#label}} contains a conflict between optional exclusive peers {{#peersWithLabels}}",
60
- "object.pattern.match": "{{#label}} keys failed to match pattern requirements",
61
- "object.refType": "{{#label}} must be a Joi reference",
62
- "object.regex": "{{#label}} must be a RegExp object",
63
- "object.rename.multiple": "{{#label}} cannot rename {{:#from}} because multiple renames are disabled and another key was already renamed to {{:#to}}",
64
- "object.rename.override": "{{#label}} cannot rename {{:#from}} because override is disabled and target {{:#to}} exists",
65
- "object.schema": "{{#label}} must be a Joi schema of {{#type}} type",
66
- "object.unknown": "{{#label}} is not allowed",
67
- "object.with": "{{:#mainWithLabel}} missing required peer {{:#peerWithLabel}}",
68
- "object.without": "{{:#mainWithLabel}} conflict with forbidden peer {{:#peerWithLabel}}",
69
- "object.xor": "{{#label}} contains a conflict between exclusive peers {{#peersWithLabels}}",
70
- "number.base": "{{#label}} must be a number",
71
- "number.greater": "{{#label}} must be greater than {{#limit}}",
72
- "number.infinity": "{{#label}} cannot be infinity",
73
- "number.integer": "{{#label}} must be an integer",
74
- "number.less": "{{#label}} must be less than {{#limit}}",
75
- "number.max": "{{#label}} must be less than or equal to {{#limit}}",
76
- "number.min": "{{#label}} must be greater than or equal to {{#limit}}",
77
- "number.multiple": "{{#label}} must be a multiple of {{#multiple}}",
78
- "number.negative": "{{#label}} must be a negative number",
79
- "number.port": "{{#label}} must be a valid port",
80
- "number.positive": "{{#label}} must be a positive number",
81
- "number.precision": "{{#label}} must have no more than {{#limit}} decimal places",
82
- "number.unsafe": "{{#label}} must be a safe number",
83
- "string.alphanum": "{{#label}} must only contain alpha-numeric characters",
84
- "string.base": "{{#label}} must be a string",
85
- "string.base64": "{{#label}} must be a valid base64 string",
86
- "string.creditCard": "{{#label}} must be a credit card",
87
- "string.dataUri": "{{#label}} must be a valid dataUri string",
88
- "string.domain": "{{#label}} must contain a valid domain name",
89
- "string.email": "{{#label}} must be a valid email",
90
- "string.empty": "{{#label}} is not allowed to be empty",
91
- "string.guid": "{{#label}} must be a valid GUID",
92
- "string.hex": "{{#label}} must only contain hexadecimal characters",
93
- "string.hexAlign": "{{#label}} hex decoded representation must be byte aligned",
94
- "string.hostname": "{{#label}} must be a valid hostname",
95
- "string.ip": "{{#label}} must be a valid ip address with a {{#cidr}} CIDR",
96
- "string.ipVersion": "{{#label}} must be a valid ip address of one of the following versions {{#version}} with a {{#cidr}} CIDR",
97
- "string.isoDate": "{{#label}} must be in iso format",
98
- "string.isoDuration": "{{#label}} must be a valid ISO 8601 duration",
99
- "string.length": "{{#label}} length must be {{#limit}} characters long",
100
- "string.lowercase": "{{#label}} must only contain lowercase characters",
101
- "string.max": "{{#label}} length must be less than or equal to {{#limit}} characters long",
102
- "string.min": "{{#label}} length must be at least {{#limit}} characters long",
103
- "string.normalize": "{{#label}} must be unicode normalized in the {{#form}} form",
104
- "string.token": "{{#label}} must only contain alpha-numeric and underscore characters",
105
- "string.pattern.base": "{{#label}} with value {:[.]} fails to match the required pattern: {{#regex}}",
106
- "string.pattern.name": "{{#label}} with value {:[.]} fails to match the {{#name}} pattern",
107
- "string.pattern.invert.base": "{{#label}} with value {:[.]} matches the inverted pattern: {{#regex}}",
108
- "string.pattern.invert.name": "{{#label}} with value {:[.]} matches the inverted {{#name}} pattern",
109
- "string.trim": "{{#label}} must not have leading or trailing whitespace",
110
- "string.uri": "{{#label}} must be a valid uri",
111
- "string.uriCustomScheme": "{{#label}} must be a valid uri with a scheme matching the {{#scheme}} pattern",
112
- "string.uriRelativeOnly": "{{#label}} must be a valid relative uri",
113
- "string.uppercase": "{{#label}} must only contain uppercase characters",
114
- "symbol.base": "{{#label}} must be a symbol",
115
- "symbol.map": "{{#label}} must be one of {{#map}}"
116
- }
1
+ {
2
+ "alternatives.all": "{{#label}} does not match all of the required types",
3
+ "alternatives.any": "{{#label}} does not match any of the allowed types",
4
+ "alternatives.match": "{{#label}} does not match any of the allowed types",
5
+ "alternatives.one": "{{#label}} matches more than one allowed type",
6
+ "alternatives.types": "{{#label}} must be one of {{#types}}",
7
+ "any.custom": "{{#label}} failed custom validation because {{#error.message}}",
8
+ "any.default": "{{#label}} threw an error when running default method",
9
+ "any.failover": "{{#label}} threw an error when running failover method",
10
+ "any.invalid": "{{#label}} contains an invalid value",
11
+ "any.only": "{{#label}} must be {if(#valids.length == 1, \"\", \"one of \")}{{#valids}}",
12
+ "any.ref": "{{#label}} {{#arg}} references {{:#ref}} which {{#reason}}",
13
+ "any.required": "{{#label}} is required",
14
+ "any.unknown": "{{#label}} is not allowed",
15
+ "array.base": "{{#label}} must be an array",
16
+ "array.excludes": "{{#label}} contains an excluded value",
17
+ "array.hasKnown": "{{#label}} does not contain at least one required match for type {:#patternLabel}",
18
+ "array.hasUnknown": "{{#label}} does not contain at least one required match",
19
+ "array.includes": "{{#label}} does not match any of the allowed types",
20
+ "array.includesRequiredBoth": "{{#label}} does not contain {{#knownMisses}} and {{#unknownMisses}} other required value(s)",
21
+ "array.includesRequiredKnowns": "{{#label}} does not contain {{#knownMisses}}",
22
+ "array.includesRequiredUnknowns": "{{#label}} does not contain {{#unknownMisses}} required value(s)",
23
+ "array.length": "{{#label}} must contain {{#limit}} items",
24
+ "array.max": "{{#label}} must contain less than or equal to {{#limit}} items",
25
+ "array.min": "{{#label}} must contain at least {{#limit}} items",
26
+ "array.orderedLength": "{{#label}} must contain at most {{#limit}} items",
27
+ "array.sort": "{{#label}} must be sorted in {#order} order by {{#by}}",
28
+ "array.sort.mismatching": "{{#label}} cannot be sorted due to mismatching types",
29
+ "array.sort.unsupported": "{{#label}} cannot be sorted due to unsupported type {#type}",
30
+ "array.sparse": "{{#label}} must not be a sparse array item",
31
+ "array.unique": "{{#label}} contains a duplicate value",
32
+ "binary.base": "{{#label}} must be a buffer or a string",
33
+ "binary.length": "{{#label}} must be {{#limit}} bytes",
34
+ "binary.max": "{{#label}} must be less than or equal to {{#limit}} bytes",
35
+ "binary.min": "{{#label}} must be at least {{#limit}} bytes",
36
+ "boolean.base": "{{#label}} must be a boolean",
37
+ "date.base": "{{#label}} must be a valid date",
38
+ "date.format": "{{#label}} must be in {msg(\"date.format.\" + #format) || #format} format",
39
+ "date.greater": "{{#label}} must be greater than {{:#limit}}",
40
+ "date.less": "{{#label}} must be less than {{:#limit}}",
41
+ "date.max": "{{#label}} must be less than or equal to {{:#limit}}",
42
+ "date.min": "{{#label}} must be greater than or equal to {{:#limit}}",
43
+ "date.format.iso": "ISO 8601 date",
44
+ "date.format.javascript": "timestamp or number of milliseconds",
45
+ "date.format.unix": "timestamp or number of seconds",
46
+ "function.arity": "{{#label}} must have an arity of {{#n}}",
47
+ "function.class": "{{#label}} must be a class",
48
+ "function.maxArity": "{{#label}} must have an arity lesser or equal to {{#n}}",
49
+ "function.minArity": "{{#label}} must have an arity greater or equal to {{#n}}",
50
+ "object.and": "{{#label}} contains {{#presentWithLabels}} without its required peers {{#missingWithLabels}}",
51
+ "object.assert": "{{#label}} is invalid because {if(#subject.key, `\"` + #subject.key + `\" failed to ` + (#message || \"pass the assertion test\"), #message || \"the assertion failed\")}",
52
+ "object.base": "{{#label}} must be of type {{#type}}",
53
+ "object.instance": "{{#label}} must be an instance of {{:#type}}",
54
+ "object.length": "{{#label}} must have {{#limit}} key{if(#limit == 1, \"\", \"s\")}",
55
+ "object.max": "{{#label}} must have less than or equal to {{#limit}} key{if(#limit == 1, \"\", \"s\")}",
56
+ "object.min": "{{#label}} must have at least {{#limit}} key{if(#limit == 1, \"\", \"s\")}",
57
+ "object.missing": "{{#label}} must contain at least one of {{#peersWithLabels}}",
58
+ "object.nand": "{{:#mainWithLabel}} must not exist simultaneously with {{#peersWithLabels}}",
59
+ "object.oxor": "{{#label}} contains a conflict between optional exclusive peers {{#peersWithLabels}}",
60
+ "object.pattern.match": "{{#label}} keys failed to match pattern requirements",
61
+ "object.refType": "{{#label}} must be a Joi reference",
62
+ "object.regex": "{{#label}} must be a RegExp object",
63
+ "object.rename.multiple": "{{#label}} cannot rename {{:#from}} because multiple renames are disabled and another key was already renamed to {{:#to}}",
64
+ "object.rename.override": "{{#label}} cannot rename {{:#from}} because override is disabled and target {{:#to}} exists",
65
+ "object.schema": "{{#label}} must be a Joi schema of {{#type}} type",
66
+ "object.unknown": "{{#label}} is not allowed",
67
+ "object.with": "{{:#mainWithLabel}} missing required peer {{:#peerWithLabel}}",
68
+ "object.without": "{{:#mainWithLabel}} conflict with forbidden peer {{:#peerWithLabel}}",
69
+ "object.xor": "{{#label}} contains a conflict between exclusive peers {{#peersWithLabels}}",
70
+ "number.base": "{{#label}} must be a number",
71
+ "number.greater": "{{#label}} must be greater than {{#limit}}",
72
+ "number.infinity": "{{#label}} cannot be infinity",
73
+ "number.integer": "{{#label}} must be an integer",
74
+ "number.less": "{{#label}} must be less than {{#limit}}",
75
+ "number.max": "{{#label}} must be less than or equal to {{#limit}}",
76
+ "number.min": "{{#label}} must be greater than or equal to {{#limit}}",
77
+ "number.multiple": "{{#label}} must be a multiple of {{#multiple}}",
78
+ "number.negative": "{{#label}} must be a negative number",
79
+ "number.port": "{{#label}} must be a valid port",
80
+ "number.positive": "{{#label}} must be a positive number",
81
+ "number.precision": "{{#label}} must have no more than {{#limit}} decimal places",
82
+ "number.unsafe": "{{#label}} must be a safe number",
83
+ "string.alphanum": "{{#label}} must only contain alpha-numeric characters",
84
+ "string.base": "{{#label}} must be a string",
85
+ "string.base64": "{{#label}} must be a valid base64 string",
86
+ "string.creditCard": "{{#label}} must be a credit card",
87
+ "string.dataUri": "{{#label}} must be a valid dataUri string",
88
+ "string.domain": "{{#label}} must contain a valid domain name",
89
+ "string.email": "{{#label}} must be a valid email",
90
+ "string.empty": "{{#label}} is not allowed to be empty",
91
+ "string.guid": "{{#label}} must be a valid GUID",
92
+ "string.hex": "{{#label}} must only contain hexadecimal characters",
93
+ "string.hexAlign": "{{#label}} hex decoded representation must be byte aligned",
94
+ "string.hostname": "{{#label}} must be a valid hostname",
95
+ "string.ip": "{{#label}} must be a valid ip address with a {{#cidr}} CIDR",
96
+ "string.ipVersion": "{{#label}} must be a valid ip address of one of the following versions {{#version}} with a {{#cidr}} CIDR",
97
+ "string.isoDate": "{{#label}} must be in iso format",
98
+ "string.isoDuration": "{{#label}} must be a valid ISO 8601 duration",
99
+ "string.length": "{{#label}} length must be {{#limit}} characters long",
100
+ "string.lowercase": "{{#label}} must only contain lowercase characters",
101
+ "string.max": "{{#label}} length must be less than or equal to {{#limit}} characters long",
102
+ "string.min": "{{#label}} length must be at least {{#limit}} characters long",
103
+ "string.normalize": "{{#label}} must be unicode normalized in the {{#form}} form",
104
+ "string.token": "{{#label}} must only contain alpha-numeric and underscore characters",
105
+ "string.pattern.base": "{{#label}} with value {:[.]} fails to match the required pattern: {{#regex}}",
106
+ "string.pattern.name": "{{#label}} with value {:[.]} fails to match the {{#name}} pattern",
107
+ "string.pattern.invert.base": "{{#label}} with value {:[.]} matches the inverted pattern: {{#regex}}",
108
+ "string.pattern.invert.name": "{{#label}} with value {:[.]} matches the inverted {{#name}} pattern",
109
+ "string.trim": "{{#label}} must not have leading or trailing whitespace",
110
+ "string.uri": "{{#label}} must be a valid uri",
111
+ "string.uriCustomScheme": "{{#label}} must be a valid uri with a scheme matching the {{#scheme}} pattern",
112
+ "string.uriRelativeOnly": "{{#label}} must be a valid relative uri",
113
+ "string.uppercase": "{{#label}} must only contain uppercase characters",
114
+ "symbol.base": "{{#label}} must be a symbol",
115
+ "symbol.map": "{{#label}} must be one of {{#map}}"
116
+ }
@@ -1,116 +1,116 @@
1
- {
2
- "alternatives.all": "{{#label}} 不能匹配上所以可选项",
3
- "alternatives.any": "{{#label}} 不能匹配上任何可选项",
4
- "alternatives.match": "{{#label}} 不能匹配上任何可选项",
5
- "alternatives.one": "{{#label}} 匹配超过一个可选项",
6
- "alternatives.types": "{{#label}} 必须是 {{#types}}",
7
- "any.custom": "{{#label}} 自定义校验失败,原因为 {{#error.message}}",
8
- "any.default": "{{#label}} 运行默认函数时出错",
9
- "any.failover": "{{#label}} 运行 failover 函数时出错",
10
- "any.invalid": "{{#label}} 不是可选值",
11
- "any.only": "{{#label}} 必须是 {{#valids}} {if(#valids.length == 1, \"\", \"中的一个\")}",
12
- "any.ref": "{{#label}} {{#arg}} 引用 {{:#ref}} 其中 {{#reason}}",
13
- "any.required": "{{#label}} 不能为空",
14
- "any.unknown": "{{#label}} 参数错误",
15
- "array.base": "{{#label}} 必须是数组",
16
- "array.excludes": "{{#label}} 包含非法的值",
17
- "array.hasKnown": "{{#label}} 中至少一个类型为 {:#patternLabel} 的选项",
18
- "array.hasUnknown": "{{#label}} 中至少有一个选项",
19
- "array.includes": "{{#label}} 不能匹配任何可选项",
20
- "array.includesRequiredBoth": "{{#label}} 不包含 {{#knownMisses}} 及 {{#unknownMisses}} 个必选项",
21
- "array.includesRequiredKnowns": "{{#label}} 不包含 {{#knownMisses}} 等必选项",
22
- "array.includesRequiredUnknowns": "{{#label}} 不包含 {{#unknownMisses}} 个必选项",
23
- "array.length": "{{#label}} 必须正好包含 {{#limit}} 个成员",
24
- "array.max": "{{#label}} 最多包含 {{#limit}} 个成员",
25
- "array.min": "{{#label}} 至少包含 {{#limit}} 个成员",
26
- "array.orderedLength": "{{#label}} 必须至少包含 {{#limit}} 个成员",
27
- "array.sort": "{{#label}} 必须按 {#order} 顺序按 {{#by}} 排序",
28
- "array.sort.mismatching": "{{#label}} 由于类型不匹配而无法排序",
29
- "array.sort.unsupported": "{{#label}} 类型 {#type} 不支持排序",
30
- "array.sparse": "{{#label}} 不能包含未定义成员",
31
- "array.unique": "{{#label}} 是重复的成员",
32
- "binary.base": "{{#label}} 必须是一段内容",
33
- "binary.length": "{{#label}} 至少包含 {{#limit}} 个字节",
34
- "binary.max": "{{#label}} 最多包含 {{#limit}} 个字节",
35
- "binary.min": "{{#label}} 至少包含 {{#limit}} 个字节",
36
- "boolean.base": "{{#label}} 必须是 bool 值",
37
- "date.base": "{{#label}} 必须是毫秒数或者有效的时间字符串",
38
- "date.format": "{{#label}} 必须是以下格式的字符串 {msg(\"date.format.\" + #format) || #format}",
39
- "date.greater": "{{#label}} 必须晚于 {{:#limit}}",
40
- "date.less": "{{#label}} 必须早于 {{:#limit}}",
41
- "date.max": "{{#label}} 必须早于 {{:#limit}}",
42
- "date.min": "{{#label}} 必须晚于 {{:#limit}}",
43
- "date.format.iso": "必须是有效的\"ISO 8601\"格式的时间",
44
- "date.format.javascript": "必须是有效的时间戳或者毫秒数",
45
- "date.format.unix": "必须是有效的时间戳或者秒数",
46
- "function.arity": "{{#label}} 必须正好拥有 {{#n}} 个参数",
47
- "function.class": "{{#label}} 必须是对象类",
48
- "function.maxArity": "{{#label}} 必须最多拥有 {{#n}} 个参数",
49
- "function.minArity": "{{#label}} 必须至少拥有 {{#n}} 个参数",
50
- "object.and": "{{#label}} 当前 {{#presentWithLabels}} 需要有对应的 {{#missingWithLabels}}",
51
- "object.assert": "{{#label}} 无效,原因为 {if(#subject.key, `\"` + #subject.key + `\" failed to ` + (#message || \"pass the assertion test\"), #message || \"the assertion failed\")}",
52
- "object.base": "{{#label}} 必须是一个对象 {{#type}}",
53
- "object.instance": "{{#label}} 必须是一个 {{:#type}} 的实例",
54
- "object.length": "{{#label}} 必须正好包含 {{#limit}} 个子对象",
55
- "object.max": "{{#label}} 最多包含 {{#limit}} 个子对象",
56
- "object.min": "{{#label}} 至少包含 {{#limit}} 个子对象",
57
- "object.missing": "{{#label}} 没有对应的 {{#peersWithLabels}}",
58
- "object.nand": "{{:#mainWithLabel}} 不得与 {{#peersWithLabels}} 同时存在",
59
- "object.oxor": "{{#label}} 和 {{#peerWithLabels}} 有冲突",
60
- "object.pattern.match": "{{#label}} 键匹配失败",
61
- "object.refType": "{{#label}} 必须是 Joi 引用",
62
- "object.regex": "{{#label}} 必须是正则对象",
63
- "object.rename.multiple": "{{#label}} 无法重命名 {{:#from}} 因为多次重命名被禁用并且另一个键已经重命名为 {{:#to}}",
64
- "object.rename.override": "{{#label}} 无法重命名 {{:#from}} 因为覆盖被禁用并且目标 {{:#to}} 存在",
65
- "object.schema": "{{#label}} 必须是 {{#type}} 类型的 Joi Schema",
66
- "object.unknown": "{{#label}} 不被允许",
67
- "object.with": "{{:#mainWithLabel}} 缺少必需的对等方 {{:#peerWithLabel}}",
68
- "object.without": "{{:#mainWithLabel}} 与禁止的节点冲突 {{:#peerWithLabel}}",
69
- "object.xor": "{{#label}} 包含独占对等体之间的冲突 {{#peersWithLabels}}",
70
- "number.base": "{{#label}} 必须是数值",
71
- "number.greater": "{{#label}} 必须大于 {{#limit}}",
72
- "number.infinity": "{{#label}} 不能是无穷大",
73
- "number.integer": "{{#label}} 必须是整数",
74
- "number.less": "{{#label}} 必须小于 {{#limit}}",
75
- "number.max": "{{#label}} 必须小于或等于 {{#limit}}",
76
- "number.min": "{{#label}} 必须大于或等于 {{#limit}}",
77
- "number.multiple": "{{#label}} 必须是 {{#multiple}} 的倍数",
78
- "number.negative": "{{#label}} 必须是负数",
79
- "number.port": "{{#label}} 必须是有效的端口号",
80
- "number.positive": "{{#label}} 必须是正数",
81
- "number.precision": "{{#label}} 必须有 {{#limit}} 位小数",
82
- "number.unsafe": "{{#label}} 必须是安全号码",
83
- "string.alphanum": "{{#label}} must only contain alpha-numeric characters",
84
- "string.base": "{{#label}} 必须是字符串",
85
- "string.base64": "{{#label}} 必须是有效的 base64 字符串",
86
- "string.creditCard": "{{#label}} 必须是有效的信用卡号",
87
- "string.dataUri": "{{#label}} 必须是有效的 dataUri 字符串",
88
- "string.domain": "{{#label}} 必须包含有效的域名",
89
- "string.email": "{{#label}} 必须是有效的电子邮件",
90
- "string.empty": "{{#label}} 不能为空",
91
- "string.guid": "{{#label}} 必须是有效的 GUID",
92
- "string.hex": "{{#label}} 只能包含十六进制字符",
93
- "string.hexAlign": "{{#label}} 十六进制解码表示必须字节对齐",
94
- "string.hostname": "{{#label}} 必须是有效的主机名",
95
- "string.ip": "{{#label}} 必须是具有 {{#cidr}} CIDR 的有效 IP 地址",
96
- "string.ipVersion": "{{#label}} 必须是以下版本之一的有效 IP 地址 {{#version}} 和 {{#cidr}} CIDR",
97
- "string.isoDate": "{{#label}} 必须是 iso 格式",
98
- "string.isoDuration": "{{#label}} 必须是有效的 ISO 8601 持续时间",
99
- "string.length": "{{#label}} 长度必须为 {{#limit}} 个字符长",
100
- "string.lowercase": "{{#label}} 只能包含小写字符",
101
- "string.max": "{{#label}} 长度必须小于或等于 {{#limit}} 个字符长",
102
- "string.min": "{{#label}} 长度必须至少为 {{#limit}} 个字符长",
103
- "string.normalize": "{{#label}} 必须以 {{#form}} 形式进行 unicode 规范化",
104
- "string.token": "{{#label}} 只能包含字母数字和下划线字符",
105
- "string.pattern.base": "{{#label}} 的值为 {:[.]} 未能匹配所需的模式:{{#regex}}",
106
- "string.pattern.name": "{{#label}} 值为 {:[.]} 未能匹配 {{#name}} 模式",
107
- "string.pattern.invert.base": "{{#label}} 与值 {:[.]} 匹配反转模式:{{#regex}}",
108
- "string.pattern.invert.name": "{{#label}} 与值 {:[.]} 匹配倒置的 {{#name}} 模式",
109
- "string.trim": "{{#label}} 不得前后空格",
110
- "string.uri": "{{#label}} 必须是有效的 uri",
111
- "string.uriCustomScheme": "{{#label}} 必须是有效的 uri,其方案与 {{#scheme}} 模式匹配",
112
- "string.uriRelativeOnly": "{{#label}} 必须是有效的相对 uri",
113
- "string.uppercase": "{{#label}} 只能包含大写字符",
114
- "symbol.base": "{{#label}} 必须是符号",
115
- "symbol.map": "{{#label}} 必须是 {{#map}} 之一"
116
- }
1
+ {
2
+ "alternatives.all": "{{#label}} 不能匹配上所以可选项",
3
+ "alternatives.any": "{{#label}} 不能匹配上任何可选项",
4
+ "alternatives.match": "{{#label}} 不能匹配上任何可选项",
5
+ "alternatives.one": "{{#label}} 匹配超过一个可选项",
6
+ "alternatives.types": "{{#label}} 必须是 {{#types}}",
7
+ "any.custom": "{{#label}} 自定义校验失败,原因为 {{#error.message}}",
8
+ "any.default": "{{#label}} 运行默认函数时出错",
9
+ "any.failover": "{{#label}} 运行 failover 函数时出错",
10
+ "any.invalid": "{{#label}} 不是可选值",
11
+ "any.only": "{{#label}} 必须是 {{#valids}} {if(#valids.length == 1, \"\", \"中的一个\")}",
12
+ "any.ref": "{{#label}} {{#arg}} 引用 {{:#ref}} 其中 {{#reason}}",
13
+ "any.required": "{{#label}} 不能为空",
14
+ "any.unknown": "{{#label}} 参数错误",
15
+ "array.base": "{{#label}} 必须是数组",
16
+ "array.excludes": "{{#label}} 包含非法的值",
17
+ "array.hasKnown": "{{#label}} 中至少一个类型为 {:#patternLabel} 的选项",
18
+ "array.hasUnknown": "{{#label}} 中至少有一个选项",
19
+ "array.includes": "{{#label}} 不能匹配任何可选项",
20
+ "array.includesRequiredBoth": "{{#label}} 不包含 {{#knownMisses}} 及 {{#unknownMisses}} 个必选项",
21
+ "array.includesRequiredKnowns": "{{#label}} 不包含 {{#knownMisses}} 等必选项",
22
+ "array.includesRequiredUnknowns": "{{#label}} 不包含 {{#unknownMisses}} 个必选项",
23
+ "array.length": "{{#label}} 必须正好包含 {{#limit}} 个成员",
24
+ "array.max": "{{#label}} 最多包含 {{#limit}} 个成员",
25
+ "array.min": "{{#label}} 至少包含 {{#limit}} 个成员",
26
+ "array.orderedLength": "{{#label}} 必须至少包含 {{#limit}} 个成员",
27
+ "array.sort": "{{#label}} 必须按 {#order} 顺序按 {{#by}} 排序",
28
+ "array.sort.mismatching": "{{#label}} 由于类型不匹配而无法排序",
29
+ "array.sort.unsupported": "{{#label}} 类型 {#type} 不支持排序",
30
+ "array.sparse": "{{#label}} 不能包含未定义成员",
31
+ "array.unique": "{{#label}} 是重复的成员",
32
+ "binary.base": "{{#label}} 必须是一段内容",
33
+ "binary.length": "{{#label}} 至少包含 {{#limit}} 个字节",
34
+ "binary.max": "{{#label}} 最多包含 {{#limit}} 个字节",
35
+ "binary.min": "{{#label}} 至少包含 {{#limit}} 个字节",
36
+ "boolean.base": "{{#label}} 必须是 bool 值",
37
+ "date.base": "{{#label}} 必须是毫秒数或者有效的时间字符串",
38
+ "date.format": "{{#label}} 必须是以下格式的字符串 {msg(\"date.format.\" + #format) || #format}",
39
+ "date.greater": "{{#label}} 必须晚于 {{:#limit}}",
40
+ "date.less": "{{#label}} 必须早于 {{:#limit}}",
41
+ "date.max": "{{#label}} 必须早于 {{:#limit}}",
42
+ "date.min": "{{#label}} 必须晚于 {{:#limit}}",
43
+ "date.format.iso": "必须是有效的\"ISO 8601\"格式的时间",
44
+ "date.format.javascript": "必须是有效的时间戳或者毫秒数",
45
+ "date.format.unix": "必须是有效的时间戳或者秒数",
46
+ "function.arity": "{{#label}} 必须正好拥有 {{#n}} 个参数",
47
+ "function.class": "{{#label}} 必须是对象类",
48
+ "function.maxArity": "{{#label}} 必须最多拥有 {{#n}} 个参数",
49
+ "function.minArity": "{{#label}} 必须至少拥有 {{#n}} 个参数",
50
+ "object.and": "{{#label}} 当前 {{#presentWithLabels}} 需要有对应的 {{#missingWithLabels}}",
51
+ "object.assert": "{{#label}} 无效,原因为 {if(#subject.key, `\"` + #subject.key + `\" failed to ` + (#message || \"pass the assertion test\"), #message || \"the assertion failed\")}",
52
+ "object.base": "{{#label}} 必须是一个对象 {{#type}}",
53
+ "object.instance": "{{#label}} 必须是一个 {{:#type}} 的实例",
54
+ "object.length": "{{#label}} 必须正好包含 {{#limit}} 个子对象",
55
+ "object.max": "{{#label}} 最多包含 {{#limit}} 个子对象",
56
+ "object.min": "{{#label}} 至少包含 {{#limit}} 个子对象",
57
+ "object.missing": "{{#label}} 没有对应的 {{#peersWithLabels}}",
58
+ "object.nand": "{{:#mainWithLabel}} 不得与 {{#peersWithLabels}} 同时存在",
59
+ "object.oxor": "{{#label}} 和 {{#peerWithLabels}} 有冲突",
60
+ "object.pattern.match": "{{#label}} 键匹配失败",
61
+ "object.refType": "{{#label}} 必须是 Joi 引用",
62
+ "object.regex": "{{#label}} 必须是正则对象",
63
+ "object.rename.multiple": "{{#label}} 无法重命名 {{:#from}} 因为多次重命名被禁用并且另一个键已经重命名为 {{:#to}}",
64
+ "object.rename.override": "{{#label}} 无法重命名 {{:#from}} 因为覆盖被禁用并且目标 {{:#to}} 存在",
65
+ "object.schema": "{{#label}} 必须是 {{#type}} 类型的 Joi Schema",
66
+ "object.unknown": "{{#label}} 不被允许",
67
+ "object.with": "{{:#mainWithLabel}} 缺少必需的对等方 {{:#peerWithLabel}}",
68
+ "object.without": "{{:#mainWithLabel}} 与禁止的节点冲突 {{:#peerWithLabel}}",
69
+ "object.xor": "{{#label}} 包含独占对等体之间的冲突 {{#peersWithLabels}}",
70
+ "number.base": "{{#label}} 必须是数值",
71
+ "number.greater": "{{#label}} 必须大于 {{#limit}}",
72
+ "number.infinity": "{{#label}} 不能是无穷大",
73
+ "number.integer": "{{#label}} 必须是整数",
74
+ "number.less": "{{#label}} 必须小于 {{#limit}}",
75
+ "number.max": "{{#label}} 必须小于或等于 {{#limit}}",
76
+ "number.min": "{{#label}} 必须大于或等于 {{#limit}}",
77
+ "number.multiple": "{{#label}} 必须是 {{#multiple}} 的倍数",
78
+ "number.negative": "{{#label}} 必须是负数",
79
+ "number.port": "{{#label}} 必须是有效的端口号",
80
+ "number.positive": "{{#label}} 必须是正数",
81
+ "number.precision": "{{#label}} 必须有 {{#limit}} 位小数",
82
+ "number.unsafe": "{{#label}} 必须是安全号码",
83
+ "string.alphanum": "{{#label}} must only contain alpha-numeric characters",
84
+ "string.base": "{{#label}} 必须是字符串",
85
+ "string.base64": "{{#label}} 必须是有效的 base64 字符串",
86
+ "string.creditCard": "{{#label}} 必须是有效的信用卡号",
87
+ "string.dataUri": "{{#label}} 必须是有效的 dataUri 字符串",
88
+ "string.domain": "{{#label}} 必须包含有效的域名",
89
+ "string.email": "{{#label}} 必须是有效的电子邮件",
90
+ "string.empty": "{{#label}} 不能为空",
91
+ "string.guid": "{{#label}} 必须是有效的 GUID",
92
+ "string.hex": "{{#label}} 只能包含十六进制字符",
93
+ "string.hexAlign": "{{#label}} 十六进制解码表示必须字节对齐",
94
+ "string.hostname": "{{#label}} 必须是有效的主机名",
95
+ "string.ip": "{{#label}} 必须是具有 {{#cidr}} CIDR 的有效 IP 地址",
96
+ "string.ipVersion": "{{#label}} 必须是以下版本之一的有效 IP 地址 {{#version}} 和 {{#cidr}} CIDR",
97
+ "string.isoDate": "{{#label}} 必须是 iso 格式",
98
+ "string.isoDuration": "{{#label}} 必须是有效的 ISO 8601 持续时间",
99
+ "string.length": "{{#label}} 长度必须为 {{#limit}} 个字符长",
100
+ "string.lowercase": "{{#label}} 只能包含小写字符",
101
+ "string.max": "{{#label}} 长度必须小于或等于 {{#limit}} 个字符长",
102
+ "string.min": "{{#label}} 长度必须至少为 {{#limit}} 个字符长",
103
+ "string.normalize": "{{#label}} 必须以 {{#form}} 形式进行 unicode 规范化",
104
+ "string.token": "{{#label}} 只能包含字母数字和下划线字符",
105
+ "string.pattern.base": "{{#label}} 的值为 {:[.]} 未能匹配所需的模式:{{#regex}}",
106
+ "string.pattern.name": "{{#label}} 值为 {:[.]} 未能匹配 {{#name}} 模式",
107
+ "string.pattern.invert.base": "{{#label}} 与值 {:[.]} 匹配反转模式:{{#regex}}",
108
+ "string.pattern.invert.name": "{{#label}} 与值 {:[.]} 匹配倒置的 {{#name}} 模式",
109
+ "string.trim": "{{#label}} 不得前后空格",
110
+ "string.uri": "{{#label}} 必须是有效的 uri",
111
+ "string.uriCustomScheme": "{{#label}} 必须是有效的 uri,其方案与 {{#scheme}} 模式匹配",
112
+ "string.uriRelativeOnly": "{{#label}} 必须是有效的相对 uri",
113
+ "string.uppercase": "{{#label}} 只能包含大写字符",
114
+ "symbol.base": "{{#label}} 必须是符号",
115
+ "symbol.map": "{{#label}} 必须是 {{#map}} 之一"
116
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@anncic-api/validator",
3
- "version": "3.3.8",
3
+ "version": "3.3.10",
4
4
  "main": "./dist/index.js",
5
5
  "typings": "index.d.ts",
6
6
  "license": "MIT",
@@ -17,14 +17,14 @@
17
17
  "build": "tsc && javascript-obfuscator ./dist --output ./dist --config obfuscator.json"
18
18
  },
19
19
  "dependencies": {
20
- "@anncic-api/core": "^3.3.8",
20
+ "@anncic-api/core": "^3.3.10",
21
21
  "@joi/date": "^2.1.0",
22
- "joi": "^17.9.2"
22
+ "joi": "^17.11.0"
23
23
  },
24
24
  "devDependencies": {
25
25
  "@types/node": "^20.3.2",
26
26
  "javascript-obfuscator": "^4.0.2",
27
27
  "typescript": "^5.1.3"
28
28
  },
29
- "gitHead": "0f399c81ce75227e6b6356060d661732d41d71c1"
29
+ "gitHead": "903f410023acaf2e0029529db1c2a0b19de86150"
30
30
  }