Use typed IDs instead of plain strings
This commit is contained in:
@ -5,7 +5,7 @@ import "github.com/aerogo/nano"
|
||||
// ActivityCreate is a user activity that creates something.
|
||||
type ActivityCreate struct {
|
||||
ObjectType string `json:"objectType"`
|
||||
ObjectID string `json:"objectId"`
|
||||
ObjectID ID `json:"objectId"`
|
||||
|
||||
hasID
|
||||
hasCreator
|
||||
|
Reference in New Issue
Block a user