sk-matrix-project/backend/golang/matrix-middle-service/pkg/config/database/datasources.go
Shikong 998ae4a9b9 工具包调整
添加 jwt nanoid 配置 及 初始化
2023-02-26 23:48:03 +08:00

14 lines
273 B
Go

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
}