Blog.Core/Blog.Core.Services/TopicDetailServices.cs
2022-08-02 21:53:16 +08:00

24 lines
680 B
C#
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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");
}
}
}