graphql

package
v0.1.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type QueryResolver

type QueryResolver struct {
	// contains filtered or unexported fields
}

func NewQueryResolver

func NewQueryResolver() *QueryResolver

func (*QueryResolver) Childrens

func (r *QueryResolver) Childrens(ctx context.Context, obj *qmodels.Category) ([]*qmodels.Category, error)

Childrens is the resolver for the childrens field.

func (*QueryResolver) Create

Create Category is the resolver for the createCategory field.

func (*QueryResolver) Delete

func (r *QueryResolver) Delete(ctx context.Context, id uint64, msg *string) (*qmodels.CategoryPayload, error)

Delete Category is the resolver for the deleteCategory field.

func (*QueryResolver) Get

Get Category is the resolver for the Category field.

func (*QueryResolver) List

List Categorys is the resolver for the listCategorys field.

func (*QueryResolver) ListByIDs

func (r *QueryResolver) ListByIDs(ctx context.Context, ids []uint64) ([]*qmodels.Category, error)

ListByIDs returns a list of DeviceModels by their IDs.

func (*QueryResolver) Update

Update Category is the resolver for the updateCategory field.

Jump to

Keyboard shortcuts

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