public ActionResult <ResponseData <List <articleInfoDto> > > Get([FromQuery] string id) { if (string.IsNullOrEmpty(id)) { return(new ResponseData <List <articleInfoDto> > { code = "0", message = null, data = _articleInfoService.GetAllArticleInfos() }); } else { return(new ResponseData <List <articleInfoDto> > { code = "0", message = null, data = new List <articleInfoDto> { _articleInfoService.GetArticleInfoById(Guid.Parse(id)) } }); } }