优化注释

This commit is contained in:
不做码农
2023-05-31 07:46:59 +08:00
parent b3b0401d20
commit d6f03b372d
3 changed files with 24 additions and 6 deletions

View File

@@ -107,13 +107,13 @@ namespace ZR.Admin.WebApi.Controllers
/// <returns></returns>
[HttpPost("add")]
[ActionPermissionFilter(Permission = "system:article:add")]
[Log(Title = "添加文章", BusinessType = BusinessType.INSERT)]
[Log(Title = "发布文章", BusinessType = BusinessType.INSERT)]
public IActionResult Create([FromBody] ArticleDto parm)
{
var addModel = parm.Adapt<Article>().ToCreate(context: HttpContext);
addModel.AuthorName = HttpContext.GetName();
return SUCCESS(_ArticleService.Add(addModel));
return SUCCESS(_ArticleService.InsertReturnIdentity(addModel));
}
/// <summary>