Fix type of IDs.

In Mastodon 2.0 API specification, IDs are typed as string.
This commit is contained in:
Yasuhiro Matsumoto 2017-10-23 10:09:08 +09:00
parent 98d1ab17f1
commit 3274f13917
5 changed files with 82 additions and 82 deletions

View file

@ -11,7 +11,7 @@ import (
// Status is struct to hold status.
type Status struct {
ID int64 `json:"id"`
ID ID `json:"id"`
CreatedAt time.Time `json:"created_at"`
InReplyToID interface{} `json:"in_reply_to_id"`
InReplyToAccountID interface{} `json:"in_reply_to_account_id"`