Cleanup data types

This commit is contained in:
2019-06-04 12:16:27 +09:00
parent e7f2550004
commit 3d526f9198
13 changed files with 23 additions and 210 deletions

View File

@ -10,8 +10,8 @@ import (
// Person represents a person in real life.
type Person struct {
Name PersonName `json:"name" editable:"true"`
Image PersonImage `json:"image"`
Name PersonName `json:"name" editable:"true"`
Image Image `json:"image"`
hasID
hasPosts
@ -33,7 +33,7 @@ func NewPerson() *Person {
}
}
// Link ...
// Link returns the path to the person.
func (person *Person) Link() string {
return "/person/" + person.ID
}