using LifePayment.Domain.Models;
|
using System.Linq;
|
using System.Threading.Tasks;
|
using Volo.Abp.Domain.Entities;
|
|
namespace LifePayment.Domain
|
{
|
public interface IChannelFilter
|
{
|
|
|
public IQueryable<LifePayOrder> GetChannelLifePayOrderFilter(IQueryable<LifePayOrder> query);
|
|
//public static IQueryable<T> GetChannleQuery<T>(this IQueryable<T> 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<Guid> Channels { get; set; } = new List<Guid>();
|
//}
|
|
}
|