framework1/framework/contract/infrastructure.go

10 lines
326 B
Go
Raw Normal View History

2024-10-30 16:56:41 +08:00
package contract
const InfrastructureKey = "hade:infrastructure"
type InfrastructureService interface {
// GetModuleOrmRepository 通过模块名称来获取 对应的基础设施 -仓储层实现类
GetModuleOrmRepository(moduleName string) interface{}
RegisterOrmRepository(moduleName string, repository interface{})
}