2024-01-16 16:13:06 +00:00
|
|
|
package addressparam
|
|
|
|
|
|
|
|
import "git.gocasts.ir/ebhomengo/niki/entity"
|
|
|
|
|
|
|
|
type GetAddressByIDRequest struct {
|
|
|
|
ID uint
|
|
|
|
}
|
|
|
|
type GetAddressByIDResponse struct {
|
2024-08-01 10:20:18 +00:00
|
|
|
Address entity.Address
|
2024-01-16 16:13:06 +00:00
|
|
|
}
|
2024-06-01 00:29:11 +00:00
|
|
|
|
|
|
|
type GetAddressRequest struct {
|
|
|
|
BenefactorID uint
|
|
|
|
AddressID uint
|
|
|
|
}
|
|
|
|
type GetAddressResponse struct {
|
2024-08-01 10:20:18 +00:00
|
|
|
Address entity.Address `json:"address"`
|
|
|
|
FieldErrors map[string]string `json:"field_errors,omitempty"`
|
2024-06-01 00:29:11 +00:00
|
|
|
}
|