created login controller

This commit is contained in:
Fran Jurmanović
2021-05-11 21:38:31 +02:00
parent b71b64f119
commit be849e78e9
7 changed files with 148 additions and 50 deletions

10
pkg/models/auth.go Normal file
View File

@@ -0,0 +1,10 @@
package models
type TokenModel struct {
Token string `json:"token"`
}
type LoginModel struct {
Email string
Password string
}