Include date
This commit is contained in:
parent
d16ad6a4ad
commit
b6ad5e5f8c
1 changed files with 1 additions and 1 deletions
|
@ -47,7 +47,7 @@ func (et EntityType) IsValid() bool {
|
||||||
type Share struct {
|
type Share struct {
|
||||||
ID string `json:"id"`
|
ID string `json:"id"`
|
||||||
Type EntityType `json:"entityType"`
|
Type EntityType `json:"entityType"`
|
||||||
Date *jsontypes.Time `json:"-"` // we handle this for the user
|
Date *jsontypes.Time `json:"entityDate,omitempty"` // we handle this for the user
|
||||||
Owner users.UserID `json:"owner"`
|
Owner users.UserID `json:"owner"`
|
||||||
EntityID uuid.UUID `json:"entityID"`
|
EntityID uuid.UUID `json:"entityID"`
|
||||||
Expiration *jsontypes.Time `json:"expiration"`
|
Expiration *jsontypes.Time `json:"expiration"`
|
||||||
|
|
Loading…
Add table
Reference in a new issue