mirror of
https://gitee.com/dromara/mayfly-go
synced 2025-12-30 19:36:34 +08:00
refactor: 代码结构调整
This commit is contained in:
@@ -3,7 +3,6 @@ package application
|
||||
import (
|
||||
"mayfly-go/internal/sys/domain/entity"
|
||||
"mayfly-go/internal/sys/domain/repository"
|
||||
"mayfly-go/internal/sys/infrastructure/persistence"
|
||||
"mayfly-go/pkg/biz"
|
||||
"mayfly-go/pkg/model"
|
||||
"mayfly-go/pkg/utils"
|
||||
@@ -23,12 +22,14 @@ type Account interface {
|
||||
Delete(id uint64)
|
||||
}
|
||||
|
||||
type accountAppImpl struct {
|
||||
accountRepo repository.Account
|
||||
func newAccountApp(accountRepo repository.Account) Account {
|
||||
return &accountAppImpl{
|
||||
accountRepo: accountRepo,
|
||||
}
|
||||
}
|
||||
|
||||
var AccountApp Account = &accountAppImpl{
|
||||
accountRepo: persistence.AccountDao,
|
||||
type accountAppImpl struct {
|
||||
accountRepo repository.Account
|
||||
}
|
||||
|
||||
// 根据条件获取账号信息
|
||||
|
||||
Reference in New Issue
Block a user