mirror of
https://github.com/anjoy8/Blog.Core.git
synced 2024-09-20 23:48:27 +08:00
24 lines
680 B
C#
24 lines
680 B
C#
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 TopicDetailServices : BaseServices<TopicDetail>, ITopicDetailServices
|
||
{
|
||
/// <summary>
|
||
/// 获取开Bug数据(缓存)
|
||
/// </summary>
|
||
/// <returns></returns>
|
||
[Caching(AbsoluteExpiration = 10)]
|
||
public async Task<List<TopicDetail>> GetTopicDetails()
|
||
{
|
||
return await base.Query(a => !a.tdIsDelete && a.tdSectendDetail == "tbug");
|
||
}
|
||
}
|
||
}
|