public async Task <ResponseModel> GetOne(int id)
        {
            if (id > 0)
            {
                string key = $"news_type:{id}";
                _logger.LogInformation($"开始从Redis缓存中读取数据Key({key})");
                var newsType = await _redisHelper.GetObjectByKeyAsync <NewsType>(key);

                if (newsType == null)
                {
                    _logger.LogInformation("缓存中未获取到数据,从数据库读取!");
                    newsType = await _newsTypeService.GetOneAsync(id);

                    var timeSpan = new TimeSpan(0, 5, 0);
                    await _redisHelper.SetObjectByKeyAsync(key, newsType, timeSpan);
                }

                if (newsType == null)
                {
                    return new ResponseModel {
                               code = 0, result = "新闻分类不存在"
                    }
                }
                ;
                return(new ResponseModel {
                    code = 200, result = "新闻分类获取成功", data = newsType
                });
            }
            else
            {
                return(new ResponseModel {
                    code = 0, result = "参数错误"
                });
            }
        }