Rename json names for ID props
This commit is contained in:
@@ -6,7 +6,7 @@ import (
|
||||
|
||||
type (
|
||||
Attachment struct {
|
||||
ID string `json:"ID"`
|
||||
ID string `json:"attachmentID"`
|
||||
UserID string `json:"userID"`
|
||||
Url string `json:"url"`
|
||||
PreviewUrl string `json:"previewUrl,omitempty"`
|
||||
|
||||
@@ -24,7 +24,7 @@ type (
|
||||
|
||||
Channel struct {
|
||||
// Channel to part (nil) for ALL channels
|
||||
ID string `json:"ID"`
|
||||
ID string `json:"channelID"`
|
||||
Name string `json:"name"`
|
||||
Topic string `json:"topic"`
|
||||
Type string `json:"type"`
|
||||
|
||||
@@ -3,7 +3,7 @@ package outgoing
|
||||
type (
|
||||
User struct {
|
||||
// Channel to part (nil) for ALL channels
|
||||
ID uint64 `json:"ID,string"`
|
||||
ID uint64 `json:"userID,string"`
|
||||
Name string `json:"name"`
|
||||
Email string `json:"email"`
|
||||
Username string `json:"username"`
|
||||
|
||||
@@ -10,7 +10,7 @@ import (
|
||||
|
||||
type (
|
||||
Channel struct {
|
||||
ID uint64 `json:"id" db:"id"`
|
||||
ID uint64 `json:"channelID" db:"id"`
|
||||
Name string `json:"name" db:"name"`
|
||||
Topic string `json:"topic" db:"topic"`
|
||||
Type ChannelType `json:"type" db:"type"`
|
||||
|
||||
Reference in New Issue
Block a user