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