fiumba
This commit is contained in:
18
src/client/api/rest/model.go
Normal file
18
src/client/api/rest/model.go
Normal file
@ -0,0 +1,18 @@
|
||||
package rest
|
||||
|
||||
type HTTPError struct {
|
||||
Error string
|
||||
}
|
||||
|
||||
type Msg struct {
|
||||
Text string
|
||||
}
|
||||
|
||||
type Credentials struct {
|
||||
Email string `json:"email" binding:"required" example:"user1"`
|
||||
Password string `json:"password" binding:"required" example:"password1"`
|
||||
}
|
||||
|
||||
type Session struct {
|
||||
Email string
|
||||
}
|
||||
Reference in New Issue
Block a user