feat: 完成激活码功能

This commit is contained in:
chenchun
2025-12-19 14:16:59 +08:00
parent 75c208dafc
commit 7f0d57b311
7 changed files with 91 additions and 53 deletions

View File

@@ -16,19 +16,15 @@ public class ActivationCodeCreateInput
/// 数量
/// </summary>
public int Count { get; set; } = 1;
/// <summary>
/// 是否允许多人各使用一次
/// </summary>
public bool IsReusable { get; set; }
/// <summary>
/// 是否限制同类型只能兑换一次
/// </summary>
public bool IsSameTypeOnce { get; set; }
/// <summary>
/// 备注
/// </summary>
public string? Remark { get; set; }
}
/// <summary>
/// 批量生成激活码列表输入
/// </summary>
public class ActivationCodeCreateListInput
{
/// <summary>
/// 生成项列表
/// </summary>
public List<ActivationCodeCreateInput> Items { get; set; } = new();
}

View File

@@ -22,3 +22,14 @@ public class ActivationCodeCreateOutput
/// </summary>
public List<string> Codes { get; set; } = new();
}
/// <summary>
/// 批量生成激活码列表输出
/// </summary>
public class ActivationCodeCreateListOutput
{
/// <summary>
/// 分组输出
/// </summary>
public List<ActivationCodeCreateOutput> Items { get; set; } = new();
}