feat: fix user boughts
This commit is contained in:
@@ -17,6 +17,7 @@ type UserInfo struct {
|
||||
ID int64 `json:"id,omitempty"`
|
||||
CreatedAt time.Time `json:"created_at,omitempty"`
|
||||
Username string `json:"username,omitempty"`
|
||||
Avatar string `json:"avatar,omitempty"`
|
||||
}
|
||||
|
||||
// @Router /users/profile [get]
|
||||
@@ -26,6 +27,7 @@ func (ctl *users) Profile(ctx fiber.Ctx, user *model.Users) (*UserInfo, error) {
|
||||
ID: user.ID,
|
||||
CreatedAt: user.CreatedAt,
|
||||
Username: user.Username,
|
||||
Avatar: *user.Avatar,
|
||||
}, nil
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user