diff options
Diffstat (limited to 'types')
| -rw-r--r-- | types/auth.go | 6 | ||||
| -rw-r--r-- | types/errors.go | 12 | ||||
| -rw-r--r-- | types/response.go | 5 |
3 files changed, 23 insertions, 0 deletions
diff --git a/types/auth.go b/types/auth.go new file mode 100644 index 0000000..1792011 --- /dev/null +++ b/types/auth.go @@ -0,0 +1,6 @@ +package types + +type LoginRequest struct { + Username string `form:"username"` + Password string `form:"password"` +} diff --git a/types/errors.go b/types/errors.go new file mode 100644 index 0000000..1e5a562 --- /dev/null +++ b/types/errors.go @@ -0,0 +1,12 @@ +package types + +import "dove/enums" + +type ServiceError struct { + Kind enums.ErrorKind + Message string +} + +func (self *ServiceError) Error() string { + return self.Message +} diff --git a/types/response.go b/types/response.go new file mode 100644 index 0000000..d38051d --- /dev/null +++ b/types/response.go @@ -0,0 +1,5 @@ +package types + +type MessageResponse struct { + Message string +} |
