update
This commit is contained in:
+13
-12
@@ -19,18 +19,19 @@ type DlocalApi struct {
|
||||
Modo string `gorm:"default:'prod'" json:"modo"`
|
||||
}
|
||||
type PlanRequest struct {
|
||||
Name string `json:"name"`
|
||||
Description string `json:"description"`
|
||||
Country string `json:"country"`
|
||||
Currency string `json:"currency"`
|
||||
Amount float64 `json:"amount"`
|
||||
FrequencyType string `json:"frequency_type"`
|
||||
FrequencyValue int `json:"frequency_value"`
|
||||
DayOfMonth int `json:"day_of_month"`
|
||||
NotificationURL string `json:"notification_url"`
|
||||
SuccessURL string `json:"success_url"`
|
||||
BackURL string `json:"back_url"`
|
||||
ErrorURL string `json:"error_url"`
|
||||
Name string `json:"name" validate:"required"`
|
||||
Description string `json:"description" validate:"required"`
|
||||
Currency string `json:"currency" validate:"required"`
|
||||
Amount float64 `json:"amount" validate:"required"`
|
||||
FrequencyType string `json:"frequency_type" validate:"required"`
|
||||
|
||||
Country string `json:"country,omitempty"`
|
||||
FrequencyValue int `json:"frequency_value,omitempty"`
|
||||
DayOfMonth int `json:"day_of_month,omitempty"`
|
||||
NotificationURL string `json:"notification_url,omitempty"`
|
||||
SuccessURL string `json:"success_url,omitempty"`
|
||||
BackURL string `json:"back_url,omitempty"`
|
||||
ErrorURL string `json:"error_url,omitempty"`
|
||||
}
|
||||
|
||||
// TableName asegura que GORM use la tabla 'qrvcard'
|
||||
|
||||
Reference in New Issue
Block a user