コード例 #1
0
        public async Task <IActionResult> DeleteArticleAsync([FromBody] DeleteRequestDto request)
        {
            var articleBiz = new ArticleBiz();
            var result     = await articleBiz.DeleteAsync(request.Guid);

            if (!result)
            {
                return(Failed(ErrorCode.UserData, "删除失败"));
            }
            return(Success());
        }