Files
Api/DouyinApi.Services/TopicServices.cs
2025-11-04 21:09:16 +08:00

25 lines
654 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 DouyinApi.Common;
using DouyinApi.IRepository.Base;
using DouyinApi.IServices;
using DouyinApi.Model.Models;
using DouyinApi.Services.BASE;
using System.Collections.Generic;
using System.Threading.Tasks;
namespace DouyinApi.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");
}
}
}