categories

package
v0.16.4-rc2 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterCategoryRoutes

func RegisterCategoryRoutes(r *gin.RouterGroup, db *sqlx.DB)

Types

type Category

type Category struct {
	CategoryId int       `json:"categoryId" db:"category_id"`
	Name       string    `json:"name" db:"name"`
	Style      string    `json:"style" db:"style"`
	CreatedOn  time.Time `json:"createdOn" db:"created_on"`
	UpdateOn   time.Time `json:"updatedOn" db:"updated_on"`
}

func GetCategories

func GetCategories(db *sqlx.DB) ([]Category, error)

func GetCategory

func GetCategory(db *sqlx.DB, categoryId int) (Category, error)

Jump to

Keyboard shortcuts

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