46 lines
1.1 KiB
C#
46 lines
1.1 KiB
C#
using MediatR;
|
||
using TakeoutSaaS.Application.App.Customers.Dto;
|
||
|
||
namespace TakeoutSaaS.Application.App.Customers.Queries;
|
||
|
||
/// <summary>
|
||
/// 客群明细查询。
|
||
/// </summary>
|
||
public sealed class GetCustomerAnalysisSegmentListQuery : IRequest<CustomerAnalysisSegmentListResultDto>
|
||
{
|
||
/// <summary>
|
||
/// 可见门店 ID 集合。
|
||
/// </summary>
|
||
public IReadOnlyCollection<long> VisibleStoreIds { get; init; } = [];
|
||
|
||
/// <summary>
|
||
/// 统计周期编码(7d/30d/90d/365d)。
|
||
/// </summary>
|
||
public string PeriodCode { get; init; } = "30d";
|
||
|
||
/// <summary>
|
||
/// 统计周期天数。
|
||
/// </summary>
|
||
public int PeriodDays { get; init; } = 30;
|
||
|
||
/// <summary>
|
||
/// 分群编码。
|
||
/// </summary>
|
||
public string SegmentCode { get; init; } = "all";
|
||
|
||
/// <summary>
|
||
/// 关键词(姓名/手机号)。
|
||
/// </summary>
|
||
public string? Keyword { get; init; }
|
||
|
||
/// <summary>
|
||
/// 页码。
|
||
/// </summary>
|
||
public int Page { get; init; } = 1;
|
||
|
||
/// <summary>
|
||
/// 每页条数。
|
||
/// </summary>
|
||
public int PageSize { get; init; } = 10;
|
||
}
|