Documentation ¶
Index ¶
- func CreateForm(data map[string]string, dataint map[string]int, IP string) error
- func CreateItem(data map[string]string, dataint map[string]int, IP string) error
- func CreateSubitem(data map[string]string, dataint map[string]int, IP string) error
- func CreateUser(data map[string]string, dataint map[string]int, IP string) (models.User, error)
- func DecodeJWT(cookie, SecretKey string) (models.User, error)
- func DeleteItem(IP string, ID int) error
- func DeleteSubitem(IP string, ID int) error
- func DeleteUser(IP string, ID int) error
- func GetAllForms() ([]models.Form, error)
- func GetAllItems() ([]models.Item, error)
- func GetAllSubitems() ([]models.Subitem, error)
- func GetAllUser() ([]models.User, error)
- func GetForm(query string, val ...interface{}) (models.Form, error)
- func GetForms(query string, val ...interface{}) ([]models.Form, error)
- func GetItem(query string, val ...interface{}) (models.Item, error)
- func GetItems(query string, val ...interface{}) ([]models.Item, error)
- func GetSubitem(query string, val ...interface{}) (models.Subitem, error)
- func GetSubitems(query string, val ...interface{}) ([]models.Subitem, error)
- func GetUser(query string, val ...interface{}) (models.User, error)
- func GetUsers(query string, val ...interface{}) ([]models.User, error)
- func IsItemExist(query string, val ...interface{}) bool
- func IsUserExist(query string, val ...interface{}) bool
- func UpdateItem(data map[string]string, dataint map[string]int, IP string, ID int) error
- func UpdateSubitem(data map[string]string, dataint map[string]int, IP string, ID int) error
- func UpdateUser(data map[string]string, dataint map[string]int, IP string, ID int) error
- func VerifyUser(user models.User, IP string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateSubitem ¶
func CreateUser ¶
CREATE
func GetAllForms ¶
func GetAllItems ¶
func GetAllSubitems ¶
func GetAllUser ¶
func IsItemExist ¶
func IsUserExist ¶
func UpdateItem ¶
=====UPDATE=====
func UpdateSubitem ¶
=====UPDATE=====
func UpdateUser ¶
UPDATE
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.