can not bind a slice of struct when the request type is formdata
type request struct {
id uint `form:"id" json:"id"`
Products []product `form:"products"`
}
type product struct {
Name string `form:"name"`
Quantity int `form:"quantity"`
Price float32 `form:"price"`
}