first commit
This commit is contained in:
@@ -0,0 +1,37 @@
|
||||
package character
|
||||
|
||||
import (
|
||||
"git.aiterp.net/rpdata2-take2/rpdata2/auth"
|
||||
"git.aiterp.net/rpdata2-take2/rpdata2/tag"
|
||||
)
|
||||
|
||||
type Character struct {
|
||||
ID string `json:"id"`
|
||||
Name string `json:"name"`
|
||||
ShortName string `json:"shortName"`
|
||||
DisplayName string `json:"displayName,omitempty"`
|
||||
Description string `json:"description"`
|
||||
FavoriteColor string `json:"favoriteColor"`
|
||||
WikiPage string `json:"wikiPage"`
|
||||
|
||||
Author auth.User `json:"author"`
|
||||
Attributes []Attribute `json:"attributes"`
|
||||
Relations []Relation `json:"relations"`
|
||||
Tags []Tag `json:"tags"`
|
||||
}
|
||||
|
||||
type Attribute struct {
|
||||
Label string `json:"label,omitempty"`
|
||||
Value string `json:"value,omitempty"`
|
||||
}
|
||||
|
||||
type Relation struct {
|
||||
Label string `json:"label,omitempty"`
|
||||
Character
|
||||
}
|
||||
|
||||
type Tag struct {
|
||||
Label string `json:"label,omitempty"`
|
||||
Restricted bool `json:"restricted,omitempty"`
|
||||
tag.Tag
|
||||
}
|
||||
Reference in New Issue
Block a user