Added login and logout
This commit is contained in:
18
models/session_token.go
Normal file
18
models/session_token.go
Normal file
@@ -0,0 +1,18 @@
|
||||
package models
|
||||
|
||||
type SessionToken struct {
|
||||
BaseModel
|
||||
UserID uint `json:"userId"`
|
||||
Token string `json:"token"`
|
||||
IsActive bool `json:"isActive"`
|
||||
}
|
||||
|
||||
func (SessionToken) Update() (bool, error) {
|
||||
return false, nil
|
||||
}
|
||||
func (SessionToken) Create() (bool, error) {
|
||||
return false, nil
|
||||
}
|
||||
func (SessionToken) Delete() (bool, error) {
|
||||
return false, nil
|
||||
}
|
||||
Reference in New Issue
Block a user