Documentation ¶
Index ¶
Constants ¶
View Source
const TokenPrefix = "M"
TokenPrefix is the prfix for the global token id for manufacturers.
Variables ¶
This section is empty.
Functions ¶
func ToAPI ¶ added in v0.1.20
func ToAPI(m *models.Manufacturer) (*gmodel.Manufacturer, error)
ToAPI converts a manufacturer to a corresponding graphql model.
Types ¶
type Repository ¶
type Repository struct {
*base.Repository
}
func (*Repository) GetManufacturer ¶
func (r *Repository) GetManufacturer(ctx context.Context, by gmodel.ManufacturerBy) (*gmodel.Manufacturer, error)
Click to show internal directories.
Click to hide internal directories.