30 lines
520 B
Go
30 lines
520 B
Go
package domain
|
|
|
|
type RegisterRequest struct {
|
|
Login string `json:"login"`
|
|
Password string `json:"password"`
|
|
}
|
|
|
|
type RegisterResponse struct {
|
|
Ok bool `json:"ok"`
|
|
Message string `json:"message"`
|
|
}
|
|
|
|
type LoginRequest struct {
|
|
Login string `json:"login"`
|
|
Password string `json:"password"`
|
|
}
|
|
|
|
type LoginResponse struct {
|
|
Ok bool `json:"ok"`
|
|
Message string `json:"message"`
|
|
}
|
|
|
|
type LogoutRequest struct {
|
|
}
|
|
|
|
type ErrorJson struct {
|
|
Code int `json:"code"`
|
|
Message string `json:"message"`
|
|
}
|