(@Request() req, @Body() createAuthDto: CreateArticleDto)
| 18 | @ApiOperation({ summary: '创建权限' }) |
| 19 | @Post("create") |
| 20 | async create(@Request() req, @Body() createAuthDto: CreateArticleDto) { |
| 21 | let obj: any = createAuthDto as any; |
| 22 | obj.createUser = { |
| 23 | id: req.user.userId |
| 24 | } |
| 25 | return this.articleService.create(obj); |
| 26 | } |
| 27 | |
| 28 | /** |
| 29 | * 更新详情 |
nothing calls this directly
no outgoing calls
no test coverage detected