feat: tenant门店管理首批接口落地
All checks were successful
Build and Deploy TenantApi / build-and-deploy (push) Successful in 30s

This commit is contained in:
2026-02-17 11:10:06 +08:00
parent 992930a821
commit 654b1ae3f7
31 changed files with 2731 additions and 14 deletions

View File

@@ -0,0 +1,60 @@
using MediatR;
using System.Text.Json.Serialization;
using TakeoutSaaS.Application.App.Stores.Enums;
using TakeoutSaaS.Domain.Stores.Enums;
using TakeoutSaaS.Shared.Abstractions.Serialization;
namespace TakeoutSaaS.Application.App.Stores.Commands;
/// <summary>
/// 租户端更新门店命令。
/// </summary>
public sealed record UpdateStoreCommand : IRequest
{
/// <summary>
/// 门店 ID。
/// </summary>
[JsonConverter(typeof(SnowflakeIdJsonConverter))]
public long Id { get; init; }
/// <summary>
/// 门店名称。
/// </summary>
public string Name { get; init; } = string.Empty;
/// <summary>
/// 门店编码。
/// </summary>
public string Code { get; init; } = string.Empty;
/// <summary>
/// 联系电话。
/// </summary>
public string ContactPhone { get; init; } = string.Empty;
/// <summary>
/// 负责人。
/// </summary>
public string ManagerName { get; init; } = string.Empty;
/// <summary>
/// 门店地址。
/// </summary>
public string Address { get; init; } = string.Empty;
/// <summary>
/// 门店封面图。
/// </summary>
public string? CoverImage { get; init; }
/// <summary>
/// 营业状态。
/// </summary>
public StoreBusinessStatus? BusinessStatus { get; init; }
/// <summary>
/// 服务方式。
/// </summary>
public IReadOnlyList<ServiceType>? ServiceTypes { get; init; }
}