feat: prototyping possible interaction of database, controllers, services with auth service

This commit is contained in:
2025-06-20 13:33:06 +03:00
parent 87878f15a3
commit 654c1eb7b5
5 changed files with 73 additions and 4 deletions

View File

@@ -5,6 +5,24 @@ type Tokens struct {
RefreshToken string `json:"refresh_token"`
}
type RegistrationBeginRequest struct {
Username string `json:"username"`
Email *string `json:"email"`
Password string `json:"password"` // TODO: password checking
}
type RegistrationCompleteRequest struct {
Username string `json:"username"`
VerificationCode string `json:"verification_code"`
Name string `json:"name"`
Birthday *string `json:"birthday"`
AvatarUrl *string `json:"avatar_url"`
}
type RegistrationCompleteResponse struct {
Tokens
}
type LoginRequest struct {
Username string `json:"username"`
Password string `json:"password"`