YiAi/YiAiQuickDeploy/dist/modules/app/app.controller.js
2024-02-05 23:18:50 +08:00

1 line
14 KiB
JavaScript

'use strict';const _0x2d6f5b=_0x354a;function _0x37d7(){const _0x3e2264=['DeleteCatsDto','createApp','App','Query','collect','__metadata','appService','customApp','添加自定义App','UseGuards','delAppCats','收藏/取消收藏App','./dto/queryApp.dto','./dto/queryCats.dto','__param','delMineApp','添加App分类','createAppCats','./app.service','updateAppCats','589233WKkjNZ','delAppCat','3354128LhmomJ','@nestjs/swagger','function','auditPass','4wDKZLT','ApiTags','删除个人App','ApiOperation','appList','auditFail','UpdateCatsDto','10KcAZGV','@nestjs/common','appCatsList','prototype','CollectAppDto','701267CwCXnB','CustomAppDto','queryOneCats','updateApp','QuerAppDto','AdminAuthGuard','获取App分类列表','Post','object','Get','./dto/createCats.dto','SuperAuthGuard','CreateAppDto','queryOneCat','design:paramtypes','28151sJbgdW','createAppCat','AppController','delApp','./dto/createApp.dto','4906zZTWFF','catsList','./dto/updateApp.dto','客户端获取App','19330UngHfI','AppService','QuerCatsDto','decorate','queryCats','2367DujUkx','list','design:type','Body','678975YfLxio','./dto/collectApp.dto','metadata','design:returntype','JwtAuthGuard','修改App分类','删除App','Controller','mineApps','length','Req','6CogJUv','删除App分类','../../common/auth/superAuth.guard','用户端获取App分类列表','frontAppList','25692rWdZxD','__esModule','ApiBearerAuth','./dto/updateCats.dto','修改App','../../common/auth/jwtAuth.guard','OperateAppDto','getOwnPropertyDescriptor'];_0x37d7=function(){return _0x3e2264;};return _0x37d7();}(function(_0x52d539,_0x39c61f){const _0x1af794=_0x354a,_0x1dd1cd=_0x52d539();while(!![]){try{const _0x53deee=-parseInt(_0x1af794(0x200))/0x1*(-parseInt(_0x1af794(0x1ec))/0x2)+parseInt(_0x1af794(0x1df))/0x3*(parseInt(_0x1af794(0x1e5))/0x4)+-parseInt(_0x1af794(0x1b3))/0x5+parseInt(_0x1af794(0x1be))/0x6*(parseInt(_0x1af794(0x1f1))/0x7)+parseInt(_0x1af794(0x1e1))/0x8+-parseInt(_0x1af794(0x20e))/0x9*(-parseInt(_0x1af794(0x209))/0xa)+-parseInt(_0x1af794(0x205))/0xb*(parseInt(_0x1af794(0x1c3))/0xc);if(_0x53deee===_0x39c61f)break;else _0x1dd1cd['push'](_0x1dd1cd['shift']());}catch(_0x1e68b3){_0x1dd1cd['push'](_0x1dd1cd['shift']());}}}(_0x37d7,0x42f87));function _0x354a(_0x24e97b,_0x1c8539){const _0x37d705=_0x37d7();return _0x354a=function(_0x354a70,_0x94b894){_0x354a70=_0x354a70-0x1b3;let _0x5284de=_0x37d705[_0x354a70];return _0x5284de;},_0x354a(_0x24e97b,_0x1c8539);}var __decorate=this&&this['__decorate']||function(_0x5f2a39,_0x5368e5,_0x43a4c5,_0x57b8d5){const _0x55d445=_0x354a;var _0x1880aa=arguments[_0x55d445(0x1bc)],_0x253ae3=_0x1880aa<0x3?_0x5368e5:_0x57b8d5===null?_0x57b8d5=Object[_0x55d445(0x1ca)](_0x5368e5,_0x43a4c5):_0x57b8d5,_0x538233;if(typeof Reflect===_0x55d445(0x1f9)&&typeof Reflect[_0x55d445(0x20c)]==='function')_0x253ae3=Reflect[_0x55d445(0x20c)](_0x5f2a39,_0x5368e5,_0x43a4c5,_0x57b8d5);else{for(var _0x58b8ac=_0x5f2a39[_0x55d445(0x1bc)]-0x1;_0x58b8ac>=0x0;_0x58b8ac--)if(_0x538233=_0x5f2a39[_0x58b8ac])_0x253ae3=(_0x1880aa<0x3?_0x538233(_0x253ae3):_0x1880aa>0x3?_0x538233(_0x5368e5,_0x43a4c5,_0x253ae3):_0x538233(_0x5368e5,_0x43a4c5))||_0x253ae3;}return _0x1880aa>0x3&&_0x253ae3&&Object['defineProperty'](_0x5368e5,_0x43a4c5,_0x253ae3),_0x253ae3;},__metadata=this&&this[_0x2d6f5b(0x1d0)]||function(_0x10cd4e,_0x135c93){const _0x207e03=_0x2d6f5b;if(typeof Reflect===_0x207e03(0x1f9)&&typeof Reflect[_0x207e03(0x1b5)]===_0x207e03(0x1e3))return Reflect[_0x207e03(0x1b5)](_0x10cd4e,_0x135c93);},__param=this&&this[_0x2d6f5b(0x1d9)]||function(_0x37f47b,_0x3e1b68){return function(_0x377bf6,_0x32679d){_0x3e1b68(_0x377bf6,_0x32679d,_0x37f47b);};};Object['defineProperty'](exports,_0x2d6f5b(0x1c4),{'value':!![]}),exports[_0x2d6f5b(0x202)]=void 0x0;const app_service_1=require(_0x2d6f5b(0x1dd)),common_1=require(_0x2d6f5b(0x1ed)),swagger_1=require(_0x2d6f5b(0x1e2)),createCats_dto_1=require(_0x2d6f5b(0x1fb)),updateCats_dto_1=require(_0x2d6f5b(0x1c6)),deleteCats_dto_1=require('./dto/deleteCats.dto'),queryCats_dto_1=require(_0x2d6f5b(0x1d8)),createApp_dto_1=require(_0x2d6f5b(0x204)),updateApp_dto_1=require(_0x2d6f5b(0x207)),deleteApp_dto_1=require('./dto/deleteApp.dto'),queryApp_dto_1=require(_0x2d6f5b(0x1d7)),superAuth_guard_1=require(_0x2d6f5b(0x1c0)),adminAuth_guard_1=require('../../common/auth/adminAuth.guard'),jwtAuth_guard_1=require(_0x2d6f5b(0x1c8)),collectApp_dto_1=require(_0x2d6f5b(0x1b4)),custonApp_dto_1=require('./dto/custonApp.dto');let AppController=class AppController{constructor(_0x5b54c3){const _0x12b9f3=_0x2d6f5b;this[_0x12b9f3(0x1d1)]=_0x5b54c3;}['appCatsList'](_0x3fce04){const _0x532b04=_0x2d6f5b;return this[_0x532b04(0x1d1)]['appCatsList'](_0x3fce04);}[_0x2d6f5b(0x206)](){const _0x2d023c=_0x2d6f5b,_0x1aecbb={'status':0x1,'page':0x1,'size':0x3e8,'name':''};return this[_0x2d023c(0x1d1)][_0x2d023c(0x1ee)](_0x1aecbb);}[_0x2d6f5b(0x1f3)](_0x38f99c){const _0x12c966=_0x2d6f5b;return this[_0x12c966(0x1d1)][_0x12c966(0x1fe)](_0x38f99c);}[_0x2d6f5b(0x201)](_0x4a2ffe){const _0x3539b9=_0x2d6f5b;return this[_0x3539b9(0x1d1)][_0x3539b9(0x201)](_0x4a2ffe);}[_0x2d6f5b(0x1de)](_0x58653f){const _0x447cbe=_0x2d6f5b;return this[_0x447cbe(0x1d1)][_0x447cbe(0x1de)](_0x58653f);}['delAppCat'](_0x4c3858){const _0x3521e1=_0x2d6f5b;return this[_0x3521e1(0x1d1)]['delAppCat'](_0x4c3858);}[_0x2d6f5b(0x1e9)](_0x171dd4,_0x179b6c){const _0x4bfb3a=_0x2d6f5b;return this[_0x4bfb3a(0x1d1)][_0x4bfb3a(0x1e9)](_0x171dd4,_0x179b6c);}[_0x2d6f5b(0x20f)](_0x2f30f8,_0x614d05){const _0x4690a5=_0x2d6f5b;return this[_0x4690a5(0x1d1)][_0x4690a5(0x1c2)](_0x2f30f8,_0x614d05);}[_0x2d6f5b(0x1cc)](_0x458420){const _0x3c6906=_0x2d6f5b;return this[_0x3c6906(0x1d1)][_0x3c6906(0x1cc)](_0x458420);}[_0x2d6f5b(0x1d2)](_0x3dbc42,_0x4281d5){const _0x18005a=_0x2d6f5b;return this[_0x18005a(0x1d1)][_0x18005a(0x1d2)](_0x3dbc42,_0x4281d5);}[_0x2d6f5b(0x1f4)](_0x2934c9){const _0x54d868=_0x2d6f5b;return this['appService'][_0x54d868(0x1f4)](_0x2934c9);}['delApp'](_0x192323){const _0x10a341=_0x2d6f5b;return this[_0x10a341(0x1d1)]['delApp'](_0x192323);}[_0x2d6f5b(0x1e4)](_0x3ffbee){const _0x176721=_0x2d6f5b;return this[_0x176721(0x1d1)][_0x176721(0x1e4)](_0x3ffbee);}[_0x2d6f5b(0x1ea)](_0xc9088b){const _0x530ff9=_0x2d6f5b;return this[_0x530ff9(0x1d1)][_0x530ff9(0x1ea)](_0xc9088b);}[_0x2d6f5b(0x1da)](_0x3bc9a4,_0x4e2a73){const _0x5766af=_0x2d6f5b;return this[_0x5766af(0x1d1)][_0x5766af(0x1da)](_0x3bc9a4,_0x4e2a73);}[_0x2d6f5b(0x1cf)](_0x578fc4,_0x27ed03){const _0x1239b1=_0x2d6f5b;return this[_0x1239b1(0x1d1)][_0x1239b1(0x1cf)](_0x578fc4,_0x27ed03);}[_0x2d6f5b(0x1bb)](_0x2fc8c3){const _0x3fb753=_0x2d6f5b;return this[_0x3fb753(0x1d1)][_0x3fb753(0x1bb)](_0x2fc8c3);}};__decorate([(0x0,common_1[_0x2d6f5b(0x1fa)])('queryAppCats'),(0x0,swagger_1[_0x2d6f5b(0x1e8)])({'summary':_0x2d6f5b(0x1f7)}),(0x0,common_1[_0x2d6f5b(0x1d4)])(adminAuth_guard_1[_0x2d6f5b(0x1f6)]),(0x0,swagger_1[_0x2d6f5b(0x1c5)])(),__param(0x0,(0x0,common_1[_0x2d6f5b(0x1ce)])()),__metadata('design:type',Function),__metadata('design:paramtypes',[queryCats_dto_1[_0x2d6f5b(0x20b)]]),__metadata(_0x2d6f5b(0x1b6),void 0x0)],AppController['prototype'],_0x2d6f5b(0x1ee),null),__decorate([(0x0,common_1[_0x2d6f5b(0x1fa)])(_0x2d6f5b(0x20d)),(0x0,swagger_1['ApiOperation'])({'summary':_0x2d6f5b(0x1c1)}),__metadata(_0x2d6f5b(0x210),Function),__metadata(_0x2d6f5b(0x1ff),[]),__metadata('design:returntype',void 0x0)],AppController[_0x2d6f5b(0x1ef)],'catsList',null),__decorate([(0x0,common_1['Get'])(_0x2d6f5b(0x1fe)),(0x0,swagger_1[_0x2d6f5b(0x1e8)])({'summary':_0x2d6f5b(0x1c1)}),__param(0x0,(0x0,common_1['Query'])()),__metadata(_0x2d6f5b(0x210),Function),__metadata(_0x2d6f5b(0x1ff),[Object]),__metadata(_0x2d6f5b(0x1b6),void 0x0)],AppController[_0x2d6f5b(0x1ef)],_0x2d6f5b(0x1f3),null),__decorate([(0x0,common_1[_0x2d6f5b(0x1f8)])(_0x2d6f5b(0x1dc)),(0x0,swagger_1[_0x2d6f5b(0x1e8)])({'summary':_0x2d6f5b(0x1db)}),(0x0,common_1[_0x2d6f5b(0x1d4)])(superAuth_guard_1[_0x2d6f5b(0x1fc)]),(0x0,swagger_1['ApiBearerAuth'])(),__param(0x0,(0x0,common_1[_0x2d6f5b(0x211)])()),__metadata('design:type',Function),__metadata('design:paramtypes',[createCats_dto_1['CreateCatsDto']]),__metadata('design:returntype',void 0x0)],AppController[_0x2d6f5b(0x1ef)],_0x2d6f5b(0x201),null),__decorate([(0x0,common_1['Post'])(_0x2d6f5b(0x1de)),(0x0,swagger_1[_0x2d6f5b(0x1e8)])({'summary':_0x2d6f5b(0x1b8)}),(0x0,common_1[_0x2d6f5b(0x1d4)])(superAuth_guard_1[_0x2d6f5b(0x1fc)]),(0x0,swagger_1[_0x2d6f5b(0x1c5)])(),__param(0x0,(0x0,common_1[_0x2d6f5b(0x211)])()),__metadata(_0x2d6f5b(0x210),Function),__metadata(_0x2d6f5b(0x1ff),[updateCats_dto_1[_0x2d6f5b(0x1eb)]]),__metadata(_0x2d6f5b(0x1b6),void 0x0)],AppController[_0x2d6f5b(0x1ef)],_0x2d6f5b(0x1de),null),__decorate([(0x0,common_1[_0x2d6f5b(0x1f8)])(_0x2d6f5b(0x1d5)),(0x0,swagger_1[_0x2d6f5b(0x1e8)])({'summary':_0x2d6f5b(0x1bf)}),(0x0,common_1[_0x2d6f5b(0x1d4)])(superAuth_guard_1[_0x2d6f5b(0x1fc)]),(0x0,swagger_1[_0x2d6f5b(0x1c5)])(),__param(0x0,(0x0,common_1['Body'])()),__metadata('design:type',Function),__metadata(_0x2d6f5b(0x1ff),[deleteCats_dto_1[_0x2d6f5b(0x1cb)]]),__metadata(_0x2d6f5b(0x1b6),void 0x0)],AppController['prototype'],_0x2d6f5b(0x1e0),null),__decorate([(0x0,common_1[_0x2d6f5b(0x1fa)])('queryApp'),(0x0,swagger_1['ApiOperation'])({'summary':'获取App列表'}),(0x0,common_1['UseGuards'])(adminAuth_guard_1[_0x2d6f5b(0x1f6)]),(0x0,swagger_1[_0x2d6f5b(0x1c5)])(),__param(0x0,(0x0,common_1['Req'])()),__param(0x1,(0x0,common_1[_0x2d6f5b(0x1ce)])()),__metadata(_0x2d6f5b(0x210),Function),__metadata(_0x2d6f5b(0x1ff),[Object,queryApp_dto_1[_0x2d6f5b(0x1f5)]]),__metadata(_0x2d6f5b(0x1b6),void 0x0)],AppController[_0x2d6f5b(0x1ef)],_0x2d6f5b(0x1e9),null),__decorate([(0x0,common_1[_0x2d6f5b(0x1fa)])(_0x2d6f5b(0x20f)),(0x0,swagger_1[_0x2d6f5b(0x1e8)])({'summary':_0x2d6f5b(0x208)}),__param(0x0,(0x0,common_1['Req'])()),__param(0x1,(0x0,common_1[_0x2d6f5b(0x1ce)])()),__metadata(_0x2d6f5b(0x210),Function),__metadata(_0x2d6f5b(0x1ff),[Object,queryApp_dto_1['QuerAppDto']]),__metadata(_0x2d6f5b(0x1b6),void 0x0)],AppController[_0x2d6f5b(0x1ef)],_0x2d6f5b(0x20f),null),__decorate([(0x0,common_1['Post'])(_0x2d6f5b(0x1cc)),(0x0,swagger_1[_0x2d6f5b(0x1e8)])({'summary':'添加App'}),(0x0,common_1[_0x2d6f5b(0x1d4)])(superAuth_guard_1[_0x2d6f5b(0x1fc)]),(0x0,swagger_1['ApiBearerAuth'])(),__param(0x0,(0x0,common_1[_0x2d6f5b(0x211)])()),__metadata(_0x2d6f5b(0x210),Function),__metadata(_0x2d6f5b(0x1ff),[createApp_dto_1[_0x2d6f5b(0x1fd)]]),__metadata('design:returntype',void 0x0)],AppController['prototype'],_0x2d6f5b(0x1cc),null),__decorate([(0x0,common_1[_0x2d6f5b(0x1f8)])('customApp'),(0x0,swagger_1[_0x2d6f5b(0x1e8)])({'summary':_0x2d6f5b(0x1d3)}),(0x0,common_1[_0x2d6f5b(0x1d4)])(jwtAuth_guard_1[_0x2d6f5b(0x1b7)]),(0x0,swagger_1['ApiBearerAuth'])(),__param(0x0,(0x0,common_1['Body'])()),__param(0x1,(0x0,common_1[_0x2d6f5b(0x1bd)])()),__metadata(_0x2d6f5b(0x210),Function),__metadata(_0x2d6f5b(0x1ff),[custonApp_dto_1[_0x2d6f5b(0x1f2)],Object]),__metadata(_0x2d6f5b(0x1b6),void 0x0)],AppController[_0x2d6f5b(0x1ef)],_0x2d6f5b(0x1d2),null),__decorate([(0x0,common_1['Post'])(_0x2d6f5b(0x1f4)),(0x0,swagger_1[_0x2d6f5b(0x1e8)])({'summary':_0x2d6f5b(0x1c7)}),(0x0,common_1['UseGuards'])(superAuth_guard_1[_0x2d6f5b(0x1fc)]),(0x0,swagger_1[_0x2d6f5b(0x1c5)])(),__param(0x0,(0x0,common_1[_0x2d6f5b(0x211)])()),__metadata(_0x2d6f5b(0x210),Function),__metadata(_0x2d6f5b(0x1ff),[updateApp_dto_1['UpdateAppDto']]),__metadata(_0x2d6f5b(0x1b6),void 0x0)],AppController[_0x2d6f5b(0x1ef)],_0x2d6f5b(0x1f4),null),__decorate([(0x0,common_1['Post'])(_0x2d6f5b(0x203)),(0x0,swagger_1['ApiOperation'])({'summary':_0x2d6f5b(0x1b9)}),(0x0,common_1[_0x2d6f5b(0x1d4)])(superAuth_guard_1[_0x2d6f5b(0x1fc)]),(0x0,swagger_1['ApiBearerAuth'])(),__param(0x0,(0x0,common_1[_0x2d6f5b(0x211)])()),__metadata(_0x2d6f5b(0x210),Function),__metadata(_0x2d6f5b(0x1ff),[deleteApp_dto_1[_0x2d6f5b(0x1c9)]]),__metadata(_0x2d6f5b(0x1b6),void 0x0)],AppController[_0x2d6f5b(0x1ef)],'delApp',null),__decorate([(0x0,common_1['Post'])(_0x2d6f5b(0x1e4)),(0x0,swagger_1[_0x2d6f5b(0x1e8)])({'summary':'审核通过App'}),(0x0,common_1[_0x2d6f5b(0x1d4)])(superAuth_guard_1[_0x2d6f5b(0x1fc)]),(0x0,swagger_1[_0x2d6f5b(0x1c5)])(),__param(0x0,(0x0,common_1[_0x2d6f5b(0x211)])()),__metadata(_0x2d6f5b(0x210),Function),__metadata(_0x2d6f5b(0x1ff),[deleteApp_dto_1[_0x2d6f5b(0x1c9)]]),__metadata(_0x2d6f5b(0x1b6),void 0x0)],AppController['prototype'],'auditPass',null),__decorate([(0x0,common_1['Post'])(_0x2d6f5b(0x1ea)),(0x0,swagger_1[_0x2d6f5b(0x1e8)])({'summary':'审核拒绝App'}),(0x0,common_1[_0x2d6f5b(0x1d4)])(superAuth_guard_1[_0x2d6f5b(0x1fc)]),(0x0,swagger_1['ApiBearerAuth'])(),__param(0x0,(0x0,common_1[_0x2d6f5b(0x211)])()),__metadata(_0x2d6f5b(0x210),Function),__metadata(_0x2d6f5b(0x1ff),[deleteApp_dto_1[_0x2d6f5b(0x1c9)]]),__metadata(_0x2d6f5b(0x1b6),void 0x0)],AppController[_0x2d6f5b(0x1ef)],_0x2d6f5b(0x1ea),null),__decorate([(0x0,common_1[_0x2d6f5b(0x1f8)])('delMineApp'),(0x0,swagger_1['ApiOperation'])({'summary':_0x2d6f5b(0x1e7)}),(0x0,common_1[_0x2d6f5b(0x1d4)])(jwtAuth_guard_1['JwtAuthGuard']),(0x0,swagger_1[_0x2d6f5b(0x1c5)])(),__param(0x0,(0x0,common_1['Body'])()),__param(0x1,(0x0,common_1[_0x2d6f5b(0x1bd)])()),__metadata(_0x2d6f5b(0x210),Function),__metadata(_0x2d6f5b(0x1ff),[deleteApp_dto_1[_0x2d6f5b(0x1c9)],Object]),__metadata('design:returntype',void 0x0)],AppController['prototype'],_0x2d6f5b(0x1da),null),__decorate([(0x0,common_1[_0x2d6f5b(0x1f8)])(_0x2d6f5b(0x1cf)),(0x0,swagger_1[_0x2d6f5b(0x1e8)])({'summary':_0x2d6f5b(0x1d6)}),(0x0,common_1[_0x2d6f5b(0x1d4)])(jwtAuth_guard_1[_0x2d6f5b(0x1b7)]),(0x0,swagger_1['ApiBearerAuth'])(),__param(0x0,(0x0,common_1[_0x2d6f5b(0x211)])()),__param(0x1,(0x0,common_1['Req'])()),__metadata(_0x2d6f5b(0x210),Function),__metadata(_0x2d6f5b(0x1ff),[collectApp_dto_1[_0x2d6f5b(0x1f0)],Object]),__metadata('design:returntype',void 0x0)],AppController[_0x2d6f5b(0x1ef)],_0x2d6f5b(0x1cf),null),__decorate([(0x0,common_1[_0x2d6f5b(0x1fa)])(_0x2d6f5b(0x1bb)),(0x0,swagger_1['ApiOperation'])({'summary':'我的收藏'}),(0x0,common_1[_0x2d6f5b(0x1d4)])(jwtAuth_guard_1[_0x2d6f5b(0x1b7)]),(0x0,swagger_1[_0x2d6f5b(0x1c5)])(),__param(0x0,(0x0,common_1[_0x2d6f5b(0x1bd)])()),__metadata(_0x2d6f5b(0x210),Function),__metadata('design:paramtypes',[Object]),__metadata('design:returntype',void 0x0)],AppController[_0x2d6f5b(0x1ef)],'mineApps',null),AppController=__decorate([(0x0,swagger_1[_0x2d6f5b(0x1e6)])(_0x2d6f5b(0x1cd)),(0x0,common_1[_0x2d6f5b(0x1ba)])('app'),__metadata('design:paramtypes',[app_service_1[_0x2d6f5b(0x20a)]])],AppController),exports[_0x2d6f5b(0x202)]=AppController;