2021-10-11 21:50:50 +08:00
|
|
|
|
using System;
|
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
using System.Linq;
|
|
|
|
|
|
using System.Text;
|
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
|
|
namespace Yi.Framework.Common.Models
|
|
|
|
|
|
{
|
2022-04-06 22:22:45 +08:00
|
|
|
|
|
|
|
|
|
|
public class PageModel<T>
|
2021-10-11 21:50:50 +08:00
|
|
|
|
{
|
2022-09-07 18:22:15 +08:00
|
|
|
|
public PageModel() { }
|
|
|
|
|
|
public PageModel(T data,int total)
|
|
|
|
|
|
{
|
|
|
|
|
|
Data = data;
|
|
|
|
|
|
Total = total;
|
|
|
|
|
|
}
|
2022-04-06 22:22:45 +08:00
|
|
|
|
public int Total { get; set; }
|
|
|
|
|
|
public T Data { get; set; }
|
|
|
|
|
|
}
|
2021-10-11 21:50:50 +08:00
|
|
|
|
|
2022-04-06 22:22:45 +08:00
|
|
|
|
public class PageModel : PageModel<object>
|
|
|
|
|
|
{
|
2022-09-07 18:22:15 +08:00
|
|
|
|
public PageModel() { }
|
|
|
|
|
|
public PageModel(object data, int total) : base(data, total)
|
|
|
|
|
|
{
|
|
|
|
|
|
}
|
2021-10-11 21:50:50 +08:00
|
|
|
|
}
|
|
|
|
|
|
}
|