From 86cfda6dce5e9f7cdf56ae245bfab752f9e5da2b Mon Sep 17 00:00:00 2001 From: quang1472001 Date: Thu, 27 Oct 2022 11:11:45 +0700 Subject: [PATCH] [location] create RequestCondition --- model/common_request.go | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/model/common_request.go b/model/common_request.go index c3cbac7..e83fa2c 100644 --- a/model/common_request.go +++ b/model/common_request.go @@ -26,3 +26,19 @@ type ClickAction struct { Type string `json:"type"` Value string `json:"value"` } + +// RequestCondition ... +type RequestCondition struct { + Code int `json:"code"` + Codes []int `json:"codes"` + DistrictCode int `json:"districtCode"` + ProvinceCode int `json:"provinceCode"` + + Slug string `json:"slug"` + Slugs []string `json:"slugs"` + DistrictSlug string `json:"districtSlug"` + ProvinceSlug string `json:"provinceSlug"` + + Keyword string `json:"keyword"` + Region string `json:"region"` +}