From 19459be5ff2c2ca74b3f953bb1255061a36c24ad Mon Sep 17 00:00:00 2001 From: liaoxujun@qq.com <liaoxujun@qq.com> Date: 星期三, 23 八月 2023 14:27:52 +0800 Subject: [PATCH] 修正授权函数类,增加数据库连接配置 --- DocumentServiceAPI.Utility/PageBaseSearch.cs | 40 +++++++++++++++++++++++++++------------- 1 files changed, 27 insertions(+), 13 deletions(-) diff --git a/DocumentServiceAPI.Utility/PageBaseSearch.cs b/DocumentServiceAPI.Utility/PageBaseSearch.cs index 120752f..031808b 100644 --- a/DocumentServiceAPI.Utility/PageBaseSearch.cs +++ b/DocumentServiceAPI.Utility/PageBaseSearch.cs @@ -1,15 +1,9 @@ -锘縰sing System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace DocumentServiceAPI.Utility +锘縩amespace DocumentServiceAPI.Utility { /// <summary> /// 鍒嗛〉鏌ヨ鏉′欢鍩虹被 /// </summary> - public abstract class PageBaseSearch + public abstract class PageBaseSearch: BaseSearch { /// <summary> /// 椤电爜 @@ -20,6 +14,27 @@ /// 鍒嗛〉澶у皬 /// </summary> public int PageSize { get; set; } = 20; + + } + + public abstract class BaseSearch + { + public int ID { get; set; } + + /// <summary> + /// 鍏徃ID + /// </summary> + public int CompanyID { get; set; } + + /// <summary> + /// 绉熸埛ID + /// </summary> + public int TenantID { get; set; } + + /// <summary> + /// 鐢ㄦ埛ID + /// </summary> + public int UserID { get; set; } /// <summary> /// 寮�濮嬫棩鏈� @@ -49,11 +64,6 @@ public int PageSize { get; set; } /// <summary> - /// 椤垫�绘暟 - /// </summary> - public int TotalPage { get; set; } - - /// <summary> /// 璁板綍鎬绘暟 /// </summary> public int TotalCount { get; set; } @@ -62,6 +72,10 @@ /// 璁板綍闆嗗悎 /// </summary> public List<T> Items { get; set; } = new(); + /// <summary> + /// 鎬婚〉鏁� + /// </summary> + public int TotalPage { get; set; } } } -- Gitblit v1.9.1