refactor all service dependency injection
This commit is contained in:
@@ -1,9 +1,11 @@
|
||||
package department
|
||||
|
||||
import (
|
||||
"bsm/full/module/base/mgt/internal/impl"
|
||||
"bsm/full/module/base/mgt/internal/libs"
|
||||
"bsm/full/module/base/mgt/internal/models"
|
||||
"bsm/full/module/base/mgt/internal/types"
|
||||
|
||||
"git.apinb.com/bsm-sdk/core/errcode"
|
||||
"git.apinb.com/bsm-sdk/core/infra"
|
||||
"git.apinb.com/bsm-sdk/core/printer"
|
||||
@@ -38,7 +40,7 @@ func List(c *gin.Context) {
|
||||
return
|
||||
}
|
||||
|
||||
db := models.DBService.Model(&models.MgtDepartment{}).
|
||||
db := impl.DBService.Model(&models.MgtDepartment{}).
|
||||
Where("app_id = ?", appId).
|
||||
Select("id", "identity", "name", "app_id", "parent_id")
|
||||
if request.Keyword != "" {
|
||||
|
||||
Reference in New Issue
Block a user