Documentation ¶
Index ¶
- func FxModule() fx.Option
- type AggregatedCharacterArt
- type AggregatedPictureArt
- type CharacterArt
- type Group
- type GroupFilter
- type GroupType
- type PictureArt
- type Service
- func (s *Service) GetAggregatedCharacterArt(server ark.Server, id string) (*AggregatedCharacterArt, error)
- func (s *Service) GetAggregatedPictureArt(server ark.Server, id string) (*AggregatedPictureArt, error)
- func (s *Service) GetCharacterArts(server ark.Server) ([]*CharacterArt, error)
- func (s *Service) GetPictureArts(server ark.Server) ([]*PictureArt, error)
- func (s *Service) GetStories(server ark.Server) ([]*Story, error)
- func (s *Service) GetStory(server ark.Server, id string) (*Story, error)
- func (s *Service) GetStoryGroup(server ark.Server, id string) (*Group, error)
- func (s *Service) GetStoryGroups(server ark.Server, filter GroupFilter) ([]*Group, error)
- func (s *Service) PopulateFrom(rawTree *arkparser2.StoryTree, server ark.Server) error
- type Story
- type Tag
- type Tree
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AggregatedCharacterArt ¶ added in v1.5.0
type AggregatedPictureArt ¶ added in v1.5.0
type CharacterArt ¶
type CharacterArt struct { Server ark.Server `json:"server" gorm:"primaryKey;type:game_server"` ID string `json:"id" gorm:"primaryKey;check:id=lower(id)"` StoryID string `json:"storyID" gorm:"primaryKey"` Category string `json:"category" gorm:""` Names pq.StringArray `json:"names" gorm:"type:text[];default:array[]::text[]"` SortID *uint64 `json:"-" gorm:"unique;autoIncrement"` }
type Group ¶
type Group struct { Server ark.Server `json:"server" gorm:"primaryKey;type:game_server"` ID string `json:"id" gorm:"primaryKey;check:id=lower(id)"` Name string `json:"name" gorm:""` Type GroupType `json:"type" gorm:"type:story_group_type"` Stories []Story `json:"stories" gorm:"foreignKey:Server,GroupID;reference:Server,ID;constraint:OnDelete:CASCADE"` SortID *uint64 `json:"-" gorm:"unique;autoIncrement"` }
type GroupFilter ¶
type GroupFilter struct {
Type string
}
type PictureArt ¶
type PictureArt struct { Server ark.Server `json:"server" gorm:"primaryKey;type:game_server"` ID string `json:"id" gorm:"primaryKey;check:id=lower(id)"` StoryID string `json:"storyID" gorm:"primaryKey"` Category string `json:"category" gorm:""` Title string `json:"title" gorm:""` Subtitle string `json:"subtitle" gorm:""` SortID *uint64 `json:"-" gorm:"unique;autoIncrement"` }
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func (*Service) GetAggregatedCharacterArt ¶ added in v1.5.0
func (*Service) GetAggregatedPictureArt ¶ added in v1.5.0
func (*Service) GetCharacterArts ¶
func (s *Service) GetCharacterArts(server ark.Server) ([]*CharacterArt, error)
func (*Service) GetPictureArts ¶
func (s *Service) GetPictureArts(server ark.Server) ([]*PictureArt, error)
func (*Service) GetStoryGroup ¶
func (*Service) GetStoryGroups ¶
func (*Service) PopulateFrom ¶
type Story ¶
type Story struct { Server ark.Server `json:"server" gorm:"primaryKey;type:game_server"` ID string `json:"id" gorm:"primaryKey;check:id=lower(id)"` Tag Tag `json:"tag" gorm:"type:story_tag"` TagText string `json:"tagText" gorm:""` Code string `json:"code" gorm:""` Name string `json:"name" gorm:""` Info string `json:"info" gorm:""` GroupID string `json:"groupID" gorm:""` SortID *uint64 `json:"-" gorm:"unique;autoIncrement"` PictureArts []PictureArt `json:"pictureArts" gorm:"foreignKey:Server,StoryID;reference:(Server,ID);constraint:OnDelete:CASCADE"` CharacterArts []CharacterArt `json:"characterArts" gorm:"foreignKey:Server,StoryID;reference:(Server,ID);constraint:OnDelete:CASCADE"` }
Click to show internal directories.
Click to hide internal directories.