Blog.Core/Blog.Core.Services/TopicServices.cs

25 lines
654 B
C#
Raw Normal View History

2020-07-30 18:33:09 +08:00
using Blog.Core.Common;
using Blog.Core.IRepository.Base;
2018-08-22 12:18:14 +08:00
using Blog.Core.IServices;
2018-08-24 14:06:48 +08:00
using Blog.Core.Model.Models;
using Blog.Core.Services.BASE;
2020-07-30 18:33:09 +08:00
using System.Collections.Generic;
using System.Threading.Tasks;
2018-08-22 12:18:14 +08:00
namespace Blog.Core.Services
{
2018-08-24 14:06:48 +08:00
public class TopicServices: BaseServices<Topic>, ITopicServices
2018-08-22 12:18:14 +08:00
{
2019-01-17 18:21:59 +08:00
/// <summary>
/// 获取开Bug专题分类缓存
/// </summary>
/// <returns></returns>
[Caching(AbsoluteExpiration = 60)]
public async Task<List<Topic>> GetTopics()
{
2019-03-25 11:11:17 +08:00
return await base.Query(a => !a.tIsDelete && a.tSectendDetail == "tbug");
2019-01-17 18:21:59 +08:00
}
2018-08-27 12:04:16 +08:00
2018-08-22 12:18:14 +08:00
}
}