public async Task <IActionResult> SetArticleVisibleAsync([FromBody] SetArticleVisibleRequestDto request) { var articleBiz = new ArticleBiz(); var articleModel = await articleBiz.GetAsync(request.ArticleGuid); if (articleModel == null) { return(Failed(ErrorCode.DataBaseError, "数据错误")); } articleModel.Visible = request.Visible; var response = await articleBiz.UpdateAsync(articleModel); if (!response) { return(Failed(ErrorCode.DataBaseError, "跟新失败")); } return(Success()); }