Files
efir-api-server/internal/models/profile.go

16 lines
570 B
Go
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
package models
type Profile struct {
UserID int64 `json:"user_id"`
DisplayName *string `json:"display_name,omitempty"`
Bio *string `json:"bio,omitempty"`
AvatarURL *string `json:"avatar_url,omitempty"`
}
// ProfileWithUser объединяет профиль с безопасными данными пользователя
type ProfileWithUser struct {
User *SafeUser `json:"user"`
DisplayName *string `json:"display_name,omitempty"`
Bio *string `json:"bio,omitempty"`
AvatarURL *string `json:"avatar_url,omitempty"`
}