33 lines
719 B
Go
33 lines
719 B
Go
|
|
/*
|
||
|
|
* @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
|
||
|
|
}
|