12 lines
148 B
Go
12 lines
148 B
Go
|
package dao
|
||
|
|
||
|
import "github.com/jinzhu/gorm"
|
||
|
|
||
|
type Dao struct {
|
||
|
engine *gorm.DB
|
||
|
}
|
||
|
|
||
|
func New(engine *gorm.DB) *Dao {
|
||
|
return &Dao{engine: engine}
|
||
|
}
|