service

package
v0.0.0-...-cbca754 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type S

func (*S) CreateCategory

CreateCategory creates a new category given a request context and a CreateCategoryRequest. It verifies the user's authentication, checks if the user is an admin, and then proceeds to create the category with its associated metadata. Returns a CreateCategoryResponse on success or an error otherwise.

func (*S) GetCategory

GetCategory retrieves a single category by its ID, including its metadata, after ensuring the user is authenticated. It returns a GetCategoryResponse containing the category details or an error if the operation fails.

Jump to

Keyboard shortcuts

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