2024-01-02 14:04:16 +00:00
|
|
|
package benefactorkindboxhandler
|
|
|
|
|
|
|
|
import (
|
2024-01-14 15:53:37 +00:00
|
|
|
authservice "git.gocasts.ir/ebhomengo/niki/service/auth/benefactor"
|
2024-01-02 14:04:16 +00:00
|
|
|
benefactorkindboxservice "git.gocasts.ir/ebhomengo/niki/service/benefactor/kind_box"
|
|
|
|
benefactorkindboxvalidator "git.gocasts.ir/ebhomengo/niki/validator/benefactor/kind_box"
|
|
|
|
)
|
|
|
|
|
|
|
|
type Handler struct {
|
|
|
|
authConfig authservice.Config
|
|
|
|
authSvc authservice.Service
|
|
|
|
benefactorKindBoxSvc benefactorkindboxservice.Service
|
|
|
|
benefactorKindBoxVld benefactorkindboxvalidator.Validator
|
|
|
|
}
|
|
|
|
|
|
|
|
func New(authConfig authservice.Config, authSvc authservice.Service,
|
|
|
|
benefactorKindBoxSvc benefactorkindboxservice.Service, benefactorKindBoxVld benefactorkindboxvalidator.Validator,
|
|
|
|
) Handler {
|
|
|
|
return Handler{
|
|
|
|
authConfig: authConfig,
|
|
|
|
authSvc: authSvc,
|
|
|
|
benefactorKindBoxSvc: benefactorKindBoxSvc,
|
|
|
|
benefactorKindBoxVld: benefactorKindBoxVld,
|
|
|
|
}
|
|
|
|
}
|