1
This commit is contained in:
32
internal/app/system/service/module_tenant.go
Normal file
32
internal/app/system/service/module_tenant.go
Normal file
@@ -0,0 +1,32 @@
|
||||
/*
|
||||
* @desc:模块租户关系服务
|
||||
* @company:云南奇讯科技有限公司
|
||||
* @Author: system
|
||||
* @Date: 2026/1/6
|
||||
*/
|
||||
|
||||
package service
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/tiger1103/gfast/v3/api/v1/system"
|
||||
)
|
||||
|
||||
type IModuleTenant interface {
|
||||
Add(ctx context.Context, req *system.ModuleTenantAddReq) (err error)
|
||||
AddRedisByTenantId(ctx context.Context, req *system.AddRedisByTenantIdReq) (res *system.AddRedisByTenantIdRes, err error)
|
||||
}
|
||||
|
||||
var localModuleTenant IModuleTenant
|
||||
|
||||
func ModuleTenant() IModuleTenant {
|
||||
if localModuleTenant == nil {
|
||||
panic("implement not found for interface IModuleTenant, forgot register?")
|
||||
}
|
||||
return localModuleTenant
|
||||
}
|
||||
|
||||
func RegisterModuleTenant(i IModuleTenant) {
|
||||
localModuleTenant = i
|
||||
}
|
||||
Reference in New Issue
Block a user