2017-06-30 21:10:25 +05:30
|
|
|
package ui
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/mono83/slf/wd"
|
2017-08-09 21:49:46 +05:30
|
|
|
"elyby/minecraft-skinsystem/repositories"
|
2017-06-30 21:10:25 +05:30
|
|
|
)
|
|
|
|
|
|
|
|
type uiService struct {
|
|
|
|
logger wd.Watchdog
|
2017-08-09 21:49:46 +05:30
|
|
|
skinsRepo repositories.SkinsRepository
|
|
|
|
capesRepo repositories.CapesRepository
|
2017-06-30 21:10:25 +05:30
|
|
|
}
|
|
|
|
|
|
|
|
func NewUiService(
|
|
|
|
logger wd.Watchdog,
|
2017-08-09 21:49:46 +05:30
|
|
|
skinsRepo repositories.SkinsRepository,
|
|
|
|
capesRepo repositories.CapesRepository,
|
2017-06-30 21:10:25 +05:30
|
|
|
) (*uiService, error) {
|
|
|
|
return &uiService{
|
|
|
|
logger: logger,
|
|
|
|
skinsRepo: skinsRepo,
|
|
|
|
capesRepo: capesRepo,
|
|
|
|
}, nil
|
|
|
|
}
|