开玩笑写单元测试,如果和其他

时间:2019-09-30 15:32:37

标签: node.js typescript

@ApiImplicitParam({name:'phoneNumber'})   @Delete(':phoneNumber / delete')   异步deleteUser(@Req()req:任意,@Res()res:任意,@Param('phoneNumber')phoneNumber:任意):承诺{     如果(等待this.userService.deleteOneByPhoneNumber(phoneNumber)){       Logger.log(Method:${req.method + req.route.path}, phoneNumber:${phoneNumber});       返回res.status(HttpStatus.OK).json({});     }其他{       Logger.error(Method:${req.method + req.route.path}, phoneNumber:${phoneNumber});       返回res.status(HttpStatus.BAD_REQUEST).json({});     }   }

  • List item

0 个答案:

没有答案