Exemplo n.º 1
0
        public IActionResult Get(int id)
        {
            var obj = _feedBackService.GetObject(z => z.Id == id, new string[] { nameof(Account) });

            if (obj == null)
            {
                return(RenderJsonSuccessResult(false, new
                {
                    Message = "信息不存在"
                }));
            }

            return(RenderJsonSuccessResult(true, new
            {
                obj.Id,
                obj.Content,
                obj.AddTime,
                obj.Account?.PicUrl,
                obj.Account?.NickName,
                obj.Account?.UserName
            }));
        }