diff options
Diffstat (limited to 'types')
| -rw-r--r-- | types/auth.go | 6 | ||||
| -rw-r--r-- | types/errors.go | 12 | ||||
| -rw-r--r-- | types/mailbox.go | 16 | ||||
| -rw-r--r-- | types/overview.go | 7 | ||||
| -rw-r--r-- | types/request.go | 17 | ||||
| -rw-r--r-- | types/response.go | 13 | ||||
| -rw-r--r-- | types/user.go | 6 |
7 files changed, 0 insertions, 77 deletions
diff --git a/types/auth.go b/types/auth.go deleted file mode 100644 index 1792011..0000000 --- a/types/auth.go +++ /dev/null @@ -1,6 +0,0 @@ -package types - -type LoginRequest struct { - Username string `form:"username"` - Password string `form:"password"` -} diff --git a/types/errors.go b/types/errors.go deleted file mode 100644 index 1e5a562..0000000 --- a/types/errors.go +++ /dev/null @@ -1,12 +0,0 @@ -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/mailbox.go b/types/mailbox.go deleted file mode 100644 index adf1ce5..0000000 --- a/types/mailbox.go +++ /dev/null @@ -1,16 +0,0 @@ -package types - -import "dove/models" - -type Mailbox struct { - Address string -} - -type CreateMailboxRequest struct { - Address string `form:"address"` - UserID uint `form:"user_id"` -} - -type MailboxFormResponse struct { - Users []models.User `json:"users"` -} diff --git a/types/overview.go b/types/overview.go deleted file mode 100644 index ac983a8..0000000 --- a/types/overview.go +++ /dev/null @@ -1,7 +0,0 @@ -package types - -type Overview struct { - MailboxCount int64 `json:"MailboxCount"` - EmailCount int64 `json:"EmailCount"` - SMTPAddress string `json:"SMTPAddress"` -} diff --git a/types/request.go b/types/request.go deleted file mode 100644 index 5d6a1a1..0000000 --- a/types/request.go +++ /dev/null @@ -1,17 +0,0 @@ -package types - -type Param struct { - Key string - Value string -} - -type Request struct { - Path string - Method string - Query []Param - Params []Param - Headers []Param - QueryString string - IP string - URL string -} diff --git a/types/response.go b/types/response.go deleted file mode 100644 index e576142..0000000 --- a/types/response.go +++ /dev/null @@ -1,13 +0,0 @@ -package types - -type MessageResponse struct { - Message string -} - -type PaginatedResponse struct { - Items any `json:"items"` - Total int64 `json:"total"` - Page int `json:"page"` - PerPage int `json:"per_page"` - TotalPages int `json:"total_pages"` -} diff --git a/types/user.go b/types/user.go deleted file mode 100644 index 6686567..0000000 --- a/types/user.go +++ /dev/null @@ -1,6 +0,0 @@ -package types - -type CreateUserRequest struct { - Username string `form:"username"` - DisplayName string `form:"display_name"` -} |
