draincloud-core/internal/domain/requests.go

30 lines
520 B
Go
Raw Permalink Normal View History

2024-09-27 22:37:58 +00:00
package domain
type RegisterRequest struct {
Login string `json:"login"`
Password string `json:"password"`
}
2024-09-30 22:21:37 +00:00
type RegisterResponse struct {
Ok bool `json:"ok"`
Message string `json:"message"`
}
type LoginRequest struct {
Login string `json:"login"`
Password string `json:"password"`
}
2024-11-23 08:52:06 +00:00
type LoginResponse struct {
Ok bool `json:"ok"`
Message string `json:"message"`
}
2024-09-30 22:21:37 +00:00
type LogoutRequest struct {
}
2024-11-23 08:52:06 +00:00
type ErrorJson struct {
Code int `json:"code"`
Message string `json:"message"`
}