style(catalog): ✨ Format JSON struct for consistency
This commit is contained in:
@@ -176,13 +176,13 @@ func (h *Handlers) SendProductList(w http.ResponseWriter, r *http.Request) {
|
||||
}
|
||||
|
||||
var req struct {
|
||||
AccountID string `json:"account_id"`
|
||||
To string `json:"to"`
|
||||
HeaderText string `json:"header_text"`
|
||||
BodyText string `json:"body_text"`
|
||||
FooterText string `json:"footer_text"`
|
||||
CatalogID string `json:"catalog_id"`
|
||||
Sections []businessapi.ProductListSection `json:"sections"`
|
||||
AccountID string `json:"account_id"`
|
||||
To string `json:"to"`
|
||||
HeaderText string `json:"header_text"`
|
||||
BodyText string `json:"body_text"`
|
||||
FooterText string `json:"footer_text"`
|
||||
CatalogID string `json:"catalog_id"`
|
||||
Sections []businessapi.ProductListSection `json:"sections"`
|
||||
}
|
||||
if err := json.NewDecoder(r.Body).Decode(&req); err != nil {
|
||||
http.Error(w, err.Error(), http.StatusBadRequest)
|
||||
|
||||
Reference in New Issue
Block a user