2024-06-06 17:54:56 +00:00
|
|
|
package addressparam
|
|
|
|
|
|
|
|
type UpdateAddressRequest struct {
|
|
|
|
ID uint `json:"-"`
|
|
|
|
PostalCode string `json:"postal_code" example:"1234567890"`
|
|
|
|
Address string `json:"address" example:"Zanjan Province, Zanjan, Etemadieh, 6th St, Iran"`
|
|
|
|
Name string `json:"name" example:"Home"`
|
|
|
|
Lat float64 `json:"lat" example:"123.456"`
|
|
|
|
Lon float64 `json:"lon" example:"123.456"`
|
|
|
|
CityID uint `json:"city_id" example:"163"`
|
|
|
|
BenefactorID uint `json:"-"`
|
|
|
|
}
|
2024-08-01 10:20:18 +00:00
|
|
|
|
|
|
|
type UpdateAddressResponse struct {
|
|
|
|
FieldErrors map[string]string `json:"field_errors,omitempty"`
|
|
|
|
}
|