mirror of
https://github.com/FJurmanovic/wallet-go-api.git
synced 2026-02-06 06:08:16 +00:00
partial repository layer added
This commit is contained in:
19
pkg/model/auth.go
Normal file
19
pkg/model/auth.go
Normal 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"`
|
||||
}
|
||||
Reference in New Issue
Block a user