first commit

This commit is contained in:
2023-06-27 09:48:33 +02:00
commit 8fc0220e51
29 changed files with 1315 additions and 0 deletions
+37
View File
@@ -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
}