mirror of
https://gitee.com/dotnetchina/OpenAuth.Net.git
synced 2025-09-21 02:57:54 +08:00
🔄refactor: 统一返回给前端的数据结构
This commit is contained in:
50
OpenAuth.App/Base/PagedDynamicDataResp.cs
Normal file
50
OpenAuth.App/Base/PagedDynamicDataResp.cs
Normal file
@@ -0,0 +1,50 @@
|
||||
// ***********************************************************************
|
||||
// Assembly : FundationAdmin
|
||||
// Author : yubaolee
|
||||
// Created : 03-09-2016
|
||||
//
|
||||
// Last Modified By : yubaolee
|
||||
// Last Modified On : 03-09-2016
|
||||
// ***********************************************************************
|
||||
// <copyright file="TableData.cs" company="Microsoft">
|
||||
// 版权所有(C) Microsoft 2015
|
||||
// </copyright>
|
||||
// <summary>layui datatable数据返回</summary>
|
||||
// ***********************************************************************
|
||||
|
||||
using System.Collections.Generic;
|
||||
using OpenAuth.Repository.Domain;
|
||||
|
||||
namespace OpenAuth.App.Response
|
||||
{
|
||||
/// <summary>
|
||||
/// 返回动态数据类型的分页数据
|
||||
/// <para>带有列定义</para>
|
||||
/// </summary>
|
||||
public class PagedDynamicDataResp : Infrastructure.Response
|
||||
{
|
||||
/// <summary>
|
||||
/// 总记录条数
|
||||
/// </summary>
|
||||
public int Count { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 返回的表格列定义
|
||||
/// 该属性基于代码生成使用的列定义
|
||||
/// </summary>
|
||||
public List<BuilderTableColumn> ColumnFields{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 数据内容
|
||||
/// </summary>
|
||||
public dynamic Data { get; set; }
|
||||
|
||||
public PagedDynamicDataResp()
|
||||
{
|
||||
Code = 200;
|
||||
Message = "加载成功";
|
||||
ColumnFields = new List<BuilderTableColumn>();
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user