Use typed IDs instead of plain strings
This commit is contained in:
@ -8,11 +8,14 @@ import (
|
||||
"github.com/aerogo/nano"
|
||||
)
|
||||
|
||||
// CharacterID represents a character ID.
|
||||
type CharacterID = ID
|
||||
|
||||
// Character represents an anime or manga character.
|
||||
type Character struct {
|
||||
Name CharacterName `json:"name" editable:"true"`
|
||||
Image Image `json:"image"`
|
||||
MainQuoteID string `json:"mainQuoteId" editable:"true"`
|
||||
MainQuoteID QuoteID `json:"mainQuoteId" editable:"true"`
|
||||
Description string `json:"description" editable:"true" type:"textarea"`
|
||||
Spoilers []Spoiler `json:"spoilers" editable:"true"`
|
||||
Attributes []*CharacterAttribute `json:"attributes" editable:"true"`
|
||||
|
Reference in New Issue
Block a user