Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func NewSneakerProductService ¶
func NewSneakerProductService(sneakerProductRepo repo.SneakerProductRepository, auth core.AuthService, config config.CommonConfig) service.SneakerProductService
Types ¶
type ProductSorter ¶
type ProductSorter struct {
// contains filtered or unexported fields
}
func NewSorter ¶
func NewSorter(items []*model.SneakerProduct, property string) (s *ProductSorter)
func (*ProductSorter) Asc ¶
func (s *ProductSorter) Asc() []*model.SneakerProduct
func (*ProductSorter) Desc ¶
func (s *ProductSorter) Desc() []*model.SneakerProduct
func (*ProductSorter) Len ¶
func (s *ProductSorter) Len() int
func (*ProductSorter) Less ¶
func (s *ProductSorter) Less(i, j int) bool
func (*ProductSorter) Sort ¶
func (s *ProductSorter) Sort(desc bool) []*model.SneakerProduct
func (*ProductSorter) Swap ¶
func (s *ProductSorter) Swap(i, j int)
Click to show internal directories.
Click to hide internal directories.