gCtx := xgin.FromContext(ctx)
if gCtx == nil {
panic("gin.Context not found")
}
id := gCtx.Param("id")
gCtx := xgin.FromContext(ctx)
if gCtx == nil {
panic("gin.Context not found")
}
id := gCtx.Param("id")
本文标题:ctx context.Context 获取请求参数值 ---
本文链接:https://www.haomeiwen.com/subject/kbxpadtx.html
网友评论