This commit is contained in:
wangchuxiao
2023-05-10 20:27:39 +08:00
parent 042d4ca670
commit 150089c2b9
11 changed files with 26 additions and 41 deletions
+1
View File
@@ -15,6 +15,7 @@ func Call[A, B, C any](
client func(ctx context.Context) (C, error),
c *gin.Context,
) {
log.ZDebug(c, "before bind")
var req A
if err := c.BindJSON(&req); err != nil {
log.ZWarn(c, "gin bind json error", err, "req", req)