|
|
@ -50,10 +50,17 @@ namespace LINGYUN.Abp.OssManagement |
|
|
[Route("{Name}/{Process}")] |
|
|
[Route("{Name}/{Process}")] |
|
|
[Route("p/{Path}/{Name}")] |
|
|
[Route("p/{Path}/{Name}")] |
|
|
[Route("p/{Path}/{Name}/{Process}")] |
|
|
[Route("p/{Path}/{Name}/{Process}")] |
|
|
|
|
|
[Route("t/{TenantId}/{Name}")] |
|
|
|
|
|
[Route("t/{TenantId}/{Name}/{Process}")] |
|
|
|
|
|
[Route("t/{TenantId}/p/{Path}/{Name}")] |
|
|
|
|
|
[Route("t/{TenantId}/p/{Path}/{Name}/{Process}")] |
|
|
public async virtual Task<IRemoteStreamContent> GetAsync([FromRoute] GetPublicFileInput input) |
|
|
public async virtual Task<IRemoteStreamContent> GetAsync([FromRoute] GetPublicFileInput input) |
|
|
|
|
|
{ |
|
|
|
|
|
using (CurrentTenant.Change(input.TenantId ?? CurrentTenant.Id)) |
|
|
{ |
|
|
{ |
|
|
return await _publicFileAppService.GetAsync(input); |
|
|
return await _publicFileAppService.GetAsync(input); |
|
|
} |
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
[HttpDelete] |
|
|
[HttpDelete] |
|
|
public async virtual Task DeleteAsync(GetPublicFileInput input) |
|
|
public async virtual Task DeleteAsync(GetPublicFileInput input) |
|
|
|