2024-01-16 16:13:06 +00:00
|
|
|
package addressparam
|
|
|
|
|
|
|
|
type BenefactorAddAddressRequest struct {
|
2024-05-14 13:07:09 +00:00
|
|
|
PostalCode string `json:"postal_code" example:"1234567890"`
|
|
|
|
Address string `json:"address" example:"tehran"`
|
|
|
|
Lat float64 `json:"lat" example:"22.23"`
|
|
|
|
Lon float64 `json:"lon" example:"22.22"`
|
|
|
|
CityID uint `json:"city_id" example:"1"`
|
2024-05-30 12:57:33 +00:00
|
|
|
BenefactorID uint `json:"-"`
|
|
|
|
Name string `json:"name" example:"home"`
|
2024-01-16 16:13:06 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
type BenefactorAddAddressResponse struct {
|
2024-09-10 20:55:19 +00:00
|
|
|
Data Data `json:"data"`
|
2024-08-01 10:20:18 +00:00
|
|
|
FieldErrors map[string]string `json:"field_errors,omitempty"`
|
2024-01-16 16:13:06 +00:00
|
|
|
}
|