packagedaoimport("github.com/go-kratos/kratos/v2/log""github.com/google/wire""gorm.io/gorm""hilo/app/service/mgr/internal/conf""hilo/common/mysql")// ProviderSet is dao providers.varProviderSet=wire.NewSet(NewDao)// Dao .typeDaostruct{// TODO wrapped database clientDB*gorm.DB}// NewDao .funcNewDao(c*conf.Data)(*Dao,func(),error){db:=mysql.NewDB(c.Mysql)cleanup:=func(){d,_:=db.DB()d.Close()log.Debug("close data resources")}return&Dao{DB:db,},cleanup,nil}