Documentation ¶
Index ¶
- func FxModule() fx.Option
- type Art
- type Gallery
- type Service
- func (s *Service) GetGalleryArtByID(server ark.Server, id string) (*Art, error)
- func (s *Service) GetGalleryByID(server ark.Server, id string) (*Gallery, error)
- func (s *Service) ListGalleries(server ark.Server) ([]Gallery, error)
- func (s *Service) ListGalleryArts(server ark.Server) ([]Art, error)
- func (s *Service) Put(g []Gallery) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Art ¶
type Art struct { Server ark.Server `json:"-" gorm:"primaryKey;type:game_server"` GalleryID string `json:"-" gorm:""` SortID int `json:"-" gorm:""` ID string `json:"id" gorm:"primaryKey;type:text COLLATE numeric;check:id=lower(id)"` Name string `json:"name" gorm:""` Description string `json:"description" gorm:""` ArtID string `json:"artID" gorm:"type:text COLLATE numeric;check:id=lower(id)"` }
type Gallery ¶
type Gallery struct { Server ark.Server `json:"-" gorm:"primaryKey;type:game_server"` ID string `json:"id" gorm:"primaryKey;type:text COLLATE numeric;check:id=lower(id)"` Name string `json:"name" gorm:""` Description string `json:"description" gorm:""` Arts []Art `json:"arts" gorm:"foreignKey:Server,GalleryID;references:Server,ID;constraint:OnDelete:CASCADE"` }
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func (*Service) GetGalleryArtByID ¶
func (*Service) GetGalleryByID ¶
func (*Service) ListGalleries ¶
func (*Service) ListGalleryArts ¶
Click to show internal directories.
Click to hide internal directories.