19 lines
303 B
Go
19 lines
303 B
Go
package collection
|
|
|
|
import (
|
|
"leafdev.top/Leaf/leaf-library-3/internal/base/conf"
|
|
"leafdev.top/Leaf/leaf-library-3/internal/dao"
|
|
)
|
|
|
|
type Service struct {
|
|
config *conf.Config
|
|
dao *dao.Query
|
|
}
|
|
|
|
func NewService(config *conf.Config, dao *dao.Query) *Service {
|
|
return &Service{
|
|
config,
|
|
dao,
|
|
}
|
|
}
|