2024-01-22 14:41:55 +00:00
|
|
|
package benefactoraddresshandler
|
|
|
|
|
|
|
|
import (
|
2024-01-25 11:43:39 +00:00
|
|
|
authservice "git.gocasts.ir/ebhomengo/niki/service/auth"
|
2024-01-22 14:41:55 +00:00
|
|
|
benefactoraddressservice "git.gocasts.ir/ebhomengo/niki/service/benefactor/address"
|
|
|
|
benefactoraddressvalidator "git.gocasts.ir/ebhomengo/niki/validator/benefactor/address"
|
|
|
|
)
|
|
|
|
|
|
|
|
type Handler struct {
|
|
|
|
authConfig authservice.Config
|
|
|
|
authSvc authservice.Service
|
|
|
|
addressSvc benefactoraddressservice.Service
|
|
|
|
addressVld benefactoraddressvalidator.Validator
|
|
|
|
}
|
|
|
|
|
|
|
|
func New(
|
|
|
|
authConfig authservice.Config,
|
|
|
|
authSvc authservice.Service,
|
|
|
|
addressSvc benefactoraddressservice.Service,
|
|
|
|
addressVld benefactoraddressvalidator.Validator,
|
|
|
|
) Handler {
|
|
|
|
return Handler{
|
|
|
|
authConfig: authConfig,
|
|
|
|
authSvc: authSvc,
|
|
|
|
addressSvc: addressSvc,
|
|
|
|
addressVld: addressVld,
|
|
|
|
}
|
|
|
|
}
|