aboutsummaryrefslogtreecommitdiff
path: root/models.go
diff options
context:
space:
mode:
Diffstat (limited to 'models.go')
-rw-r--r--models.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/models.go b/models.go
index f2f13ea..0afd8f0 100644
--- a/models.go
+++ b/models.go
@@ -482,10 +482,10 @@ type PhotoAttachment struct {
type PhotoAttachmentPayload struct {
// Unique identifier of this image
- PhotoId int64 `json:"photo_id"`
- Token string `json:"token"`
+ PhotoId *int64 `json:"photo_id,omitempty"`
+ Token *string `json:"token,omitempty"`
// Image URL
- Url string `json:"url"`
+ Url *string `json:"url,omitempty"`
}
type PhotoAttachmentRequest struct {