repositories

package
v0.0.0-...-f3fdc4c Latest Latest
Warning

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

Go to latest
Published: May 9, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateForm

func CreateForm(data map[string]string, dataint map[string]int, IP string) error

func CreateItem

func CreateItem(data map[string]string, dataint map[string]int, IP string) error

func CreateSubitem

func CreateSubitem(data map[string]string, dataint map[string]int, IP string) error

func CreateUser

func CreateUser(data map[string]string, dataint map[string]int, IP string) (models.User, error)

CREATE

func DecodeJWT

func DecodeJWT(cookie, SecretKey string) (models.User, error)

func DeleteItem

func DeleteItem(IP string, ID int) error

=====DELETE=====

func DeleteSubitem

func DeleteSubitem(IP string, ID int) error

=====DELETE=====

func DeleteUser

func DeleteUser(IP string, ID int) error

DELETE

func GetAllForms

func GetAllForms() ([]models.Form, error)

func GetAllItems

func GetAllItems() ([]models.Item, error)

func GetAllSubitems

func GetAllSubitems() ([]models.Subitem, error)

func GetAllUser

func GetAllUser() ([]models.User, error)

func GetForm

func GetForm(query string, val ...interface{}) (models.Form, error)

func GetForms

func GetForms(query string, val ...interface{}) ([]models.Form, error)

func GetItem

func GetItem(query string, val ...interface{}) (models.Item, error)

func GetItems

func GetItems(query string, val ...interface{}) ([]models.Item, error)

func GetSubitem

func GetSubitem(query string, val ...interface{}) (models.Subitem, error)

func GetSubitems

func GetSubitems(query string, val ...interface{}) ([]models.Subitem, error)

func GetUser

func GetUser(query string, val ...interface{}) (models.User, error)

func GetUsers

func GetUsers(query string, val ...interface{}) ([]models.User, error)

func IsItemExist

func IsItemExist(query string, val ...interface{}) bool

func IsUserExist

func IsUserExist(query string, val ...interface{}) bool

func UpdateItem

func UpdateItem(data map[string]string, dataint map[string]int, IP string, ID int) error

=====UPDATE=====

func UpdateSubitem

func UpdateSubitem(data map[string]string, dataint map[string]int, IP string, ID int) error

=====UPDATE=====

func UpdateUser

func UpdateUser(data map[string]string, dataint map[string]int, IP string, ID int) error

UPDATE

func VerifyUser

func VerifyUser(user models.User, IP string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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