sk-matrix-project/backend/golang/matrix-middle-service/pkg/config/database/datasources.go

14 lines
273 B
Go
Raw Normal View History

package database
type DataSources = []DataSourcesType[any]
type DataSourcesType[T any] struct {
Type string `comment:"数据源类型"`
Enable bool `comment:"是否启用"`
Config T `comment:"配置项"`
}
type DataSourcesConfig interface {
Name() string
}