19 lines
302 B
Go
19 lines
302 B
Go
|
package workspace
|
||
|
|
||
|
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,
|
||
|
}
|
||
|
}
|