natsio/model/location_request.go

50 lines
1.1 KiB
Go
Raw Normal View History

2022-08-26 10:15:49 +00:00
package model
// LocationRequestPayload ...
2022-10-05 10:59:44 +00:00
type (
LocationRequestPayload struct {
Province int `json:"province"`
District int `json:"district"`
Ward int `json:"ward"`
}
2022-09-07 07:01:29 +00:00
2022-10-05 10:59:44 +00:00
// ProvinceRequestPayload ...
ProvinceRequestPayload struct {
Codes []int `json:"codes"`
}
2022-09-07 07:01:29 +00:00
2022-10-05 10:59:44 +00:00
// ProvinceRequestCondition ...
ProvinceRequestCondition struct {
2022-10-06 02:19:21 +00:00
Code int `json:"code"`
Codes []int `json:"codes"`
Slug string `json:"slug"`
2022-10-05 10:59:44 +00:00
}
2022-09-07 07:01:29 +00:00
2022-10-05 10:59:44 +00:00
// DistrictRequestPayload ...
DistrictRequestPayload struct {
Codes []int `json:"codes"`
}
// DistrictRequestCondition ...
DistrictRequestCondition struct {
2022-10-06 02:19:21 +00:00
Code int `json:"code"`
Codes []int `json:"codes"`
ProvinceCode int `json:"provinceCode"`
Slug string `json:"slug"`
2022-10-05 10:59:44 +00:00
}
// WardRequestPayload ...
WardRequestPayload struct {
Codes []int `json:"codes"`
}
// WardRequestCondition ...
WardRequestCondition struct {
2022-10-06 02:19:21 +00:00
Code int `json:"code"`
Codes []int `json:"codes"`
DistrictCode int `json:"districtCode"`
ProvinceCode int `json:"provinceCode"`
Slug string `json:"slug"`
2022-10-05 10:59:44 +00:00
}
)