Skip to content

Commit

Permalink
fix wrong response type
Browse files Browse the repository at this point in the history
  • Loading branch information
hieven committed Nov 22, 2017
1 parent 0a19c49 commit 3900023
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
10 changes: 5 additions & 5 deletions src/protos/inbox.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package protos

type Inbox struct {
Threads []*ThreadItem `json:"threads"`
HasOlder bool `json:"has_older"`
OldestCursor string `json:"oldest_cursor"`
UnseenCount int `json:"unseen_count"`
UnseenCountTs int `json:"unseen_count_ts"`
Threads []*Thread `json:"threads"`
HasOlder bool `json:"has_older"`
OldestCursor string `json:"oldest_cursor"`
UnseenCount int `json:"unseen_count"`
UnseenCountTs int `json:"unseen_count_ts"`
}
6 changes: 3 additions & 3 deletions src/protos/response.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,17 +27,17 @@ type InboxFeedResponse struct {

type ThreadBroadcastTextResponse struct {
defaultResponse
Threads []*ThreadItem `json:"threads"`
Threads []*Thread `json:"threads"`
}

type ThreadBroadcastLinkResponse struct {
defaultResponse
Threads []*ThreadItem `json:"threads"`
Threads []*Thread `json:"threads"`
}

type ThreadShowResponse struct {
defaultResponse
Thread *ThreadItem `json:"thread"`
Thread *Thread `json:"thread"`
}

type ThreadApproveAllResponse struct {
Expand Down
2 changes: 1 addition & 1 deletion src/protos/thread.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package protos

type thread struct {
type Thread struct {
ThreadID string `json:"thread_id"`
Users []*ThreadUser `json:"users"`
Items []*ThreadItem `json:"items"`
Expand Down

0 comments on commit 3900023

Please sign in to comment.