✨
This commit is contained in:
34
StopShopping.Services/Models/Req/EditCategoryParams.cs
Normal file
34
StopShopping.Services/Models/Req/EditCategoryParams.cs
Normal file
@@ -0,0 +1,34 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace StopShopping.Services.Models.Req;
|
||||
|
||||
/// <summary>
|
||||
/// 新增/修改分类
|
||||
/// </summary>
|
||||
/// <value></value>
|
||||
public record EditCategoryParams
|
||||
{
|
||||
/// <summary>
|
||||
/// 大于0时修改
|
||||
/// </summary>
|
||||
/// <value></value>
|
||||
public int? Id { get; set; }
|
||||
/// <summary>
|
||||
/// 顶级为0
|
||||
/// </summary>
|
||||
/// <value></value>
|
||||
public int ParentId { get; set; }
|
||||
/// <summary>
|
||||
/// 名称j
|
||||
/// </summary>
|
||||
/// <value></value>
|
||||
[Required]
|
||||
[MaxLength(50)]
|
||||
public string Name { get; set; } = string.Empty;
|
||||
/// <summary>
|
||||
/// 空时保持不变
|
||||
/// </summary>
|
||||
/// <value></value>
|
||||
[MaxLength(50)]
|
||||
public string? Logo { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user