fix: building issue
This commit is contained in:
@@ -11,11 +11,11 @@ import (
|
||||
)
|
||||
|
||||
type RoleController struct {
|
||||
roleSvc service.RoleService
|
||||
roleSvc *service.RoleService
|
||||
}
|
||||
|
||||
func NewRoleController(
|
||||
roleSvc service.RoleService,
|
||||
roleSvc *service.RoleService,
|
||||
) *RoleController {
|
||||
return &RoleController{
|
||||
roleSvc: roleSvc,
|
||||
|
||||
@@ -11,13 +11,13 @@ import (
|
||||
|
||||
type UserController struct {
|
||||
conf *config.Config
|
||||
user service.UserService
|
||||
user *service.UserService
|
||||
jwt *jwt.JWT
|
||||
}
|
||||
|
||||
func NewUserController(
|
||||
conf *config.Config,
|
||||
user service.UserService,
|
||||
user *service.UserService,
|
||||
jwt *jwt.JWT,
|
||||
) *UserController {
|
||||
return &UserController{
|
||||
|
||||
@@ -13,16 +13,16 @@ import (
|
||||
|
||||
type Route struct {
|
||||
svc *http.Service
|
||||
user controller.UserController
|
||||
role controller.RoleController
|
||||
permission controller.PermissionController
|
||||
user *controller.UserController
|
||||
role *controller.RoleController
|
||||
permission *controller.PermissionController
|
||||
}
|
||||
|
||||
func NewRoute(
|
||||
svc *http.Service,
|
||||
role controller.RoleController,
|
||||
user controller.UserController,
|
||||
permission controller.PermissionController,
|
||||
role *controller.RoleController,
|
||||
user *controller.UserController,
|
||||
permission *controller.PermissionController,
|
||||
) contracts.Route {
|
||||
return &Route{
|
||||
svc: svc,
|
||||
|
||||
@@ -11,12 +11,12 @@ import (
|
||||
)
|
||||
|
||||
type RoleService struct {
|
||||
dao dao.RoleDao
|
||||
dao *dao.RoleDao
|
||||
uuid *uuid.Generator
|
||||
}
|
||||
|
||||
func NewRoleService(
|
||||
dao dao.RoleDao,
|
||||
dao *dao.RoleDao,
|
||||
uuid *uuid.Generator,
|
||||
) *RoleService {
|
||||
return &RoleService{
|
||||
|
||||
@@ -9,14 +9,14 @@ import (
|
||||
)
|
||||
|
||||
type UserService struct {
|
||||
userRoleDao dao.UserRoleDao
|
||||
userDao dao.UserDao
|
||||
userRoleDao *dao.UserRoleDao
|
||||
userDao *dao.UserDao
|
||||
jwt *jwt.JWT
|
||||
}
|
||||
|
||||
func NewUserService(
|
||||
userRoleDao dao.UserRoleDao,
|
||||
userDao dao.UserDao,
|
||||
userRoleDao *dao.UserRoleDao,
|
||||
userDao *dao.UserDao,
|
||||
jwt *jwt.JWT,
|
||||
) *UserService {
|
||||
return &UserService{
|
||||
|
||||
@@ -9,11 +9,11 @@ import (
|
||||
)
|
||||
|
||||
type Route struct {
|
||||
captcha controller.CaptchaController
|
||||
captcha *controller.CaptchaController
|
||||
svc *http.Service
|
||||
}
|
||||
|
||||
func NewRoute(captcha controller.CaptchaController, svc *http.Service) contracts.Route {
|
||||
func NewRoute(captcha *controller.CaptchaController, svc *http.Service) contracts.Route {
|
||||
return &Route{captcha: captcha, svc: svc}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user