partial repository layer added

This commit is contained in:
Fran Jurmanović
2022-09-27 00:33:44 +02:00
parent 13ce0735d0
commit 82e97fc97f
73 changed files with 2686 additions and 1216 deletions

19
pkg/model/auth.go Normal file
View File

@@ -0,0 +1,19 @@
package model
type Token struct {
Token string `json:"token"`
}
type Login struct {
Email string `json:"email" form:"email"`
Password string `json:"password" form:"password"`
RememberMe bool `json:"rememberMe" form:"rememberMe"`
}
type Auth struct {
Id string
}
type CheckToken struct {
Valid bool `json:"valid"`
}