mirror of
https://github.com/xiaoyiweb/YiAi.git
synced 2025-09-27 05:36:40 +08:00
1 line
8.1 KiB
JavaScript
1 line
8.1 KiB
JavaScript
'use strict';const _0x55aff4=_0x478d;function _0x478d(_0x2e252a,_0x481f01){const _0x4327dd=_0x4327();return _0x478d=function(_0x478d45,_0x120cda){_0x478d45=_0x478d45-0x1d6;let _0x29ee8a=_0x4327dd[_0x478d45];return _0x29ee8a;},_0x478d(_0x2e252a,_0x481f01);}(function(_0x1d59c2,_0x23b249){const _0x2e4de3=_0x478d,_0x13780b=_0x1d59c2();while(!![]){try{const _0x125feb=-parseInt(_0x2e4de3(0x1ef))/0x1*(parseInt(_0x2e4de3(0x1e5))/0x2)+parseInt(_0x2e4de3(0x1d7))/0x3*(-parseInt(_0x2e4de3(0x1fd))/0x4)+-parseInt(_0x2e4de3(0x1f4))/0x5*(parseInt(_0x2e4de3(0x1e3))/0x6)+-parseInt(_0x2e4de3(0x20d))/0x7+-parseInt(_0x2e4de3(0x201))/0x8*(parseInt(_0x2e4de3(0x1e4))/0x9)+-parseInt(_0x2e4de3(0x1dd))/0xa+parseInt(_0x2e4de3(0x204))/0xb;if(_0x125feb===_0x23b249)break;else _0x13780b['push'](_0x13780b['shift']());}catch(_0x3f82bc){_0x13780b['push'](_0x13780b['shift']());}}}(_0x4327,0xb34d0));function _0x4327(){const _0x26c25f=['@nestjs/common','16DMeQGt','ModelsController','ModelsService','管理端查询模型列表','Post','1241235ECyrLm','./dto/queryModelType.dto','getBaseConfig','design:type','delModel','queryModelType','Query','../../common/auth/adminAuth.guard','./dto/setModel.dto','2925112ftRICQ','ApiOperation','baseConfig','function','10024FFRJTM','客户端查询当前已经配置模型的基础配置','__param','46626008ijCbYA','__decorate','查询模型类型','list','decorate','创建修改模型类型','SetModelTypeDto','./models.service','setModel','8342390pXWxgw','design:paramtypes','prototype','defineProperty','__metadata','modelsService','metadata','object','SetModelDto','./dto/queryModel.dto','3shtzOC','length','ApiBearerAuth','Body','delModelType','UseGuards','3751180YbrEjo','../../common/auth/superAuth.guard','Get','SuperAuthGuard','getOwnPropertyDescriptor','__esModule','18XUChRi','2097doJJmg','21182OetozF','modelsList','queryModels','AdminAuthGuard','setModelType','QueryModelDto','客户端查询当前所有可以使用的模型','query','design:returntype'];_0x4327=function(){return _0x26c25f;};return _0x4327();}var __decorate=this&&this[_0x55aff4(0x205)]||function(_0x22ca1c,_0x7e6960,_0x4d0b35,_0x2a6e64){const _0x3153fb=_0x55aff4;var _0x2d86f2=arguments[_0x3153fb(0x1d8)],_0x551b28=_0x2d86f2<0x3?_0x7e6960:_0x2a6e64===null?_0x2a6e64=Object[_0x3153fb(0x1e1)](_0x7e6960,_0x4d0b35):_0x2a6e64,_0x22600c;if(typeof Reflect==='object'&&typeof Reflect['decorate']===_0x3153fb(0x200))_0x551b28=Reflect[_0x3153fb(0x208)](_0x22ca1c,_0x7e6960,_0x4d0b35,_0x2a6e64);else{for(var _0x1448bb=_0x22ca1c[_0x3153fb(0x1d8)]-0x1;_0x1448bb>=0x0;_0x1448bb--)if(_0x22600c=_0x22ca1c[_0x1448bb])_0x551b28=(_0x2d86f2<0x3?_0x22600c(_0x551b28):_0x2d86f2>0x3?_0x22600c(_0x7e6960,_0x4d0b35,_0x551b28):_0x22600c(_0x7e6960,_0x4d0b35))||_0x551b28;}return _0x2d86f2>0x3&&_0x551b28&&Object[_0x3153fb(0x210)](_0x7e6960,_0x4d0b35,_0x551b28),_0x551b28;},__metadata=this&&this[_0x55aff4(0x211)]||function(_0x3ff8d7,_0x1c587e){const _0x55c074=_0x55aff4;if(typeof Reflect===_0x55c074(0x214)&&typeof Reflect[_0x55c074(0x213)]===_0x55c074(0x200))return Reflect['metadata'](_0x3ff8d7,_0x1c587e);},__param=this&&this[_0x55aff4(0x203)]||function(_0x6cf5a9,_0x375e96){return function(_0x555e48,_0x581c3a){_0x375e96(_0x555e48,_0x581c3a,_0x6cf5a9);};};Object[_0x55aff4(0x210)](exports,_0x55aff4(0x1e2),{'value':!![]}),exports[_0x55aff4(0x1f0)]=void 0x0;const swagger_1=require('@nestjs/swagger'),models_service_1=require(_0x55aff4(0x20b)),common_1=require(_0x55aff4(0x1ee)),superAuth_guard_1=require(_0x55aff4(0x1de)),setModel_dto_1=require(_0x55aff4(0x1fc)),queryModel_dto_1=require(_0x55aff4(0x1d6)),adminAuth_guard_1=require(_0x55aff4(0x1fb)),setModelType_dto_1=require('./dto/setModelType.dto'),queryModelType_dto_1=require(_0x55aff4(0x1f5));let ModelsController=class ModelsController{constructor(_0x1c4955){const _0x1a1f2b=_0x55aff4;this[_0x1a1f2b(0x212)]=_0x1c4955;}['setModel'](_0x457064){const _0x4bf6e6=_0x55aff4;return this[_0x4bf6e6(0x212)][_0x4bf6e6(0x20c)](_0x457064);}[_0x55aff4(0x1f8)](_0x1571cf){const _0x27c3af=_0x55aff4;return this[_0x27c3af(0x212)][_0x27c3af(0x1f8)](_0x1571cf);}[_0x55aff4(0x1e7)](_0x1a5bc6,_0x194401){const _0x45b5f0=_0x55aff4;return this[_0x45b5f0(0x212)]['queryModels'](_0x1a5bc6,_0x194401);}[_0x55aff4(0x1e6)](){const _0x24eb31=_0x55aff4;return this[_0x24eb31(0x212)]['modelsList']();}['baseConfig'](){const _0x24294f=_0x55aff4;return this[_0x24294f(0x212)][_0x24294f(0x1f6)]();}[_0x55aff4(0x1f9)](_0x16c7e2){const _0x32c4de=_0x55aff4;return this[_0x32c4de(0x212)][_0x32c4de(0x1f9)](_0x16c7e2);}['setModelType'](_0x1515d2){const _0x208597=_0x55aff4;return this[_0x208597(0x212)]['setModelType'](_0x1515d2);}[_0x55aff4(0x1db)](_0x2b70d7){const _0x48278a=_0x55aff4;return this['modelsService'][_0x48278a(0x1db)](_0x2b70d7);}};__decorate([(0x0,common_1[_0x55aff4(0x1f3)])(_0x55aff4(0x20c)),(0x0,swagger_1[_0x55aff4(0x1fe)])({'summary':'设置模型'}),(0x0,common_1['UseGuards'])(superAuth_guard_1[_0x55aff4(0x1e0)]),(0x0,swagger_1[_0x55aff4(0x1d9)])(),__param(0x0,(0x0,common_1[_0x55aff4(0x1da)])()),__metadata('design:type',Function),__metadata(_0x55aff4(0x20e),[setModel_dto_1[_0x55aff4(0x215)]]),__metadata(_0x55aff4(0x1ed),void 0x0)],ModelsController[_0x55aff4(0x20f)],_0x55aff4(0x20c),null),__decorate([(0x0,common_1[_0x55aff4(0x1f3)])(_0x55aff4(0x1f8)),(0x0,swagger_1[_0x55aff4(0x1fe)])({'summary':'删除模型'}),(0x0,common_1[_0x55aff4(0x1dc)])(superAuth_guard_1[_0x55aff4(0x1e0)]),(0x0,swagger_1[_0x55aff4(0x1d9)])(),__param(0x0,(0x0,common_1[_0x55aff4(0x1da)])()),__metadata(_0x55aff4(0x1f7),Function),__metadata(_0x55aff4(0x20e),[Object]),__metadata(_0x55aff4(0x1ed),void 0x0)],ModelsController['prototype'],'delModel',null),__decorate([(0x0,common_1[_0x55aff4(0x1df)])(_0x55aff4(0x1ec)),(0x0,swagger_1[_0x55aff4(0x1fe)])({'summary':_0x55aff4(0x1f2)}),(0x0,common_1[_0x55aff4(0x1dc)])(adminAuth_guard_1[_0x55aff4(0x1e8)]),(0x0,swagger_1[_0x55aff4(0x1d9)])(),__param(0x0,(0x0,common_1['Req'])()),__param(0x1,(0x0,common_1[_0x55aff4(0x1fa)])()),__metadata(_0x55aff4(0x1f7),Function),__metadata(_0x55aff4(0x20e),[Request,queryModel_dto_1[_0x55aff4(0x1ea)]]),__metadata(_0x55aff4(0x1ed),void 0x0)],ModelsController[_0x55aff4(0x20f)],'queryModels',null),__decorate([(0x0,common_1[_0x55aff4(0x1df)])(_0x55aff4(0x207)),(0x0,swagger_1['ApiOperation'])({'summary':_0x55aff4(0x1eb)}),__metadata(_0x55aff4(0x1f7),Function),__metadata(_0x55aff4(0x20e),[]),__metadata('design:returntype',void 0x0)],ModelsController[_0x55aff4(0x20f)],_0x55aff4(0x1e6),null),__decorate([(0x0,common_1[_0x55aff4(0x1df)])(_0x55aff4(0x1ff)),(0x0,swagger_1[_0x55aff4(0x1fe)])({'summary':_0x55aff4(0x202)}),__metadata('design:type',Function),__metadata(_0x55aff4(0x20e),[]),__metadata(_0x55aff4(0x1ed),void 0x0)],ModelsController['prototype'],_0x55aff4(0x1ff),null),__decorate([(0x0,common_1[_0x55aff4(0x1df)])(_0x55aff4(0x1f9)),(0x0,swagger_1[_0x55aff4(0x1fe)])({'summary':_0x55aff4(0x206)}),__param(0x0,(0x0,common_1['Query'])()),__metadata(_0x55aff4(0x1f7),Function),__metadata(_0x55aff4(0x20e),[queryModelType_dto_1['QueryModelTypeDto']]),__metadata('design:returntype',void 0x0)],ModelsController[_0x55aff4(0x20f)],_0x55aff4(0x1f9),null),__decorate([(0x0,common_1[_0x55aff4(0x1f3)])(_0x55aff4(0x1e9)),(0x0,swagger_1[_0x55aff4(0x1fe)])({'summary':_0x55aff4(0x209)}),(0x0,common_1['UseGuards'])(superAuth_guard_1['SuperAuthGuard']),(0x0,swagger_1['ApiBearerAuth'])(),__param(0x0,(0x0,common_1[_0x55aff4(0x1da)])()),__metadata('design:type',Function),__metadata(_0x55aff4(0x20e),[setModelType_dto_1[_0x55aff4(0x20a)]]),__metadata('design:returntype',void 0x0)],ModelsController[_0x55aff4(0x20f)],_0x55aff4(0x1e9),null),__decorate([(0x0,common_1['Post'])(_0x55aff4(0x1db)),(0x0,swagger_1[_0x55aff4(0x1fe)])({'summary':'删除模型类型'}),(0x0,common_1[_0x55aff4(0x1dc)])(superAuth_guard_1[_0x55aff4(0x1e0)]),(0x0,swagger_1['ApiBearerAuth'])(),__param(0x0,(0x0,common_1[_0x55aff4(0x1da)])()),__metadata(_0x55aff4(0x1f7),Function),__metadata(_0x55aff4(0x20e),[Object]),__metadata(_0x55aff4(0x1ed),void 0x0)],ModelsController[_0x55aff4(0x20f)],'delModelType',null),ModelsController=__decorate([(0x0,common_1['Controller'])('models'),__metadata('design:paramtypes',[models_service_1[_0x55aff4(0x1f1)]])],ModelsController),exports[_0x55aff4(0x1f0)]=ModelsController; |