mirror of
https://github.com/DrizzleTime/Foxel.git
synced 2026-05-12 11:20:20 +08:00
- Remove image format conversion and quality settings from the upload dialog - Update backend to use default format and quality settings - Add system configuration options for default image format and quality
19 lines
560 B
C#
19 lines
560 B
C#
using System.ComponentModel.DataAnnotations;
|
||
using Foxel.Models.DataBase;
|
||
using Foxel.Models.Enums;
|
||
using Foxel.Services.Attributes;
|
||
|
||
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 StorageType? StorageType { get; set; }
|
||
} |