Rename content to record on json

This commit is contained in:
Mitja Zivkovic
2018-12-24 10:15:09 +01:00
committed by Denis Arh
parent 94215b0db0
commit 45ae60a874
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -39,7 +39,7 @@ type (
FindResponse struct {
Meta FindResponseMeta `json:"meta"`
Records []*types.Record `json:"contents"`
Records []*types.Record `json:"records"`
}
record struct {
+1 -1
View File
@@ -14,7 +14,7 @@ import (
type (
// Record is a stored row in the `record` table
Record struct {
ID uint64 `json:"contentID,string" db:"id"`
ID uint64 `json:"recordID,string" db:"id"`
ModuleID uint64 `json:"moduleID,string" db:"module_id"`
User *systemTypes.User `json:"user,omitempty" db:"-"`