mirror of
https://github.com/zeromicro/go-zero.git
synced 2026-05-08 15:39:59 +08:00
optimize unit test & add document
This commit is contained in:
22
tools/goctl/model/sql/example/config/config.go
Normal file
22
tools/goctl/model/sql/example/config/config.go
Normal file
@@ -0,0 +1,22 @@
|
||||
package config
|
||||
|
||||
import (
|
||||
"github.com/tal-tech/go-zero/core/logx"
|
||||
"github.com/tal-tech/go-zero/core/stores/cache"
|
||||
"github.com/tal-tech/go-zero/core/stores/redis"
|
||||
)
|
||||
|
||||
type (
|
||||
Config struct {
|
||||
logx.LogConf
|
||||
Mysql struct {
|
||||
DataSource string
|
||||
Table struct {
|
||||
User string
|
||||
Course string
|
||||
}
|
||||
}
|
||||
CacheRedis cache.CacheConf
|
||||
Redis redis.RedisConf
|
||||
}
|
||||
)
|
||||
Reference in New Issue
Block a user