forked from ebhomengo/niki
25 lines
599 B
Go
25 lines
599 B
Go
|
package adminagenthandler
|
||
|
|
||
|
import (
|
||
|
agentservice "git.gocasts.ir/ebhomengo/niki/service/admin/agent"
|
||
|
authorizeservice "git.gocasts.ir/ebhomengo/niki/service/admin/authorization"
|
||
|
authservice "git.gocasts.ir/ebhomengo/niki/service/auth"
|
||
|
)
|
||
|
|
||
|
type Handler struct {
|
||
|
authSvc authservice.Service
|
||
|
agentSvc agentservice.Service
|
||
|
authorizeSvc authorizeservice.Service
|
||
|
}
|
||
|
|
||
|
func New(authSvc authservice.Service,
|
||
|
agentSvc agentservice.Service,
|
||
|
authorizeSvc authorizeservice.Service,
|
||
|
) Handler {
|
||
|
return Handler{
|
||
|
authSvc: authSvc,
|
||
|
agentSvc: agentSvc,
|
||
|
authorizeSvc: authorizeSvc,
|
||
|
}
|
||
|
}
|