categories

package
v0.0.0-...-6c8972c Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(h *common.Server, mw *mux.Router) (*mux.Router, error)

Types

type Category

type Category struct {
	ID        string
	Name      string
	Status    catG.Status
	CreatedAt time.Time
	CreatedBy string
	UpdatedAt time.Time
	UpdatedBy string
}

func (Category) ValidateCategory

func (c Category) ValidateCategory(server *common.Server, r *http.Request, id string) error

type CategoryTempData

type CategoryTempData struct {
	CSRFField      template.HTML
	Form           Category
	Data           []Category
	FormAction     string
	FormErrors     map[string]string
	FormMessage    map[string]string
	SearchTerm     string
	PramStatus     string
	PaginationData paginator.Paginator
	SortByColumn   string
	StartDate      string
	EndDate        string
	SortBy         string
	Status         []common.Status
	FilterFormErr  string
}

type Svc

type Svc struct {
	*common.Server
}

Jump to

Keyboard shortcuts

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