dao.go 388 字节
Newer Older
Y
Your Name 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
package dao_service

import (
	"database/sql"

	"github.com/eolinker/goku-api-gateway/server/dao"
)

//ServiceDao ServiceDao
type ServiceDao struct {
	db *sql.DB
}

//NewServiceDao new ServiceDao
func NewServiceDao() *ServiceDao {
	return &ServiceDao{}
}

//Create create
func (d *ServiceDao) Create(db *sql.DB) (interface{}, error) {
	d.db = db
	i := dao.ServiceDao(d)
	return &i, nil
}