categories

package
v0.0.0-...-c398d5f Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CatSetvices

type CatSetvices struct {
	DB *sql.DB
}

func (*CatSetvices) CreateCat

func (s *CatSetvices) CreateCat(w http.ResponseWriter, r *http.Request)

Create

func (*CatSetvices) DeleteCat

func (s *CatSetvices) DeleteCat(w http.ResponseWriter, r *http.Request)

DeleteUser видаляє користувача за ID

func (*CatSetvices) GetCat

func (s *CatSetvices) GetCat(w http.ResponseWriter, r *http.Request)

Get category

func (*CatSetvices) GetCats

func (s *CatSetvices) GetCats(w http.ResponseWriter, r *http.Request)

func (*CatSetvices) UpdateCat

func (s *CatSetvices) UpdateCat(w http.ResponseWriter, r *http.Request)

UpdateUser

type Category

type Category struct {
	ID          int       `json:"id"`
	Name        string    `json:"name"`
	Description string    `json:"description"`
	CreatedAt   time.Time `json:"created_at"`
	UpdatedAt   time.Time `json:"updated_at"`
}

User представляє структуру користувача

Jump to

Keyboard shortcuts

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