fix: building issue

This commit is contained in:
yanghao05
2023-03-20 16:53:34 +08:00
parent bde38e7a0c
commit 6757e00d73
6 changed files with 18 additions and 18 deletions

View File

@@ -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,

View File

@@ -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{

View File

@@ -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,

View File

@@ -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{

View File

@@ -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{

View File

@@ -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}
} }