refactor: updated profiles
This commit is contained in:
@@ -146,11 +146,11 @@ VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING id, user_id, name, bio, avatar_url
|
||||
type CreateProfileParams struct {
|
||||
UserID int64
|
||||
Name string
|
||||
Bio *string
|
||||
Bio string
|
||||
Birthday pgtype.Timestamp
|
||||
AvatarUrl *string
|
||||
Color *string
|
||||
ColorGrad *string
|
||||
AvatarUrl string
|
||||
Color string
|
||||
ColorGrad string
|
||||
}
|
||||
|
||||
func (q *Queries) CreateProfile(ctx context.Context, arg CreateProfileParams) (Profile, error) {
|
||||
@@ -381,8 +381,8 @@ type GetProfileByUsernameRestrictedRow struct {
|
||||
Birthday pgtype.Timestamp
|
||||
Bio *string
|
||||
AvatarUrl *string
|
||||
Color *string
|
||||
ColorGrad *string
|
||||
Color string
|
||||
ColorGrad string
|
||||
HideProfileDetails *bool
|
||||
}
|
||||
|
||||
@@ -454,8 +454,8 @@ type GetProfilesRestrictedRow struct {
|
||||
Username string
|
||||
Name string
|
||||
AvatarUrl *string
|
||||
Color *string
|
||||
ColorGrad *string
|
||||
Color string
|
||||
ColorGrad string
|
||||
HideProfileDetails *bool
|
||||
}
|
||||
|
||||
@@ -1000,11 +1000,11 @@ WHERE username = $1
|
||||
type UpdateProfileByUsernameParams struct {
|
||||
Username string
|
||||
Name string
|
||||
Bio *string
|
||||
Bio string
|
||||
Birthday pgtype.Timestamp
|
||||
AvatarUrl *string
|
||||
Color *string
|
||||
ColorGrad *string
|
||||
AvatarUrl string
|
||||
Color string
|
||||
ColorGrad string
|
||||
}
|
||||
|
||||
func (q *Queries) UpdateProfileByUsername(ctx context.Context, arg UpdateProfileByUsernameParams) error {
|
||||
|
||||
Reference in New Issue
Block a user