using Microsoft.AspNetCore.Http;
using System.ComponentModel.DataAnnotations;
using System.Diagnostics.CodeAnalysis;

namespace OnlineSalesAutoCrop.CoreAPI.Models.Requests.Setups
{
	public class FileViewRequest
	{
		[Required, NotNull]
		public string FileName { get; set; }
	}

	public class FileUploadRequest : FileViewRequest
	{
		[Required, NotNull]
		public IFormFile FileData { get; set; }
	}

	public class QRCodeUploadRequest : FileUploadRequest
	{
		[Required, NotNull]
		public string EmailAddress { get; set; }
	}

	public class UploadDocumentRequest : FileUploadRequest
	{
		[Required, NotNull]
		public int Id { get; set; }

		[Required, NotNull]
		public int DocumentOf { get; set; }
	}
}