We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 571e912 commit 70de65cCopy full SHA for 70de65c
examples/go/chi/mysql/routes.go
@@ -24,7 +24,7 @@ type CreateCategoryDto struct {
24
Name *string `json:"name" db:"name"`
25
NameRu *string `json:"name_ru" db:"name_ru"`
26
Slug *string `json:"slug" db:"slug"`
27
- UserId *string `json:"user_id" db:"user_id"`
+ UserId *int `json:"user_id" db:"user_id"`
28
}
29
30
type CategoryInfoDto struct {
examples/js/express/mysql/endpoints.yaml
@@ -67,6 +67,9 @@
67
)
68
dto:
69
name: CreateCategoryDto
70
+ fields:
71
+ user_id:
72
+ type: integer
73
74
- path: /v1/categories/:categoryId
75
get:
@@ -91,6 +94,10 @@
91
94
, updated_at = NOW()
92
95
, updated_by = :b.user_id
93
96
WHERE id = :p.categoryId
97
+ dto:
98
99
100
101
delete:
102
query: >-
103
DELETE
0 commit comments