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

1 line
6.7 KiB
JavaScript

'use strict';const _0x174240=_0x111f;function _0x111f(_0x2cfcc9,_0x3f4ba9){const _0xecf830=_0xecf8();return _0x111f=function(_0x111f86,_0x5f3f3a){_0x111f86=_0x111f86-0x10f;let _0x236fcf=_0xecf830[_0x111f86];return _0x236fcf;},_0x111f(_0x2cfcc9,_0x3f4ba9);}function _0xecf8(){const _0x1af317=['../../common/auth/adminAuth.guard','QueryBadWordsDto','./dto/queryViolation.dto','defineProperty','__decorate','length','BadwordsController','ApiTags','AddBadWordDto','design:returntype','Query','5213369SwSxdT','__param','violation','BadwordsService','5055300XhsCIW','UseGuards','design:paramtypes','design:type','function','Req','51135qeZOjE','badwords','Get','delBadWords','../../common/auth/superAuth.guard','ApiBearerAuth','ApiOperation','SuperAuthGuard','update','__metadata','4240490tvoMbL','updateBadWords','badwordsService','queryBadWords','AdminAuthGuard','11834iUQgMM','del','6Pllcdr','Controller','993568OtUJtf','object','Post','__esModule','./dto/delBadWords.dto','DelBadWordsDto','./dto/updateBadWords.dto','Body','metadata','addBadWord','./badwords.service','2466604elWyvC','148vXcMSJ','decorate','getOwnPropertyDescriptor','prototype'];_0xecf8=function(){return _0x1af317;};return _0xecf8();}(function(_0x31be92,_0x39d30b){const _0x2fe357=_0x111f,_0x50dc9a=_0x31be92();while(!![]){try{const _0x57a939=parseInt(_0x2fe357(0x123))/0x1*(-parseInt(_0x2fe357(0x113))/0x2)+-parseInt(_0x2fe357(0x13c))/0x3+parseInt(_0x2fe357(0x122))/0x4+parseInt(_0x2fe357(0x146))/0x5+-parseInt(_0x2fe357(0x115))/0x6*(parseInt(_0x2fe357(0x132))/0x7)+parseInt(_0x2fe357(0x117))/0x8+parseInt(_0x2fe357(0x136))/0x9;if(_0x57a939===_0x39d30b)break;else _0x50dc9a['push'](_0x50dc9a['shift']());}catch(_0x1614fd){_0x50dc9a['push'](_0x50dc9a['shift']());}}}(_0xecf8,0x7d45d));var __decorate=this&&this[_0x174240(0x12b)]||function(_0xc63138,_0x2470d2,_0x3476ba,_0x533227){const _0x3815fa=_0x174240;var _0x222352=arguments[_0x3815fa(0x12c)],_0x34a075=_0x222352<0x3?_0x2470d2:_0x533227===null?_0x533227=Object[_0x3815fa(0x125)](_0x2470d2,_0x3476ba):_0x533227,_0x6604b5;if(typeof Reflect===_0x3815fa(0x118)&&typeof Reflect[_0x3815fa(0x124)]===_0x3815fa(0x13a))_0x34a075=Reflect[_0x3815fa(0x124)](_0xc63138,_0x2470d2,_0x3476ba,_0x533227);else{for(var _0x32d63b=_0xc63138['length']-0x1;_0x32d63b>=0x0;_0x32d63b--)if(_0x6604b5=_0xc63138[_0x32d63b])_0x34a075=(_0x222352<0x3?_0x6604b5(_0x34a075):_0x222352>0x3?_0x6604b5(_0x2470d2,_0x3476ba,_0x34a075):_0x6604b5(_0x2470d2,_0x3476ba))||_0x34a075;}return _0x222352>0x3&&_0x34a075&&Object['defineProperty'](_0x2470d2,_0x3476ba,_0x34a075),_0x34a075;},__metadata=this&&this[_0x174240(0x145)]||function(_0xb229ae,_0x2a4fa8){const _0x1ccae4=_0x174240;if(typeof Reflect===_0x1ccae4(0x118)&&typeof Reflect[_0x1ccae4(0x11f)]===_0x1ccae4(0x13a))return Reflect[_0x1ccae4(0x11f)](_0xb229ae,_0x2a4fa8);},__param=this&&this[_0x174240(0x133)]||function(_0x3ad03e,_0x2329fd){return function(_0x1d4f42,_0x28d42b){_0x2329fd(_0x1d4f42,_0x28d42b,_0x3ad03e);};};Object[_0x174240(0x12a)](exports,_0x174240(0x11a),{'value':!![]}),exports[_0x174240(0x12d)]=void 0x0;const badwords_service_1=require(_0x174240(0x121)),common_1=require('@nestjs/common'),swagger_1=require('@nestjs/swagger'),queryBadWords_dto_1=require('./dto/queryBadWords.dto'),queryViolation_dto_1=require(_0x174240(0x129)),updateBadWords_dto_1=require(_0x174240(0x11d)),delBadWords_dto_1=require(_0x174240(0x11b)),addBadWords_dto_1=require('./dto/addBadWords.dto'),superAuth_guard_1=require(_0x174240(0x140)),adminAuth_guard_1=require(_0x174240(0x127));let BadwordsController=class BadwordsController{constructor(_0x1f1bfb){const _0x350bab=_0x174240;this[_0x350bab(0x110)]=_0x1f1bfb;}[_0x174240(0x111)](_0x2d63b0){const _0x1fdbf4=_0x174240;return this['badwordsService'][_0x1fdbf4(0x111)](_0x2d63b0);}['delBadWords'](_0x5ac347){const _0x4b4ebc=_0x174240;return this[_0x4b4ebc(0x110)][_0x4b4ebc(0x13f)](_0x5ac347);}[_0x174240(0x10f)](_0x43da18){const _0x5c12c8=_0x174240;return this[_0x5c12c8(0x110)][_0x5c12c8(0x10f)](_0x43da18);}[_0x174240(0x120)](_0x55b1c2){const _0x545a77=_0x174240;return this[_0x545a77(0x110)][_0x545a77(0x120)](_0x55b1c2);}['violation'](_0x31f777,_0x17e63c){const _0x3f8e67=_0x174240;return this[_0x3f8e67(0x110)]['violation'](_0x31f777,_0x17e63c);}};__decorate([(0x0,common_1[_0x174240(0x13e)])('query'),(0x0,swagger_1[_0x174240(0x142)])({'summary':'查询所有敏感词'}),__param(0x0,(0x0,common_1[_0x174240(0x131)])()),__metadata('design:type',Function),__metadata(_0x174240(0x138),[queryBadWords_dto_1[_0x174240(0x128)]]),__metadata('design:returntype',void 0x0)],BadwordsController[_0x174240(0x126)],'queryBadWords',null),__decorate([(0x0,common_1[_0x174240(0x119)])(_0x174240(0x114)),(0x0,swagger_1[_0x174240(0x142)])({'summary':'删除敏感词'}),(0x0,common_1[_0x174240(0x137)])(superAuth_guard_1[_0x174240(0x143)]),(0x0,swagger_1['ApiBearerAuth'])(),__param(0x0,(0x0,common_1[_0x174240(0x11e)])()),__metadata(_0x174240(0x139),Function),__metadata(_0x174240(0x138),[delBadWords_dto_1[_0x174240(0x11c)]]),__metadata(_0x174240(0x130),void 0x0)],BadwordsController[_0x174240(0x126)],_0x174240(0x13f),null),__decorate([(0x0,common_1[_0x174240(0x119)])(_0x174240(0x144)),(0x0,swagger_1[_0x174240(0x142)])({'summary':'更新敏感词'}),(0x0,common_1[_0x174240(0x137)])(superAuth_guard_1[_0x174240(0x143)]),(0x0,swagger_1[_0x174240(0x141)])(),__param(0x0,(0x0,common_1[_0x174240(0x11e)])()),__metadata(_0x174240(0x139),Function),__metadata(_0x174240(0x138),[updateBadWords_dto_1['UpdateBadWordsDto']]),__metadata(_0x174240(0x130),void 0x0)],BadwordsController[_0x174240(0x126)],_0x174240(0x10f),null),__decorate([(0x0,common_1['Post'])('add'),(0x0,swagger_1['ApiOperation'])({'summary':'新增敏感词'}),(0x0,common_1[_0x174240(0x137)])(superAuth_guard_1[_0x174240(0x143)]),(0x0,swagger_1[_0x174240(0x141)])(),__param(0x0,(0x0,common_1[_0x174240(0x11e)])()),__metadata(_0x174240(0x139),Function),__metadata(_0x174240(0x138),[addBadWords_dto_1[_0x174240(0x12f)]]),__metadata('design:returntype',void 0x0)],BadwordsController[_0x174240(0x126)],_0x174240(0x120),null),__decorate([(0x0,common_1['Get'])(_0x174240(0x134)),(0x0,swagger_1[_0x174240(0x142)])({'summary':'查询违规记录'}),(0x0,common_1['UseGuards'])(adminAuth_guard_1[_0x174240(0x112)]),(0x0,swagger_1[_0x174240(0x141)])(),__param(0x0,(0x0,common_1[_0x174240(0x13b)])()),__param(0x1,(0x0,common_1[_0x174240(0x131)])()),__metadata(_0x174240(0x139),Function),__metadata('design:paramtypes',[Object,queryViolation_dto_1['QueryViolationDto']]),__metadata(_0x174240(0x130),void 0x0)],BadwordsController[_0x174240(0x126)],_0x174240(0x134),null),BadwordsController=__decorate([(0x0,swagger_1[_0x174240(0x12e)])('badWords'),(0x0,common_1[_0x174240(0x116)])(_0x174240(0x13d)),__metadata(_0x174240(0x138),[badwords_service_1[_0x174240(0x135)]])],BadwordsController),exports[_0x174240(0x12d)]=BadwordsController;