forked from ebhomengo/niki
26 lines
678 B
Go
26 lines
678 B
Go
package adminhandler
|
|
|
|
import (
|
|
adminservice "git.gocasts.ir/ebhomengo/niki/service/admin/admin"
|
|
adminauthservice "git.gocasts.ir/ebhomengo/niki/service/auth"
|
|
adminvalidator "git.gocasts.ir/ebhomengo/niki/validator/admin/admin"
|
|
)
|
|
|
|
type Handler struct {
|
|
authConfig adminauthservice.Config
|
|
authSvc adminauthservice.Service
|
|
adminSvc adminservice.Service
|
|
adminVld adminvalidator.Validator
|
|
}
|
|
|
|
func New(authConfig adminauthservice.Config, authSvc adminauthservice.Service,
|
|
adminSvc adminservice.Service, adminVld adminvalidator.Validator,
|
|
) Handler {
|
|
return Handler{
|
|
authConfig: authConfig,
|
|
authSvc: authSvc,
|
|
adminSvc: adminSvc,
|
|
adminVld: adminVld,
|
|
}
|
|
}
|