init
This commit is contained in:
24
DouyinApi.Services/TopicServices.cs
Normal file
24
DouyinApi.Services/TopicServices.cs
Normal file
@@ -0,0 +1,24 @@
|
||||
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");
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user