YiAi/YiAiQuickDeploy/dist/modules/app/app.controller.js
2024-02-06 13:43:30 +08:00

1 line
14 KiB
JavaScript

'use strict';const _0x2a9eb7=_0x126e;(function(_0x2e4d89,_0x456a91){const _0x1fce86=_0x126e,_0x4e8f01=_0x2e4d89();while(!![]){try{const _0x474695=-parseInt(_0x1fce86(0x1d0))/0x1+parseInt(_0x1fce86(0x1ff))/0x2+parseInt(_0x1fce86(0x203))/0x3+-parseInt(_0x1fce86(0x1fb))/0x4+parseInt(_0x1fce86(0x1ca))/0x5+-parseInt(_0x1fce86(0x1ed))/0x6+parseInt(_0x1fce86(0x202))/0x7*(parseInt(_0x1fce86(0x1e2))/0x8);if(_0x474695===_0x456a91)break;else _0x4e8f01['push'](_0x4e8f01['shift']());}catch(_0x46360e){_0x4e8f01['push'](_0x4e8f01['shift']());}}}(_0x4981,0x7e11b));var __decorate=this&&this[_0x2a9eb7(0x1e9)]||function(_0x23033c,_0x5a9508,_0x3af275,_0x10b290){const _0x19e930=_0x2a9eb7;var _0x46a712=arguments['length'],_0x4d4ecd=_0x46a712<0x3?_0x5a9508:_0x10b290===null?_0x10b290=Object[_0x19e930(0x20a)](_0x5a9508,_0x3af275):_0x10b290,_0x52c45e;if(typeof Reflect===_0x19e930(0x1f8)&&typeof Reflect[_0x19e930(0x1c3)]===_0x19e930(0x217))_0x4d4ecd=Reflect['decorate'](_0x23033c,_0x5a9508,_0x3af275,_0x10b290);else{for(var _0x4f2ff1=_0x23033c[_0x19e930(0x1d5)]-0x1;_0x4f2ff1>=0x0;_0x4f2ff1--)if(_0x52c45e=_0x23033c[_0x4f2ff1])_0x4d4ecd=(_0x46a712<0x3?_0x52c45e(_0x4d4ecd):_0x46a712>0x3?_0x52c45e(_0x5a9508,_0x3af275,_0x4d4ecd):_0x52c45e(_0x5a9508,_0x3af275))||_0x4d4ecd;}return _0x46a712>0x3&&_0x4d4ecd&&Object[_0x19e930(0x213)](_0x5a9508,_0x3af275,_0x4d4ecd),_0x4d4ecd;},__metadata=this&&this[_0x2a9eb7(0x210)]||function(_0x2de562,_0x3e7bb7){const _0x50733f=_0x2a9eb7;if(typeof Reflect===_0x50733f(0x1f8)&&typeof Reflect[_0x50733f(0x1db)]===_0x50733f(0x217))return Reflect[_0x50733f(0x1db)](_0x2de562,_0x3e7bb7);},__param=this&&this[_0x2a9eb7(0x219)]||function(_0x4004a5,_0x4c05ce){return function(_0x3e6eff,_0x53f58c){_0x4c05ce(_0x3e6eff,_0x53f58c,_0x4004a5);};};function _0x126e(_0x3481de,_0xf3a883){const _0x4981f4=_0x4981();return _0x126e=function(_0x126e2f,_0x1c3508){_0x126e2f=_0x126e2f-0x1c3;let _0x1b5b98=_0x4981f4[_0x126e2f];return _0x1b5b98;},_0x126e(_0x3481de,_0xf3a883);}Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[_0x2a9eb7(0x1d8)]=void 0x0;const app_service_1=require(_0x2a9eb7(0x1cb)),common_1=require(_0x2a9eb7(0x1ce)),swagger_1=require('@nestjs/swagger'),createCats_dto_1=require(_0x2a9eb7(0x1fa)),updateCats_dto_1=require(_0x2a9eb7(0x200)),deleteCats_dto_1=require(_0x2a9eb7(0x1ee)),queryCats_dto_1=require('./dto/queryCats.dto'),createApp_dto_1=require(_0x2a9eb7(0x204)),updateApp_dto_1=require(_0x2a9eb7(0x1d7)),deleteApp_dto_1=require(_0x2a9eb7(0x207)),queryApp_dto_1=require(_0x2a9eb7(0x1f3)),superAuth_guard_1=require(_0x2a9eb7(0x211)),adminAuth_guard_1=require(_0x2a9eb7(0x1c8)),jwtAuth_guard_1=require(_0x2a9eb7(0x20e)),collectApp_dto_1=require(_0x2a9eb7(0x1e4)),custonApp_dto_1=require('./dto/custonApp.dto');let AppController=class AppController{constructor(_0x1010ef){const _0x44ec9c=_0x2a9eb7;this[_0x44ec9c(0x20f)]=_0x1010ef;}[_0x2a9eb7(0x1e7)](_0x7e4e23){const _0x2b86c1=_0x2a9eb7;return this[_0x2b86c1(0x20f)]['appCatsList'](_0x7e4e23);}[_0x2a9eb7(0x1e1)](){const _0x52cae5=_0x2a9eb7,_0xac2571={'status':0x1,'page':0x1,'size':0x3e8,'name':''};return this[_0x52cae5(0x20f)][_0x52cae5(0x1e7)](_0xac2571);}[_0x2a9eb7(0x1cd)](_0x349559){const _0x30e444=_0x2a9eb7;return this['appService'][_0x30e444(0x21b)](_0x349559);}[_0x2a9eb7(0x1e6)](_0x51a8f3){const _0x5e84de=_0x2a9eb7;return this[_0x5e84de(0x20f)][_0x5e84de(0x1e6)](_0x51a8f3);}[_0x2a9eb7(0x1d9)](_0x5bc3af){const _0x3779dd=_0x2a9eb7;return this[_0x3779dd(0x20f)]['updateAppCats'](_0x5bc3af);}['delAppCat'](_0x181366){const _0x3f47d4=_0x2a9eb7;return this[_0x3f47d4(0x20f)][_0x3f47d4(0x1f6)](_0x181366);}['appList'](_0x13769e,_0x16eda9){const _0x43a60c=_0x2a9eb7;return this[_0x43a60c(0x20f)][_0x43a60c(0x209)](_0x13769e,_0x16eda9);}['list'](_0x3d3737,_0x1d5a7e){const _0x4d7c33=_0x2a9eb7;return this[_0x4d7c33(0x20f)][_0x4d7c33(0x1d3)](_0x3d3737,_0x1d5a7e);}[_0x2a9eb7(0x216)](_0x98c49f){const _0x3a1a41=_0x2a9eb7;return this[_0x3a1a41(0x20f)][_0x3a1a41(0x216)](_0x98c49f);}[_0x2a9eb7(0x215)](_0x4025dc,_0xdaa825){const _0x226b50=_0x2a9eb7;return this[_0x226b50(0x20f)]['customApp'](_0x4025dc,_0xdaa825);}[_0x2a9eb7(0x20c)](_0x2da85b){const _0x1f0624=_0x2a9eb7;return this[_0x1f0624(0x20f)][_0x1f0624(0x20c)](_0x2da85b);}[_0x2a9eb7(0x1fe)](_0x532ed7){const _0x284765=_0x2a9eb7;return this[_0x284765(0x20f)][_0x284765(0x1fe)](_0x532ed7);}[_0x2a9eb7(0x212)](_0x3f7d0c){const _0x3d0363=_0x2a9eb7;return this[_0x3d0363(0x20f)][_0x3d0363(0x212)](_0x3f7d0c);}[_0x2a9eb7(0x214)](_0x38c4f8){const _0x5d5616=_0x2a9eb7;return this[_0x5d5616(0x20f)][_0x5d5616(0x214)](_0x38c4f8);}[_0x2a9eb7(0x1f4)](_0x349531,_0x30c4db){const _0x1de6b1=_0x2a9eb7;return this[_0x1de6b1(0x20f)][_0x1de6b1(0x1f4)](_0x349531,_0x30c4db);}[_0x2a9eb7(0x218)](_0x4db94d,_0x2ee93c){const _0xfbc184=_0x2a9eb7;return this['appService'][_0xfbc184(0x218)](_0x4db94d,_0x2ee93c);}[_0x2a9eb7(0x1f9)](_0x64e260){const _0x219598=_0x2a9eb7;return this[_0x219598(0x20f)]['mineApps'](_0x64e260);}};function _0x4981(){const _0x439bc0=['AppController','updateAppCats','删除App','metadata','Post','UseGuards','删除App分类','审核通过App','删除个人App','catsList','104008ZmRCJC','DeleteCatsDto','./dto/collectApp.dto','获取App分类列表','createAppCat','appCatsList','收藏/取消收藏App','__decorate','用户端获取App分类列表','JwtAuthGuard','prototype','6091050WjHxeE','./dto/deleteCats.dto','Controller','QuerCatsDto','app','CustomAppDto','./dto/queryApp.dto','delMineApp','添加自定义App','delAppCat','AdminAuthGuard','object','mineApps','./dto/createCats.dto','3919004VxGomp','list','ApiBearerAuth','delApp','1187782RyvsAS','./dto/updateCats.dto','ApiOperation','1057lpeMMU','846024pAwrBr','./dto/createApp.dto','Req','SuperAuthGuard','./dto/deleteApp.dto','修改App分类','appList','getOwnPropertyDescriptor','createAppCats','updateApp','queryAppCats','../../common/auth/jwtAuth.guard','appService','__metadata','../../common/auth/superAuth.guard','auditPass','defineProperty','auditFail','customApp','createApp','function','collect','__param','Query','queryOneCat','decorate','OperateAppDto','添加App分类','design:type','design:returntype','../../common/auth/adminAuth.guard','Get','1619970OtqEWx','./app.service','QuerAppDto','queryOneCats','@nestjs/common','获取App列表','651739dHViTV','CollectAppDto','delAppCats','frontAppList','Body','length','design:paramtypes','./dto/updateApp.dto'];_0x4981=function(){return _0x439bc0;};return _0x4981();}__decorate([(0x0,common_1['Get'])(_0x2a9eb7(0x20d)),(0x0,swagger_1['ApiOperation'])({'summary':_0x2a9eb7(0x1e5)}),(0x0,common_1['UseGuards'])(adminAuth_guard_1[_0x2a9eb7(0x1f7)]),(0x0,swagger_1['ApiBearerAuth'])(),__param(0x0,(0x0,common_1[_0x2a9eb7(0x21a)])()),__metadata(_0x2a9eb7(0x1c6),Function),__metadata('design:paramtypes',[queryCats_dto_1[_0x2a9eb7(0x1f0)]]),__metadata(_0x2a9eb7(0x1c7),void 0x0)],AppController[_0x2a9eb7(0x1ec)],_0x2a9eb7(0x1e7),null),__decorate([(0x0,common_1[_0x2a9eb7(0x1c9)])('queryCats'),(0x0,swagger_1[_0x2a9eb7(0x201)])({'summary':'用户端获取App分类列表'}),__metadata(_0x2a9eb7(0x1c6),Function),__metadata(_0x2a9eb7(0x1d6),[]),__metadata(_0x2a9eb7(0x1c7),void 0x0)],AppController[_0x2a9eb7(0x1ec)],_0x2a9eb7(0x1e1),null),__decorate([(0x0,common_1[_0x2a9eb7(0x1c9)])('queryOneCat'),(0x0,swagger_1[_0x2a9eb7(0x201)])({'summary':_0x2a9eb7(0x1ea)}),__param(0x0,(0x0,common_1['Query'])()),__metadata(_0x2a9eb7(0x1c6),Function),__metadata('design:paramtypes',[Object]),__metadata('design:returntype',void 0x0)],AppController['prototype'],_0x2a9eb7(0x1cd),null),__decorate([(0x0,common_1['Post'])(_0x2a9eb7(0x20b)),(0x0,swagger_1['ApiOperation'])({'summary':_0x2a9eb7(0x1c5)}),(0x0,common_1[_0x2a9eb7(0x1dd)])(superAuth_guard_1[_0x2a9eb7(0x206)]),(0x0,swagger_1['ApiBearerAuth'])(),__param(0x0,(0x0,common_1[_0x2a9eb7(0x1d4)])()),__metadata(_0x2a9eb7(0x1c6),Function),__metadata('design:paramtypes',[createCats_dto_1['CreateCatsDto']]),__metadata(_0x2a9eb7(0x1c7),void 0x0)],AppController[_0x2a9eb7(0x1ec)],_0x2a9eb7(0x1e6),null),__decorate([(0x0,common_1[_0x2a9eb7(0x1dc)])(_0x2a9eb7(0x1d9)),(0x0,swagger_1[_0x2a9eb7(0x201)])({'summary':_0x2a9eb7(0x208)}),(0x0,common_1[_0x2a9eb7(0x1dd)])(superAuth_guard_1[_0x2a9eb7(0x206)]),(0x0,swagger_1[_0x2a9eb7(0x1fd)])(),__param(0x0,(0x0,common_1[_0x2a9eb7(0x1d4)])()),__metadata(_0x2a9eb7(0x1c6),Function),__metadata(_0x2a9eb7(0x1d6),[updateCats_dto_1['UpdateCatsDto']]),__metadata(_0x2a9eb7(0x1c7),void 0x0)],AppController[_0x2a9eb7(0x1ec)],_0x2a9eb7(0x1d9),null),__decorate([(0x0,common_1[_0x2a9eb7(0x1dc)])(_0x2a9eb7(0x1d2)),(0x0,swagger_1[_0x2a9eb7(0x201)])({'summary':_0x2a9eb7(0x1de)}),(0x0,common_1[_0x2a9eb7(0x1dd)])(superAuth_guard_1[_0x2a9eb7(0x206)]),(0x0,swagger_1[_0x2a9eb7(0x1fd)])(),__param(0x0,(0x0,common_1[_0x2a9eb7(0x1d4)])()),__metadata(_0x2a9eb7(0x1c6),Function),__metadata(_0x2a9eb7(0x1d6),[deleteCats_dto_1[_0x2a9eb7(0x1e3)]]),__metadata(_0x2a9eb7(0x1c7),void 0x0)],AppController[_0x2a9eb7(0x1ec)],_0x2a9eb7(0x1f6),null),__decorate([(0x0,common_1[_0x2a9eb7(0x1c9)])('queryApp'),(0x0,swagger_1[_0x2a9eb7(0x201)])({'summary':_0x2a9eb7(0x1cf)}),(0x0,common_1[_0x2a9eb7(0x1dd)])(adminAuth_guard_1[_0x2a9eb7(0x1f7)]),(0x0,swagger_1[_0x2a9eb7(0x1fd)])(),__param(0x0,(0x0,common_1[_0x2a9eb7(0x205)])()),__param(0x1,(0x0,common_1[_0x2a9eb7(0x21a)])()),__metadata(_0x2a9eb7(0x1c6),Function),__metadata(_0x2a9eb7(0x1d6),[Object,queryApp_dto_1['QuerAppDto']]),__metadata(_0x2a9eb7(0x1c7),void 0x0)],AppController[_0x2a9eb7(0x1ec)],_0x2a9eb7(0x209),null),__decorate([(0x0,common_1['Get'])(_0x2a9eb7(0x1fc)),(0x0,swagger_1[_0x2a9eb7(0x201)])({'summary':'客户端获取App'}),__param(0x0,(0x0,common_1['Req'])()),__param(0x1,(0x0,common_1[_0x2a9eb7(0x21a)])()),__metadata(_0x2a9eb7(0x1c6),Function),__metadata(_0x2a9eb7(0x1d6),[Object,queryApp_dto_1[_0x2a9eb7(0x1cc)]]),__metadata('design:returntype',void 0x0)],AppController[_0x2a9eb7(0x1ec)],'list',null),__decorate([(0x0,common_1[_0x2a9eb7(0x1dc)])(_0x2a9eb7(0x216)),(0x0,swagger_1[_0x2a9eb7(0x201)])({'summary':'添加App'}),(0x0,common_1['UseGuards'])(superAuth_guard_1[_0x2a9eb7(0x206)]),(0x0,swagger_1[_0x2a9eb7(0x1fd)])(),__param(0x0,(0x0,common_1[_0x2a9eb7(0x1d4)])()),__metadata(_0x2a9eb7(0x1c6),Function),__metadata(_0x2a9eb7(0x1d6),[createApp_dto_1['CreateAppDto']]),__metadata(_0x2a9eb7(0x1c7),void 0x0)],AppController['prototype'],'createApp',null),__decorate([(0x0,common_1['Post'])(_0x2a9eb7(0x215)),(0x0,swagger_1[_0x2a9eb7(0x201)])({'summary':_0x2a9eb7(0x1f5)}),(0x0,common_1[_0x2a9eb7(0x1dd)])(jwtAuth_guard_1['JwtAuthGuard']),(0x0,swagger_1['ApiBearerAuth'])(),__param(0x0,(0x0,common_1[_0x2a9eb7(0x1d4)])()),__param(0x1,(0x0,common_1[_0x2a9eb7(0x205)])()),__metadata('design:type',Function),__metadata(_0x2a9eb7(0x1d6),[custonApp_dto_1[_0x2a9eb7(0x1f2)],Object]),__metadata('design:returntype',void 0x0)],AppController[_0x2a9eb7(0x1ec)],'customApp',null),__decorate([(0x0,common_1[_0x2a9eb7(0x1dc)])('updateApp'),(0x0,swagger_1[_0x2a9eb7(0x201)])({'summary':'修改App'}),(0x0,common_1['UseGuards'])(superAuth_guard_1[_0x2a9eb7(0x206)]),(0x0,swagger_1[_0x2a9eb7(0x1fd)])(),__param(0x0,(0x0,common_1[_0x2a9eb7(0x1d4)])()),__metadata(_0x2a9eb7(0x1c6),Function),__metadata(_0x2a9eb7(0x1d6),[updateApp_dto_1['UpdateAppDto']]),__metadata(_0x2a9eb7(0x1c7),void 0x0)],AppController[_0x2a9eb7(0x1ec)],_0x2a9eb7(0x20c),null),__decorate([(0x0,common_1[_0x2a9eb7(0x1dc)])(_0x2a9eb7(0x1fe)),(0x0,swagger_1[_0x2a9eb7(0x201)])({'summary':_0x2a9eb7(0x1da)}),(0x0,common_1[_0x2a9eb7(0x1dd)])(superAuth_guard_1[_0x2a9eb7(0x206)]),(0x0,swagger_1[_0x2a9eb7(0x1fd)])(),__param(0x0,(0x0,common_1[_0x2a9eb7(0x1d4)])()),__metadata('design:type',Function),__metadata(_0x2a9eb7(0x1d6),[deleteApp_dto_1[_0x2a9eb7(0x1c4)]]),__metadata('design:returntype',void 0x0)],AppController[_0x2a9eb7(0x1ec)],_0x2a9eb7(0x1fe),null),__decorate([(0x0,common_1[_0x2a9eb7(0x1dc)])('auditPass'),(0x0,swagger_1[_0x2a9eb7(0x201)])({'summary':_0x2a9eb7(0x1df)}),(0x0,common_1['UseGuards'])(superAuth_guard_1[_0x2a9eb7(0x206)]),(0x0,swagger_1[_0x2a9eb7(0x1fd)])(),__param(0x0,(0x0,common_1['Body'])()),__metadata(_0x2a9eb7(0x1c6),Function),__metadata(_0x2a9eb7(0x1d6),[deleteApp_dto_1[_0x2a9eb7(0x1c4)]]),__metadata(_0x2a9eb7(0x1c7),void 0x0)],AppController[_0x2a9eb7(0x1ec)],_0x2a9eb7(0x212),null),__decorate([(0x0,common_1['Post'])('auditFail'),(0x0,swagger_1[_0x2a9eb7(0x201)])({'summary':'审核拒绝App'}),(0x0,common_1[_0x2a9eb7(0x1dd)])(superAuth_guard_1[_0x2a9eb7(0x206)]),(0x0,swagger_1[_0x2a9eb7(0x1fd)])(),__param(0x0,(0x0,common_1[_0x2a9eb7(0x1d4)])()),__metadata(_0x2a9eb7(0x1c6),Function),__metadata(_0x2a9eb7(0x1d6),[deleteApp_dto_1['OperateAppDto']]),__metadata(_0x2a9eb7(0x1c7),void 0x0)],AppController[_0x2a9eb7(0x1ec)],_0x2a9eb7(0x214),null),__decorate([(0x0,common_1[_0x2a9eb7(0x1dc)])('delMineApp'),(0x0,swagger_1[_0x2a9eb7(0x201)])({'summary':_0x2a9eb7(0x1e0)}),(0x0,common_1['UseGuards'])(jwtAuth_guard_1['JwtAuthGuard']),(0x0,swagger_1['ApiBearerAuth'])(),__param(0x0,(0x0,common_1[_0x2a9eb7(0x1d4)])()),__param(0x1,(0x0,common_1['Req'])()),__metadata(_0x2a9eb7(0x1c6),Function),__metadata(_0x2a9eb7(0x1d6),[deleteApp_dto_1[_0x2a9eb7(0x1c4)],Object]),__metadata(_0x2a9eb7(0x1c7),void 0x0)],AppController[_0x2a9eb7(0x1ec)],_0x2a9eb7(0x1f4),null),__decorate([(0x0,common_1[_0x2a9eb7(0x1dc)])('collect'),(0x0,swagger_1['ApiOperation'])({'summary':_0x2a9eb7(0x1e8)}),(0x0,common_1[_0x2a9eb7(0x1dd)])(jwtAuth_guard_1[_0x2a9eb7(0x1eb)]),(0x0,swagger_1[_0x2a9eb7(0x1fd)])(),__param(0x0,(0x0,common_1[_0x2a9eb7(0x1d4)])()),__param(0x1,(0x0,common_1[_0x2a9eb7(0x205)])()),__metadata(_0x2a9eb7(0x1c6),Function),__metadata(_0x2a9eb7(0x1d6),[collectApp_dto_1[_0x2a9eb7(0x1d1)],Object]),__metadata('design:returntype',void 0x0)],AppController[_0x2a9eb7(0x1ec)],_0x2a9eb7(0x218),null),__decorate([(0x0,common_1[_0x2a9eb7(0x1c9)])(_0x2a9eb7(0x1f9)),(0x0,swagger_1[_0x2a9eb7(0x201)])({'summary':'我的收藏'}),(0x0,common_1[_0x2a9eb7(0x1dd)])(jwtAuth_guard_1[_0x2a9eb7(0x1eb)]),(0x0,swagger_1[_0x2a9eb7(0x1fd)])(),__param(0x0,(0x0,common_1[_0x2a9eb7(0x205)])()),__metadata(_0x2a9eb7(0x1c6),Function),__metadata(_0x2a9eb7(0x1d6),[Object]),__metadata('design:returntype',void 0x0)],AppController[_0x2a9eb7(0x1ec)],'mineApps',null),AppController=__decorate([(0x0,swagger_1['ApiTags'])('App'),(0x0,common_1[_0x2a9eb7(0x1ef)])(_0x2a9eb7(0x1f1)),__metadata(_0x2a9eb7(0x1d6),[app_service_1['AppService']])],AppController),exports[_0x2a9eb7(0x1d8)]=AppController;