Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions apps/docs/docs/decorators/transforms.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ app.get('/search', bindingCargo(SearchRequest), (req: Request, res: Response) =>
// Verify the type of the transformed data
sortByType: typeof searchParams.sortBy,
countType: typeof searchParams.count,
doubleCount: searchParams.count,
})
})

Expand All @@ -66,10 +65,9 @@ When the example request URL is accessed, the `bindingCargo` middleware processe
"message": "Search parameters transformed successfully!",
"data": {
"sortBy": "title",
"count": 10
"count": 20
},
"sortByType": "string",
"countType": "number",
"doubleCount": 10
"countType": "number"
}
```
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ app.get('/search', bindingCargo(SearchRequest), (req: Request, res: Response) =>
// Überprüfen Sie den Typ der transformierten Daten
sortByType: typeof searchParams.sortBy,
countType: typeof searchParams.count,
doubleCount: searchParams.count,
})
})

Expand All @@ -66,10 +65,9 @@ Wenn auf die Beispiel-Anfrage-URL zugegriffen wird, verarbeitet die `bindingCarg
"message": "Suchparameter erfolgreich transformiert!",
"data": {
"sortBy": "title",
"count": 10
"count": 20
},
"sortByType": "string",
"countType": "number",
"doubleCount": 10
"countType": "number"
}
```
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ app.get('/search', bindingCargo(SearchRequest), (req: Request, res: Response) =>
// Vérifier le type des données transformées
sortByType: typeof searchParams.sortBy,
countType: typeof searchParams.count,
doubleCount: searchParams.count,
})
})

Expand All @@ -66,10 +65,9 @@ Lorsque l'URL de requête d'exemple est accédée, le middleware `bindingCargo`
"message": "Paramètres de recherche transformés avec succès !",
"data": {
"sortBy": "title",
"count": 10
"count": 20
},
"sortByType": "string",
"countType": "number",
"doubleCount": 10
"countType": "number"
}
```
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ app.get('/search', bindingCargo(SearchRequest), (req: Request, res: Response) =>
// 変換されたデータの型を確認
sortByType: typeof searchParams.sortBy,
countType: typeof searchParams.count,
doubleCount: searchParams.count,
})
})

Expand All @@ -66,10 +65,9 @@ http://localhost:3000/search?sortBy=TITLE&count=10
"message": "Search parameters transformed successfully!",
"data": {
"sortBy": "title",
"count": 10
"count": 20
},
"sortByType": "string",
"countType": "number",
"doubleCount": 10
"countType": "number"
}
```
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ app.get('/search', bindingCargo(SearchRequest), (req: Request, res: Response) =>
// 변환된 데이터와 그 타입 확인
sortByType: typeof searchParams.sortBy,
countType: typeof searchParams.count,
doubleCount: searchParams.count,
})
})

Expand All @@ -71,10 +70,9 @@ http://localhost:3000/search?sortBy=TITLE&count=10
"message": "Search parameters transformed successfully!",
"data": {
"sortBy": "title",
"count": 10
"count": 20
},
"sortByType": "string",
"countType": "number",
"doubleCount": 10
"countType": "number"
}
```
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,7 @@ app.get('/search', bindingCargo(SearchRequest), (req: Request, res: Response) =>
data: searchParams,
// Проверьте тип преобразованных данных
sortByType: typeof searchParams.sortBy,
countType: typeof searchParams.count,
doubleCount: searchParams.count,
countType: typeof searchParams.count
Comment thread
yuchem2 marked this conversation as resolved.
Outdated
})
})

Expand All @@ -66,10 +65,9 @@ http://localhost:3000/search?sortBy=TITLE&count=10
"message": "Параметры поиска успешно преобразованы!",
"data": {
"sortBy": "title",
"count": 10
"count": 20
},
"sortByType": "string",
"countType": "number",
"doubleCount": 10
"countType": "number"
}
```
Loading