feat(domain): lab5 add attachment variants and job repository contracts
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
package domain
|
||||
|
||||
import "time"
|
||||
|
||||
type AttachmentVariant struct {
|
||||
AttachmentID string
|
||||
Name string
|
||||
ObjectKey string
|
||||
ContentType string
|
||||
SizeBytes int64
|
||||
Width int
|
||||
Height int
|
||||
SHA256 []byte
|
||||
CreatedAt time.Time
|
||||
}
|
||||
|
||||
const (
|
||||
VariantThumbnail = "thumbnail"
|
||||
VariantCrop = "crop"
|
||||
VariantWebP = "webp"
|
||||
)
|
||||
|
||||
func AllVariantNames() []string {
|
||||
return []string{VariantThumbnail, VariantCrop, VariantWebP}
|
||||
}
|
||||
Reference in New Issue
Block a user