gin-blog/internal/dao/dao.go

12 lines
148 B
Go
Raw Normal View History

2021-05-28 10:40:39 +00:00
package dao
import "github.com/jinzhu/gorm"
type Dao struct {
engine *gorm.DB
}
func New(engine *gorm.DB) *Dao {
return &Dao{engine: engine}
}