category

package
v0.0.0-...-097943f Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(db *sql.DB, tableName string, dbName string, r gin.IRouter) error

Register -

Types

type Config

type Config struct {
	CategoryDB    string
	CategoryTable string
}

Config -

type Controller

type Controller struct {
	// contains filtered or unexported fields
}

Controller -

func New

func New(db *sql.DB, tableName string, dbName string) *Controller

New -

func (*Controller) ChangeCategoryName

func (con *Controller) ChangeCategoryName(c *gin.Context)

ChangeCategoryName -

func (*Controller) ChangeCategoryStatus

func (con *Controller) ChangeCategoryStatus(c *gin.Context)

ChangeCategoryStatus -

func (*Controller) CreateTable

func (con *Controller) CreateTable() error

CreateTable -

func (*Controller) Insert

func (con *Controller) Insert(c *gin.Context)

Insert -

func (*Controller) LisitChirldrenByParentID

func (con *Controller) LisitChirldrenByParentID(c *gin.Context)

LisitChirldrenByParentID -

Jump to

Keyboard shortcuts

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