diff options
author | Alexander Kiryukhin <a.kiryukhin@mail.ru> | 2019-04-17 15:56:26 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-17 15:56:26 +0300 |
commit | abd1ab76895ef4fef9256aaf2a4b2826756fabef (patch) | |
tree | dd0ba15e542cedf944ec3a34efa0c9df0406c859 /models.go | |
parent | 8a0b9cfac18ff685e0c69bc61352931e0305c288 (diff) | |
parent | c324f327acdec88a24cb09d5da08a85c8dffb6b1 (diff) |
Merge pull request #1 from neonxp/file_uploadv0.1.1
WIP: upload images
Diffstat (limited to 'models.go')
-rw-r--r-- | models.go | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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 { |