v2_2
This commit is contained in:
@@ -9,9 +9,11 @@ import (
|
||||
type SystemBiz interface {
|
||||
UserBiz() UserBiz
|
||||
MenuBiz() MenuBiz
|
||||
RoleBiz() RoleBiz
|
||||
DepartmentBiz() DepartmentBiz
|
||||
AuditBiz() AuditBiz
|
||||
ConfigBiz() ConfigBiz
|
||||
AuditBiz() AuditBiz
|
||||
LoginLogBiz() LoginLogBiz
|
||||
}
|
||||
|
||||
type systemBiz struct {
|
||||
@@ -35,17 +37,25 @@ func (b *systemBiz) UserBiz() UserBiz {
|
||||
}
|
||||
|
||||
func (b *systemBiz) MenuBiz() MenuBiz {
|
||||
return NewMenu(b.store, b.redis, b.session)
|
||||
return NewMenu(b.store, b.redis)
|
||||
}
|
||||
|
||||
func (b *systemBiz) RoleBiz() RoleBiz {
|
||||
return NewRole(b.store, b.redis)
|
||||
}
|
||||
|
||||
func (b *systemBiz) DepartmentBiz() DepartmentBiz {
|
||||
return NewDepartment(b.store, b.redis, b.session)
|
||||
return NewDepartment(b.store, b.redis)
|
||||
}
|
||||
|
||||
func (b *systemBiz) ConfigBiz() ConfigBiz {
|
||||
return NewConfig(b.store, b.redis)
|
||||
}
|
||||
|
||||
func (b *systemBiz) AuditBiz() AuditBiz {
|
||||
return NewAudit(b.store)
|
||||
}
|
||||
|
||||
func (b *systemBiz) ConfigBiz() ConfigBiz {
|
||||
return NewConfig(b.store, b.redis, b.session)
|
||||
func (b *systemBiz) LoginLogBiz() LoginLogBiz {
|
||||
return NewLoginLog(b.store)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user