This commit is contained in:
rogeecn
2025-03-22 16:39:52 +08:00
commit 306491168c
127 changed files with 17865 additions and 0 deletions

32
readme.md Normal file
View File

@@ -0,0 +1,32 @@
```
PositionPath = "path"
PositionQuery= "query"
PositionBody = "body"
PositionHeader = "header"
PositionCookie = "cookie"
PositionLocal = "local"
PositionFile = "file"
```
@Bind 语法
```
@Bind name position key() table() model()
```
```
// Upload
// @Router /v1/medias/upload [post]
// @Bind req body
// @Bind file file
// @Bind claim local
func (ctl *Controller) Upload(ctx fiber.Ctx, claim *jwt.Claims, file *multipart.FileHeader, req *UploadReq) (*storage.UploadedFile, error) {
return nil
}
```
Jet import for Pg
```
. "github.com/go-jet/jet/v2/postgres"
"github.com/go-jet/jet/v2/qrm"
```