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