using FlexJobApi.Core.Enums.Common; using Microsoft.VisualBasic.FileIO; using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Linq; using System.Text; using System.Threading.Tasks; namespace FlexJobApi.Core { /// /// 文件存储 /// public class FileStore : CommonEntity { /// /// 通道 /// public EnumFileStoreAccess Access { get; set; } /// /// 绝对路径 /// [Required] public string AbsolutePath { get; set; } /// /// 相对路径 /// public string RelativePath { get; set; } /// /// 名称 /// [Required] public string Name { get; set; } /// /// 扩展名 /// [MaxLength(32)] [Required] public string Extension { get; set; } /// /// 内容类型 /// [MaxLength(128)] [Required] public string ContentType { get; set; } /// /// 文件类型 /// public EnumFileType FileType { get; set; } /// /// 文件大小(字节) /// public long Length { get; set; } /// /// 哈希 /// [Required] public string Hash { get; set; } /// /// 宽度(像素) /// public int? ImageWidth { get; set; } /// /// 高度(像素) /// public int? ImageHeight { get; set; } } }