-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* change image location in minio storage change new image message contract * fix ci action
- Loading branch information
Showing
8 changed files
with
33 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,14 @@ | ||
namespace ImageHosting.Storage.Application.DTOs; | ||
|
||
public class WriteFileDTO(string userId, string imageId, long length, string contentType, Stream stream) | ||
public class WriteFileDTO(string bucket, string imageId, long length, string contentType, Stream stream) | ||
{ | ||
public string UserId { get; } = userId; | ||
public string Bucket { get; } = bucket; | ||
public string ImageId { get; } = imageId; | ||
public long Length { get; } = length; | ||
public string ContentType { get; } = contentType; | ||
public Stream Stream { get; } = stream; | ||
|
||
public string Prefix => ImageId.ToString(); | ||
public string ImageName => "original.jpg"; | ||
public string FullImageName => $"{Prefix}/{ImageName}"; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,13 @@ | ||
using System.Text.Json.Serialization; | ||
using ImageHosting.Storage.Domain.ValueTypes; | ||
using System.Text.Json.Serialization; | ||
|
||
namespace ImageHosting.Storage.Domain.Messages; | ||
|
||
public class NewImage | ||
{ | ||
[JsonPropertyName("bucketId")] public required UserId BucketId { get; init; } | ||
[JsonPropertyName("imageId")] public required ImageId ImageId { get; init; } | ||
[JsonPropertyName("bucket")] public UserId Bucket { get; set; } | ||
[JsonIgnore] public ImageId ImageId { get; set; } | ||
|
||
[JsonPropertyName("prefix")] public string Prefix => ImageId.ToString(); | ||
[JsonPropertyName("image")] public string ImageName => "original.jpg"; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters