master v1.0.80
李光春 2 years ago
parent 3f0ab29c10
commit 10e31bb497

@ -10,6 +10,10 @@ import (
"runtime"
)
// ApiClientFun *ApiClient 驱动
// jsonStatus bool json状态
type ApiClientFun func() (*ApiClient, bool)
// ApiClient 接口
type ApiClient struct {
gormClient *dorm.GormClient // 数据库驱动

@ -1,5 +1,5 @@
package golog
const (
Version = "1.0.79"
Version = "1.0.80"
)

@ -17,6 +17,10 @@ import (
"runtime"
)
// GinClientFun *GinClient 驱动
// jsonStatus bool json状态
type GinClientFun func() (*GinClient, bool)
// GinClient 框架
type GinClient struct {
gormClient *dorm.GormClient // 数据库驱动

@ -5,7 +5,7 @@ go 1.19
require (
github.com/gin-gonic/gin v1.8.1
github.com/natefinch/lumberjack v2.0.0+incompatible
go.dtapp.net/dorm v1.0.36
go.dtapp.net/dorm v1.0.37
go.dtapp.net/goip v1.0.34
go.dtapp.net/gorequest v1.0.31
go.dtapp.net/gotime v1.0.5

@ -512,8 +512,8 @@ github.com/youmark/pkcs8 v0.0.0-20201027041543-1326539a0a0a/go.mod h1:ul22v+Nro/
github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
github.com/zenazn/goji v0.9.0/go.mod h1:7S9M489iMyHBNxwZnk9/EHS098H4/F6TATF2mIxtB1Q=
github.com/ziutek/mymysql v1.5.4/go.mod h1:LMSpPZ6DbqWFxNCHW77HeMg9I646SAhApZ/wKdgO/C0=
go.dtapp.net/dorm v1.0.36 h1:3kqdGhZ/oAKr8YMQo9OXAlByGal+uok6Yh33YXmdJtw=
go.dtapp.net/dorm v1.0.36/go.mod h1:z9ksZ4Y0HHH0odjEiG57d90/ZUBM51qXEWJC8fS+dEM=
go.dtapp.net/dorm v1.0.37 h1:EFhTfa1EVV0KASVsg5ZMJjQLpUPBazpHf19l1reOIf0=
go.dtapp.net/dorm v1.0.37/go.mod h1:z9ksZ4Y0HHH0odjEiG57d90/ZUBM51qXEWJC8fS+dEM=
go.dtapp.net/goip v1.0.34 h1:aW2CuPpQwcDOJiyx/gHbvrha3/x+poFRpDxsLtO4EVw=
go.dtapp.net/goip v1.0.34/go.mod h1:EctL6B8ue/kZKPr+kKZPU6YTTpNhihane9BHHffwo6Q=
go.dtapp.net/gorandom v1.0.1 h1:IWfMClh1ECPvyUjlqD7MwLq4mZdUusD1qAwAdsvEJBs=

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

3
vendor/go.dtapp.net/dorm/gorm.go generated vendored

@ -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 // 密码

@ -246,7 +246,7 @@ github.com/xdg-go/stringprep
# github.com/youmark/pkcs8 v0.0.0-20201027041543-1326539a0a0a
## explicit; go 1.12
github.com/youmark/pkcs8
# go.dtapp.net/dorm v1.0.36
# go.dtapp.net/dorm v1.0.37
## explicit; go 1.19
go.dtapp.net/dorm
# go.dtapp.net/goip v1.0.34

Loading…
Cancel
Save