using Microsoft.AspNetCore.Http;
using System.ComponentModel.DataAnnotations;
namespace Myshipping.Core.Service;
///
/// 上传文件参数
///
public class FileInput : PageInputBase
{
///
/// 文件存储位置(1:阿里云,2:腾讯云,3:minio,4:本地)
///
public int FileLocation { get; set; }
///
/// 文件仓库
///
public string FileBucket { get; set; }
///
/// 文件名称(上传时候的文件名)
///
public string FileOriginName { get; set; }
///
/// 文件后缀
///
public string FileSuffix { get; set; }
///
/// 文件大小kb
///
public string FileSizeKb { get; set; }
///
/// 文件大小信息,计算后的
///
public string FileSizeInfo { get; set; }
///
/// 存储到bucket的名称(文件唯一标识id)
///
public string FileObjectName { get; set; }
///
/// 存储路径
///
public string FilePath { get; set; }
}
public class DeleteFileInfoInput
{
///
/// 文件Id
///
[Required(ErrorMessage = "文件Id不能为空")]
public long Id { get; set; }
}
public class QueryFileInoInput : DeleteFileInfoInput
{
}