go-zero
go-zero copied to clipboard
Question about mongo transaction
model(dao) level allows to input context, but not expose any mongo client.
when use mongo-driver,i usually call: client.UseSession(...)
to create transaction context.but dao is generated by goctl.
how do i create session in service level? Is there any suggestion