File tree Expand file tree Collapse file tree 6 files changed +32
-38
lines changed Expand file tree Collapse file tree 6 files changed +32
-38
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,17 @@ import (
10
10
"github.com/google/uuid"
11
11
)
12
12
13
+ type queryParams struct {
14
+ Page string
15
+ Rows string
16
+ OrderBy string
17
+ ID string
18
+ UserID string
19
+ Type string
20
+ StartCreatedDate string
21
+ EndCreatedDate string
22
+ }
23
+
13
24
func parseQueryParams (r * http.Request ) queryParams {
14
25
values := r .URL .Query ()
15
26
Original file line number Diff line number Diff line change @@ -12,19 +12,6 @@ import (
12
12
"github.com/ardanlabs/service/business/types/hometype"
13
13
)
14
14
15
- type queryParams struct {
16
- Page string
17
- Rows string
18
- OrderBy string
19
- ID string
20
- UserID string
21
- Type string
22
- StartCreatedDate string
23
- EndCreatedDate string
24
- }
25
-
26
- // =============================================================================
27
-
28
15
// Address represents information about an individual address.
29
16
type Address struct {
30
17
Address1 string `json:"address1"`
Original file line number Diff line number Diff line change @@ -10,6 +10,16 @@ import (
10
10
"github.com/google/uuid"
11
11
)
12
12
13
+ type queryParams struct {
14
+ Page string
15
+ Rows string
16
+ OrderBy string
17
+ ID string
18
+ Name string
19
+ Cost string
20
+ Quantity string
21
+ }
22
+
13
23
func parseQueryParams (r * http.Request ) queryParams {
14
24
values := r .URL .Query ()
15
25
Original file line number Diff line number Diff line change @@ -14,18 +14,6 @@ import (
14
14
"github.com/ardanlabs/service/business/types/quantity"
15
15
)
16
16
17
- type queryParams struct {
18
- Page string
19
- Rows string
20
- OrderBy string
21
- ID string
22
- Name string
23
- Cost string
24
- Quantity string
25
- }
26
-
27
- // =============================================================================
28
-
29
17
// Product represents information about an individual product.
30
18
type Product struct {
31
19
ID string `json:"id"`
Original file line number Diff line number Diff line change @@ -11,6 +11,17 @@ import (
11
11
"github.com/google/uuid"
12
12
)
13
13
14
+ type queryParams struct {
15
+ Page string
16
+ Rows string
17
+ OrderBy string
18
+ ID string
19
+ Name string
20
+ Email string
21
+ StartCreatedDate string
22
+ EndCreatedDate string
23
+ }
24
+
14
25
func parseQueryParams (r * http.Request ) (queryParams , error ) {
15
26
values := r .URL .Query ()
16
27
Original file line number Diff line number Diff line change @@ -12,19 +12,6 @@ import (
12
12
"github.com/ardanlabs/service/business/types/role"
13
13
)
14
14
15
- type queryParams struct {
16
- Page string
17
- Rows string
18
- OrderBy string
19
- ID string
20
- Name string
21
- Email string
22
- StartCreatedDate string
23
- EndCreatedDate string
24
- }
25
-
26
- // =============================================================================
27
-
28
15
// User represents information about an individual user.
29
16
type User struct {
30
17
ID string `json:"id"`
You can’t perform that action at this time.
0 commit comments