auth-api/src/handlers/types.go

17 lines
341 B
Go
Raw Normal View History

2020-12-29 13:46:58 +01:00
package handlers
2021-01-02 11:56:24 +01:00
import (
"gitlab.larvit.se/power-plan/auth/src/db"
)
// Handlers is the overall struct for all http request handlers
type Handlers struct {
Db db.Db
}
2020-12-29 13:46:58 +01:00
// ResJSONError is an error field that is used in JSON error responses
type ResJSONError struct {
Error string `json:"error"`
Field string `json:"field,omitempty"`
}