feat(backend.dto): lab2 add password field in user creation and add new mistakes

This commit is contained in:
Голиков Maximillian Антон
2026-10-01 09:43:13 +03:00
parent 771f7aff07
commit 7def6015c4
2 changed files with 19 additions and 5 deletions
+1
View File
@@ -9,6 +9,7 @@ const timeFormat = "2006-01-02T15:04:05.000000Z07:00"
type CreateUserRequest struct {
Username string `json:"username" binding:"required,min=3,max=32"`
DisplayName string `json:"display_name" binding:"required,min=1,max=100"`
Password string `json:"password" binding:"required,min=12,max=128"`
}
type UserResponse struct {