mirror of
https://gitee.com/dotnetchina/OpenAuth.Net.git
synced 2025-11-09 02:44:44 +08:00
增加撤销与启动,详见:#I3ILBG
调整工程结构,采用模块化机制
This commit is contained in:
7
OpenAuth.App/Base/IdPageReq.cs
Normal file
7
OpenAuth.App/Base/IdPageReq.cs
Normal file
@@ -0,0 +1,7 @@
|
||||
namespace OpenAuth.App.Request
|
||||
{
|
||||
public class IdPageReq :PageReq
|
||||
{
|
||||
public string id { get; set; }
|
||||
}
|
||||
}
|
||||
16
OpenAuth.App/Base/PageReq.cs
Normal file
16
OpenAuth.App/Base/PageReq.cs
Normal file
@@ -0,0 +1,16 @@
|
||||
namespace OpenAuth.App.Request
|
||||
{
|
||||
public class PageReq
|
||||
{
|
||||
public int page { get; set; }
|
||||
public int limit { get; set; }
|
||||
|
||||
public string key { get; set; }
|
||||
|
||||
public PageReq()
|
||||
{
|
||||
page = 1;
|
||||
limit = 10;
|
||||
}
|
||||
}
|
||||
}
|
||||
56
OpenAuth.App/Base/TableData.cs
Normal file
56
OpenAuth.App/Base/TableData.cs
Normal file
@@ -0,0 +1,56 @@
|
||||
// ***********************************************************************
|
||||
// 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 Infrastructure;
|
||||
|
||||
namespace OpenAuth.App.Response
|
||||
{
|
||||
/// <summary>
|
||||
/// table的返回数据
|
||||
/// </summary>
|
||||
public class TableData
|
||||
{
|
||||
/// <summary>
|
||||
/// 状态码
|
||||
/// </summary>
|
||||
public int code { get; set; }
|
||||
/// <summary>
|
||||
/// 操作消息
|
||||
/// </summary>
|
||||
public string msg { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 总记录条数
|
||||
/// </summary>
|
||||
public int count { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 返回的列表头信息
|
||||
/// </summary>
|
||||
public List<KeyDescription> columnHeaders;
|
||||
|
||||
/// <summary>
|
||||
/// 数据内容
|
||||
/// </summary>
|
||||
public dynamic data { get; set; }
|
||||
|
||||
public TableData()
|
||||
{
|
||||
code = 200;
|
||||
msg = "加载成功";
|
||||
columnHeaders = new List<KeyDescription>();
|
||||
}
|
||||
}
|
||||
}
|
||||
42
OpenAuth.App/Base/TableResp.cs
Normal file
42
OpenAuth.App/Base/TableResp.cs
Normal file
@@ -0,0 +1,42 @@
|
||||
using System.Collections.Generic;
|
||||
using Infrastructure;
|
||||
|
||||
namespace OpenAuth.App.Response
|
||||
{
|
||||
/// <summary>
|
||||
/// 返回确定类型的表格数据,可以为swagger提供精准的注释
|
||||
/// </summary>
|
||||
public class TableResp<T>
|
||||
{
|
||||
/// <summary>
|
||||
/// 状态码
|
||||
/// </summary>
|
||||
public int code { get; set; }
|
||||
/// <summary>
|
||||
/// 操作消息
|
||||
/// </summary>
|
||||
public string msg { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 总记录条数
|
||||
/// </summary>
|
||||
public int count { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 数据内容
|
||||
/// </summary>
|
||||
public List<T> data { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 返回的列表头信息
|
||||
/// </summary>
|
||||
public List<KeyDescription> columnHeaders { get; set; }
|
||||
|
||||
public TableResp()
|
||||
{
|
||||
code = 200;
|
||||
msg = "加载成功";
|
||||
columnHeaders = new List<KeyDescription>();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user