categories

package
v0.0.0-...-3c47c1b Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Deletecategory

func Deletecategory(ctgID int64) error

func GetCategoriesHandler

func GetCategoriesHandler(c *gin.Context)

func PostCategoryHandler

func PostCategoryHandler(c *gin.Context)

func UpdateCategoryDto

func UpdateCategoryDto(ctgId int64, c CategoryEntity) error

Types

type CategoryEntity

type CategoryEntity struct {
	CatID   int64  `json:"cat_id" db:"cat_id"`
	CatName string `json:"cat_name" validate:"required" db:"cat_name"`
}

func CreateCategoryDto

func CreateCategoryDto(c CategoryEntity) (CategoryEntity, error)

func GetCategoriesDto

func GetCategoriesDto() ([]CategoryEntity, error)

Jump to

Keyboard shortcuts

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