-
Notifications
You must be signed in to change notification settings - Fork 0
/
CurPage.cs
44 lines (37 loc) · 1.01 KB
/
CurPage.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Com.Ddlev.Data
{
public interface ICurPage<T> {
int total { set; get; }
T rows { set; get; }
Dictionary<string, dynamic> otherdatas { set; get; }
}
public interface ICurPage: ICurPage<object>
{
}
public class BaseCurPage<T>: ICurPage<T>
{
/// <summary>
/// 总条数
/// </summary>
public int total { set; get; }
/// <summary>
/// 当前页的数据集(List集合)
/// </summary>
public T rows { set; get; }
/// <summary>
/// 辅佐数据
/// </summary>
public Dictionary<string, dynamic> otherdatas { set; get; }
}
public class CurPage : BaseCurPage<object>, ICurPage
{
}
public class CurPage<T> : BaseCurPage<List<T>>, ICurPage<List<T>> where T:class, new()
{
}
}