7 changed files with 41 additions and 30 deletions
@ -1,12 +1,9 @@ |
|||||
using System; |
using System.ComponentModel.DataAnnotations; |
||||
using System.ComponentModel.DataAnnotations; |
|
||||
|
|
||||
namespace LINGYUN.Abp.BlobManagement.Dtos; |
namespace LINGYUN.Abp.BlobManagement.Dtos; |
||||
|
|
||||
public class BlobDownloadByIdInput |
public class BlobDownloadByIdInput |
||||
{ |
{ |
||||
public Guid? TenantId { get; set; } |
|
||||
|
|
||||
[Required] |
[Required] |
||||
public Guid Id { get; set; } |
public string Key { get; set; } |
||||
} |
} |
||||
|
|||||
@ -1,19 +1,23 @@ |
|||||
using System; |
using System; |
||||
|
using Volo.Abp.MultiTenancy; |
||||
|
|
||||
namespace LINGYUN.Abp.BlobManagement; |
namespace LINGYUN.Abp.BlobManagement; |
||||
|
|
||||
|
[IgnoreMultiTenancy] |
||||
public class BlobDownloadKeyCacheItem |
public class BlobDownloadKeyCacheItem |
||||
{ |
{ |
||||
public string Url { get; set; } |
public string Url { get; set; } |
||||
public Guid BlobId { get; set; } |
public Guid BlobId { get; set; } |
||||
|
public Guid? TenantId { get; set; } |
||||
public BlobDownloadKeyCacheItem() |
public BlobDownloadKeyCacheItem() |
||||
{ |
{ |
||||
|
|
||||
} |
} |
||||
|
|
||||
public BlobDownloadKeyCacheItem(Guid blobId, string url) |
public BlobDownloadKeyCacheItem(Guid blobId, string url, Guid? tenantId = null) |
||||
{ |
{ |
||||
BlobId = blobId; |
BlobId = blobId; |
||||
Url = url; |
Url = url; |
||||
|
TenantId = tenantId; |
||||
} |
} |
||||
} |
} |
||||
|
|||||
Loading…
Reference in new issue