niki/service/admin/kind_box/service.go

22 lines
349 B
Go
Raw Normal View History

2023-12-25 17:08:19 +00:00
package adminkindboxservice
import (
"context"
2023-12-25 17:08:19 +00:00
entity "git.gocasts.ir/ebhomengo/niki/entity"
)
type Repository interface {
AddBatchKindBox(ctx context.Context, kindBoxes []entity.KindBox) ([]entity.KindBox, error)
}
type Service struct {
repo Repository
}
func New(repository Repository) Service {
return Service{
repo: repository,
}
}