You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

37 lines
908 B

1 year ago
  1. package character
  2. import (
  3. "git.aiterp.net/rpdata2-take2/rpdata2/auth"
  4. "git.aiterp.net/rpdata2-take2/rpdata2/tag"
  5. )
  6. type Character struct {
  7. ID string `json:"id"`
  8. Name string `json:"name"`
  9. ShortName string `json:"shortName"`
  10. DisplayName string `json:"displayName,omitempty"`
  11. Description string `json:"description"`
  12. FavoriteColor string `json:"favoriteColor"`
  13. WikiPage string `json:"wikiPage"`
  14. Author auth.User `json:"author"`
  15. Attributes []Attribute `json:"attributes"`
  16. Relations []Relation `json:"relations"`
  17. Tags []Tag `json:"tags"`
  18. }
  19. type Attribute struct {
  20. Label string `json:"label,omitempty"`
  21. Value string `json:"value,omitempty"`
  22. }
  23. type Relation struct {
  24. Label string `json:"label,omitempty"`
  25. Character
  26. }
  27. type Tag struct {
  28. Label string `json:"label,omitempty"`
  29. Restricted bool `json:"restricted,omitempty"`
  30. tag.Tag
  31. }