This commit is contained in:
2026-03-18 10:19:42 +08:00
parent 2526ad4414
commit e58dd3529d
267 changed files with 25279 additions and 2 deletions

View 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
}