This commit is contained in:
2026-03-25 14:55:34 +08:00
commit 2c44b3a4b2
131 changed files with 7453 additions and 0 deletions

View File

@@ -0,0 +1,36 @@
using System.ComponentModel.DataAnnotations;
namespace StopShopping.Services.Models.Req;
/// <summary>
/// 创建需求请求
/// </summary>
/// <value></value>
public record CreateRequestParams
{
/// <summary>
/// 商品名
/// </summary>
/// <value></value>
[Required]
[MaxLength(100)]
public string Name { get; set; } = string.Empty;
/// <summary>
/// 描述
/// </summary>
/// <value></value>
[MaxLength(1000)]
public string? Description { get; set; }
/// <summary>
/// 分类id
/// </summary>
/// <value></value>
public int CategoryId { get; set; }
/// <summary>
/// 截止日期
/// </summary>
/// <value></value>
[Required]
[RegularExpression(@"^\d{4}\D\d{1,2}\D\d{1,2}$")]
public string Deadline { get; set; } = string.Empty;
}