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

1 line
5.5 KiB
JavaScript

'use strict';function _0x2886(){const _0x156abc=['Post','metadata','defineProperty','function','25142uGdGnG','MjService','__esModule','__param','__decorate','JwtAuthGuard','Req','绘制mj图片','2624ftJTRp','draw','variationSingleImg','ApiTags','放大单张图片','MjTransformImgDto','873420HxdSrh','17163OrjdEW','prototype','__metadata','ApiOperation','25435CGizrX','126AiiOQb','MjEnlargeImgDto','ApiBearerAuth','design:paramtypes','1390599xSpwot','Controller','design:returntype','MjDrawDto','design:type','UseGuards','object','12856095BJQhTj','121Pldroq','318hOAZce','length','mjService','./mj.service','upscaleSingleImg','13079556Hivvvc','./dto/mjTransform.dto','MjController','decorate','./dto/mjEnlargeImg.dto','4syCQDo','Body'];_0x2886=function(){return _0x156abc;};return _0x2886();}const _0x6c5f04=_0x3174;(function(_0xe65ed2,_0x14c301){const _0x46f248=_0x3174,_0x49d906=_0xe65ed2();while(!![]){try{const _0x4a43aa=parseInt(_0x46f248(0x1f7))/0x1*(parseInt(_0x46f248(0x20b))/0x2)+-parseInt(_0x46f248(0x1de))/0x3*(-parseInt(_0x46f248(0x1f1))/0x4)+parseInt(_0x46f248(0x20a))/0x5*(parseInt(_0x46f248(0x1e7))/0x6)+-parseInt(_0x46f248(0x1e5))/0x7+parseInt(_0x46f248(0x1ff))/0x8*(parseInt(_0x46f248(0x206))/0x9)+-parseInt(_0x46f248(0x205))/0xa*(-parseInt(_0x46f248(0x1e6))/0xb)+-parseInt(_0x46f248(0x1ec))/0xc;if(_0x4a43aa===_0x14c301)break;else _0x49d906['push'](_0x49d906['shift']());}catch(_0x2d9643){_0x49d906['push'](_0x49d906['shift']());}}}(_0x2886,0xee7a0));var __decorate=this&&this[_0x6c5f04(0x1fb)]||function(_0x59ed5d,_0x2402e6,_0x2d7641,_0x1bcc1a){const _0x24ea89=_0x6c5f04;var _0x57229c=arguments[_0x24ea89(0x1e8)],_0x219e1c=_0x57229c<0x3?_0x2402e6:_0x1bcc1a===null?_0x1bcc1a=Object['getOwnPropertyDescriptor'](_0x2402e6,_0x2d7641):_0x1bcc1a,_0x1894c6;if(typeof Reflect===_0x24ea89(0x1e4)&&typeof Reflect[_0x24ea89(0x1ef)]===_0x24ea89(0x1f6))_0x219e1c=Reflect[_0x24ea89(0x1ef)](_0x59ed5d,_0x2402e6,_0x2d7641,_0x1bcc1a);else{for(var _0x4b9a91=_0x59ed5d[_0x24ea89(0x1e8)]-0x1;_0x4b9a91>=0x0;_0x4b9a91--)if(_0x1894c6=_0x59ed5d[_0x4b9a91])_0x219e1c=(_0x57229c<0x3?_0x1894c6(_0x219e1c):_0x57229c>0x3?_0x1894c6(_0x2402e6,_0x2d7641,_0x219e1c):_0x1894c6(_0x2402e6,_0x2d7641))||_0x219e1c;}return _0x57229c>0x3&&_0x219e1c&&Object[_0x24ea89(0x1f5)](_0x2402e6,_0x2d7641,_0x219e1c),_0x219e1c;},__metadata=this&&this[_0x6c5f04(0x208)]||function(_0x766db0,_0x399bc1){const _0x57416c=_0x6c5f04;if(typeof Reflect===_0x57416c(0x1e4)&&typeof Reflect[_0x57416c(0x1f4)]===_0x57416c(0x1f6))return Reflect[_0x57416c(0x1f4)](_0x766db0,_0x399bc1);},__param=this&&this[_0x6c5f04(0x1fa)]||function(_0x2ae969,_0x340f49){return function(_0x35172f,_0x40c30c){_0x340f49(_0x35172f,_0x40c30c,_0x2ae969);};};Object['defineProperty'](exports,_0x6c5f04(0x1f9),{'value':!![]}),exports[_0x6c5f04(0x1ee)]=void 0x0;const common_1=require('@nestjs/common'),mj_service_1=require(_0x6c5f04(0x1ea)),swagger_1=require('@nestjs/swagger'),mjDraw_dto_1=require('./dto/mjDraw.dto'),mjEnlargeImg_dto_1=require(_0x6c5f04(0x1f0)),jwtAuth_guard_1=require('../../common/auth/jwtAuth.guard'),mjTransform_dto_1=require(_0x6c5f04(0x1ed));function _0x3174(_0x7412d6,_0x4ed8f7){const _0x288673=_0x2886();return _0x3174=function(_0x3174f6,_0x3abe5b){_0x3174f6=_0x3174f6-0x1db;let _0x5c65f3=_0x288673[_0x3174f6];return _0x5c65f3;},_0x3174(_0x7412d6,_0x4ed8f7);}let MjController=class MjController{constructor(_0x3afaa4){const _0x237389=_0x6c5f04;this[_0x237389(0x1e9)]=_0x3afaa4;}[_0x6c5f04(0x200)](_0x2c1168,_0x28a6af){const _0x1838cd=_0x6c5f04;return this[_0x1838cd(0x1e9)]['draw'](_0x2c1168,_0x28a6af);}[_0x6c5f04(0x1eb)](_0x1a3a0e,_0x216814){const _0x189ce4=_0x6c5f04;return this['mjService'][_0x189ce4(0x1eb)](_0x1a3a0e,_0x216814);}[_0x6c5f04(0x201)](_0x534ec3,_0x129930){const _0x394246=_0x6c5f04;return this[_0x394246(0x1e9)][_0x394246(0x201)](_0x534ec3,_0x129930);}};__decorate([(0x0,common_1['Post'])('draw'),(0x0,swagger_1[_0x6c5f04(0x209)])({'summary':_0x6c5f04(0x1fe)}),(0x0,common_1[_0x6c5f04(0x1e3)])(jwtAuth_guard_1[_0x6c5f04(0x1fc)]),(0x0,swagger_1[_0x6c5f04(0x1dc)])(),__param(0x0,(0x0,common_1[_0x6c5f04(0x1f2)])()),__param(0x1,(0x0,common_1[_0x6c5f04(0x1fd)])()),__metadata('design:type',Function),__metadata('design:paramtypes',[mjDraw_dto_1[_0x6c5f04(0x1e1)],Object]),__metadata(_0x6c5f04(0x1e0),void 0x0)],MjController['prototype'],_0x6c5f04(0x200),null),__decorate([(0x0,common_1[_0x6c5f04(0x1f3)])(_0x6c5f04(0x1eb)),(0x0,swagger_1['ApiOperation'])({'summary':_0x6c5f04(0x203)}),(0x0,common_1[_0x6c5f04(0x1e3)])(jwtAuth_guard_1[_0x6c5f04(0x1fc)]),(0x0,swagger_1['ApiBearerAuth'])(),__param(0x0,(0x0,common_1['Body'])()),__param(0x1,(0x0,common_1[_0x6c5f04(0x1fd)])()),__metadata(_0x6c5f04(0x1e2),Function),__metadata(_0x6c5f04(0x1dd),[mjEnlargeImg_dto_1[_0x6c5f04(0x1db)],Object]),__metadata(_0x6c5f04(0x1e0),void 0x0)],MjController[_0x6c5f04(0x207)],_0x6c5f04(0x1eb),null),__decorate([(0x0,common_1[_0x6c5f04(0x1f3)])(_0x6c5f04(0x201)),(0x0,swagger_1[_0x6c5f04(0x209)])({'summary':'变体单张图片'}),(0x0,common_1[_0x6c5f04(0x1e3)])(jwtAuth_guard_1[_0x6c5f04(0x1fc)]),(0x0,swagger_1['ApiBearerAuth'])(),__param(0x0,(0x0,common_1['Body'])()),__param(0x1,(0x0,common_1[_0x6c5f04(0x1fd)])()),__metadata(_0x6c5f04(0x1e2),Function),__metadata('design:paramtypes',[mjTransform_dto_1[_0x6c5f04(0x204)],Object]),__metadata(_0x6c5f04(0x1e0),void 0x0)],MjController['prototype'],_0x6c5f04(0x201),null),MjController=__decorate([(0x0,swagger_1[_0x6c5f04(0x202)])('mj'),(0x0,common_1[_0x6c5f04(0x1df)])('mj'),__metadata('design:paramtypes',[mj_service_1[_0x6c5f04(0x1f8)]])],MjController),exports[_0x6c5f04(0x1ee)]=MjController;