29 lines
869 B
Go
29 lines
869 B
Go
package gifts
|
|
|
|
import (
|
|
"encoding/json"
|
|
|
|
"github.com/google/uuid"
|
|
)
|
|
|
|
type PublicGift struct {
|
|
ID uuid.UUID `json:"id"`
|
|
Slug string `json:"slug"`
|
|
RecipientName string `json:"recipientName"`
|
|
SenderName string `json:"senderName"`
|
|
Title string `json:"title"`
|
|
IntroMessage string `json:"introMessage"`
|
|
RevealMessage string `json:"revealMessage"`
|
|
Items []PublicGiftItem `json:"items"`
|
|
}
|
|
|
|
type PublicGiftItem struct {
|
|
ID uuid.UUID `json:"id"`
|
|
Type string `json:"type"`
|
|
Title string `json:"title,omitempty"`
|
|
Text string `json:"text,omitempty"`
|
|
MediaURL string `json:"mediaUrl,omitempty"`
|
|
SortOrder int `json:"sortOrder"`
|
|
Metadata json.RawMessage `json:"metadata,omitempty"`
|
|
}
|