This commit is contained in:
Vladislav Kunetskiy
2026-10-01 12:59:06 +03:00
parent 65003b6119
commit 51b236a69f
86 changed files with 33332 additions and 16 deletions
+23
View File
@@ -0,0 +1,23 @@
package domain
import (
"time"
"github.com/google/uuid"
)
type User struct {
ID uuid.UUID
Username string
DisplayName string
CreatedAt time.Time
}
type UserDraft struct {
Username string
DisplayName string
}
func (d UserDraft) Validate() error {
return validateNotBlank("display_name", d.DisplayName)
}