完成门店管理后端接口与任务

This commit is contained in:
2026-01-01 07:26:14 +08:00
parent dc9f6136d6
commit fc55003d3d
131 changed files with 15333 additions and 201 deletions

View File

@@ -0,0 +1,15 @@
using MediatR;
using TakeoutSaaS.Application.App.StoreAudits.Dto;
namespace TakeoutSaaS.Application.App.StoreAudits.Queries;
/// <summary>
/// 获取门店审核详情查询。
/// </summary>
public sealed record GetStoreAuditDetailQuery : IRequest<StoreAuditDetailDto?>
{
/// <summary>
/// 门店 ID。
/// </summary>
public long StoreId { get; init; }
}

View File

@@ -0,0 +1,20 @@
using MediatR;
using TakeoutSaaS.Application.App.StoreAudits.Dto;
namespace TakeoutSaaS.Application.App.StoreAudits.Queries;
/// <summary>
/// 获取审核统计查询。
/// </summary>
public sealed record GetStoreAuditStatisticsQuery : IRequest<StoreAuditStatisticsDto>
{
/// <summary>
/// 起始日期。
/// </summary>
public DateTime? DateFrom { get; init; }
/// <summary>
/// 截止日期。
/// </summary>
public DateTime? DateTo { get; init; }
}

View File

@@ -0,0 +1,56 @@
using MediatR;
using TakeoutSaaS.Application.App.StoreAudits.Dto;
using TakeoutSaaS.Shared.Abstractions.Results;
namespace TakeoutSaaS.Application.App.StoreAudits.Queries;
/// <summary>
/// 查询待审核门店列表。
/// </summary>
public sealed record ListPendingStoreAuditsQuery : IRequest<PagedResult<PendingStoreAuditDto>>
{
/// <summary>
/// 租户 ID。
/// </summary>
public long? TenantId { get; init; }
/// <summary>
/// 关键词。
/// </summary>
public string? Keyword { get; init; }
/// <summary>
/// 提交起始时间。
/// </summary>
public DateTime? SubmittedFrom { get; init; }
/// <summary>
/// 提交截止时间。
/// </summary>
public DateTime? SubmittedTo { get; init; }
/// <summary>
/// 是否只显示超时。
/// </summary>
public bool OverdueOnly { get; init; }
/// <summary>
/// 页码。
/// </summary>
public int Page { get; init; } = 1;
/// <summary>
/// 每页数量。
/// </summary>
public int PageSize { get; init; } = 20;
/// <summary>
/// 排序字段。
/// </summary>
public string? SortBy { get; init; }
/// <summary>
/// 是否降序。
/// </summary>
public bool SortDesc { get; init; }
}

View File

@@ -0,0 +1,26 @@
using MediatR;
using TakeoutSaaS.Application.App.StoreAudits.Dto;
using TakeoutSaaS.Shared.Abstractions.Results;
namespace TakeoutSaaS.Application.App.StoreAudits.Queries;
/// <summary>
/// 查询门店审核记录。
/// </summary>
public sealed record ListStoreAuditRecordsQuery : IRequest<PagedResult<StoreAuditRecordDto>>
{
/// <summary>
/// 门店 ID。
/// </summary>
public long StoreId { get; init; }
/// <summary>
/// 页码。
/// </summary>
public int Page { get; init; } = 1;
/// <summary>
/// 每页数量。
/// </summary>
public int PageSize { get; init; } = 20;
}