feat: fully implement profile controller;
feat: implement file upload handling in controller with size and type validation; feat: add custom validation rules for bio and color hex fields; refactor: enhance request handling with dedicated client info extraction; chore: update profile DTOs with validation tags; docs: profile controller swagger
This commit is contained in:
@@ -18,12 +18,12 @@
|
||||
package dto
|
||||
|
||||
type ProfileDto struct {
|
||||
Name string `json:"name"`
|
||||
Bio string `json:"bio"`
|
||||
Name string `json:"name" binding:"required" validate:"name"`
|
||||
Bio string `json:"bio" validate:"bio"`
|
||||
AvatarUrl string `json:"avatar_url"`
|
||||
Birthday int64 `json:"birthday"`
|
||||
Color string `json:"color"`
|
||||
ColorGrad string `json:"color_grad"`
|
||||
Color string `json:"color" validate:"color_hex"`
|
||||
ColorGrad string `json:"color_grad" validate:"color_hex"`
|
||||
}
|
||||
|
||||
type ProfileSettingsDto struct {
|
||||
|
||||
Reference in New Issue
Block a user