feat: 完成激活码功能
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user