Boost CRUD API

This commit is contained in:
2024-12-28 21:41:13 +08:00
parent edbe412f97
commit d59966a03e
11 changed files with 299 additions and 22 deletions

View File

@@ -35,6 +35,7 @@ func GetAttachmentByID(id uint) (models.Attachment, error) {
Preload("Pool").
Preload("Thumbnail").
Preload("Compressed").
Preload("Boosts").
First(&attachment).Error; err != nil {
return attachment, err
} else {
@@ -64,6 +65,7 @@ func GetAttachmentByRID(rid string) (models.Attachment, error) {
Preload("Pool").
Preload("Thumbnail").
Preload("Compressed").
Preload("Boosts").
First(&attachment).Error; err != nil {
return attachment, err
} else {