@anncic-api/validator 3.4.4 → 3.4.6

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_0x4b85f0=a0_0x65aa;(function(_0x477651,_0x4e1637){const _0x18ab1a=a0_0x65aa,_0xada0f6=_0x477651();while(!![]){try{const _0xc90e10=parseInt(_0x18ab1a(0x139))/0x1*(parseInt(_0x18ab1a(0x140))/0x2)+-parseInt(_0x18ab1a(0x130))/0x3*(-parseInt(_0x18ab1a(0x13e))/0x4)+parseInt(_0x18ab1a(0x144))/0x5+parseInt(_0x18ab1a(0x13a))/0x6*(parseInt(_0x18ab1a(0x12f))/0x7)+parseInt(_0x18ab1a(0x133))/0x8*(parseInt(_0x18ab1a(0x136))/0x9)+parseInt(_0x18ab1a(0x12e))/0xa*(parseInt(_0x18ab1a(0x132))/0xb)+-parseInt(_0x18ab1a(0x13d))/0xc;if(_0xc90e10===_0x4e1637)break;else _0xada0f6['push'](_0xada0f6['shift']());}catch(_0xa1f30c){_0xada0f6['push'](_0xada0f6['shift']());}}}(a0_0x33fe,0x40e8f));const a0_0x17dd0a=(function(){let _0xb771cd=!![];return function(_0x3d5d41,_0x24bfd1){const _0xc7475c=_0xb771cd?function(){const _0xeb3c95=a0_0x65aa;if(_0x24bfd1){const _0x1b257a=_0x24bfd1[_0xeb3c95(0x13c)](_0x3d5d41,arguments);return _0x24bfd1=null,_0x1b257a;}}:function(){};return _0xb771cd=![],_0xc7475c;};}()),a0_0xbe39fd=a0_0x17dd0a(this,function(){const _0x2e4b3a=a0_0x65aa;return a0_0xbe39fd[_0x2e4b3a(0x137)]()['search'](_0x2e4b3a(0x142))['toString']()['constructor'](a0_0xbe39fd)[_0x2e4b3a(0x143)](_0x2e4b3a(0x142));});a0_0xbe39fd();'use strict';Object[a0_0x4b85f0(0x134)](exports,a0_0x4b85f0(0x13b),{'value':!![]});const ValidatorError_1=require(a0_0x4b85f0(0x138));function a0_0x65aa(_0x3b4745,_0x1e0bcc){const _0x2ee6d7=a0_0x33fe();return a0_0x65aa=function(_0xbe39fd,_0x17dd0a){_0xbe39fd=_0xbe39fd-0x12d;let _0x33febd=_0x2ee6d7[_0xbe39fd];return _0x33febd;},a0_0x65aa(_0x3b4745,_0x1e0bcc);}exports['default']={'validator':{'errorStatus':ValidatorError_1[a0_0x4b85f0(0x141)][a0_0x4b85f0(0x131)],'validationOptions':{'allowUnknown':!![],'stripUnknown':!![],'dateFormat':a0_0x4b85f0(0x12d)}},'i18n':{'localeTable':{'en_US':{'validator':require(a0_0x4b85f0(0x135))},'zh_CN':{'validator':require(a0_0x4b85f0(0x13f))}}}};function a0_0x33fe(){const _0xf03d12=['../../locales/en_US.json','261YSFQEO','toString','../exception/ValidatorError','1azIvEh','414TDZWjF','__esModule','apply','23197872HHPLAQ','1862920QfHBGC','../../locales/zh_CN.json','374062OoIAgq','ValidatorError','(((.+)+)+)+$','search','1658430RwQwfU','string','38550lasGZl','44653TgEMiT','3NcRuiK','PARAMS','1364utajfA','81768ellhBT','defineProperty'];a0_0x33fe=function(){return _0xf03d12;};return a0_0x33fe();}
1
+ function a0_0x2967(_0x2caa9a,_0x50686d){const _0x3f345a=a0_0x3aa5();return a0_0x2967=function(_0x5246eb,_0x25f6b8){_0x5246eb=_0x5246eb-0x1ee;let _0x3aa5d3=_0x3f345a[_0x5246eb];return _0x3aa5d3;},a0_0x2967(_0x2caa9a,_0x50686d);}const a0_0x51bfae=a0_0x2967;(function(_0x1e3737,_0x1a4d39){const _0x4db51b=a0_0x2967,_0x4c4908=_0x1e3737();while(!![]){try{const _0x9e39ab=parseInt(_0x4db51b(0x1f0))/0x1+parseInt(_0x4db51b(0x1fd))/0x2+-parseInt(_0x4db51b(0x200))/0x3*(parseInt(_0x4db51b(0x1ee))/0x4)+-parseInt(_0x4db51b(0x1f9))/0x5*(-parseInt(_0x4db51b(0x1f7))/0x6)+parseInt(_0x4db51b(0x1ef))/0x7*(parseInt(_0x4db51b(0x1f2))/0x8)+parseInt(_0x4db51b(0x1f1))/0x9+-parseInt(_0x4db51b(0x1f6))/0xa;if(_0x9e39ab===_0x1a4d39)break;else _0x4c4908['push'](_0x4c4908['shift']());}catch(_0x206b9a){_0x4c4908['push'](_0x4c4908['shift']());}}}(a0_0x3aa5,0x83d62));function a0_0x3aa5(){const _0x12053b=['../exception/ValidatorError','../../locales/zh_CN.json','336858nupFNH','PARAMS','defineProperty','3iktnNC','3263812ZSrOcs','115367ZUSynz','819548yJRgHa','4145130foLkPH','136zSjfDt','ValidatorError','(((.+)+)+)+$','constructor','14157140TrkSoW','30aAcark','toString','1042945udmsgi','apply'];a0_0x3aa5=function(){return _0x12053b;};return a0_0x3aa5();}const a0_0x25f6b8=(function(){let _0x188b5d=!![];return function(_0x10f24a,_0x3857ae){const _0x1afab8=_0x188b5d?function(){const _0xe7057f=a0_0x2967;if(_0x3857ae){const _0x3fd7c6=_0x3857ae[_0xe7057f(0x1fa)](_0x10f24a,arguments);return _0x3857ae=null,_0x3fd7c6;}}:function(){};return _0x188b5d=![],_0x1afab8;};}()),a0_0x5246eb=a0_0x25f6b8(this,function(){const _0x7a96dc=a0_0x2967;return a0_0x5246eb[_0x7a96dc(0x1f8)]()['search'](_0x7a96dc(0x1f4))[_0x7a96dc(0x1f8)]()[_0x7a96dc(0x1f5)](a0_0x5246eb)['search'](_0x7a96dc(0x1f4));});a0_0x5246eb();'use strict';Object[a0_0x51bfae(0x1ff)](exports,'__esModule',{'value':!![]});const ValidatorError_1=require(a0_0x51bfae(0x1fb));exports['default']={'validator':{'errorStatus':ValidatorError_1[a0_0x51bfae(0x1f3)][a0_0x51bfae(0x1fe)],'validationOptions':{'allowUnknown':!![],'stripUnknown':!![],'dateFormat':'string'}},'i18n':{'localeTable':{'en_US':{'validator':require('../../locales/en_US.json')},'zh_CN':{'validator':require(a0_0x51bfae(0x1fc))}}}};
@@ -1 +1 @@
1
- const a1_0x29f0ea=a1_0x4a21;(function(_0x562a10,_0x4fc5ad){const _0x42c405=a1_0x4a21,_0x1d49f6=_0x562a10();while(!![]){try{const _0x52d70f=-parseInt(_0x42c405(0x162))/0x1+-parseInt(_0x42c405(0x150))/0x2*(-parseInt(_0x42c405(0x151))/0x3)+-parseInt(_0x42c405(0x165))/0x4*(parseInt(_0x42c405(0x145))/0x5)+-parseInt(_0x42c405(0x13f))/0x6*(parseInt(_0x42c405(0x137))/0x7)+parseInt(_0x42c405(0x139))/0x8*(parseInt(_0x42c405(0x160))/0x9)+parseInt(_0x42c405(0x167))/0xa*(-parseInt(_0x42c405(0x16d))/0xb)+parseInt(_0x42c405(0x14c))/0xc*(parseInt(_0x42c405(0x16a))/0xd);if(_0x52d70f===_0x4fc5ad)break;else _0x1d49f6['push'](_0x1d49f6['shift']());}catch(_0x309c2d){_0x1d49f6['push'](_0x1d49f6['shift']());}}}(a1_0x4110,0x3e512));const a1_0x3e3ef0=(function(){let _0x1528d6=!![];return function(_0x3124ab,_0x486350){const _0x3d484f=_0x1528d6?function(){if(_0x486350){const _0x1f53a1=_0x486350['apply'](_0x3124ab,arguments);return _0x486350=null,_0x1f53a1;}}:function(){};return _0x1528d6=![],_0x3d484f;};}()),a1_0x5781d7=a1_0x3e3ef0(this,function(){const _0x179d9e=a1_0x4a21;return a1_0x5781d7['toString']()[_0x179d9e(0x147)](_0x179d9e(0x14d))[_0x179d9e(0x149)]()[_0x179d9e(0x143)](a1_0x5781d7)['search']('(((.+)+)+)+$');});a1_0x5781d7();'use strict';var __decorate=this&&this[a1_0x29f0ea(0x13b)]||function(_0x52f666,_0x203152,_0x367238,_0x2da66f){const _0x20d429=a1_0x29f0ea;var _0x2a440e=arguments[_0x20d429(0x153)],_0x2877f0=_0x2a440e<0x3?_0x203152:_0x2da66f===null?_0x2da66f=Object[_0x20d429(0x168)](_0x203152,_0x367238):_0x2da66f,_0x1c33b1;if(typeof Reflect===_0x20d429(0x164)&&typeof Reflect[_0x20d429(0x138)]==='function')_0x2877f0=Reflect[_0x20d429(0x138)](_0x52f666,_0x203152,_0x367238,_0x2da66f);else{for(var _0x3e20a2=_0x52f666[_0x20d429(0x153)]-0x1;_0x3e20a2>=0x0;_0x3e20a2--)if(_0x1c33b1=_0x52f666[_0x3e20a2])_0x2877f0=(_0x2a440e<0x3?_0x1c33b1(_0x2877f0):_0x2a440e>0x3?_0x1c33b1(_0x203152,_0x367238,_0x2877f0):_0x1c33b1(_0x203152,_0x367238))||_0x2877f0;}return _0x2a440e>0x3&&_0x2877f0&&Object[_0x20d429(0x16c)](_0x203152,_0x367238,_0x2877f0),_0x2877f0;},__metadata=this&&this['__metadata']||function(_0x500c38,_0x5e8fd7){const _0x4a5299=a1_0x29f0ea;if(typeof Reflect==='object'&&typeof Reflect[_0x4a5299(0x135)]===_0x4a5299(0x13c))return Reflect[_0x4a5299(0x135)](_0x500c38,_0x5e8fd7);};Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[a1_0x29f0ea(0x156)]=void 0x0;const i18n_1=require(a1_0x29f0ea(0x171)),core_1=require(a1_0x29f0ea(0x157)),core_2=require(a1_0x29f0ea(0x157)),interface_1=require(a1_0x29f0ea(0x141)),ValidatorService_1=require(a1_0x29f0ea(0x173)),i18n=require(a1_0x29f0ea(0x171)),anncic=require('@anncic-api/core'),ConfigDefault=require(a1_0x29f0ea(0x142));function a1_0x4110(){const _0x648981=['methodName','decorator','design:type','anncic-api:validator','onReady','9lDSxfu','splice','241507iEhLjU','args','object','724sBIRFT','req','20ZLMYTZ','getOwnPropertyDescriptor','locale','208KAsIXF','method','defineProperty','319462mcMTLj','getClassMetadata','Configuration','param','@midwayjs/i18n','request','./service/ValidatorService','metadata','VALIDATOR_KEY','1594579yPEJRe','decorate','711792uADsDG','params','__decorate','function','target','undefined','6caONyM','Inject','./interface','./config/config.default','constructor','query','12490RQrLWo','assign','search','bound\x20dispatch','toString','res','validator','751188apGfQL','(((.+)+)+)+$','REQUEST_OBJ_CTX_KEY','ValidatorService','288436szbNTa','3MxtSzL','find','length','methodArgs','getMethodParamTypes','CustomConfiguration','@midwayjs/core','propertyName','getAttr','name'];a1_0x4110=function(){return _0x648981;};return a1_0x4110();}let CustomConfiguration=exports[a1_0x29f0ea(0x156)]=class CustomConfiguration{async[a1_0x29f0ea(0x15f)](){const _0x157b30=a1_0x29f0ea;this[_0x157b30(0x15c)]['registerMethodHandler'](interface_1['VALIDATOR_KEY'],_0xb969f2=>{const _0x421e34=_0x157b30,_0xe72006=_0xb969f2['metadata'],_0x30901b=(0x0,core_2[_0x421e34(0x155)])(_0xb969f2[_0x421e34(0x13d)],_0xb969f2[_0x421e34(0x158)]);return{'before':_0x151242=>{const _0x244bb6=_0x421e34;var _0x6df937,_0x153b26,_0x5625e9,_0x5ef4c3,_0x642e5d,_0x4c328c,_0x548f47,_0x1777de,_0x557f1a,_0x4cdc56,_0xde69aa,_0x5bed84,_0x1322ae;const _0x2e021b=_0x151242[_0x244bb6(0x13d)][core_1[_0x244bb6(0x14e)]],_0x229d9f=Object[_0x244bb6(0x146)]({},((_0x6df937=_0x2e021b===null||_0x2e021b===void 0x0?void 0x0:_0x2e021b[_0x244bb6(0x172)])===null||_0x6df937===void 0x0?void 0x0:_0x6df937[_0x244bb6(0x144)])||{},((_0x153b26=_0x2e021b===null||_0x2e021b===void 0x0?void 0x0:_0x2e021b[_0x244bb6(0x172)])===null||_0x153b26===void 0x0?void 0x0:_0x153b26['body'])||{}),_0x21f250=((0x0,core_2[_0x244bb6(0x16e)])(interface_1[_0x244bb6(0x136)],_0x151242['target'])||[])[_0x244bb6(0x152)](_0xdfb7b2=>_0xdfb7b2[_0x244bb6(0x16b)]==_0x151242[_0x244bb6(0x15b)]);!(_0xe72006===null||_0xe72006===void 0x0?void 0x0:_0xe72006[_0x244bb6(0x169)])&&_0x2e021b&&_0x2e021b[_0x244bb6(0x159)]&&(_0xe72006[_0x244bb6(0x169)]=_0x2e021b['getAttr'](i18n_1['I18N_ATTR_KEY']));for(let _0x514970=0x0;_0x514970<_0x30901b[_0x244bb6(0x153)];_0x514970++){const _0x5118a6=_0x30901b[_0x514970],_0x11b499=this[_0x244bb6(0x14f)]['getSchema'](_0x5118a6);if(_0x11b499){if(typeof _0x151242[_0x244bb6(0x163)][_0x514970]==_0x244bb6(0x13e)||((_0x5625e9=_0x151242[_0x244bb6(0x163)][_0x514970])===null||_0x5625e9===void 0x0?void 0x0:_0x5625e9[_0x244bb6(0x172)])&&((_0x5ef4c3=_0x151242[_0x244bb6(0x163)][_0x514970])===null||_0x5ef4c3===void 0x0?void 0x0:_0x5ef4c3[_0x244bb6(0x14a)])&&((_0x642e5d=_0x151242['args'][_0x514970])===null||_0x642e5d===void 0x0?void 0x0:_0x642e5d[_0x244bb6(0x166)]))_0x151242[_0x244bb6(0x163)][_0x514970]=_0x229d9f;else((_0x4c328c=_0x151242[_0x244bb6(0x163)][_0x514970])===null||_0x4c328c===void 0x0?void 0x0:_0x4c328c[_0x244bb6(0x15a)])==_0x244bb6(0x148)&&_0x151242[_0x244bb6(0x163)][_0x244bb6(0x161)](_0x514970,0x0,_0x229d9f);const _0x50c36a=this[_0x244bb6(0x14f)][_0x244bb6(0x14b)](_0x11b499,_0x151242[_0x244bb6(0x163)][_0x514970],_0xe72006);_0x50c36a&&(_0x151242[_0x244bb6(0x163)][_0x514970]=_0x50c36a);}else{if((_0x21f250===null||_0x21f250===void 0x0?void 0x0:_0x21f250[_0x244bb6(0x154)][_0x514970])&&((_0x548f47=_0x151242[_0x244bb6(0x163)][_0x514970])===null||_0x548f47===void 0x0?void 0x0:_0x548f47[_0x244bb6(0x13a)])&&typeof _0x151242[_0x244bb6(0x163)][_0x514970][_0x244bb6(0x170)]==_0x244bb6(0x13c)&&((_0x1777de=_0x2e021b===null||_0x2e021b===void 0x0?void 0x0:_0x2e021b['params'])===null||_0x1777de===void 0x0?void 0x0:_0x1777de[_0x21f250[_0x244bb6(0x154)][_0x514970]]))_0x151242[_0x244bb6(0x163)][_0x514970]=_0x5118a6((_0x557f1a=_0x2e021b===null||_0x2e021b===void 0x0?void 0x0:_0x2e021b[_0x244bb6(0x13a)])===null||_0x557f1a===void 0x0?void 0x0:_0x557f1a[_0x21f250[_0x244bb6(0x154)][_0x514970]]);else(_0x21f250===null||_0x21f250===void 0x0?void 0x0:_0x21f250[_0x244bb6(0x154)][_0x514970])&&((_0xde69aa=(_0x4cdc56=_0x151242['args'][_0x514970])===null||_0x4cdc56===void 0x0?void 0x0:_0x4cdc56[_0x244bb6(0x13a)])===null||_0xde69aa===void 0x0?void 0x0:_0xde69aa[_0x21f250['methodArgs'][_0x514970]])&&(_0x151242[_0x244bb6(0x163)][_0x514970]=(_0x1322ae=(_0x5bed84=_0x151242['args'][_0x514970])===null||_0x5bed84===void 0x0?void 0x0:_0x5bed84['params'])===null||_0x1322ae===void 0x0?void 0x0:_0x1322ae[_0x21f250['methodArgs'][_0x514970]]);}}},'afterThrow':(_0x2ffe7a,_0x25e6e8)=>{throw _0x25e6e8;}};});}};function a1_0x4a21(_0x24ad03,_0x3ecf4a){const _0x3fa688=a1_0x4110();return a1_0x4a21=function(_0x5781d7,_0x3e3ef0){_0x5781d7=_0x5781d7-0x135;let _0x411046=_0x3fa688[_0x5781d7];return _0x411046;},a1_0x4a21(_0x24ad03,_0x3ecf4a);}__decorate([(0x0,core_2['Inject'])(),__metadata(a1_0x29f0ea(0x15d),core_1['MidwayDecoratorService'])],CustomConfiguration['prototype'],a1_0x29f0ea(0x15c),void 0x0),__decorate([(0x0,core_2[a1_0x29f0ea(0x140)])(),__metadata('design:type',ValidatorService_1[a1_0x29f0ea(0x14f)])],CustomConfiguration['prototype'],a1_0x29f0ea(0x14f),void 0x0),exports[a1_0x29f0ea(0x156)]=CustomConfiguration=__decorate([(0x0,core_2[a1_0x29f0ea(0x16f)])({'conflictCheck':![],'imports':[i18n,anncic],'namespace':a1_0x29f0ea(0x15e),'importConfigs':[{'default':ConfigDefault}]})],CustomConfiguration);
1
+ const a1_0x2ab798=a1_0x1fdd;(function(_0x208a24,_0x19fe1e){const _0x22ed8f=a1_0x1fdd,_0x207778=_0x208a24();while(!![]){try{const _0x2592f8=-parseInt(_0x22ed8f(0x16f))/0x1+-parseInt(_0x22ed8f(0x18b))/0x2+-parseInt(_0x22ed8f(0x18c))/0x3*(-parseInt(_0x22ed8f(0x168))/0x4)+parseInt(_0x22ed8f(0x182))/0x5*(parseInt(_0x22ed8f(0x18f))/0x6)+parseInt(_0x22ed8f(0x17a))/0x7*(-parseInt(_0x22ed8f(0x19c))/0x8)+parseInt(_0x22ed8f(0x188))/0x9+-parseInt(_0x22ed8f(0x18d))/0xa;if(_0x2592f8===_0x19fe1e)break;else _0x207778['push'](_0x207778['shift']());}catch(_0x5ec1eb){_0x207778['push'](_0x207778['shift']());}}}(a1_0x4ad7,0xf31bd));const a1_0x59acc6=(function(){let _0x154a75=!![];return function(_0x5a6840,_0x36a8b0){const _0x45fdae=_0x154a75?function(){const _0x3c2365=a1_0x1fdd;if(_0x36a8b0){const _0xfc196c=_0x36a8b0[_0x3c2365(0x195)](_0x5a6840,arguments);return _0x36a8b0=null,_0xfc196c;}}:function(){};return _0x154a75=![],_0x45fdae;};}()),a1_0x37cdf2=a1_0x59acc6(this,function(){const _0x5c571c=a1_0x1fdd;return a1_0x37cdf2[_0x5c571c(0x172)]()[_0x5c571c(0x189)](_0x5c571c(0x17c))['toString']()['constructor'](a1_0x37cdf2)['search'](_0x5c571c(0x17c));});a1_0x37cdf2();'use strict';function a1_0x4ad7(){const _0x147ca=['6oONGgM','body','CustomConfiguration','Inject','ValidatorService','params','apply','param','@midwayjs/i18n','VALIDATOR_KEY','getSchema','decorator','./interface','1032IOQquk','function','method','defineProperty','locale','4Jgcxik','design:type','decorate','MidwayDecoratorService','./config/config.default','./service/ValidatorService','anncic-api:validator','480095CBqVnx','@midwayjs/core','object','toString','splice','query','getClassMetadata','I18N_ATTR_KEY','methodArgs','__decorate','target','87388pfIhPz','metadata','(((.+)+)+)+$','methodName','request','registerMethodHandler','res','REQUEST_OBJ_CTX_KEY','1803135SJhcBS','onReady','undefined','args','prototype','getAttr','14125491XiVEMz','search','bound\x20dispatch','486806uiQjNY','4548327NJqYTF','1165280KbneCx','length'];a1_0x4ad7=function(){return _0x147ca;};return a1_0x4ad7();}var __decorate=this&&this[a1_0x2ab798(0x178)]||function(_0x3cf92d,_0x54a3f5,_0x55bb26,_0x5d9ffb){const _0x5a2cce=a1_0x2ab798;var _0x6efc08=arguments[_0x5a2cce(0x18e)],_0x2e83aa=_0x6efc08<0x3?_0x54a3f5:_0x5d9ffb===null?_0x5d9ffb=Object['getOwnPropertyDescriptor'](_0x54a3f5,_0x55bb26):_0x5d9ffb,_0x109a80;if(typeof Reflect===_0x5a2cce(0x171)&&typeof Reflect['decorate']===_0x5a2cce(0x19d))_0x2e83aa=Reflect[_0x5a2cce(0x16a)](_0x3cf92d,_0x54a3f5,_0x55bb26,_0x5d9ffb);else{for(var _0xb7448a=_0x3cf92d[_0x5a2cce(0x18e)]-0x1;_0xb7448a>=0x0;_0xb7448a--)if(_0x109a80=_0x3cf92d[_0xb7448a])_0x2e83aa=(_0x6efc08<0x3?_0x109a80(_0x2e83aa):_0x6efc08>0x3?_0x109a80(_0x54a3f5,_0x55bb26,_0x2e83aa):_0x109a80(_0x54a3f5,_0x55bb26))||_0x2e83aa;}return _0x6efc08>0x3&&_0x2e83aa&&Object[_0x5a2cce(0x19f)](_0x54a3f5,_0x55bb26,_0x2e83aa),_0x2e83aa;},__metadata=this&&this['__metadata']||function(_0x4afda7,_0x2dfbd2){const _0x41135f=a1_0x2ab798;if(typeof Reflect==='object'&&typeof Reflect[_0x41135f(0x17b)]==='function')return Reflect[_0x41135f(0x17b)](_0x4afda7,_0x2dfbd2);};function a1_0x1fdd(_0x2233a2,_0x1e2266){const _0x559696=a1_0x4ad7();return a1_0x1fdd=function(_0x37cdf2,_0x59acc6){_0x37cdf2=_0x37cdf2-0x167;let _0x4ad789=_0x559696[_0x37cdf2];return _0x4ad789;},a1_0x1fdd(_0x2233a2,_0x1e2266);}Object[a1_0x2ab798(0x19f)](exports,'__esModule',{'value':!![]}),exports[a1_0x2ab798(0x191)]=void 0x0;const i18n_1=require(a1_0x2ab798(0x197)),core_1=require(a1_0x2ab798(0x170)),core_2=require('@midwayjs/core'),interface_1=require(a1_0x2ab798(0x19b)),ValidatorService_1=require(a1_0x2ab798(0x16d)),i18n=require(a1_0x2ab798(0x197)),anncic=require('@anncic-api/core'),ConfigDefault=require(a1_0x2ab798(0x16c));let CustomConfiguration=class CustomConfiguration{async[a1_0x2ab798(0x183)](){const _0x468f6a=a1_0x2ab798;this[_0x468f6a(0x19a)][_0x468f6a(0x17f)](interface_1[_0x468f6a(0x198)],_0x2ee998=>{const _0x5c67fa=_0x468f6a,_0x3bece0=_0x2ee998[_0x5c67fa(0x17b)],_0x40b89a=(0x0,core_2['getMethodParamTypes'])(_0x2ee998[_0x5c67fa(0x179)],_0x2ee998['propertyName']);return{'before':_0x3f2604=>{const _0x752d84=_0x5c67fa;var _0x36fe8e,_0x5579bc,_0x551f1d,_0x2ddddc,_0x5b2d4d,_0x55bc5a,_0x3860b4,_0x2a7146,_0x5d6cca,_0x5d557e,_0x48e365,_0x5cc24d,_0x29464d;const _0x232641=_0x3f2604[_0x752d84(0x179)][core_1[_0x752d84(0x181)]],_0x502667=Object['assign']({},((_0x36fe8e=_0x232641===null||_0x232641===void 0x0?void 0x0:_0x232641[_0x752d84(0x17e)])===null||_0x36fe8e===void 0x0?void 0x0:_0x36fe8e[_0x752d84(0x174)])||{},((_0x5579bc=_0x232641===null||_0x232641===void 0x0?void 0x0:_0x232641['request'])===null||_0x5579bc===void 0x0?void 0x0:_0x5579bc[_0x752d84(0x190)])||{}),_0x202dbc=((0x0,core_2[_0x752d84(0x175)])(interface_1[_0x752d84(0x198)],_0x3f2604[_0x752d84(0x179)])||[])['find'](_0x4a347e=>_0x4a347e[_0x752d84(0x19e)]==_0x3f2604[_0x752d84(0x17d)]);!(_0x3bece0===null||_0x3bece0===void 0x0?void 0x0:_0x3bece0[_0x752d84(0x167)])&&_0x232641&&_0x232641[_0x752d84(0x187)]&&(_0x3bece0[_0x752d84(0x167)]=_0x232641[_0x752d84(0x187)](i18n_1[_0x752d84(0x176)]));for(let _0x126c9f=0x0;_0x126c9f<_0x40b89a['length'];_0x126c9f++){const _0x542bff=_0x40b89a[_0x126c9f],_0x5f1141=this[_0x752d84(0x193)][_0x752d84(0x199)](_0x542bff);if(_0x5f1141){if(typeof _0x3f2604[_0x752d84(0x185)][_0x126c9f]==_0x752d84(0x184)||((_0x551f1d=_0x3f2604['args'][_0x126c9f])===null||_0x551f1d===void 0x0?void 0x0:_0x551f1d[_0x752d84(0x17e)])&&((_0x2ddddc=_0x3f2604[_0x752d84(0x185)][_0x126c9f])===null||_0x2ddddc===void 0x0?void 0x0:_0x2ddddc[_0x752d84(0x180)])&&((_0x5b2d4d=_0x3f2604['args'][_0x126c9f])===null||_0x5b2d4d===void 0x0?void 0x0:_0x5b2d4d['req']))_0x3f2604[_0x752d84(0x185)][_0x126c9f]=_0x502667;else((_0x55bc5a=_0x3f2604['args'][_0x126c9f])===null||_0x55bc5a===void 0x0?void 0x0:_0x55bc5a['name'])==_0x752d84(0x18a)&&_0x3f2604[_0x752d84(0x185)][_0x752d84(0x173)](_0x126c9f,0x0,_0x502667);const _0x3088f2=this[_0x752d84(0x193)]['validator'](_0x5f1141,_0x3f2604['args'][_0x126c9f],_0x3bece0);_0x3088f2&&(_0x3f2604[_0x752d84(0x185)][_0x126c9f]=_0x3088f2);}else{if((_0x202dbc===null||_0x202dbc===void 0x0?void 0x0:_0x202dbc[_0x752d84(0x177)][_0x126c9f])&&((_0x3860b4=_0x3f2604['args'][_0x126c9f])===null||_0x3860b4===void 0x0?void 0x0:_0x3860b4[_0x752d84(0x194)])&&typeof _0x3f2604[_0x752d84(0x185)][_0x126c9f][_0x752d84(0x196)]==_0x752d84(0x19d)&&((_0x2a7146=_0x232641===null||_0x232641===void 0x0?void 0x0:_0x232641[_0x752d84(0x194)])===null||_0x2a7146===void 0x0?void 0x0:_0x2a7146[_0x202dbc[_0x752d84(0x177)][_0x126c9f]]))_0x3f2604['args'][_0x126c9f]=_0x542bff((_0x5d6cca=_0x232641===null||_0x232641===void 0x0?void 0x0:_0x232641['params'])===null||_0x5d6cca===void 0x0?void 0x0:_0x5d6cca[_0x202dbc[_0x752d84(0x177)][_0x126c9f]]);else(_0x202dbc===null||_0x202dbc===void 0x0?void 0x0:_0x202dbc[_0x752d84(0x177)][_0x126c9f])&&((_0x48e365=(_0x5d557e=_0x3f2604[_0x752d84(0x185)][_0x126c9f])===null||_0x5d557e===void 0x0?void 0x0:_0x5d557e['params'])===null||_0x48e365===void 0x0?void 0x0:_0x48e365[_0x202dbc[_0x752d84(0x177)][_0x126c9f]])&&(_0x3f2604['args'][_0x126c9f]=(_0x29464d=(_0x5cc24d=_0x3f2604[_0x752d84(0x185)][_0x126c9f])===null||_0x5cc24d===void 0x0?void 0x0:_0x5cc24d[_0x752d84(0x194)])===null||_0x29464d===void 0x0?void 0x0:_0x29464d[_0x202dbc[_0x752d84(0x177)][_0x126c9f]]);}}},'afterThrow':(_0x187280,_0x3bfa45)=>{throw _0x3bfa45;}};});}};exports[a1_0x2ab798(0x191)]=CustomConfiguration,__decorate([(0x0,core_2[a1_0x2ab798(0x192)])(),__metadata(a1_0x2ab798(0x169),core_1[a1_0x2ab798(0x16b)])],CustomConfiguration[a1_0x2ab798(0x186)],a1_0x2ab798(0x19a),void 0x0),__decorate([(0x0,core_2[a1_0x2ab798(0x192)])(),__metadata(a1_0x2ab798(0x169),ValidatorService_1['ValidatorService'])],CustomConfiguration[a1_0x2ab798(0x186)],'ValidatorService',void 0x0),exports[a1_0x2ab798(0x191)]=CustomConfiguration=__decorate([(0x0,core_2['Configuration'])({'conflictCheck':![],'imports':[i18n,anncic],'namespace':a1_0x2ab798(0x16e),'importConfigs':[{'default':ConfigDefault}]})],CustomConfiguration);
@@ -1 +1 @@
1
- const a2_0x877200=a2_0x31ee;(function(_0x40912f,_0x4eb45d){const _0x3fe79b=a2_0x31ee,_0x522b7b=_0x40912f();while(!![]){try{const _0x415730=-parseInt(_0x3fe79b(0x9d))/0x1+-parseInt(_0x3fe79b(0x9c))/0x2*(parseInt(_0x3fe79b(0x96))/0x3)+parseInt(_0x3fe79b(0xb5))/0x4*(parseInt(_0x3fe79b(0x91))/0x5)+-parseInt(_0x3fe79b(0xa5))/0x6*(parseInt(_0x3fe79b(0xab))/0x7)+parseInt(_0x3fe79b(0xa2))/0x8*(parseInt(_0x3fe79b(0xa1))/0x9)+parseInt(_0x3fe79b(0x95))/0xa+-parseInt(_0x3fe79b(0x98))/0xb*(-parseInt(_0x3fe79b(0x93))/0xc);if(_0x415730===_0x4eb45d)break;else _0x522b7b['push'](_0x522b7b['shift']());}catch(_0x2324f6){_0x522b7b['push'](_0x522b7b['shift']());}}}(a2_0x460b,0xf1745));const a2_0x318f8c=(function(){let _0x36c451=!![];return function(_0x235591,_0x57e35a){const _0x17f725=_0x36c451?function(){if(_0x57e35a){const _0x3469f=_0x57e35a['apply'](_0x235591,arguments);return _0x57e35a=null,_0x3469f;}}:function(){};return _0x36c451=![],_0x17f725;};}()),a2_0x4b90a1=a2_0x318f8c(this,function(){const _0x16756a=a2_0x31ee;return a2_0x4b90a1['toString']()[_0x16756a(0xa9)](_0x16756a(0x90))[_0x16756a(0xa0)]()[_0x16756a(0xad)](a2_0x4b90a1)[_0x16756a(0xa9)](_0x16756a(0x90));});a2_0x4b90a1();'use strict';Object[a2_0x877200(0xaa)](exports,a2_0x877200(0x9f),{'value':!![]}),exports[a2_0x877200(0xb2)]=exports['RuleType']=void 0x0;const joi=require(a2_0x877200(0xb1)),date_1=require('@joi/date'),core_1=require(a2_0x877200(0x92)),interface_1=require(a2_0x877200(0xa4));exports[a2_0x877200(0xb0)]=joi[a2_0x877200(0x9a)](date_1[a2_0x877200(0xaf)]);function a2_0x460b(){const _0x21e204=['extend','map','2bfeqIM','1964824liFCXd','meta','__esModule','toString','8240166vlUuqV','8TsYvLU','Array','../interface','162tMASxM','name','isSchema','getClassMetadata','search','defineProperty','306355ucPrvC','description','constructor','RULES_KEY','default','RuleType','joi','Rule','attachClassMetadata','array','3394924bVnoDm','function','(((.+)+)+)+$','5zPIypc','@midwayjs/core','5519112ORCXFr','label','9463370LHpsJE','5383944bRMUpv','saveClassMetadata','77nBMbov','items'];a2_0x460b=function(){return _0x21e204;};return a2_0x460b();}function a2_0x31ee(_0x7bb67f,_0x33feb6){const _0x5f01c2=a2_0x460b();return a2_0x31ee=function(_0x4b90a1,_0x318f8c){_0x4b90a1=_0x4b90a1-0x90;let _0x460b0f=_0x5f01c2[_0x4b90a1];return _0x460b0f;},a2_0x31ee(_0x7bb67f,_0x33feb6);}function Rule(_0x59583b,_0x28373a,_0x55a006=''){return(_0x3e84f7,_0x26f92f)=>{const _0x19d1e3=a2_0x31ee;var _0xee9238;if(_0x26f92f)!joi[_0x19d1e3(0xa7)](_0x28373a)&&(_0x28373a===null||_0x28373a===void 0x0?void 0x0:_0x28373a[_0x19d1e3(0xa6)])&&(_0x28373a=joi['object']((0x0,core_1['getClassMetadata'])(interface_1['RULES_KEY'],_0x28373a))[_0x19d1e3(0x9e)]({'id':_0x28373a[_0x19d1e3(0xa6)]}),(0x0,core_1['getPropertyType'])(_0x3e84f7,_0x26f92f)['name']===_0x19d1e3(0xa3)&&(_0x28373a=joi[_0x19d1e3(0xb4)]()[_0x19d1e3(0x99)](_0x28373a))),joi[_0x19d1e3(0xa7)](_0x28373a)&&(_0x59583b&&typeof(_0x28373a===null||_0x28373a===void 0x0?void 0x0:_0x28373a[_0x19d1e3(0x94)])==_0x19d1e3(0xb6)&&(_0x28373a=_0x28373a[_0x19d1e3(0x94)](_0x59583b)),_0x55a006&&typeof(_0x28373a===null||_0x28373a===void 0x0?void 0x0:_0x28373a['description'])==_0x19d1e3(0xb6)&&(_0x28373a=_0x28373a[_0x19d1e3(0xac)](_0x55a006)),(0x0,core_1[_0x19d1e3(0xb3)])(interface_1[_0x19d1e3(0xae)],_0x28373a,_0x3e84f7,_0x26f92f));else{const _0x5d825d=(0x0,core_1[_0x19d1e3(0xa8)])(interface_1['RULES_KEY'],_0x28373a);if(_0x5d825d){let _0xb0721f=(_0xee9238=(0x0,core_1[_0x19d1e3(0xa8)])(interface_1['RULES_KEY'],_0x3e84f7))!==null&&_0xee9238!==void 0x0?_0xee9238:{};Object['keys'](_0x5d825d)[_0x19d1e3(0x9b)](_0x13a867=>{!_0xb0721f[_0x13a867]&&(_0xb0721f[_0x13a867]=_0x5d825d[_0x13a867]);}),(0x0,core_1[_0x19d1e3(0x97)])(interface_1[_0x19d1e3(0xae)],_0xb0721f,_0x3e84f7);}}};}exports[a2_0x877200(0xb2)]=Rule;
1
+ const a2_0x9a88de=a2_0x3408;(function(_0x3c7c68,_0x12472d){const _0x3ecb6e=a2_0x3408,_0x28d158=_0x3c7c68();while(!![]){try{const _0x3b8862=-parseInt(_0x3ecb6e(0x13b))/0x1+-parseInt(_0x3ecb6e(0x14f))/0x2+parseInt(_0x3ecb6e(0x148))/0x3*(-parseInt(_0x3ecb6e(0x152))/0x4)+parseInt(_0x3ecb6e(0x147))/0x5+-parseInt(_0x3ecb6e(0x157))/0x6*(parseInt(_0x3ecb6e(0x13f))/0x7)+parseInt(_0x3ecb6e(0x142))/0x8+parseInt(_0x3ecb6e(0x14c))/0x9;if(_0x3b8862===_0x12472d)break;else _0x28d158['push'](_0x28d158['shift']());}catch(_0x321e66){_0x28d158['push'](_0x28d158['shift']());}}}(a2_0x2230,0x62839));const a2_0x2b6e99=(function(){let _0x16283b=!![];return function(_0x47be72,_0x54acb5){const _0xa9c07c=_0x16283b?function(){if(_0x54acb5){const _0x5cb6ec=_0x54acb5['apply'](_0x47be72,arguments);return _0x54acb5=null,_0x5cb6ec;}}:function(){};return _0x16283b=![],_0xa9c07c;};}()),a2_0x259683=a2_0x2b6e99(this,function(){const _0x1186b2=a2_0x3408;return a2_0x259683[_0x1186b2(0x156)]()[_0x1186b2(0x139)](_0x1186b2(0x153))[_0x1186b2(0x156)]()[_0x1186b2(0x137)](a2_0x259683)[_0x1186b2(0x139)](_0x1186b2(0x153));});a2_0x259683();'use strict';Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports['Rule']=exports[a2_0x9a88de(0x13e)]=void 0x0;function a2_0x3408(_0x920874,_0x599dd8){const _0x25b0fa=a2_0x2230();return a2_0x3408=function(_0x259683,_0x2b6e99){_0x259683=_0x259683-0x137;let _0x223066=_0x25b0fa[_0x259683];return _0x223066;},a2_0x3408(_0x920874,_0x599dd8);}const joi=require(a2_0x9a88de(0x145)),date_1=require(a2_0x9a88de(0x146)),core_1=require(a2_0x9a88de(0x13c)),interface_1=require(a2_0x9a88de(0x14a));exports[a2_0x9a88de(0x13e)]=joi[a2_0x9a88de(0x151)](date_1['default']);function Rule(_0xad91a,_0x3510f,_0x34a090=''){return(_0x41fcb,_0x5abe24)=>{const _0x349133=a2_0x3408;var _0x38e93a;if(_0x5abe24)!joi[_0x349133(0x150)](_0x3510f)&&(_0x3510f===null||_0x3510f===void 0x0?void 0x0:_0x3510f['name'])&&(_0x3510f=joi[_0x349133(0x141)]((0x0,core_1['getClassMetadata'])(interface_1['RULES_KEY'],_0x3510f))[_0x349133(0x13a)]({'id':_0x3510f[_0x349133(0x154)]}),(0x0,core_1['getPropertyType'])(_0x41fcb,_0x5abe24)[_0x349133(0x154)]===_0x349133(0x14d)&&(_0x3510f=joi[_0x349133(0x144)]()[_0x349133(0x14b)](_0x3510f))),joi['isSchema'](_0x3510f)&&(_0xad91a&&typeof(_0x3510f===null||_0x3510f===void 0x0?void 0x0:_0x3510f[_0x349133(0x14e)])==_0x349133(0x143)&&(_0x3510f=_0x3510f[_0x349133(0x14e)](_0xad91a)),_0x34a090&&typeof(_0x3510f===null||_0x3510f===void 0x0?void 0x0:_0x3510f[_0x349133(0x149)])=='function'&&(_0x3510f=_0x3510f['description'](_0x34a090)),(0x0,core_1['attachClassMetadata'])(interface_1['RULES_KEY'],_0x3510f,_0x41fcb,_0x5abe24));else{const _0x42f87a=(0x0,core_1['getClassMetadata'])(interface_1[_0x349133(0x140)],_0x3510f);if(_0x42f87a){let _0x22b27a=(_0x38e93a=(0x0,core_1[_0x349133(0x155)])(interface_1[_0x349133(0x140)],_0x41fcb))!==null&&_0x38e93a!==void 0x0?_0x38e93a:{};Object['keys'](_0x42f87a)['map'](_0x268669=>{!_0x22b27a[_0x268669]&&(_0x22b27a[_0x268669]=_0x42f87a[_0x268669]);}),(0x0,core_1[_0x349133(0x138)])(interface_1[_0x349133(0x140)],_0x22b27a,_0x41fcb);}}};}function a2_0x2230(){const _0x30f34a=['RuleType','5156221oHPKlq','RULES_KEY','object','467576XQbQmy','function','array','joi','@joi/date','248365HKWynl','93LnfgRQ','description','../interface','items','22822290blVjgn','Array','label','1047584zEuhUs','isSchema','extend','33860frMUse','(((.+)+)+)+$','name','getClassMetadata','toString','6MXQtGw','constructor','saveClassMetadata','search','meta','717607KsrKHk','@midwayjs/core','Rule'];a2_0x2230=function(){return _0x30f34a;};return a2_0x2230();}exports[a2_0x9a88de(0x13d)]=Rule;
@@ -1 +1 @@
1
- const a3_0x5d46ac=a3_0x4843;(function(_0x14f39c,_0x52e0bc){const _0x129475=a3_0x4843,_0x5475cd=_0x14f39c();while(!![]){try{const _0x38924a=-parseInt(_0x129475(0x1c6))/0x1*(-parseInt(_0x129475(0x1bc))/0x2)+parseInt(_0x129475(0x1cc))/0x3*(-parseInt(_0x129475(0x1c1))/0x4)+-parseInt(_0x129475(0x1b8))/0x5+parseInt(_0x129475(0x1b7))/0x6+-parseInt(_0x129475(0x1c7))/0x7*(parseInt(_0x129475(0x1ca))/0x8)+parseInt(_0x129475(0x1bb))/0x9+parseInt(_0x129475(0x1b9))/0xa;if(_0x38924a===_0x52e0bc)break;else _0x5475cd['push'](_0x5475cd['shift']());}catch(_0x1f7539){_0x5475cd['push'](_0x5475cd['shift']());}}}(a3_0x47a4,0x9f61d));function a3_0x47a4(){const _0x215ab4=['defineProperty','__esModule','Validator','constructor','303152egKDDp','replace','toString','prototype','search','1hDJzmN','7ZNJjvF','VALIDATOR_KEY','(((.+)+)+)+$','7424792GkmTdZ','@midwayjs/core','45Pzkytm','function','getFuncArgs','1744350asbjpC','2486375sDEpLx','10265890RAMdMP','../interface','8055513hVKscr','2005304WmVBEJ'];a3_0x47a4=function(){return _0x215ab4;};return a3_0x47a4();}const a3_0x3c1ca3=(function(){let _0x225a47=!![];return function(_0x1763e2,_0x261b13){const _0x20ee79=_0x225a47?function(){if(_0x261b13){const _0x47c3ee=_0x261b13['apply'](_0x1763e2,arguments);return _0x261b13=null,_0x47c3ee;}}:function(){};return _0x225a47=![],_0x20ee79;};}()),a3_0x31f5d9=a3_0x3c1ca3(this,function(){const _0x23f779=a3_0x4843;return a3_0x31f5d9[_0x23f779(0x1c3)]()[_0x23f779(0x1c5)](_0x23f779(0x1c9))['toString']()[_0x23f779(0x1c0)](a3_0x31f5d9)[_0x23f779(0x1c5)]('(((.+)+)+)+$');});function a3_0x4843(_0x2c74be,_0x4dba34){const _0x32f6df=a3_0x47a4();return a3_0x4843=function(_0x31f5d9,_0x3c1ca3){_0x31f5d9=_0x31f5d9-0x1b6;let _0x47a4c7=_0x32f6df[_0x31f5d9];return _0x47a4c7;},a3_0x4843(_0x2c74be,_0x4dba34);}a3_0x31f5d9();'use strict';Object[a3_0x5d46ac(0x1bd)](exports,a3_0x5d46ac(0x1be),{'value':!![]}),exports[a3_0x5d46ac(0x1b6)]=exports[a3_0x5d46ac(0x1bf)]=void 0x0;const core_1=require(a3_0x5d46ac(0x1cb)),interface_1=require(a3_0x5d46ac(0x1ba));function Validator(_0x14db45={}){return(_0x210f6d,_0x41d24,_0x37f1fc)=>{const _0x44a950=a3_0x4843,_0x4e8df8=getFuncArgs(_0x210f6d[_0x41d24]);(0x0,core_1['attachClassMetadata'])(interface_1[_0x44a950(0x1c8)],{'method':_0x41d24,'methodArgs':_0x4e8df8},_0x210f6d),(0x0,core_1['createCustomMethodDecorator'])(interface_1[_0x44a950(0x1c8)],_0x14db45)(_0x210f6d,_0x41d24,_0x37f1fc);};}exports[a3_0x5d46ac(0x1bf)]=Validator;function getFuncArgs(_0x1253cf){const _0x38c01d=a3_0x5d46ac;if(typeof _0x1253cf==_0x38c01d(0x1cd)){const _0x2ed38f=/=>.*$/mg,_0x1dbf32=/=[^,)]+/mg,_0x1d42aa=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/mg,_0x3f7ee4=(_0x1253cf[_0x38c01d(0x1c4)]?_0x1253cf[_0x38c01d(0x1c4)][_0x38c01d(0x1c0)][_0x38c01d(0x1c3)]():_0x1253cf['toString']())['replace'](_0x1d42aa,'')['replace'](_0x2ed38f,'')[_0x38c01d(0x1c2)](_0x1dbf32,''),_0x112fa2=_0x3f7ee4['slice'](_0x3f7ee4['indexOf']('(')+0x1,_0x3f7ee4['indexOf'](')'))['match'](/([^\s,]+)/g)||[];return _0x112fa2;}}exports[a3_0x5d46ac(0x1b6)]=getFuncArgs;
1
+ const a3_0x4c6fb1=a3_0x1b61;(function(_0x1d0ef2,_0x142026){const _0xf03ab6=a3_0x1b61,_0x2d36a0=_0x1d0ef2();while(!![]){try{const _0x1f2fdb=-parseInt(_0xf03ab6(0x10c))/0x1+parseInt(_0xf03ab6(0x104))/0x2+-parseInt(_0xf03ab6(0x109))/0x3+-parseInt(_0xf03ab6(0x10e))/0x4*(-parseInt(_0xf03ab6(0xfa))/0x5)+-parseInt(_0xf03ab6(0x10b))/0x6*(-parseInt(_0xf03ab6(0x101))/0x7)+parseInt(_0xf03ab6(0x107))/0x8+parseInt(_0xf03ab6(0x100))/0x9*(parseInt(_0xf03ab6(0x10a))/0xa);if(_0x1f2fdb===_0x142026)break;else _0x2d36a0['push'](_0x2d36a0['shift']());}catch(_0x3d500a){_0x2d36a0['push'](_0x2d36a0['shift']());}}}(a3_0x118a,0x8e4fc));const a3_0x59ff0c=(function(){let _0xafe645=!![];return function(_0xdef81,_0x2ec54b){const _0x41bd3e=_0xafe645?function(){if(_0x2ec54b){const _0x4f1aaf=_0x2ec54b['apply'](_0xdef81,arguments);return _0x2ec54b=null,_0x4f1aaf;}}:function(){};return _0xafe645=![],_0x41bd3e;};}()),a3_0x36fe43=a3_0x59ff0c(this,function(){const _0x20e0fb=a3_0x1b61;return a3_0x36fe43[_0x20e0fb(0xfb)]()[_0x20e0fb(0xfd)]('(((.+)+)+)+$')[_0x20e0fb(0xfb)]()['constructor'](a3_0x36fe43)[_0x20e0fb(0xfd)](_0x20e0fb(0x103));});a3_0x36fe43();function a3_0x118a(){const _0x1da980=['slice','18664sYbzGl','attachClassMetadata','@midwayjs/core','__esModule','constructor','630qEOVdP','toString','defineProperty','search','Validator','VALIDATOR_KEY','243YaCCJU','61726ueVzbA','createCustomMethodDecorator','(((.+)+)+)+$','93448gfGbpP','function','replace','4827912ouPBpu','../interface','3239709qHfGzK','206370CKqtFc','426uLDFiX','758595coUpUD'];a3_0x118a=function(){return _0x1da980;};return a3_0x118a();}'use strict';Object[a3_0x4c6fb1(0xfc)](exports,a3_0x4c6fb1(0xf8),{'value':!![]}),exports['getFuncArgs']=exports[a3_0x4c6fb1(0xfe)]=void 0x0;const core_1=require(a3_0x4c6fb1(0xf7)),interface_1=require(a3_0x4c6fb1(0x108));function Validator(_0x4efe13={}){return(_0x39ec48,_0x4117d4,_0x1b7b88)=>{const _0x11c63d=a3_0x1b61,_0x1c1f89=getFuncArgs(_0x39ec48[_0x4117d4]);(0x0,core_1[_0x11c63d(0x10f)])(interface_1['VALIDATOR_KEY'],{'method':_0x4117d4,'methodArgs':_0x1c1f89},_0x39ec48),(0x0,core_1[_0x11c63d(0x102)])(interface_1[_0x11c63d(0xff)],_0x4efe13)(_0x39ec48,_0x4117d4,_0x1b7b88);};}exports['Validator']=Validator;function getFuncArgs(_0x28de57){const _0x3c053a=a3_0x4c6fb1;if(typeof _0x28de57==_0x3c053a(0x105)){const _0x33aecd=/=>.*$/mg,_0x52eed6=/=[^,)]+/mg,_0x10203e=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/mg,_0xa4d245=(_0x28de57['prototype']?_0x28de57['prototype'][_0x3c053a(0xf9)][_0x3c053a(0xfb)]():_0x28de57[_0x3c053a(0xfb)]())[_0x3c053a(0x106)](_0x10203e,'')[_0x3c053a(0x106)](_0x33aecd,'')[_0x3c053a(0x106)](_0x52eed6,''),_0x25bf35=_0xa4d245[_0x3c053a(0x10d)](_0xa4d245['indexOf']('(')+0x1,_0xa4d245['indexOf'](')'))['match'](/([^\s,]+)/g)||[];return _0x25bf35;}}function a3_0x1b61(_0x2eae60,_0x4b283f){const _0x4611f8=a3_0x118a();return a3_0x1b61=function(_0x36fe43,_0x59ff0c){_0x36fe43=_0x36fe43-0xf7;let _0x118a67=_0x4611f8[_0x36fe43];return _0x118a67;},a3_0x1b61(_0x2eae60,_0x4b283f);}exports['getFuncArgs']=getFuncArgs;
@@ -1 +1 @@
1
- var a4_0x5297e2=a4_0x8f72;(function(_0x3c2c27,_0x3aa89a){var _0x52e931=a4_0x8f72,_0x417c6=_0x3c2c27();while(!![]){try{var _0x5ae183=-parseInt(_0x52e931(0x71))/0x1+-parseInt(_0x52e931(0x6f))/0x2+parseInt(_0x52e931(0x7e))/0x3*(parseInt(_0x52e931(0x69))/0x4)+parseInt(_0x52e931(0x82))/0x5+parseInt(_0x52e931(0x70))/0x6*(-parseInt(_0x52e931(0x6e))/0x7)+parseInt(_0x52e931(0x6b))/0x8*(parseInt(_0x52e931(0x80))/0x9)+-parseInt(_0x52e931(0x72))/0xa*(-parseInt(_0x52e931(0x68))/0xb);if(_0x5ae183===_0x3aa89a)break;else _0x417c6['push'](_0x417c6['shift']());}catch(_0x284961){_0x417c6['push'](_0x417c6['shift']());}}}(a4_0x5748,0x9bfcc));function a4_0x8f72(_0x2b81b0,_0xcbf4a1){var _0x3d53d1=a4_0x5748();return a4_0x8f72=function(_0x4e2ef8,_0x277f4b){_0x4e2ef8=_0x4e2ef8-0x68;var _0x5748c8=_0x3d53d1[_0x4e2ef8];return _0x5748c8;},a4_0x8f72(_0x2b81b0,_0xcbf4a1);}var a4_0x277f4b=(function(){var _0x537088=!![];return function(_0x21249f,_0x4403fa){var _0x718c=_0x537088?function(){var _0x541eb9=a4_0x8f72;if(_0x4403fa){var _0x1635a4=_0x4403fa[_0x541eb9(0x7c)](_0x21249f,arguments);return _0x4403fa=null,_0x1635a4;}}:function(){};return _0x537088=![],_0x718c;};}()),a4_0x4e2ef8=a4_0x277f4b(this,function(){var _0x27ab9a=a4_0x8f72;return a4_0x4e2ef8[_0x27ab9a(0x7f)]()[_0x27ab9a(0x75)]('(((.+)+)+)+$')[_0x27ab9a(0x7f)]()['constructor'](a4_0x4e2ef8)[_0x27ab9a(0x75)](_0x27ab9a(0x7d));});a4_0x4e2ef8();'use strict';var __decorate=this&&this['__decorate']||function(_0x5026ac,_0x3d7830,_0x4b2c1f,_0xdc3672){var _0x1715cc=a4_0x8f72,_0x13f227=arguments[_0x1715cc(0x7a)],_0x5ce0a1=_0x13f227<0x3?_0x3d7830:_0xdc3672===null?_0xdc3672=Object['getOwnPropertyDescriptor'](_0x3d7830,_0x4b2c1f):_0xdc3672,_0x568b8b;if(typeof Reflect===_0x1715cc(0x6c)&&typeof Reflect[_0x1715cc(0x73)]===_0x1715cc(0x79))_0x5ce0a1=Reflect[_0x1715cc(0x73)](_0x5026ac,_0x3d7830,_0x4b2c1f,_0xdc3672);else{for(var _0x5afa26=_0x5026ac[_0x1715cc(0x7a)]-0x1;_0x5afa26>=0x0;_0x5afa26--)if(_0x568b8b=_0x5026ac[_0x5afa26])_0x5ce0a1=(_0x13f227<0x3?_0x568b8b(_0x5ce0a1):_0x13f227>0x3?_0x568b8b(_0x3d7830,_0x4b2c1f,_0x5ce0a1):_0x568b8b(_0x3d7830,_0x4b2c1f))||_0x5ce0a1;}return _0x13f227>0x3&&_0x5ce0a1&&Object['defineProperty'](_0x3d7830,_0x4b2c1f,_0x5ce0a1),_0x5ce0a1;},__metadata=this&&this['__metadata']||function(_0x21788a,_0x4df291){var _0x17ec00=a4_0x8f72;if(typeof Reflect===_0x17ec00(0x6c)&&typeof Reflect[_0x17ec00(0x76)]==='function')return Reflect['metadata'](_0x21788a,_0x4df291);};Object['defineProperty'](exports,a4_0x5297e2(0x81),{'value':!![]}),exports[a4_0x5297e2(0x6d)]=void 0x0;function a4_0x5748(){var _0x33d3a5=['decorate','design:type','search','metadata','PARAMS','NOFIND_SCHEMA','function','length','参数验证失败','apply','(((.+)+)+)+$','3nquORJ','toString','2824047ZBZvFA','__esModule','2335150Syihkg','3641JCanNE','2880392WyjPxZ','AnnErrorMsg','8aehVdq','object','ValidatorError','13391Ljmckt','711174uXOQvy','978YkyqAj','1236238sYXJlZ','31470HPAfBU'];a4_0x5748=function(){return _0x33d3a5;};return a4_0x5748();}const core_1=require('@anncic-api/core');class ValidatorError extends AnnError{}exports[a4_0x5297e2(0x6d)]=ValidatorError,ValidatorError['PARAMS']=0x18c1e,ValidatorError[a4_0x5297e2(0x78)]=0x18c1c,__decorate([(0x0,core_1[a4_0x5297e2(0x6a)])(a4_0x5297e2(0x7b)),__metadata(a4_0x5297e2(0x74),Object)],ValidatorError,a4_0x5297e2(0x77),void 0x0),__decorate([(0x0,core_1['AnnErrorMsg'])('参数验证失败'),__metadata(a4_0x5297e2(0x74),Object)],ValidatorError,a4_0x5297e2(0x78),void 0x0);
1
+ var a4_0x3375f3=a4_0x1540;(function(_0x1e3e9a,_0xed296){var _0x58d56f=a4_0x1540,_0x113b85=_0x1e3e9a();while(!![]){try{var _0x15b3a6=-parseInt(_0x58d56f(0x102))/0x1+-parseInt(_0x58d56f(0xed))/0x2*(parseInt(_0x58d56f(0xfa))/0x3)+parseInt(_0x58d56f(0xf2))/0x4*(parseInt(_0x58d56f(0xfb))/0x5)+-parseInt(_0x58d56f(0xee))/0x6*(-parseInt(_0x58d56f(0x100))/0x7)+parseInt(_0x58d56f(0xf7))/0x8*(parseInt(_0x58d56f(0xef))/0x9)+parseInt(_0x58d56f(0xe5))/0xa*(-parseInt(_0x58d56f(0xe6))/0xb)+parseInt(_0x58d56f(0xf8))/0xc;if(_0x15b3a6===_0xed296)break;else _0x113b85['push'](_0x113b85['shift']());}catch(_0x22fb1d){_0x113b85['push'](_0x113b85['shift']());}}}(a4_0x3119,0x876db));function a4_0x1540(_0x7fb9c6,_0xc8be00){var _0x2dd231=a4_0x3119();return a4_0x1540=function(_0x1e6afd,_0xe16f54){_0x1e6afd=_0x1e6afd-0xe5;var _0x31197c=_0x2dd231[_0x1e6afd];return _0x31197c;},a4_0x1540(_0x7fb9c6,_0xc8be00);}var a4_0xe16f54=(function(){var _0x2e9f2f=!![];return function(_0x442ed4,_0x28b562){var _0x46383c=_0x2e9f2f?function(){var _0x1beb51=a4_0x1540;if(_0x28b562){var _0x5b4ccf=_0x28b562[_0x1beb51(0xff)](_0x442ed4,arguments);return _0x28b562=null,_0x5b4ccf;}}:function(){};return _0x2e9f2f=![],_0x46383c;};}()),a4_0x1e6afd=a4_0xe16f54(this,function(){var _0x5e0599=a4_0x1540;return a4_0x1e6afd[_0x5e0599(0x104)]()[_0x5e0599(0x103)]('(((.+)+)+)+$')['toString']()[_0x5e0599(0xf6)](a4_0x1e6afd)['search'](_0x5e0599(0xf4));});a4_0x1e6afd();'use strict';var __decorate=this&&this['__decorate']||function(_0xe64cbe,_0x1ad078,_0x15aa0a,_0xb52013){var _0x4c55f7=a4_0x1540,_0x24ca02=arguments['length'],_0x17e63d=_0x24ca02<0x3?_0x1ad078:_0xb52013===null?_0xb52013=Object[_0x4c55f7(0xfd)](_0x1ad078,_0x15aa0a):_0xb52013,_0x181b32;if(typeof Reflect==='object'&&typeof Reflect[_0x4c55f7(0xeb)]===_0x4c55f7(0x101))_0x17e63d=Reflect[_0x4c55f7(0xeb)](_0xe64cbe,_0x1ad078,_0x15aa0a,_0xb52013);else{for(var _0x38196f=_0xe64cbe[_0x4c55f7(0xf1)]-0x1;_0x38196f>=0x0;_0x38196f--)if(_0x181b32=_0xe64cbe[_0x38196f])_0x17e63d=(_0x24ca02<0x3?_0x181b32(_0x17e63d):_0x24ca02>0x3?_0x181b32(_0x1ad078,_0x15aa0a,_0x17e63d):_0x181b32(_0x1ad078,_0x15aa0a))||_0x17e63d;}return _0x24ca02>0x3&&_0x17e63d&&Object[_0x4c55f7(0xe8)](_0x1ad078,_0x15aa0a,_0x17e63d),_0x17e63d;},__metadata=this&&this[a4_0x3375f3(0xec)]||function(_0x313582,_0x561e28){var _0xc625ca=a4_0x3375f3;if(typeof Reflect===_0xc625ca(0xea)&&typeof Reflect['metadata']==='function')return Reflect[_0xc625ca(0xf5)](_0x313582,_0x561e28);};Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports['ValidatorError']=void 0x0;function a4_0x3119(){var _0x5237b2=['1610fyGcbk','19052rgWHLQ','PARAMS','defineProperty','参数验证失败','object','decorate','__metadata','23566epufti','6UyVjai','7146mHVxPQ','ValidatorError','length','1709524sHXAjc','design:type','(((.+)+)+)+$','metadata','constructor','1976SqtwhG','7019424NfHpCh','AnnErrorMsg','123svNovV','5ZlbeHy','@anncic-api/core','getOwnPropertyDescriptor','NOFIND_SCHEMA','apply','2272998scJOrv','function','216495EVCehP','search','toString'];a4_0x3119=function(){return _0x5237b2;};return a4_0x3119();}const core_1=require(a4_0x3375f3(0xfc));class ValidatorError extends AnnError{}exports[a4_0x3375f3(0xf0)]=ValidatorError,ValidatorError[a4_0x3375f3(0xe7)]=0x18c1e,ValidatorError['NOFIND_SCHEMA']=0x18c1c,__decorate([(0x0,core_1[a4_0x3375f3(0xf9)])(a4_0x3375f3(0xe9)),__metadata(a4_0x3375f3(0xf3),Object)],ValidatorError,a4_0x3375f3(0xe7),void 0x0),__decorate([(0x0,core_1[a4_0x3375f3(0xf9)])(a4_0x3375f3(0xe9)),__metadata(a4_0x3375f3(0xf3),Object)],ValidatorError,a4_0x3375f3(0xfe),void 0x0);
@@ -1 +1 @@
1
- const a5_0x30d3cf=a5_0x2258;(function(_0x49dff0,_0x49b697){const _0x5ba57f=a5_0x2258,_0x191d76=_0x49dff0();while(!![]){try{const _0x12f7fe=-parseInt(_0x5ba57f(0x199))/0x1+parseInt(_0x5ba57f(0x183))/0x2+parseInt(_0x5ba57f(0x18c))/0x3+-parseInt(_0x5ba57f(0x18f))/0x4*(-parseInt(_0x5ba57f(0x18e))/0x5)+parseInt(_0x5ba57f(0x192))/0x6+-parseInt(_0x5ba57f(0x190))/0x7+parseInt(_0x5ba57f(0x18a))/0x8*(-parseInt(_0x5ba57f(0x18d))/0x9);if(_0x12f7fe===_0x49b697)break;else _0x191d76['push'](_0x191d76['shift']());}catch(_0x2052fc){_0x191d76['push'](_0x191d76['shift']());}}}(a5_0x13d2,0xb5269));const a5_0x216341=(function(){let _0x248ea5=!![];return function(_0x3b5f85,_0x1826d9){const _0x5e6e8b=_0x248ea5?function(){const _0x5a30c8=a5_0x2258;if(_0x1826d9){const _0xa87e0e=_0x1826d9[_0x5a30c8(0x182)](_0x3b5f85,arguments);return _0x1826d9=null,_0xa87e0e;}}:function(){};return _0x248ea5=![],_0x5e6e8b;};}()),a5_0x5c92c4=a5_0x216341(this,function(){const _0x8391a2=a5_0x2258;return a5_0x5c92c4[_0x8391a2(0x187)]()[_0x8391a2(0x198)](_0x8391a2(0x18b))[_0x8391a2(0x187)]()['constructor'](a5_0x5c92c4)[_0x8391a2(0x198)](_0x8391a2(0x18b));});a5_0x5c92c4();'use strict';Object[a5_0x30d3cf(0x196)](exports,a5_0x30d3cf(0x191),{'value':!![]}),exports[a5_0x30d3cf(0x186)]=exports['PickDto']=void 0x0;const core_1=require(a5_0x30d3cf(0x193)),interface_1=require(a5_0x30d3cf(0x185));function PickDto(_0x2312d5,_0x59bae9){const _0x13038d=a5_0x30d3cf,_0xfbdc18=function(){};_0xfbdc18[_0x13038d(0x195)]=_0x2312d5[_0x13038d(0x195)];const _0x382098=(0x0,core_1[_0x13038d(0x184)])(interface_1[_0x13038d(0x197)],_0x2312d5),_0x569435={};for(const _0x64691c of _0x59bae9){_0x382098[_0x64691c]&&(_0x569435[_0x64691c]=_0x382098[_0x64691c]);}return(0x0,core_1[_0x13038d(0x188)])(interface_1[_0x13038d(0x197)],_0x569435,_0xfbdc18),_0xfbdc18;}exports[a5_0x30d3cf(0x189)]=PickDto;function OmitDto(_0x31599c,_0x2053c8){const _0x545cb1=a5_0x30d3cf,_0x37afd8=function(){};_0x37afd8['prototype']=_0x31599c[_0x545cb1(0x195)];const _0x3380e5=(0x0,core_1[_0x545cb1(0x184)])(interface_1['RULES_KEY'],_0x31599c),_0x31f5a4=Object[_0x545cb1(0x194)]({},_0x3380e5);for(const _0x26b5e0 of _0x2053c8){delete _0x31f5a4[_0x26b5e0];}return(0x0,core_1[_0x545cb1(0x188)])(interface_1['RULES_KEY'],_0x31f5a4,_0x37afd8),_0x37afd8;}exports[a5_0x30d3cf(0x186)]=OmitDto;function a5_0x2258(_0x11c4b6,_0x4d72cc){const _0x2e3dc7=a5_0x13d2();return a5_0x2258=function(_0x5c92c4,_0x216341){_0x5c92c4=_0x5c92c4-0x182;let _0x13d29a=_0x2e3dc7[_0x5c92c4];return _0x13d29a;},a5_0x2258(_0x11c4b6,_0x4d72cc);}function a5_0x13d2(){const _0x2317ad=['search','15629cWlYKa','apply','2467618cspapu','getClassExtendedMetadata','../interface','OmitDto','toString','saveClassMetadata','PickDto','8qhjgKE','(((.+)+)+)+$','4210119grHEmv','20556162atDbPW','6863405nxUqvs','4dXrhwV','6791596MyzsSK','__esModule','12030bmxxjj','@midwayjs/core','assign','prototype','defineProperty','RULES_KEY'];a5_0x13d2=function(){return _0x2317ad;};return a5_0x13d2();}
1
+ const a5_0x243dbf=a5_0x5127;(function(_0x56d115,_0x382ac1){const _0x2b7c6a=a5_0x5127,_0x5a55ff=_0x56d115();while(!![]){try{const _0xd5a48f=parseInt(_0x2b7c6a(0x146))/0x1+-parseInt(_0x2b7c6a(0x139))/0x2+-parseInt(_0x2b7c6a(0x13b))/0x3*(parseInt(_0x2b7c6a(0x13e))/0x4)+parseInt(_0x2b7c6a(0x13c))/0x5+parseInt(_0x2b7c6a(0x148))/0x6*(-parseInt(_0x2b7c6a(0x14b))/0x7)+parseInt(_0x2b7c6a(0x14a))/0x8+parseInt(_0x2b7c6a(0x13a))/0x9;if(_0xd5a48f===_0x382ac1)break;else _0x5a55ff['push'](_0x5a55ff['shift']());}catch(_0x2f9be9){_0x5a55ff['push'](_0x5a55ff['shift']());}}}(a5_0x5d12,0x8d485));const a5_0x38aa92=(function(){let _0x10ec48=!![];return function(_0x3c66d5,_0x36bfd3){const _0x3dd6c9=_0x10ec48?function(){const _0x5b617d=a5_0x5127;if(_0x36bfd3){const _0x3917e2=_0x36bfd3[_0x5b617d(0x140)](_0x3c66d5,arguments);return _0x36bfd3=null,_0x3917e2;}}:function(){};return _0x10ec48=![],_0x3dd6c9;};}()),a5_0x35c8ac=a5_0x38aa92(this,function(){const _0x23dd8b=a5_0x5127;return a5_0x35c8ac['toString']()[_0x23dd8b(0x137)](_0x23dd8b(0x14c))[_0x23dd8b(0x147)]()[_0x23dd8b(0x136)](a5_0x35c8ac)[_0x23dd8b(0x137)](_0x23dd8b(0x14c));});a5_0x35c8ac();function a5_0x5127(_0x5804c6,_0x4b3045){const _0x181eef=a5_0x5d12();return a5_0x5127=function(_0x35c8ac,_0x38aa92){_0x35c8ac=_0x35c8ac-0x135;let _0x5d12e8=_0x181eef[_0x35c8ac];return _0x5d12e8;},a5_0x5127(_0x5804c6,_0x4b3045);}'use strict';Object[a5_0x243dbf(0x141)](exports,a5_0x243dbf(0x149),{'value':!![]}),exports['OmitDto']=exports[a5_0x243dbf(0x13d)]=void 0x0;const core_1=require(a5_0x243dbf(0x142)),interface_1=require(a5_0x243dbf(0x145));function PickDto(_0x4317a4,_0x485900){const _0x50bf21=a5_0x243dbf,_0xc1ddac=function(){};_0xc1ddac['prototype']=_0x4317a4[_0x50bf21(0x135)];const _0x718c43=(0x0,core_1[_0x50bf21(0x143)])(interface_1[_0x50bf21(0x138)],_0x4317a4),_0x51a088={};for(const _0x45d783 of _0x485900){_0x718c43[_0x45d783]&&(_0x51a088[_0x45d783]=_0x718c43[_0x45d783]);}return(0x0,core_1[_0x50bf21(0x144)])(interface_1['RULES_KEY'],_0x51a088,_0xc1ddac),_0xc1ddac;}exports['PickDto']=PickDto;function a5_0x5d12(){const _0x1dcee9=['apply','defineProperty','@midwayjs/core','getClassExtendedMetadata','saveClassMetadata','../interface','411684HawHVY','toString','4956UvPQkx','__esModule','3115384rghXBT','4207ZiVnYh','(((.+)+)+)+$','prototype','constructor','search','RULES_KEY','1980806wXleIJ','19883628vTYhhT','368937XGLHNB','194775LGeCPb','PickDto','32OzPkhl','OmitDto'];a5_0x5d12=function(){return _0x1dcee9;};return a5_0x5d12();}function OmitDto(_0x1f770f,_0x135bf0){const _0x3f2bf2=a5_0x243dbf,_0x300133=function(){};_0x300133['prototype']=_0x1f770f[_0x3f2bf2(0x135)];const _0xac1f38=(0x0,core_1[_0x3f2bf2(0x143)])(interface_1['RULES_KEY'],_0x1f770f),_0x13788c=Object['assign']({},_0xac1f38);for(const _0x367352 of _0x135bf0){delete _0x13788c[_0x367352];}return(0x0,core_1[_0x3f2bf2(0x144)])(interface_1['RULES_KEY'],_0x13788c,_0x300133),_0x300133;}exports[a5_0x243dbf(0x13f)]=OmitDto;
@@ -1 +1 @@
1
- const a6_0x25fb93=a6_0x4d34;(function(_0x1ecd75,_0x5a34e6){const _0x5e9eca=a6_0x4d34,_0x314367=_0x1ecd75();while(!![]){try{const _0x22480a=-parseInt(_0x5e9eca(0xc6))/0x1+parseInt(_0x5e9eca(0xcb))/0x2+-parseInt(_0x5e9eca(0xd1))/0x3+parseInt(_0x5e9eca(0xc5))/0x4+-parseInt(_0x5e9eca(0xcf))/0x5*(parseInt(_0x5e9eca(0xcd))/0x6)+-parseInt(_0x5e9eca(0xd5))/0x7*(-parseInt(_0x5e9eca(0xda))/0x8)+parseInt(_0x5e9eca(0xd2))/0x9*(parseInt(_0x5e9eca(0xd8))/0xa);if(_0x22480a===_0x5a34e6)break;else _0x314367['push'](_0x314367['shift']());}catch(_0xaf267b){_0x314367['push'](_0x314367['shift']());}}}(a6_0x2c62,0x4b6e1));function a6_0x4d34(_0x1f7ae6,_0x273121){const _0x4c5d82=a6_0x2c62();return a6_0x4d34=function(_0x547027,_0x5d5fa5){_0x547027=_0x547027-0xc5;let _0x2c6207=_0x4c5d82[_0x547027];return _0x2c6207;},a6_0x4d34(_0x1f7ae6,_0x273121);}const a6_0x5d5fa5=(function(){let _0x45f53d=!![];return function(_0x125920,_0x37d05b){const _0x355076=_0x45f53d?function(){const _0x3ee785=a6_0x4d34;if(_0x37d05b){const _0x19c3aa=_0x37d05b[_0x3ee785(0xc7)](_0x125920,arguments);return _0x37d05b=null,_0x19c3aa;}}:function(){};return _0x45f53d=![],_0x355076;};}()),a6_0x547027=a6_0x5d5fa5(this,function(){const _0x26b2d2=a6_0x4d34;return a6_0x547027[_0x26b2d2(0xd9)]()[_0x26b2d2(0xcc)](_0x26b2d2(0xc8))[_0x26b2d2(0xd9)]()[_0x26b2d2(0xca)](a6_0x547027)[_0x26b2d2(0xcc)]('(((.+)+)+)+$');});function a6_0x2c62(){const _0x4df58e=['constructor','1233772LcHMOf','search','1331916vQiJKE','../interface','10sTHVxk','RULES_KEY','87681IeNpWj','1518390zKXNQY','object','getSchema','7pyUIce','getClassExtendedMetadata','joi','10YfEGmv','toString','147032gfLVEx','1807076MvbjHm','473584qKugcq','apply','(((.+)+)+)+$','__esModule'];a6_0x2c62=function(){return _0x4df58e;};return a6_0x2c62();}a6_0x547027();'use strict';Object['defineProperty'](exports,a6_0x25fb93(0xc9),{'value':!![]}),exports[a6_0x25fb93(0xd4)]=void 0x0;const Joi=require(a6_0x25fb93(0xd7)),core_1=require('@midwayjs/core'),interface_1=require(a6_0x25fb93(0xce));function getSchema(_0x2de40b){const _0x470c17=a6_0x25fb93,_0x3777ff=(0x0,core_1[_0x470c17(0xd6)])(interface_1[_0x470c17(0xd0)],_0x2de40b);if(_0x3777ff)return Joi[_0x470c17(0xd3)](_0x3777ff);}exports[a6_0x25fb93(0xd4)]=getSchema;
1
+ function a6_0x59dd(_0x555991,_0x18e0f4){const _0x33bd8f=a6_0x4313();return a6_0x59dd=function(_0x1d6e5d,_0xedc50a){_0x1d6e5d=_0x1d6e5d-0x159;let _0x4313e8=_0x33bd8f[_0x1d6e5d];return _0x4313e8;},a6_0x59dd(_0x555991,_0x18e0f4);}const a6_0x5503e6=a6_0x59dd;(function(_0x36adcd,_0xc93ea7){const _0x4d52fb=a6_0x59dd,_0x126e72=_0x36adcd();while(!![]){try{const _0xa2e3da=parseInt(_0x4d52fb(0x168))/0x1*(parseInt(_0x4d52fb(0x16c))/0x2)+parseInt(_0x4d52fb(0x15d))/0x3+-parseInt(_0x4d52fb(0x15b))/0x4+parseInt(_0x4d52fb(0x165))/0x5+parseInt(_0x4d52fb(0x159))/0x6+parseInt(_0x4d52fb(0x15f))/0x7*(parseInt(_0x4d52fb(0x16a))/0x8)+-parseInt(_0x4d52fb(0x166))/0x9;if(_0xa2e3da===_0xc93ea7)break;else _0x126e72['push'](_0x126e72['shift']());}catch(_0x2f1f8b){_0x126e72['push'](_0x126e72['shift']());}}}(a6_0x4313,0x8bacc));function a6_0x4313(){const _0xa6a8a4=['56txNRSf','constructor','210038CONGfn','5116344caSfBR','toString','1606964MQQZla','getClassExtendedMetadata','2297604KxmlIb','object','122759ebWcqY','joi','(((.+)+)+)+$','defineProperty','../interface','RULES_KEY','1727925ttncav','12853296ZijPXB','search','3cFYrpz','__esModule'];a6_0x4313=function(){return _0xa6a8a4;};return a6_0x4313();}const a6_0xedc50a=(function(){let _0xea9af3=!![];return function(_0x27cdc7,_0x37ecb3){const _0x56ccdb=_0xea9af3?function(){if(_0x37ecb3){const _0x79ae64=_0x37ecb3['apply'](_0x27cdc7,arguments);return _0x37ecb3=null,_0x79ae64;}}:function(){};return _0xea9af3=![],_0x56ccdb;};}()),a6_0x1d6e5d=a6_0xedc50a(this,function(){const _0x20884a=a6_0x59dd;return a6_0x1d6e5d[_0x20884a(0x15a)]()[_0x20884a(0x167)](_0x20884a(0x161))[_0x20884a(0x15a)]()[_0x20884a(0x16b)](a6_0x1d6e5d)[_0x20884a(0x167)](_0x20884a(0x161));});a6_0x1d6e5d();'use strict';Object[a6_0x5503e6(0x162)](exports,a6_0x5503e6(0x169),{'value':!![]}),exports['getSchema']=void 0x0;const Joi=require(a6_0x5503e6(0x160)),core_1=require('@midwayjs/core'),interface_1=require(a6_0x5503e6(0x163));function getSchema(_0x24b803){const _0x4725ba=a6_0x5503e6,_0x435c98=(0x0,core_1[_0x4725ba(0x15c)])(interface_1[_0x4725ba(0x164)],_0x24b803);if(_0x435c98)return Joi[_0x4725ba(0x15e)](_0x435c98);}exports['getSchema']=getSchema;
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- var a7_0x588cca=a7_0x280a;(function(_0x2ac556,_0x37e839){var _0xda47ce=a7_0x280a,_0xa8765d=_0x2ac556();while(!![]){try{var _0x15c411=parseInt(_0xda47ce(0x1e1))/0x1+-parseInt(_0xda47ce(0x1cc))/0x2+parseInt(_0xda47ce(0x1d8))/0x3+parseInt(_0xda47ce(0x1e8))/0x4*(-parseInt(_0xda47ce(0x1e7))/0x5)+-parseInt(_0xda47ce(0x1de))/0x6*(-parseInt(_0xda47ce(0x1cd))/0x7)+-parseInt(_0xda47ce(0x1d7))/0x8+parseInt(_0xda47ce(0x1d3))/0x9;if(_0x15c411===_0x37e839)break;else _0xa8765d['push'](_0xa8765d['shift']());}catch(_0xd4da97){_0xa8765d['push'](_0xa8765d['shift']());}}}(a7_0x1a7d,0x43e73));var a7_0x5a4d5f=(function(){var _0x4b5b4f=!![];return function(_0x4d6092,_0x4aa775){var _0x1ff6dd=_0x4b5b4f?function(){var _0x338a8a=a7_0x280a;if(_0x4aa775){var _0x2d3db4=_0x4aa775[_0x338a8a(0x1df)](_0x4d6092,arguments);return _0x4aa775=null,_0x2d3db4;}}:function(){};return _0x4b5b4f=![],_0x1ff6dd;};}()),a7_0x3a76ca=a7_0x5a4d5f(this,function(){var _0x515f88=a7_0x280a;return a7_0x3a76ca['toString']()['search'](_0x515f88(0x1d9))['toString']()['constructor'](a7_0x3a76ca)[_0x515f88(0x1d5)](_0x515f88(0x1d9));});a7_0x3a76ca();'use strict';var __createBinding=this&&this['__createBinding']||(Object[a7_0x588cca(0x1e5)]?function(_0x2ebe42,_0x19e20d,_0x36386a,_0x23f77c){var _0x4ce51c=a7_0x588cca;if(_0x23f77c===undefined)_0x23f77c=_0x36386a;var _0x3998bb=Object[_0x4ce51c(0x1dd)](_0x19e20d,_0x36386a);(!_0x3998bb||(_0x4ce51c(0x1da)in _0x3998bb?!_0x19e20d[_0x4ce51c(0x1dc)]:_0x3998bb['writable']||_0x3998bb[_0x4ce51c(0x1d1)]))&&(_0x3998bb={'enumerable':!![],'get':function(){return _0x19e20d[_0x36386a];}}),Object[_0x4ce51c(0x1e4)](_0x2ebe42,_0x23f77c,_0x3998bb);}:function(_0x39ec19,_0x1192bc,_0xf0adae,_0xd7e13f){if(_0xd7e13f===undefined)_0xd7e13f=_0xf0adae;_0x39ec19[_0xd7e13f]=_0x1192bc[_0xf0adae];}),__exportStar=this&&this['__exportStar']||function(_0x582477,_0x2cb758){var _0x22dedd=a7_0x588cca;for(var _0x1968d1 in _0x582477)if(_0x1968d1!==_0x22dedd(0x1e0)&&!Object[_0x22dedd(0x1ce)]['hasOwnProperty']['call'](_0x2cb758,_0x1968d1))__createBinding(_0x2cb758,_0x582477,_0x1968d1);};Object[a7_0x588cca(0x1e4)](exports,a7_0x588cca(0x1dc),{'value':!![]}),exports['Configuration']=exports[a7_0x588cca(0x1e6)]=exports[a7_0x588cca(0x1d0)]=exports[a7_0x588cca(0x1e3)]=exports[a7_0x588cca(0x1db)]=exports[a7_0x588cca(0x1cf)]=void 0x0,__exportStar(require('./interface'),exports),__exportStar(require('./helper/dtoHelper'),exports),__exportStar(require(a7_0x588cca(0x1ca)),exports);var Validator_1=require(a7_0x588cca(0x1e2));Object[a7_0x588cca(0x1e4)](exports,'Validator',{'enumerable':!![],'get':function(){var _0x351727=a7_0x588cca;return Validator_1[_0x351727(0x1cf)];}});var Rule_1=require(a7_0x588cca(0x1d6));Object[a7_0x588cca(0x1e4)](exports,a7_0x588cca(0x1db),{'enumerable':!![],'get':function(){return Rule_1['Rule'];}}),Object[a7_0x588cca(0x1e4)](exports,a7_0x588cca(0x1e3),{'enumerable':!![],'get':function(){var _0x398a56=a7_0x588cca;return Rule_1[_0x398a56(0x1e3)];}});function a7_0x1a7d(){var _0x2f5472=['Rule','__esModule','getOwnPropertyDescriptor','2372958UbWSDm','apply','default','167298PKETJp','./decorator/Validator','RuleType','defineProperty','create','ValidatorService','590075IDIiIg','4AkYjJp','./helper/getSchema','./configuration','793654xfsuuc','7NFBAVX','prototype','Validator','ValidatorError','configurable','Configuration','4269654KBoZBI','./service/ValidatorService','search','./decorator/Rule','4097704ejWOpX','803967XptJOc','(((.+)+)+)+$','get'];a7_0x1a7d=function(){return _0x2f5472;};return a7_0x1a7d();}var ValidatorError_1=require('./exception/ValidatorError');Object[a7_0x588cca(0x1e4)](exports,a7_0x588cca(0x1d0),{'enumerable':!![],'get':function(){var _0x377ed8=a7_0x588cca;return ValidatorError_1[_0x377ed8(0x1d0)];}});var ValidatorService_1=require(a7_0x588cca(0x1d4));Object[a7_0x588cca(0x1e4)](exports,'ValidatorService',{'enumerable':!![],'get':function(){var _0x587139=a7_0x588cca;return ValidatorService_1[_0x587139(0x1e6)];}});var configuration_1=require(a7_0x588cca(0x1cb));function a7_0x280a(_0x5428dc,_0x2ce64f){var _0x28760c=a7_0x1a7d();return a7_0x280a=function(_0x3a76ca,_0x5a4d5f){_0x3a76ca=_0x3a76ca-0x1ca;var _0x1a7d98=_0x28760c[_0x3a76ca];return _0x1a7d98;},a7_0x280a(_0x5428dc,_0x2ce64f);}Object['defineProperty'](exports,a7_0x588cca(0x1d2),{'enumerable':!![],'get':function(){return configuration_1['CustomConfiguration'];}});
1
+ var a7_0x163b56=a7_0x544a;(function(_0x49e9f7,_0x52d702){var _0x1f4d62=a7_0x544a,_0x37152d=_0x49e9f7();while(!![]){try{var _0x5b34ef=-parseInt(_0x1f4d62(0xd4))/0x1+parseInt(_0x1f4d62(0xd6))/0x2+parseInt(_0x1f4d62(0xe8))/0x3*(parseInt(_0x1f4d62(0xee))/0x4)+parseInt(_0x1f4d62(0xdc))/0x5*(parseInt(_0x1f4d62(0xcf))/0x6)+-parseInt(_0x1f4d62(0xd7))/0x7*(-parseInt(_0x1f4d62(0xeb))/0x8)+-parseInt(_0x1f4d62(0xe6))/0x9*(parseInt(_0x1f4d62(0xe5))/0xa)+-parseInt(_0x1f4d62(0xd1))/0xb*(parseInt(_0x1f4d62(0xda))/0xc);if(_0x5b34ef===_0x52d702)break;else _0x37152d['push'](_0x37152d['shift']());}catch(_0x12aec8){_0x37152d['push'](_0x37152d['shift']());}}}(a7_0x3437,0xda797));var a7_0xd4dd54=(function(){var _0x5c0597=!![];return function(_0x2023f8,_0x5dba1d){var _0x554fb9=_0x5c0597?function(){var _0x176ea5=a7_0x544a;if(_0x5dba1d){var _0x3a5499=_0x5dba1d[_0x176ea5(0xd5)](_0x2023f8,arguments);return _0x5dba1d=null,_0x3a5499;}}:function(){};return _0x5c0597=![],_0x554fb9;};}()),a7_0x34eadd=a7_0xd4dd54(this,function(){var _0x19ac7f=a7_0x544a;return a7_0x34eadd['toString']()[_0x19ac7f(0xe1)](_0x19ac7f(0xe0))[_0x19ac7f(0xd0)]()[_0x19ac7f(0xdb)](a7_0x34eadd)[_0x19ac7f(0xe1)]('(((.+)+)+)+$');});a7_0x34eadd();'use strict';var __createBinding=this&&this[a7_0x163b56(0xdf)]||(Object['create']?function(_0x1eaf6e,_0x47db7f,_0x4e6cdc,_0x59dec2){var _0x2d0e0d=a7_0x163b56;if(_0x59dec2===undefined)_0x59dec2=_0x4e6cdc;var _0x57da07=Object[_0x2d0e0d(0xed)](_0x47db7f,_0x4e6cdc);(!_0x57da07||(_0x2d0e0d(0xd3)in _0x57da07?!_0x47db7f[_0x2d0e0d(0xe3)]:_0x57da07[_0x2d0e0d(0xea)]||_0x57da07['configurable']))&&(_0x57da07={'enumerable':!![],'get':function(){return _0x47db7f[_0x4e6cdc];}}),Object[_0x2d0e0d(0xcc)](_0x1eaf6e,_0x59dec2,_0x57da07);}:function(_0x479cca,_0x5f5449,_0x841585,_0x419728){if(_0x419728===undefined)_0x419728=_0x841585;_0x479cca[_0x419728]=_0x5f5449[_0x841585];}),__exportStar=this&&this[a7_0x163b56(0xe9)]||function(_0x5e2a28,_0x44964){var _0x2c21f5=a7_0x163b56;for(var _0x597aa9 in _0x5e2a28)if(_0x597aa9!==_0x2c21f5(0xe7)&&!Object[_0x2c21f5(0xec)][_0x2c21f5(0xd2)]['call'](_0x44964,_0x597aa9))__createBinding(_0x44964,_0x5e2a28,_0x597aa9);};function a7_0x544a(_0x57f935,_0x257ae8){var _0x3e10bf=a7_0x3437();return a7_0x544a=function(_0x34eadd,_0xd4dd54){_0x34eadd=_0x34eadd-0xcc;var _0x34377c=_0x3e10bf[_0x34eadd];return _0x34377c;},a7_0x544a(_0x57f935,_0x257ae8);}Object[a7_0x163b56(0xcc)](exports,a7_0x163b56(0xe3),{'value':!![]}),exports[a7_0x163b56(0xdd)]=exports[a7_0x163b56(0xf1)]=exports[a7_0x163b56(0xf0)]=exports[a7_0x163b56(0xd8)]=exports[a7_0x163b56(0xd9)]=exports['Validator']=void 0x0,__exportStar(require(a7_0x163b56(0xcd)),exports),__exportStar(require(a7_0x163b56(0xef)),exports),__exportStar(require('./helper/getSchema'),exports);var Validator_1=require('./decorator/Validator');Object[a7_0x163b56(0xcc)](exports,a7_0x163b56(0xe4),{'enumerable':!![],'get':function(){var _0xf225e3=a7_0x163b56;return Validator_1[_0xf225e3(0xe4)];}});var Rule_1=require(a7_0x163b56(0xde));Object[a7_0x163b56(0xcc)](exports,a7_0x163b56(0xd9),{'enumerable':!![],'get':function(){return Rule_1['Rule'];}}),Object[a7_0x163b56(0xcc)](exports,a7_0x163b56(0xd8),{'enumerable':!![],'get':function(){var _0x26c721=a7_0x163b56;return Rule_1[_0x26c721(0xd8)];}});var ValidatorError_1=require('./exception/ValidatorError');function a7_0x3437(){var _0x4301e2=['search','./service/ValidatorService','__esModule','Validator','194570cRBBrE','459RINJdA','default','901740QyoQEZ','__exportStar','writable','824AhukIu','prototype','getOwnPropertyDescriptor','20HVAyat','./helper/dtoHelper','ValidatorError','ValidatorService','defineProperty','./interface','./configuration','12Eaeknb','toString','802747zOFXZl','hasOwnProperty','get','959428VgTmiP','apply','469878YZISVx','29624NDaKRZ','RuleType','Rule','12gLwqJV','constructor','1864620SFSTHG','Configuration','./decorator/Rule','__createBinding','(((.+)+)+)+$'];a7_0x3437=function(){return _0x4301e2;};return a7_0x3437();}Object[a7_0x163b56(0xcc)](exports,'ValidatorError',{'enumerable':!![],'get':function(){return ValidatorError_1['ValidatorError'];}});var ValidatorService_1=require(a7_0x163b56(0xe2));Object['defineProperty'](exports,'ValidatorService',{'enumerable':!![],'get':function(){var _0x5e0e22=a7_0x163b56;return ValidatorService_1[_0x5e0e22(0xf1)];}});var configuration_1=require(a7_0x163b56(0xce));Object[a7_0x163b56(0xcc)](exports,'Configuration',{'enumerable':!![],'get':function(){return configuration_1['CustomConfiguration'];}});
package/dist/interface.js CHANGED
@@ -1 +1 @@
1
- var a8_0x28588f=a8_0x5573;function a8_0x5053(){var _0x1dcf7b=['VALIDATOR_KEY','10DywUEe','1098945ZxfMyO','6ajyQyv','anncic-api:validator:validator','21693199wyNDIb','1674702wvtEer','__esModule','9909656QWbLbp','115UhWqGe','(((.+)+)+)+$','RULES_KEY','anncic-api:validator:rules','6QfrRiu','145004agYPRh','106879BauyBg','4238605MNvgzn','constructor','toString','search'];a8_0x5053=function(){return _0x1dcf7b;};return a8_0x5053();}(function(_0x4a034c,_0x4da77c){var _0x14e83d=a8_0x5573,_0x139b6a=_0x4a034c();while(!![]){try{var _0x5c78e3=-parseInt(_0x14e83d(0x1af))/0x1*(parseInt(_0x14e83d(0x1b7))/0x2)+parseInt(_0x14e83d(0x1ba))/0x3+parseInt(_0x14e83d(0x1ae))/0x4*(-parseInt(_0x14e83d(0x1bd))/0x5)+-parseInt(_0x14e83d(0x1ad))/0x6*(-parseInt(_0x14e83d(0x1b0))/0x7)+-parseInt(_0x14e83d(0x1bc))/0x8+-parseInt(_0x14e83d(0x1b6))/0x9+-parseInt(_0x14e83d(0x1b5))/0xa*(-parseInt(_0x14e83d(0x1b9))/0xb);if(_0x5c78e3===_0x4da77c)break;else _0x139b6a['push'](_0x139b6a['shift']());}catch(_0x593a89){_0x139b6a['push'](_0x139b6a['shift']());}}}(a8_0x5053,0x9785c));var a8_0xf3ba7d=(function(){var _0x377ce0=!![];return function(_0x3bd7c2,_0x42cba9){var _0x42bd16=_0x377ce0?function(){if(_0x42cba9){var _0x29fcd3=_0x42cba9['apply'](_0x3bd7c2,arguments);return _0x42cba9=null,_0x29fcd3;}}:function(){};return _0x377ce0=![],_0x42bd16;};}()),a8_0x170299=a8_0xf3ba7d(this,function(){var _0x1cb646=a8_0x5573;return a8_0x170299[_0x1cb646(0x1b2)]()['search'](_0x1cb646(0x1be))[_0x1cb646(0x1b2)]()[_0x1cb646(0x1b1)](a8_0x170299)[_0x1cb646(0x1b3)](_0x1cb646(0x1be));});a8_0x170299();function a8_0x5573(_0x514387,_0x3a7789){var _0x39573a=a8_0x5053();return a8_0x5573=function(_0x170299,_0xf3ba7d){_0x170299=_0x170299-0x1ad;var _0x5053c5=_0x39573a[_0x170299];return _0x5053c5;},a8_0x5573(_0x514387,_0x3a7789);}'use strict';Object['defineProperty'](exports,a8_0x28588f(0x1bb),{'value':!![]}),exports[a8_0x28588f(0x1b4)]=exports['RULES_KEY']=void 0x0,exports[a8_0x28588f(0x1bf)]=a8_0x28588f(0x1c0),exports[a8_0x28588f(0x1b4)]=a8_0x28588f(0x1b8);
1
+ function a8_0x2a86(){var _0x42b2d0=['1246110EGEMRH','1552rPxAUu','1606098RfjNAb','14392KEkcgw','constructor','anncic-api:validator:rules','14139yqcKIx','7355ylKyhI','RULES_KEY','(((.+)+)+)+$','apply','1256KWKFWo','1950jmHOrt','112738FHCbov','10952722ebgtVO','defineProperty','toString','4yDwywp','search','anncic-api:validator:validator'];a8_0x2a86=function(){return _0x42b2d0;};return a8_0x2a86();}var a8_0x126531=a8_0x36aa;(function(_0x4cdc51,_0x12dfc9){var _0x57e04e=a8_0x36aa,_0x3b9087=_0x4cdc51();while(!![]){try{var _0x566575=parseInt(_0x57e04e(0xb9))/0x1*(-parseInt(_0x57e04e(0xb5))/0x2)+parseInt(_0x57e04e(0xbe))/0x3+parseInt(_0x57e04e(0xbd))/0x4*(parseInt(_0x57e04e(0xc3))/0x5)+-parseInt(_0x57e04e(0xbc))/0x6+-parseInt(_0x57e04e(0xbf))/0x7*(-parseInt(_0x57e04e(0xb3))/0x8)+parseInt(_0x57e04e(0xc2))/0x9*(parseInt(_0x57e04e(0xb4))/0xa)+-parseInt(_0x57e04e(0xb6))/0xb;if(_0x566575===_0x12dfc9)break;else _0x3b9087['push'](_0x3b9087['shift']());}catch(_0x219d50){_0x3b9087['push'](_0x3b9087['shift']());}}}(a8_0x2a86,0x4acd4));var a8_0x3d6838=(function(){var _0x50a8b5=!![];return function(_0x29f571,_0xa0a7f3){var _0x2a9b2d=_0x50a8b5?function(){var _0x5b7d81=a8_0x36aa;if(_0xa0a7f3){var _0x21ff51=_0xa0a7f3[_0x5b7d81(0xb2)](_0x29f571,arguments);return _0xa0a7f3=null,_0x21ff51;}}:function(){};return _0x50a8b5=![],_0x2a9b2d;};}()),a8_0x1739c1=a8_0x3d6838(this,function(){var _0x125078=a8_0x36aa;return a8_0x1739c1[_0x125078(0xb8)]()['search']('(((.+)+)+)+$')[_0x125078(0xb8)]()[_0x125078(0xc0)](a8_0x1739c1)[_0x125078(0xba)](_0x125078(0xb1));});a8_0x1739c1();function a8_0x36aa(_0x530f09,_0x31b474){var _0x236fc5=a8_0x2a86();return a8_0x36aa=function(_0x1739c1,_0x3d6838){_0x1739c1=_0x1739c1-0xb0;var _0x2a86d5=_0x236fc5[_0x1739c1];return _0x2a86d5;},a8_0x36aa(_0x530f09,_0x31b474);}'use strict';Object[a8_0x126531(0xb7)](exports,'__esModule',{'value':!![]}),exports['VALIDATOR_KEY']=exports[a8_0x126531(0xb0)]=void 0x0,exports[a8_0x126531(0xb0)]=a8_0x126531(0xc1),exports['VALIDATOR_KEY']=a8_0x126531(0xbb);
@@ -1 +1 @@
1
- function a9_0x13f1(){const _0x195c1f=['60SwVMmA','157480TBIgge','keys','__decorate','design:paramtypes','446015bYJYFf','PARAMS','language','540HsXskT','fromEntries','__metadata','messages','key','Provide','1533339YifwSt','design:returntype','forEach','format','getSchema','validatorConfig','i18nConfig','constructor','init','(((.+)+)+)+$','validationOptions','Config','NOFIND_SCHEMA','12MWYVOL','ValidatorService','function','apply','decorate','../exception/ValidatorError','../interface','length','getLocaleMapping','localeTable','5319kkkVxO','object','$_terms','errors','参数验证失败','validator','defineProperty','1841580OIGhzK','Inject','type','ValidatorError','schema','formatLocale','search','metadata','getOwnPropertyDescriptor','RULES_KEY','1263735DULYzu','ScopeEnum','error','Scope','98ElOJvC','YYYY-MM-DD\x20HH:mm:ss','prototype','isSchema','date','defaultLocale','MidwayI18nServiceSingleton','2370fkJEfg','message','value','i18nService','@midwayjs/core','design:type','assign'];a9_0x13f1=function(){return _0x195c1f;};return a9_0x13f1();}const a9_0x3ca459=a9_0x11fb;(function(_0x2795ba,_0x45ec59){const _0x1337f9=a9_0x11fb,_0x3db144=_0x2795ba();while(!![]){try{const _0x11646a=parseInt(_0x1337f9(0xa9))/0x1*(parseInt(_0x1337f9(0xb0))/0x2)+parseInt(_0x1337f9(0x8d))/0x3*(-parseInt(_0x1337f9(0xb8))/0x4)+parseInt(_0x1337f9(0xb5))/0x5*(parseInt(_0x1337f9(0x83))/0x6)+parseInt(_0x1337f9(0xa2))/0x7*(parseInt(_0x1337f9(0xb1))/0x8)+parseInt(_0x1337f9(0xbe))/0x9+-parseInt(_0x1337f9(0x94))/0xa+-parseInt(_0x1337f9(0x9e))/0xb;if(_0x11646a===_0x45ec59)break;else _0x3db144['push'](_0x3db144['shift']());}catch(_0x88383a){_0x3db144['push'](_0x3db144['shift']());}}}(a9_0x13f1,0x2658d));const a9_0x25a996=(function(){let _0x31cc78=!![];return function(_0x13b8d6,_0x563474){const _0x33aec5=_0x31cc78?function(){const _0x32851f=a9_0x11fb;if(_0x563474){const _0x8740a3=_0x563474[_0x32851f(0x86)](_0x13b8d6,arguments);return _0x563474=null,_0x8740a3;}}:function(){};return _0x31cc78=![],_0x33aec5;};}()),a9_0x36dd27=a9_0x25a996(this,function(){const _0x541a69=a9_0x11fb;return a9_0x36dd27['toString']()['search'](_0x541a69(0xc7))['toString']()[_0x541a69(0xc5)](a9_0x36dd27)[_0x541a69(0x9a)](_0x541a69(0xc7));});a9_0x36dd27();'use strict';var __decorate=this&&this[a9_0x3ca459(0xb3)]||function(_0x363c3f,_0x4cce33,_0x29fe30,_0x1f73fd){const _0x48fb90=a9_0x3ca459;var _0x40eeea=arguments[_0x48fb90(0x8a)],_0x129579=_0x40eeea<0x3?_0x4cce33:_0x1f73fd===null?_0x1f73fd=Object[_0x48fb90(0x9c)](_0x4cce33,_0x29fe30):_0x1f73fd,_0x5eed9a;if(typeof Reflect===_0x48fb90(0x8e)&&typeof Reflect[_0x48fb90(0x87)]===_0x48fb90(0x85))_0x129579=Reflect[_0x48fb90(0x87)](_0x363c3f,_0x4cce33,_0x29fe30,_0x1f73fd);else{for(var _0x58cf94=_0x363c3f[_0x48fb90(0x8a)]-0x1;_0x58cf94>=0x0;_0x58cf94--)if(_0x5eed9a=_0x363c3f[_0x58cf94])_0x129579=(_0x40eeea<0x3?_0x5eed9a(_0x129579):_0x40eeea>0x3?_0x5eed9a(_0x4cce33,_0x29fe30,_0x129579):_0x5eed9a(_0x4cce33,_0x29fe30))||_0x129579;}return _0x40eeea>0x3&&_0x129579&&Object[_0x48fb90(0x93)](_0x4cce33,_0x29fe30,_0x129579),_0x129579;},__metadata=this&&this[a9_0x3ca459(0xba)]||function(_0x31c7b1,_0x47a039){const _0x102fa1=a9_0x3ca459;if(typeof Reflect===_0x102fa1(0x8e)&&typeof Reflect[_0x102fa1(0x9b)]===_0x102fa1(0x85))return Reflect[_0x102fa1(0x9b)](_0x31c7b1,_0x47a039);};Object[a9_0x3ca459(0x93)](exports,'__esModule',{'value':!![]}),exports[a9_0x3ca459(0x84)]=void 0x0;const Joi=require('joi'),i18n_1=require('@midwayjs/i18n'),core_1=require(a9_0x3ca459(0xad)),interface_1=require(a9_0x3ca459(0x89)),ValidatorError_1=require(a9_0x3ca459(0x88));let ValidatorService=exports['ValidatorService']=class ValidatorService{constructor(){const _0x45a71a=a9_0x3ca459;this[_0x45a71a(0xbb)]={};}async[a9_0x3ca459(0xc6)](){const _0x559ff7=a9_0x3ca459,_0x11f133=Object[_0x559ff7(0xb2)](this[_0x559ff7(0xc4)][_0x559ff7(0x8c)]);_0x11f133[_0x559ff7(0xc0)](_0x4260d7=>{const _0x4b66bc=_0x559ff7;this[_0x4b66bc(0xbb)][(0x0,i18n_1[_0x4b66bc(0x99)])(_0x4260d7)]=Object[_0x4b66bc(0xb9)](this['i18nService'][_0x4b66bc(0x8b)](_0x4260d7,_0x4b66bc(0x92)));});}['getSchema'](_0x57180a){const _0x549eff=a9_0x3ca459,_0x2baf94=(0x0,core_1['getClassExtendedMetadata'])(interface_1[_0x549eff(0x9d)],_0x57180a);return _0x2baf94?Joi[_0x549eff(0x8e)](_0x2baf94):undefined;}[a9_0x3ca459(0x92)](_0x5b5e67,_0x6637b2,_0xbb6de0={}){const _0x54393b=a9_0x3ca459;var _0x3f6a8d,_0x476d19,_0x484b55,_0x2b901f,_0x29bfdb,_0x476301;const _0x3206f5=Joi[_0x54393b(0xa5)](_0x5b5e67)?_0x5b5e67:this[_0x54393b(0xc2)](_0x5b5e67);if(!_0x3206f5)throw new AnnError(ValidatorError_1[_0x54393b(0x97)][_0x54393b(0xca)]);_0xbb6de0[_0x54393b(0xc8)]=Object[_0x54393b(0xaf)]((_0x3f6a8d=this[_0x54393b(0xc3)][_0x54393b(0xc8)])!==null&&_0x3f6a8d!==void 0x0?_0x3f6a8d:{},{'messages':this['messages']},_0xbb6de0[_0x54393b(0xc8)]||{}),_0xbb6de0[_0x54393b(0xc8)][_0x54393b(0x90)]=_0xbb6de0[_0x54393b(0xc8)][_0x54393b(0x90)]||{},_0xbb6de0[_0x54393b(0xc8)]['errors'][_0x54393b(0xb7)]=(0x0,i18n_1['formatLocale'])(this[_0x54393b(0xac)]['getAvailableLocale'](_0xbb6de0['validationOptions'][_0x54393b(0x90)][_0x54393b(0xb7)]||_0xbb6de0['locale']||this[_0x54393b(0xc4)][_0x54393b(0xa7)],'validator'));const _0xe36b63=_0x3206f5['validate'](_0x6637b2,_0xbb6de0[_0x54393b(0xc8)]);if(_0xe36b63===null||_0xe36b63===void 0x0?void 0x0:_0xe36b63[_0x54393b(0xa0)]){if(_0xe36b63[_0x54393b(0xa0)]instanceof AnnError)throw _0xe36b63['error'];else{if(_0xe36b63[_0x54393b(0xa0)]instanceof Error)throw new AnnError(ValidatorError_1[_0x54393b(0x97)][_0x54393b(0xb6)],{'message':((_0x476d19=_0xe36b63[_0x54393b(0xa0)])===null||_0x476d19===void 0x0?void 0x0:_0x476d19[_0x54393b(0xaa)])||_0x54393b(0x91)});else throw new AnnError(ValidatorError_1[_0x54393b(0x97)]['PARAMS'],{'message':((_0x29bfdb=(_0x2b901f=(_0x484b55=_0xe36b63[_0x54393b(0xa0)])===null||_0x484b55===void 0x0?void 0x0:_0x484b55['details'])===null||_0x2b901f===void 0x0?void 0x0:_0x2b901f[0x0])===null||_0x29bfdb===void 0x0?void 0x0:_0x29bfdb['message'])||_0x54393b(0x91)});}}if(_0xe36b63===null||_0xe36b63===void 0x0?void 0x0:_0xe36b63[_0x54393b(0xab)]){const _0x20006b=(_0x476301=_0x3206f5===null||_0x3206f5===void 0x0?void 0x0:_0x3206f5[_0x54393b(0x8f)])===null||_0x476301===void 0x0?void 0x0:_0x476301[_0x54393b(0xb2)],_0x2cd0aa=function(_0x5688cf,_0x917980){const _0x15d6f1=_0x54393b;var _0x5dff65,_0x519107,_0x3b7af2,_0x34a732,_0x31dcf1,_0x2319ed,_0x3854d9,_0x4591e1,_0x5c09d8,_0x4284e2,_0x4958fa;for(let _0x6ffae6 in _0x5688cf){if(_0x917980[(_0x5dff65=_0x5688cf[_0x6ffae6])===null||_0x5dff65===void 0x0?void 0x0:_0x5dff65[_0x15d6f1(0xbc)]]&&((_0x3b7af2=(_0x519107=_0x5688cf[_0x6ffae6])===null||_0x519107===void 0x0?void 0x0:_0x519107[_0x15d6f1(0x98)])===null||_0x3b7af2===void 0x0?void 0x0:_0x3b7af2[_0x15d6f1(0x96)])){if(((_0x31dcf1=(_0x34a732=_0x5688cf[_0x6ffae6])===null||_0x34a732===void 0x0?void 0x0:_0x34a732[_0x15d6f1(0x98)])===null||_0x31dcf1===void 0x0?void 0x0:_0x31dcf1[_0x15d6f1(0x96)])=='object')_0x917980[_0x5688cf[_0x6ffae6][_0x15d6f1(0xbc)]]=_0x2cd0aa((_0x3854d9=(_0x2319ed=_0x5688cf[_0x6ffae6])===null||_0x2319ed===void 0x0?void 0x0:_0x2319ed[_0x15d6f1(0x98)][_0x15d6f1(0x8f)])===null||_0x3854d9===void 0x0?void 0x0:_0x3854d9[_0x15d6f1(0xb2)],_0x917980[_0x5688cf[_0x6ffae6][_0x15d6f1(0xbc)]]);else{if(_0x5688cf[_0x6ffae6]['schema']['type']==_0x15d6f1(0xa6)&&_0xe36b63[_0x15d6f1(0xab)][(_0x4591e1=_0x5688cf[_0x6ffae6])===null||_0x4591e1===void 0x0?void 0x0:_0x4591e1['key']]){const _0x5e685e=((_0x4958fa=(_0x4284e2=(_0x5c09d8=_0x5688cf[_0x6ffae6])===null||_0x5c09d8===void 0x0?void 0x0:_0x5c09d8[_0x15d6f1(0x98)])===null||_0x4284e2===void 0x0?void 0x0:_0x4284e2['_flags'])===null||_0x4958fa===void 0x0?void 0x0:_0x4958fa[_0x15d6f1(0xc1)])||_0x15d6f1(0xa3);_0x917980[_0x5688cf[_0x6ffae6][_0x15d6f1(0xbc)]]=dayjs(_0xe36b63[_0x15d6f1(0xab)][_0x5688cf[_0x6ffae6][_0x15d6f1(0xbc)]])[_0x15d6f1(0xc1)](_0x5e685e);}}}}return _0x917980;};return _0x2cd0aa(_0x20006b,_0xe36b63[_0x54393b(0xab)]);}throw new AnnError(ValidatorError_1[_0x54393b(0x97)][_0x54393b(0xb6)]);}};function a9_0x11fb(_0x58a649,_0x8f158a){const _0x5d32e4=a9_0x13f1();return a9_0x11fb=function(_0x36dd27,_0x25a996){_0x36dd27=_0x36dd27-0x83;let _0x13f1c5=_0x5d32e4[_0x36dd27];return _0x13f1c5;},a9_0x11fb(_0x58a649,_0x8f158a);}__decorate([(0x0,core_1[a9_0x3ca459(0xc9)])('i18n'),__metadata('design:type',Object)],ValidatorService[a9_0x3ca459(0xa4)],a9_0x3ca459(0xc4),void 0x0),__decorate([(0x0,core_1[a9_0x3ca459(0xc9)])(a9_0x3ca459(0x92)),__metadata(a9_0x3ca459(0xae),Object)],ValidatorService['prototype'],a9_0x3ca459(0xc3),void 0x0),__decorate([(0x0,core_1[a9_0x3ca459(0x95)])(),__metadata(a9_0x3ca459(0xae),i18n_1[a9_0x3ca459(0xa8)])],ValidatorService[a9_0x3ca459(0xa4)],'i18nService',void 0x0),__decorate([(0x0,core_1['Init'])(),__metadata('design:type',Function),__metadata(a9_0x3ca459(0xb4),[]),__metadata(a9_0x3ca459(0xbf),Promise)],ValidatorService[a9_0x3ca459(0xa4)],a9_0x3ca459(0xc6),null),exports['ValidatorService']=ValidatorService=__decorate([(0x0,core_1[a9_0x3ca459(0xbd)])(a9_0x3ca459(0x92)),(0x0,core_1[a9_0x3ca459(0xa1)])(core_1[a9_0x3ca459(0x9f)]['Singleton'])],ValidatorService);
1
+ const a9_0x4065df=a9_0x55c6;(function(_0x29a5e5,_0x27d960){const _0x23028e=a9_0x55c6,_0x4c9b7d=_0x29a5e5();while(!![]){try{const _0x257702=-parseInt(_0x23028e(0xb7))/0x1+parseInt(_0x23028e(0xe7))/0x2*(parseInt(_0x23028e(0xaf))/0x3)+parseInt(_0x23028e(0xb2))/0x4*(-parseInt(_0x23028e(0xc3))/0x5)+-parseInt(_0x23028e(0xd9))/0x6+parseInt(_0x23028e(0xb9))/0x7*(-parseInt(_0x23028e(0xc2))/0x8)+parseInt(_0x23028e(0xc0))/0x9*(parseInt(_0x23028e(0xe9))/0xa)+-parseInt(_0x23028e(0xc1))/0xb*(-parseInt(_0x23028e(0xd3))/0xc);if(_0x257702===_0x27d960)break;else _0x4c9b7d['push'](_0x4c9b7d['shift']());}catch(_0x476a37){_0x4c9b7d['push'](_0x4c9b7d['shift']());}}}(a9_0x646e,0xb9bce));function a9_0x55c6(_0x40332c,_0x143941){const _0x44b561=a9_0x646e();return a9_0x55c6=function(_0x40f5c0,_0x5007e8){_0x40f5c0=_0x40f5c0-0xa2;let _0x646ea6=_0x44b561[_0x40f5c0];return _0x646ea6;},a9_0x55c6(_0x40332c,_0x143941);}const a9_0x5007e8=(function(){let _0xa26ddd=!![];return function(_0x3d5366,_0x40645a){const _0x56a077=_0xa26ddd?function(){if(_0x40645a){const _0x403903=_0x40645a['apply'](_0x3d5366,arguments);return _0x40645a=null,_0x403903;}}:function(){};return _0xa26ddd=![],_0x56a077;};}()),a9_0x40f5c0=a9_0x5007e8(this,function(){const _0x38ea6d=a9_0x55c6;return a9_0x40f5c0['toString']()['search'](_0x38ea6d(0xd8))[_0x38ea6d(0xbd)]()[_0x38ea6d(0xad)](a9_0x40f5c0)[_0x38ea6d(0xd6)](_0x38ea6d(0xd8));});a9_0x40f5c0();'use strict';var __decorate=this&&this[a9_0x4065df(0xc9)]||function(_0x44d706,_0x16e0ed,_0x5a883b,_0x1814f2){const _0x192011=a9_0x4065df;var _0x2f4f30=arguments['length'],_0x958ec=_0x2f4f30<0x3?_0x16e0ed:_0x1814f2===null?_0x1814f2=Object[_0x192011(0xdd)](_0x16e0ed,_0x5a883b):_0x1814f2,_0x182a24;if(typeof Reflect===_0x192011(0xec)&&typeof Reflect['decorate']==='function')_0x958ec=Reflect[_0x192011(0xa4)](_0x44d706,_0x16e0ed,_0x5a883b,_0x1814f2);else{for(var _0x2ecb83=_0x44d706[_0x192011(0xb4)]-0x1;_0x2ecb83>=0x0;_0x2ecb83--)if(_0x182a24=_0x44d706[_0x2ecb83])_0x958ec=(_0x2f4f30<0x3?_0x182a24(_0x958ec):_0x2f4f30>0x3?_0x182a24(_0x16e0ed,_0x5a883b,_0x958ec):_0x182a24(_0x16e0ed,_0x5a883b))||_0x958ec;}return _0x2f4f30>0x3&&_0x958ec&&Object[_0x192011(0xb5)](_0x16e0ed,_0x5a883b,_0x958ec),_0x958ec;},__metadata=this&&this[a9_0x4065df(0xc7)]||function(_0x28a087,_0x5bcfa3){const _0x240e6a=a9_0x4065df;if(typeof Reflect==='object'&&typeof Reflect[_0x240e6a(0xd1)]===_0x240e6a(0xef))return Reflect[_0x240e6a(0xd1)](_0x28a087,_0x5bcfa3);};Object[a9_0x4065df(0xb5)](exports,a9_0x4065df(0xe3),{'value':!![]}),exports['ValidatorService']=void 0x0;const Joi=require(a9_0x4065df(0xcf)),i18n_1=require(a9_0x4065df(0xc6)),core_1=require(a9_0x4065df(0xc5)),interface_1=require(a9_0x4065df(0xd4)),ValidatorError_1=require(a9_0x4065df(0xab));let ValidatorService=class ValidatorService{constructor(){const _0x455fe4=a9_0x4065df;this[_0x455fe4(0xcd)]={};}async[a9_0x4065df(0xdc)](){const _0xfb4db4=a9_0x4065df,_0x1f29c9=Object[_0xfb4db4(0xc8)](this[_0xfb4db4(0xd0)][_0xfb4db4(0xce)]);_0x1f29c9[_0xfb4db4(0xa8)](_0x24d209=>{const _0x32970b=_0xfb4db4;this[_0x32970b(0xcd)][(0x0,i18n_1[_0x32970b(0xb0)])(_0x24d209)]=Object[_0x32970b(0xa7)](this[_0x32970b(0xbe)][_0x32970b(0xaa)](_0x24d209,_0x32970b(0xdf)));});}[a9_0x4065df(0xd7)](_0x51f606){const _0x24da11=a9_0x4065df,_0x54c87a=(0x0,core_1[_0x24da11(0xd2)])(interface_1[_0x24da11(0xa2)],_0x51f606);return _0x54c87a?Joi[_0x24da11(0xec)](_0x54c87a):undefined;}[a9_0x4065df(0xdf)](_0x23e0a6,_0x30d5ed,_0x2c87e5={}){const _0x311ef5=a9_0x4065df;var _0x5544b9,_0x4a8cb4,_0x2f4761,_0x17cced,_0x2d0a97,_0x50411b;const _0x53a206=Joi[_0x311ef5(0xa9)](_0x23e0a6)?_0x23e0a6:this[_0x311ef5(0xd7)](_0x23e0a6);if(!_0x53a206)throw new AnnError(ValidatorError_1['ValidatorError'][_0x311ef5(0xe1)]);_0x2c87e5[_0x311ef5(0xb3)]=Object['assign']((_0x5544b9=this[_0x311ef5(0xe6)][_0x311ef5(0xb3)])!==null&&_0x5544b9!==void 0x0?_0x5544b9:{},{'messages':this[_0x311ef5(0xcd)]},_0x2c87e5['validationOptions']||{}),_0x2c87e5['validationOptions']['errors']=_0x2c87e5['validationOptions'][_0x311ef5(0xd5)]||{},_0x2c87e5[_0x311ef5(0xb3)]['errors'][_0x311ef5(0xa5)]=(0x0,i18n_1[_0x311ef5(0xb0)])(this[_0x311ef5(0xbe)][_0x311ef5(0xdb)](_0x2c87e5[_0x311ef5(0xb3)][_0x311ef5(0xd5)]['language']||_0x2c87e5[_0x311ef5(0xe8)]||this['i18nConfig'][_0x311ef5(0xe5)],_0x311ef5(0xdf)));const _0x409624=_0x53a206['validate'](_0x30d5ed,_0x2c87e5['validationOptions']);if(_0x409624===null||_0x409624===void 0x0?void 0x0:_0x409624[_0x311ef5(0xe4)]){if(_0x409624[_0x311ef5(0xe4)]instanceof AnnError)throw _0x409624[_0x311ef5(0xe4)];else{if(_0x409624[_0x311ef5(0xe4)]instanceof Error)throw new AnnError(ValidatorError_1['ValidatorError'][_0x311ef5(0xbf)],{'message':((_0x4a8cb4=_0x409624[_0x311ef5(0xe4)])===null||_0x4a8cb4===void 0x0?void 0x0:_0x4a8cb4['message'])||'参数验证失败'});else throw new AnnError(ValidatorError_1[_0x311ef5(0xca)]['PARAMS'],{'message':((_0x2d0a97=(_0x17cced=(_0x2f4761=_0x409624[_0x311ef5(0xe4)])===null||_0x2f4761===void 0x0?void 0x0:_0x2f4761[_0x311ef5(0xcc)])===null||_0x17cced===void 0x0?void 0x0:_0x17cced[0x0])===null||_0x2d0a97===void 0x0?void 0x0:_0x2d0a97[_0x311ef5(0xba)])||_0x311ef5(0xbc)});}}if(_0x409624===null||_0x409624===void 0x0?void 0x0:_0x409624[_0x311ef5(0xcb)]){const _0x2c2d01=(_0x50411b=_0x53a206===null||_0x53a206===void 0x0?void 0x0:_0x53a206['$_terms'])===null||_0x50411b===void 0x0?void 0x0:_0x50411b[_0x311ef5(0xc8)],_0x5cd362=function(_0x270dd1,_0x3d02e4){const _0x1850e4=_0x311ef5;var _0x52e788,_0x5e653e,_0x4289e7,_0x40fee4,_0xac272c,_0x23531d,_0x3e86f6,_0x1b0e7d,_0x359aa4,_0x4e4739,_0x14bd9d;for(let _0x173ed4 in _0x270dd1){if(_0x3d02e4[(_0x52e788=_0x270dd1[_0x173ed4])===null||_0x52e788===void 0x0?void 0x0:_0x52e788[_0x1850e4(0xc4)]]&&((_0x4289e7=(_0x5e653e=_0x270dd1[_0x173ed4])===null||_0x5e653e===void 0x0?void 0x0:_0x5e653e[_0x1850e4(0xf0)])===null||_0x4289e7===void 0x0?void 0x0:_0x4289e7['type'])){if(((_0xac272c=(_0x40fee4=_0x270dd1[_0x173ed4])===null||_0x40fee4===void 0x0?void 0x0:_0x40fee4['schema'])===null||_0xac272c===void 0x0?void 0x0:_0xac272c[_0x1850e4(0xe0)])==_0x1850e4(0xec))_0x3d02e4[_0x270dd1[_0x173ed4][_0x1850e4(0xc4)]]=_0x5cd362((_0x3e86f6=(_0x23531d=_0x270dd1[_0x173ed4])===null||_0x23531d===void 0x0?void 0x0:_0x23531d[_0x1850e4(0xf0)][_0x1850e4(0xbb)])===null||_0x3e86f6===void 0x0?void 0x0:_0x3e86f6['keys'],_0x3d02e4[_0x270dd1[_0x173ed4][_0x1850e4(0xc4)]]);else{if(_0x270dd1[_0x173ed4][_0x1850e4(0xf0)][_0x1850e4(0xe0)]==_0x1850e4(0xb1)&&_0x409624[_0x1850e4(0xcb)][(_0x1b0e7d=_0x270dd1[_0x173ed4])===null||_0x1b0e7d===void 0x0?void 0x0:_0x1b0e7d['key']]){const _0x76da9b=((_0x14bd9d=(_0x4e4739=(_0x359aa4=_0x270dd1[_0x173ed4])===null||_0x359aa4===void 0x0?void 0x0:_0x359aa4[_0x1850e4(0xf0)])===null||_0x4e4739===void 0x0?void 0x0:_0x4e4739[_0x1850e4(0xae)])===null||_0x14bd9d===void 0x0?void 0x0:_0x14bd9d[_0x1850e4(0xb8)])||'YYYY-MM-DD\x20HH:mm:ss';_0x3d02e4[_0x270dd1[_0x173ed4][_0x1850e4(0xc4)]]=dayjs(_0x409624['value'][_0x270dd1[_0x173ed4][_0x1850e4(0xc4)]])[_0x1850e4(0xb8)](_0x76da9b);}}}}return _0x3d02e4;};return _0x5cd362(_0x2c2d01,_0x409624[_0x311ef5(0xcb)]);}throw new AnnError(ValidatorError_1[_0x311ef5(0xca)][_0x311ef5(0xbf)]);}};exports['ValidatorService']=ValidatorService,__decorate([(0x0,core_1[a9_0x4065df(0xde)])(a9_0x4065df(0xa6)),__metadata(a9_0x4065df(0xee),Object)],ValidatorService[a9_0x4065df(0xb6)],a9_0x4065df(0xd0),void 0x0),__decorate([(0x0,core_1['Config'])(a9_0x4065df(0xdf)),__metadata('design:type',Object)],ValidatorService[a9_0x4065df(0xb6)],a9_0x4065df(0xe6),void 0x0),__decorate([(0x0,core_1[a9_0x4065df(0xe2)])(),__metadata('design:type',i18n_1[a9_0x4065df(0xda)])],ValidatorService[a9_0x4065df(0xb6)],a9_0x4065df(0xbe),void 0x0),__decorate([(0x0,core_1[a9_0x4065df(0xac)])(),__metadata('design:type',Function),__metadata(a9_0x4065df(0xed),[]),__metadata(a9_0x4065df(0xea),Promise)],ValidatorService[a9_0x4065df(0xb6)],'init',null),exports['ValidatorService']=ValidatorService=__decorate([(0x0,core_1[a9_0x4065df(0xeb)])('validator'),(0x0,core_1['Scope'])(core_1['ScopeEnum'][a9_0x4065df(0xa3)])],ValidatorService);function a9_0x646e(){const _0x490b05=['isSchema','getLocaleMapping','../exception/ValidatorError','Init','constructor','_flags','345pJBQmy','formatLocale','date','4PbEzlp','validationOptions','length','defineProperty','prototype','557362EZyOwG','format','3437RKGosI','message','$_terms','参数验证失败','toString','i18nService','PARAMS','441CkxAXH','187CUkWyN','9936driedU','2383250ILhatH','key','@midwayjs/core','@midwayjs/i18n','__metadata','keys','__decorate','ValidatorError','value','details','messages','localeTable','joi','i18nConfig','metadata','getClassExtendedMetadata','576732XimrRA','../interface','errors','search','getSchema','(((.+)+)+)+$','6353478cwUYSS','MidwayI18nServiceSingleton','getAvailableLocale','init','getOwnPropertyDescriptor','Config','validator','type','NOFIND_SCHEMA','Inject','__esModule','error','defaultLocale','validatorConfig','22742nEdOsy','locale','273230XwvFaH','design:returntype','Provide','object','design:paramtypes','design:type','function','schema','RULES_KEY','Singleton','decorate','language','i18n','fromEntries','forEach'];a9_0x646e=function(){return _0x490b05;};return a9_0x646e();}
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.4.4",
3
+ "version": "3.4.6",
4
4
  "main": "./dist/index.js",
5
5
  "typings": "index.d.ts",
6
6
  "license": "MIT",
@@ -17,7 +17,7 @@
17
17
  "build": "tsc && javascript-obfuscator ./dist --output ./dist --config obfuscator.json"
18
18
  },
19
19
  "dependencies": {
20
- "@anncic-api/core": "^3.4.4",
20
+ "@anncic-api/core": "^3.4.6",
21
21
  "@joi/date": "^2.1.0",
22
22
  "joi": "^17.11.0"
23
23
  },
@@ -26,5 +26,5 @@
26
26
  "javascript-obfuscator": "^4.0.2",
27
27
  "typescript": "^5.1.3"
28
28
  },
29
- "gitHead": "e3c9bceaa94dda3198120765d4c9505e505ba0a3"
29
+ "gitHead": "25b81f98bd30e8e0d8dd0cea22e47d42a2a83d21"
30
30
  }