From aef74aff62bd9fc2d615f8b15a100432f2bca44f Mon Sep 17 00:00:00 2001
From: zhengyiming <540361168@qq.com>
Date: 星期三, 19 三月 2025 14:46:10 +0800
Subject: [PATCH] Merge branch 'master' of http://120.26.58.240:8888/r/LifePaymentApi

---
 LifePayment/LifePayment.Domain/Common/ChannelHelper.cs |   47 +++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 47 insertions(+), 0 deletions(-)

diff --git a/LifePayment/LifePayment.Domain/Common/ChannelHelper.cs b/LifePayment/LifePayment.Domain/Common/ChannelHelper.cs
new file mode 100644
index 0000000..cff865d
--- /dev/null
+++ b/LifePayment/LifePayment.Domain/Common/ChannelHelper.cs
@@ -0,0 +1,47 @@
+锘縰sing 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<IQueryable<TEntity>> GetChannelFilter<TEntity, TKey>(IQueryable<TEntity> query)
+     where TEntity : class, IChannelData, IMayHaveCreator, IEntity<TKey>;
+        //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>();
+    }
+
+}

--
Gitblit v1.9.1