CaoPengFlying
CaoPengFlying
由于 context.WithValue 修改了context树 `locker, ok := ctx.(sync.Locker)` 这里的ok永远都是false
## GORM Playground Link https://github.com/go-gorm/playground/pull/1 ## Description main代码 data.Init() cfg := gen.Config{ OutPath: "./app/data", Mode: gen.WithQueryInterface, FieldNullable: true, } g := gen.NewGenerator(cfg) g.UseDB(data.DB(context.Background())) g.ApplyBasic( g.GenerateModel("robot_user", gen.FieldJSONTagWithNS(camelColumn)), g.GenerateModel("robot_user_task", gen.FieldJSONTagWithNS(camelColumn)), ) g.Execute()...