You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
Tiobon.Web.Core/Blog.Core.Services/TopicServices.cs

24 lines
654 B

using Blog.Core.Common;
using Blog.Core.IRepository.Base;
using Blog.Core.IServices;
using Blog.Core.Model.Models;
using Blog.Core.Services.BASE;
using System.Collections.Generic;
using System.Threading.Tasks;
namespace Blog.Core.Services
{
public class TopicServices: BaseServices<Topic>, ITopicServices
{
/// <summary>
/// 获取开Bug专题分类(缓存)
/// </summary>
/// <returns></returns>
[Caching(AbsoluteExpiration = 60)]
public async Task<List<Topic>> GetTopics()
{
return await base.Query(a => !a.tIsDelete && a.tSectendDetail == "tbug");
}
}
}