v2_10
This commit is contained in:
@@ -3,6 +3,8 @@ package biz
|
||||
import (
|
||||
db "management/internal/db/sqlc"
|
||||
commonv1 "management/internal/erpserver/biz/v1/common"
|
||||
customerv1 "management/internal/erpserver/biz/v1/customer"
|
||||
projectv1 "management/internal/erpserver/biz/v1/project"
|
||||
systemv1 "management/internal/erpserver/biz/v1/system"
|
||||
"management/internal/pkg/redis"
|
||||
"management/internal/pkg/session"
|
||||
@@ -14,6 +16,10 @@ type IBiz interface {
|
||||
CommonV1() commonv1.CommonBiz
|
||||
// 获取系统业务接口.
|
||||
SystemV1() systemv1.SystemBiz
|
||||
// 项目管理
|
||||
ProjectV1() projectv1.ProjectBiz
|
||||
// 客户管理
|
||||
CustomerV1() customerv1.CustomerBiz
|
||||
}
|
||||
|
||||
// biz 是 IBiz 的一个具体实现.
|
||||
@@ -44,3 +50,11 @@ func (b *biz) CommonV1() commonv1.CommonBiz {
|
||||
func (b *biz) SystemV1() systemv1.SystemBiz {
|
||||
return systemv1.New(b.store, b.redis, b.session)
|
||||
}
|
||||
|
||||
func (b *biz) ProjectV1() projectv1.ProjectBiz {
|
||||
return projectv1.New(b.store, b.redis)
|
||||
}
|
||||
|
||||
func (b *biz) CustomerV1() customerv1.CustomerBiz {
|
||||
return customerv1.New(b.store, b.redis)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user