Documentation ¶
Index ¶
- Constants
- type Item
- type ItemNameFormatter
- type ItemNameFormatterOptions
- type ItemPicturesOptions
- type ItemType
- type ListFields
- type ListOptions
- type ListPreviewPicturesFields
- type ListPreviewPicturesPictureFields
- type PicturesOptions
- type Repository
- func (s *Repository) AddItemVehicleType(ctx context.Context, itemID int64, vehicleTypeID int64) error
- func (s *Repository) Count(options ListOptions) (int, error)
- func (s *Repository) CountDistinct(options ListOptions) (int, error)
- func (s *Repository) List(options ListOptions) ([]Item, error)
- func (s *Repository) RemoveItemVehicleType(ctx context.Context, itemID int64, vehicleTypeID int64) error
- func (s *Repository) Tree(ctx context.Context, id string) (*TreeItem, error)
- type TreeItem
Constants ¶
View Source
const ( TopBrandsCount = 150 NewDays = 7 TopPersonsCount = 5 TopFactoriesCount = 8 TopCategoriesCount = 15 TopTwinsBrandsCount = 20 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ItemNameFormatter ¶
type ItemNameFormatter struct{}
func (*ItemNameFormatter) Format ¶
func (s *ItemNameFormatter) Format(item ItemNameFormatterOptions, language string) string
type ItemPicturesOptions ¶
type ItemPicturesOptions struct { TypeID pictures.ItemPictureType Pictures *PicturesOptions PerspectiveID int32 }
type ListFields ¶
type ListOptions ¶
type ListOptions struct { Language string Fields ListFields TypeID []ItemType DescendantPictures *ItemPicturesOptions PreviewPictures *ItemPicturesOptions Limit uint64 OrderBy string SortByName bool ChildItems *ListOptions DescendantItems *ListOptions ParentItems *ListOptions AncestorItems *ListOptions NoParents bool }
type ListPreviewPicturesFields ¶
type ListPreviewPicturesFields struct { Route bool Picture ListPreviewPicturesPictureFields }
type ListPreviewPicturesPictureFields ¶
type ListPreviewPicturesPictureFields struct {
NameText bool
}
type PicturesOptions ¶
type PicturesOptions struct { Status pictures.Status ItemPicture *ItemPicturesOptions }
type Repository ¶
type Repository struct {
// contains filtered or unexported fields
}
Repository Main Object.
func NewRepository ¶
func NewRepository( db *goqu.Database, ) *Repository
NewRepository constructor.
func (*Repository) AddItemVehicleType ¶ added in v1.29.0
func (*Repository) Count ¶
func (s *Repository) Count(options ListOptions) (int, error)
func (*Repository) CountDistinct ¶
func (s *Repository) CountDistinct(options ListOptions) (int, error)
func (*Repository) List ¶
func (s *Repository) List(options ListOptions) ([]Item, error)
func (*Repository) RemoveItemVehicleType ¶ added in v1.29.0
Click to show internal directories.
Click to hide internal directories.