categories

package
v0.0.0-...-ea970c3 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateCategory

func CreateCategory(request *proto.CreateCategoryRequest, db_pool *sql.DB) int64

func CreateSubCategory

func CreateSubCategory(request *proto.CreateSubCategoryRequest, db_pool *sql.DB) int64

func DeleteCategory

func DeleteCategory(request *proto.DeleteCategoryRequest, db_pool *sql.DB) int64

func DeleteSubCategory

func DeleteSubCategory(request *proto.DeleteSubCategoryRequest, db_pool *sql.DB) int64

func GetAllCategories

func GetAllCategories(ctx context.Context, db_pool *sql.DB) []*proto.Category

func GetAllSubCategories

func GetAllSubCategories(ctx context.Context, db_pool *sql.DB) []*proto.SubCategory

func GetSubCategory

func GetSubCategory(ctx context.Context, request *proto.GetSubCategoryRequest, db_pool *sql.DB) proto.SubCategory

Types

type Category

type Category struct {
	Id   int64
	Name string
}

func GetCategory

func GetCategory(ctx context.Context, request *proto.GetCategoryRequest, db_pool *sql.DB) Category

Jump to

Keyboard shortcuts

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