using ZhonTai.Admin.Core.Entities; using FreeSql.DataAnnotations; using OnceMi.AspNetCore.OSS; using ZhonTai.Admin.Core.Attributes; using System; namespace ZhonTai.Admin.Domain.File; /// /// 文件 /// [Table(Name = "ad_file")] public partial class FileEntity : EntityBase { /// /// OSS供应商 /// [Column(MapType = typeof(string), StringLength = 50)] public OSSProvider? Provider { get; set; } /// /// 存储桶名称 /// [Column(StringLength = 200)] public string BucketName { get; set; } /// /// 文件目录 /// [Column(StringLength = 500)] public string FileDirectory { get; set; } /// /// 文件Guid /// [OrderGuid] public Guid FileGuid { get; set; } /// /// 文件名 /// [Column(StringLength = 200)] public string FileName { get; set; } /// /// 文件扩展名 /// [Column(StringLength = 20)] public string Extension { get; set; } /// /// 文件字节长度 /// public long Size { get; set; } /// /// 文件大小格式化 /// [Column(StringLength = 50)] public string SizeFormat { get; set; } /// /// 链接地址 /// [Column(StringLength = 500)] public string LinkUrl { get; set; } /// /// md5码,防止上传重复文件 /// [Column(StringLength = 50)] public string Md5 { get; set; } = string.Empty; }