master v1.0.37
李光春 2 years ago
parent c65de2d85b
commit 37f574b436

@ -1,3 +1,3 @@
package dorm
const Version = "1.0.36"
const Version = "1.0.37"

@ -9,6 +9,9 @@ import (
"time"
)
// GormClientFun *GormClient 驱动
type GormClientFun func() *GormClient
type ConfigGormClient struct {
Dns string // 地址
LogStatus bool // 日志 - 状态

@ -8,6 +8,10 @@ import (
"go.mongodb.org/mongo-driver/mongo/options"
)
// MongoClientFun *MongoClient 驱动
// databaseName string 库名
type MongoClientFun func() (*MongoClient, string)
type ConfigMongoClient struct {
Dns string // 地址
Opts *options.ClientOptions

@ -8,6 +8,9 @@ import (
"time"
)
// RedisClientFun *RedisClient 驱动
type RedisClientFun func() *RedisClient
type ConfigRedisClient struct {
Addr string // 地址
Password string // 密码

Loading…
Cancel
Save