Documentation ¶
Index ¶
- func GetDB() *gorm.DB
- func GetFirstFile() map[string]interface{}
- func GetFirstGallery() map[string]interface{}
- func GetImagesFromFirstGallery() map[string]interface{}
- func GetImagesFromGalleryBySlug(slug string) map[string]interface{}
- func Login(email, password string) map[string]interface{}
- type Account
- type File
- type Gallery
- type Token
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetFirstFile ¶
func GetFirstFile() map[string]interface{}
func GetFirstGallery ¶
func GetFirstGallery() map[string]interface{}
func GetImagesFromFirstGallery ¶
func GetImagesFromFirstGallery() map[string]interface{}
Types ¶
type Account ¶
type Account struct { gorm.Model Email string `json:"email"` Password string `json:"password"` Token string `json:"token";sql:"-"` Admin bool }
a struct to rep user account
type File ¶
Click to show internal directories.
Click to hide internal directories.