This commit is contained in:
akrike
2025-08-11 20:43:55 +08:00
parent d968ce2a3e
commit 2a40d560d4

View File

@@ -184,7 +184,7 @@ func bind[T any, R any](fn func(*gin.Context, T) R, bindOption int) func(*gin.Co
}) })
return return
} }
case api.Response: case *api.Response:
ctx.JSON(v.StatusCode, gin.H{ ctx.JSON(v.StatusCode, gin.H{
"data": v.Data, "data": v.Data,
"msg": v.Msg, "msg": v.Msg,