refactor all service dependency injection
This commit is contained in:
@@ -1,10 +1,12 @@
|
||||
package application
|
||||
|
||||
import (
|
||||
"bsm/full/module/base/mgt/internal/impl"
|
||||
"bsm/full/module/base/mgt/internal/libs"
|
||||
"bsm/full/module/base/mgt/internal/logic/tool"
|
||||
"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"
|
||||
"github.com/gin-gonic/gin"
|
||||
@@ -15,7 +17,7 @@ func Fetch(c *gin.Context) {
|
||||
request = types.ApplicationRequest{}
|
||||
count int64 = 0
|
||||
data = make([]types.ApplicationRsp, 0)
|
||||
db = models.DBService.Model(&models.MgtApplication{})
|
||||
db = impl.DBService.Model(&models.MgtApplication{})
|
||||
)
|
||||
|
||||
// 解析JSON请求
|
||||
|
||||
Reference in New Issue
Block a user