YiAi/YiAiQuickDeploy/dist/modules/badwords/badwords.controller.js

1 line
6.8 KiB
JavaScript

'use strict';const _0x20edd5=_0x1f73;(function(_0x4888be,_0x1c97fc){const _0x19067d=_0x1f73,_0x4008fd=_0x4888be();while(!![]){try{const _0x27f5a1=parseInt(_0x19067d(0xff))/0x1*(parseInt(_0x19067d(0xdd))/0x2)+-parseInt(_0x19067d(0x10e))/0x3*(parseInt(_0x19067d(0xdc))/0x4)+-parseInt(_0x19067d(0x111))/0x5*(-parseInt(_0x19067d(0x100))/0x6)+parseInt(_0x19067d(0x103))/0x7*(parseInt(_0x19067d(0xed))/0x8)+parseInt(_0x19067d(0xe7))/0x9*(-parseInt(_0x19067d(0x108))/0xa)+-parseInt(_0x19067d(0xfe))/0xb*(-parseInt(_0x19067d(0xfc))/0xc)+-parseInt(_0x19067d(0x104))/0xd*(parseInt(_0x19067d(0xea))/0xe);if(_0x27f5a1===_0x1c97fc)break;else _0x4008fd['push'](_0x4008fd['shift']());}catch(_0x2252b8){_0x4008fd['push'](_0x4008fd['shift']());}}}(_0x4d2b,0x39890));function _0x1f73(_0x20e70a,_0x9048a1){const _0x4d2b9a=_0x4d2b();return _0x1f73=function(_0x1f7341,_0x244c9c){_0x1f7341=_0x1f7341-0xd6;let _0x1d6555=_0x4d2b9a[_0x1f7341];return _0x1d6555;},_0x1f73(_0x20e70a,_0x9048a1);}var __decorate=this&&this[_0x20edd5(0xde)]||function(_0x52922d,_0x182336,_0x3958f5,_0x5dfeb8){const _0x2f383d=_0x20edd5;var _0x56e5b5=arguments[_0x2f383d(0xf7)],_0x201311=_0x56e5b5<0x3?_0x182336:_0x5dfeb8===null?_0x5dfeb8=Object['getOwnPropertyDescriptor'](_0x182336,_0x3958f5):_0x5dfeb8,_0x1ebc20;if(typeof Reflect==='object'&&typeof Reflect[_0x2f383d(0xe3)]===_0x2f383d(0xf6))_0x201311=Reflect[_0x2f383d(0xe3)](_0x52922d,_0x182336,_0x3958f5,_0x5dfeb8);else{for(var _0x16d27f=_0x52922d[_0x2f383d(0xf7)]-0x1;_0x16d27f>=0x0;_0x16d27f--)if(_0x1ebc20=_0x52922d[_0x16d27f])_0x201311=(_0x56e5b5<0x3?_0x1ebc20(_0x201311):_0x56e5b5>0x3?_0x1ebc20(_0x182336,_0x3958f5,_0x201311):_0x1ebc20(_0x182336,_0x3958f5))||_0x201311;}return _0x56e5b5>0x3&&_0x201311&&Object[_0x2f383d(0xf4)](_0x182336,_0x3958f5,_0x201311),_0x201311;},__metadata=this&&this[_0x20edd5(0xf9)]||function(_0x1cb709,_0x110831){const _0x1f9f58=_0x20edd5;if(typeof Reflect==='object'&&typeof Reflect[_0x1f9f58(0xda)]===_0x1f9f58(0xf6))return Reflect[_0x1f9f58(0xda)](_0x1cb709,_0x110831);},__param=this&&this['__param']||function(_0x3526c3,_0x381632){return function(_0x5da6be,_0x366a93){_0x381632(_0x5da6be,_0x366a93,_0x3526c3);};};Object[_0x20edd5(0xf4)](exports,_0x20edd5(0xe6),{'value':!![]}),exports[_0x20edd5(0xf8)]=void 0x0;const badwords_service_1=require('./badwords.service'),common_1=require(_0x20edd5(0xe9)),swagger_1=require(_0x20edd5(0xec)),queryBadWords_dto_1=require(_0x20edd5(0xef)),queryViolation_dto_1=require(_0x20edd5(0xf5)),updateBadWords_dto_1=require('./dto/updateBadWords.dto'),delBadWords_dto_1=require(_0x20edd5(0xeb)),addBadWords_dto_1=require('./dto/addBadWords.dto'),superAuth_guard_1=require(_0x20edd5(0x106)),adminAuth_guard_1=require(_0x20edd5(0x101));let BadwordsController=class BadwordsController{constructor(_0x587b1e){const _0x4d0cd7=_0x20edd5;this[_0x4d0cd7(0xe8)]=_0x587b1e;}[_0x20edd5(0x107)](_0x9ff09d){const _0x5b5851=_0x20edd5;return this[_0x5b5851(0xe8)][_0x5b5851(0x107)](_0x9ff09d);}[_0x20edd5(0xd7)](_0x28d367){const _0x39f092=_0x20edd5;return this[_0x39f092(0xe8)][_0x39f092(0xd7)](_0x28d367);}[_0x20edd5(0x10b)](_0x340405){const _0x291704=_0x20edd5;return this[_0x291704(0xe8)][_0x291704(0x10b)](_0x340405);}['addBadWord'](_0x5a334f){const _0xa31468=_0x20edd5;return this[_0xa31468(0xe8)][_0xa31468(0xfa)](_0x5a334f);}['violation'](_0x489fbe,_0x41a89d){const _0x250f63=_0x20edd5;return this[_0x250f63(0xe8)]['violation'](_0x489fbe,_0x41a89d);}};__decorate([(0x0,common_1[_0x20edd5(0x10d)])('query'),(0x0,swagger_1[_0x20edd5(0x110)])({'summary':'查询所有敏感词'}),__param(0x0,(0x0,common_1['Query'])()),__metadata(_0x20edd5(0x112),Function),__metadata(_0x20edd5(0xd9),[queryBadWords_dto_1[_0x20edd5(0xee)]]),__metadata(_0x20edd5(0x10c),void 0x0)],BadwordsController['prototype'],_0x20edd5(0x107),null),__decorate([(0x0,common_1['Post'])(_0x20edd5(0x10f)),(0x0,swagger_1[_0x20edd5(0x110)])({'summary':_0x20edd5(0xf1)}),(0x0,common_1[_0x20edd5(0xfb)])(superAuth_guard_1[_0x20edd5(0x105)]),(0x0,swagger_1[_0x20edd5(0x109)])(),__param(0x0,(0x0,common_1[_0x20edd5(0xf3)])()),__metadata(_0x20edd5(0x112),Function),__metadata(_0x20edd5(0xd9),[delBadWords_dto_1[_0x20edd5(0xe0)]]),__metadata(_0x20edd5(0x10c),void 0x0)],BadwordsController['prototype'],_0x20edd5(0xd7),null),__decorate([(0x0,common_1[_0x20edd5(0xe2)])(_0x20edd5(0xd8)),(0x0,swagger_1[_0x20edd5(0x110)])({'summary':'更新敏感词'}),(0x0,common_1[_0x20edd5(0xfb)])(superAuth_guard_1[_0x20edd5(0x105)]),(0x0,swagger_1[_0x20edd5(0x109)])(),__param(0x0,(0x0,common_1[_0x20edd5(0xf3)])()),__metadata(_0x20edd5(0x112),Function),__metadata('design:paramtypes',[updateBadWords_dto_1[_0x20edd5(0xfd)]]),__metadata(_0x20edd5(0x10c),void 0x0)],BadwordsController[_0x20edd5(0xe4)],_0x20edd5(0x10b),null),__decorate([(0x0,common_1[_0x20edd5(0xe2)])(_0x20edd5(0xdb)),(0x0,swagger_1[_0x20edd5(0x110)])({'summary':_0x20edd5(0xd6)}),(0x0,common_1['UseGuards'])(superAuth_guard_1['SuperAuthGuard']),(0x0,swagger_1[_0x20edd5(0x109)])(),__param(0x0,(0x0,common_1[_0x20edd5(0xf3)])()),__metadata(_0x20edd5(0x112),Function),__metadata('design:paramtypes',[addBadWords_dto_1[_0x20edd5(0xe5)]]),__metadata('design:returntype',void 0x0)],BadwordsController[_0x20edd5(0xe4)],'addBadWord',null),__decorate([(0x0,common_1[_0x20edd5(0x10d)])('violation'),(0x0,swagger_1['ApiOperation'])({'summary':_0x20edd5(0xf2)}),(0x0,common_1[_0x20edd5(0xfb)])(adminAuth_guard_1[_0x20edd5(0x10a)]),(0x0,swagger_1['ApiBearerAuth'])(),__param(0x0,(0x0,common_1[_0x20edd5(0xe1)])()),__param(0x1,(0x0,common_1[_0x20edd5(0xf0)])()),__metadata('design:type',Function),__metadata(_0x20edd5(0xd9),[Object,queryViolation_dto_1[_0x20edd5(0x102)]]),__metadata(_0x20edd5(0x10c),void 0x0)],BadwordsController[_0x20edd5(0xe4)],_0x20edd5(0xdf),null),BadwordsController=__decorate([(0x0,swagger_1['ApiTags'])('badWords'),(0x0,common_1['Controller'])('badwords'),__metadata(_0x20edd5(0xd9),[badwords_service_1['BadwordsService']])],BadwordsController),exports[_0x20edd5(0xf8)]=BadwordsController;function _0x4d2b(){const _0x3360e8=['70HoeJPz','./dto/delBadWords.dto','@nestjs/swagger','2413696HuumOw','QueryBadWordsDto','./dto/queryBadWords.dto','Query','删除敏感词','查询违规记录','Body','defineProperty','./dto/queryViolation.dto','function','length','BadwordsController','__metadata','addBadWord','UseGuards','1596yiEdpq','UpdateBadWordsDto','23738itTCDk','1trQVZK','2241630lwmHGk','../../common/auth/adminAuth.guard','QueryViolationDto','7WNyYAJ','1853449AxUrCi','SuperAuthGuard','../../common/auth/superAuth.guard','queryBadWords','9170TbaOXm','ApiBearerAuth','AdminAuthGuard','updateBadWords','design:returntype','Get','181785BqosCe','del','ApiOperation','5pUpaVK','design:type','新增敏感词','delBadWords','update','design:paramtypes','metadata','add','8UVUBiD','598082tMRwuR','__decorate','violation','DelBadWordsDto','Req','Post','decorate','prototype','AddBadWordDto','__esModule','1881mTEqyp','badwordsService','@nestjs/common'];_0x4d2b=function(){return _0x3360e8;};return _0x4d2b();}