feat: 数据库sql执行支持取消执行操作

This commit is contained in:
meilin.huang
2023-12-07 01:07:34 +08:00
parent e1e03dc09a
commit a376a82240
15 changed files with 202 additions and 67 deletions

View File

@@ -101,7 +101,7 @@ func (rc *Ctx) GetLogInfo() *LogInfo {
}
func NewCtxWithGin(g *gin.Context) *Ctx {
return &Ctx{GinCtx: g, MetaCtx: contextx.NewTraceId()}
return &Ctx{GinCtx: g, MetaCtx: contextx.WithTraceId(g.Request.Context())}
}
// 处理器拦截器函数