forked from ebhomengo/niki
26 lines
776 B
Go
26 lines
776 B
Go
|
package adminkindboxhandler
|
||
|
|
||
|
import (
|
||
|
adminkindboxservice "git.gocasts.ir/ebhomengo/niki/service/admin/kind_box"
|
||
|
authservice "git.gocasts.ir/ebhomengo/niki/service/auth"
|
||
|
adminkindboxvalidator "git.gocasts.ir/ebhomengo/niki/validator/admin/kind_box"
|
||
|
)
|
||
|
|
||
|
type Handler struct {
|
||
|
authConfig authservice.Config
|
||
|
authSvc authservice.Service
|
||
|
adminKindBoxSvc adminkindboxservice.Service
|
||
|
adminKindBoxVld adminkindboxvalidator.Validator
|
||
|
}
|
||
|
|
||
|
func New(authConfig authservice.Config, authSvc authservice.Service,
|
||
|
adminKindBoxSvc adminkindboxservice.Service, adminKindBoxVld adminkindboxvalidator.Validator,
|
||
|
) Handler {
|
||
|
return Handler{
|
||
|
authConfig: authConfig,
|
||
|
authSvc: authSvc,
|
||
|
adminKindBoxSvc: adminKindBoxSvc,
|
||
|
adminKindBoxVld: adminKindBoxVld,
|
||
|
}
|
||
|
}
|