优化
This commit is contained in:
@@ -4,4 +4,8 @@ import "kra/internal/biz"
|
||||
|
||||
type accessRepo struct{ data *Data }
|
||||
|
||||
func NewAccessRepo(data *Data) biz.AccessRepo { return &accessRepo{data: data} }
|
||||
func NewAuthorityAccessRepo(data *Data) biz.AuthorityAccessRepo { return &accessRepo{data: data} }
|
||||
|
||||
func NewAPIRepo(data *Data) biz.APIRepo { return &accessRepo{data: data} }
|
||||
|
||||
func NewPermissionRepo(data *Data) biz.PermissionRepo { return &accessRepo{data: data} }
|
||||
|
||||
@@ -4,4 +4,8 @@ import "kra/internal/biz"
|
||||
|
||||
type auditRepo struct{ data *Data }
|
||||
|
||||
func NewAuditRepo(data *Data) biz.AuditRepo { return &auditRepo{data: data} }
|
||||
func NewAuditRepo(data *Data) biz.AuditQueryRepo { return &auditRepo{data: data} }
|
||||
|
||||
func NewAuditRecorderRepo(data *Data) biz.AuditRecordRepo { return &auditRepo{data: data} }
|
||||
|
||||
func NewLogFileRepo(data *Data) biz.LogFileRepo { return &auditRepo{data: data} }
|
||||
|
||||
@@ -13,7 +13,7 @@ import (
|
||||
"kra/internal/conf"
|
||||
)
|
||||
|
||||
var ProviderSet = wire.NewSet(NewData, NewUserRepo, NewInitializationRepo, NewAccessRepo, NewMenuRepo, NewDepartmentRepo, NewPositionRepo, NewDictionaryRepo, NewParameterRepo, NewAPITokenRepo, NewSecurityRepo, NewVersionRepo, NewExportRepo, NewAuditRepo, NewTaskRepo, NewMediaRepo, NewAnnouncementRepo, NewEmailRepo, NewCache, NewFileStorage)
|
||||
var ProviderSet = wire.NewSet(NewData, NewUserRepo, NewInitializationRepo, NewAuthorityAccessRepo, NewAPIRepo, NewPermissionRepo, NewMenuRepo, NewDepartmentRepo, NewPositionRepo, NewDictionaryRepo, NewParameterRepo, NewAPITokenRepo, NewSecurityRepo, NewVersionRepo, NewExportRepo, NewAuditRepo, NewAuditRecorderRepo, NewLogFileRepo, NewTaskRepo, NewMediaRepo, NewAnnouncementRepo, NewEmailRepo, NewCache, NewFileStorage)
|
||||
|
||||
type Data struct {
|
||||
initMu sync.Mutex
|
||||
|
||||
Reference in New Issue
Block a user