From 34b1de6d4241dae7a57c6cb5d780a27910eb905e Mon Sep 17 00:00:00 2001 From: thaingocquang Date: Mon, 7 Nov 2022 15:48:28 +0700 Subject: [PATCH 1/3] [location] update request model add page & limit --- model/common_request.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/model/common_request.go b/model/common_request.go index 4ffd6e1..8442864 100644 --- a/model/common_request.go +++ b/model/common_request.go @@ -35,4 +35,7 @@ type RequestCondition struct { Keyword string `json:"keyword"` Region string `json:"region"` + + Page int `json:"page"` + Limit int `json:"limit"` } From d80b305b1adca5d67270d893c0453f1b1b84eca6 Mon Sep 17 00:00:00 2001 From: thaingocquang Date: Mon, 7 Nov 2022 16:04:12 +0700 Subject: [PATCH 2/3] [location] update request model page & limit --- model/common_request.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/model/common_request.go b/model/common_request.go index 8442864..ca13b4c 100644 --- a/model/common_request.go +++ b/model/common_request.go @@ -36,6 +36,6 @@ type RequestCondition struct { Keyword string `json:"keyword"` Region string `json:"region"` - Page int `json:"page"` - Limit int `json:"limit"` + Page int64 `json:"page"` + Limit int64 `json:"limit"` } From f602e17ef28525ca7fa0ec83abf0461896c70329 Mon Sep 17 00:00:00 2001 From: thaingocquang Date: Thu, 17 Nov 2022 16:49:02 +0700 Subject: [PATCH 3/3] [location] add oldSlug to RequestCondition --- model/common_request.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/model/common_request.go b/model/common_request.go index ca13b4c..3568338 100644 --- a/model/common_request.go +++ b/model/common_request.go @@ -28,7 +28,9 @@ type RequestCondition struct { DistrictCode int `json:"districtCode"` ProvinceCode int `json:"provinceCode"` - Slug string `json:"slug"` + Slug string `json:"slug"` + OldSlug string `json:"oldSlug"` + Slugs []string `json:"slugs"` DistrictSlug string `json:"districtSlug"` ProvinceSlug string `json:"provinceSlug"`