Initial commit: Эфир мессенджер
This commit is contained in:
16
internal/models/profile.go
Normal file
16
internal/models/profile.go
Normal file
@@ -0,0 +1,16 @@
|
||||
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"`
|
||||
}
|
||||
Reference in New Issue
Block a user