Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Book ¶
type Book struct { gorm.Model Name string `gorm:"" json:"name"` Author string `json:"author"` Publication string `json:"publication"` }
func DeleteBook ¶
func GetAllBooks ¶
func GetAllBooks() []Book
func (*Book) CreateBook ¶
type LoginRequest ¶
type LoginResponse ¶
type RefreshTokenRequest ¶
type RefreshTokenRequest struct {
ResfreshToken string `json:"refreshToken"`
}
type User ¶
type User struct { gorm.Model FirstName string `gorm:"" json:"firstname"` LastName string `json:"lastname"` Email string `json:"email"` Password string `json:"password"` Username string `json:"username"` }
func DeleteUser ¶
func GetAllUsers ¶
func GetAllUsers() []User
func (*User) CreateUser ¶
Click to show internal directories.
Click to hide internal directories.