Files
Foxel/Models/Request/Picture/UploadPictureRequest.cs

17 lines
467 B
C#
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
using System.ComponentModel.DataAnnotations;
namespace Foxel.Models.Request.Picture;
public record UploadPictureRequest
{
[Required(ErrorMessage = "文件不能为空")]
public IFormFile File { get; set; } = null!;
[Range(0, 2, ErrorMessage = "权限类型必须是0公开、1私有或2仅关注者")]
public int? Permission { get; set; } = 0;
public int? AlbumId { get; set; }
public int? StorageModeId { get; set; }
}