完成门店管理后端接口与任务
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
using TakeoutSaaS.Domain.Stores.Enums;
|
||||
|
||||
namespace TakeoutSaaS.Application.App.StoreAudits;
|
||||
|
||||
/// <summary>
|
||||
/// 门店审核动作名称解析器。
|
||||
/// </summary>
|
||||
public static class StoreAuditActionNameResolver
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取动作名称。
|
||||
/// </summary>
|
||||
/// <param name="action">审核动作。</param>
|
||||
/// <returns>动作名称。</returns>
|
||||
public static string Resolve(StoreAuditAction action) => action switch
|
||||
{
|
||||
StoreAuditAction.Submit => "提交审核",
|
||||
StoreAuditAction.Resubmit => "重新提交",
|
||||
StoreAuditAction.Approve => "审核通过",
|
||||
StoreAuditAction.Reject => "审核驳回",
|
||||
StoreAuditAction.ForceClose => "强制关闭",
|
||||
StoreAuditAction.Reopen => "解除关闭",
|
||||
StoreAuditAction.AutoActivate => "自动激活",
|
||||
_ => "未知操作"
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user