🔄refactor: 统一返回给前端的数据结构

This commit is contained in:
yubaolee
2025-06-11 21:14:41 +08:00
parent 0b930dc6b4
commit 069991504c
52 changed files with 265 additions and 287 deletions

View File

@@ -0,0 +1,28 @@
using System.Collections.Generic;
using Infrastructure;
namespace OpenAuth.App.Response
{
/// <summary>
/// 返回确定类型的表格数据可以为swagger提供精准的注释
/// </summary>
public class PagedListDataResp<T> : Infrastructure.Response
{
/// <summary>
/// 总记录条数
/// </summary>
public int Count { get; set; }
/// <summary>
/// 数据内容
/// </summary>
public List<T> Data { get; set; }
public PagedListDataResp()
{
Code = 200;
Message = "加载成功";
}
}
}