using DynamicQuery.Net.Dto.Input; using DynamicQuery.Net; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using ZeroD.Application.Services.Dto; using Volo.Abp.Users; using Volo.Abp.Auditing; using Volo.Abp.Domain.Entities; namespace LifePayment.Domain { public interface IChannelFilter { public Task> GetChannelFilter(IQueryable query) where TEntity : class, IChannelData, IMayHaveCreator, IEntity; //public static IQueryable GetChannleQuery(this IQueryable query, ChannelFilterInput input) where T : class, IChannelData //{ // if (query == null) // { // return query; // } // if (input.Channels != null && input.Channels.Any()) // { // query = query.Where(r => input.Channels.Contains(r.ChannelId)); // } // return query; //} } public interface IChannelData { public Guid ChannleId { get; set; } } public class ChannelFilterInput { public List Channels { get; set; } = new List(); } }