niki/service/admin/refer_time_aggregator/service.go

22 lines
395 B
Go

package adminrefertimeaggregatorservice
import (
"context"
"git.gocasts.ir/ebhomengo/niki/entity"
)
type Service struct {
repo Repository
}
type Repository interface {
Get(ctx context.Context, referTimeID uint) (entity.ReferTime, error)
GetByIDs(ctx context.Context, id []any) (map[uint]entity.ReferTime, error)
}
func New(repo Repository) Service {
return Service{
repo: repo,
}
}