mirror of
https://github.com/DrizzleTime/Foxel.git
synced 2026-05-13 03:59:50 +08:00
17 lines
532 B
C#
17 lines
532 B
C#
using System.ComponentModel.DataAnnotations;
|
|
|
|
namespace Foxel.Models.Request.Album
|
|
{
|
|
public class AlbumCreateRequest
|
|
{
|
|
[Required(ErrorMessage = "相册名称不能为空")]
|
|
[StringLength(100, ErrorMessage = "相册名称长度不能超过100个字符")]
|
|
public string Name { get; set; } = string.Empty;
|
|
|
|
[StringLength(500, ErrorMessage = "相册描述长度不能超过500个字符")]
|
|
public string? Description { get; set; }
|
|
|
|
public int? CoverPictureId { get; set; }
|
|
}
|
|
}
|