File tree 2 files changed +8
-2
lines changed
2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ type CounterDto struct {
14
14
}
15
15
16
16
type CategoryDto struct {
17
- Id * string `json:"id" db:"id"`
17
+ Id * int `json:"id" db:"id"`
18
18
Name * string `json:"name" db:"name"`
19
19
NameRu * string `json:"name_ru" db:"name_ru"`
20
20
Slug * string `json:"slug" db:"slug"`
@@ -28,7 +28,7 @@ type CreateCategoryDto struct {
28
28
}
29
29
30
30
type CategoryInfoDto struct {
31
- Id * string `json:"id" db:"id"`
31
+ Id * int `json:"id" db:"id"`
32
32
Name * string `json:"name" db:"name"`
33
33
NameRu * string `json:"name_ru" db:"name_ru"`
34
34
Slug * string `json:"slug" db:"slug"`
Original file line number Diff line number Diff line change 30
30
FROM categories
31
31
dto :
32
32
name : CategoryDto
33
+ fields :
34
+ id :
35
+ type : integer
33
36
post :
34
37
query : >-
35
38
INSERT
65
68
WHERE id = :p.categoryId
66
69
dto :
67
70
name : CategoryInfoDto
71
+ fields :
72
+ id :
73
+ type : integer
68
74
put :
69
75
query : >-
70
76
UPDATE categories
You can’t perform that action at this time.
0 commit comments