manufacturer

package
v0.1.24 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 12, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

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 IDToToken added in v0.1.20

func IDToToken(b []byte) (int, error)

IDToToken converts token data to a token id.

func ToAPI added in v0.1.20

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL