Rename content to record on json
This commit is contained in:
committed by
Denis Arh
parent
94215b0db0
commit
45ae60a874
@@ -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
@@ -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:"-"`
|
||||
|
||||
Reference in New Issue
Block a user