category

package
v0.0.0-...-dac5c78 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2024 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler struct {
	Store Storer
}

func NewHandler

func NewHandler(store Storer) *Handler

func (*Handler) GetAllCategory

func (h *Handler) GetAllCategory(c *gin.Context)

func (*Handler) GetUnmatchedCategory

func (h *Handler) GetUnmatchedCategory(c *gin.Context)

func (*Handler) MatchingCategory

func (h *Handler) MatchingCategory(c *gin.Context)

type MatchingCategoryReqBody

type MatchingCategoryReqBody struct {
	UnmatchedCategoryID []int32 `json:"unmatched_category_id" binding:"required"`
	CategoryID          *int32  `json:"category_id" binding:"required"`
}

type Storer

type Storer interface {
	GetAllCategory() ([]store.AllCategoryResult, error)
	GetUnmatchedCategory(filter utils.Filter) ([]store.UnmatchedCategoryResult, utils.MetaData, error)
	UpdateUnmatchedCategory(unMatchedID []int32, catID *int32) error
}

Jump to

Keyboard shortcuts

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