MCPcopy Create free account
hub / github.com/chunshand/qdev / create

Method create

serve/src/app/admin/article/article.controller.ts:20–26  ·  view source on GitHub ↗
(@Request() req, @Body() createAuthDto: CreateArticleDto)

Source from the content-addressed store, hash-verified

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 * 更新详情

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected