- Fix admin login bcrypt hash in database migrations - Add static data handler (GET /api/static_data/, POST /api/static_data/refresh/) - Add user handler (list users, get user, list profiles in shared residences) - Add generate tasks report endpoint for residences - Remove all placeholder handlers from router - Add seeding documentation to README New files: - internal/handlers/static_data_handler.go - internal/handlers/user_handler.go - internal/services/user_service.go - internal/dto/responses/user.go 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
20 lines
612 B
Go
20 lines
612 B
Go
package responses
|
|
|
|
// UserSummary represents a simplified user response
|
|
type UserSummary struct {
|
|
ID uint `json:"id"`
|
|
Username string `json:"username"`
|
|
Email string `json:"email"`
|
|
FirstName string `json:"first_name"`
|
|
LastName string `json:"last_name"`
|
|
}
|
|
|
|
// UserProfileSummary represents a simplified user profile response
|
|
type UserProfileSummary struct {
|
|
ID uint `json:"id"`
|
|
UserID uint `json:"user_id"`
|
|
Bio string `json:"bio,omitempty"`
|
|
ProfilePicture string `json:"profile_picture,omitempty"`
|
|
PhoneNumber string `json:"phone_number,omitempty"`
|
|
}
|