3
0

Rename json names for ID props

This commit is contained in:
Denis Arh
2019-05-08 11:23:11 +02:00
parent ac817a3e69
commit 6e00826dc8
4 changed files with 4 additions and 4 deletions

View File

@@ -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"`

View File

@@ -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"`

View File

@@ -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"`

View File

@@ -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"`