23 lines
352 B
Go
Executable File
23 lines
352 B
Go
Executable File
package config
|
|
|
|
import (
|
|
"github.com/zeromicro/go-zero/core/stores/cache"
|
|
"github.com/zeromicro/go-zero/zrpc"
|
|
)
|
|
|
|
type Config struct {
|
|
zrpc.RpcServerConf
|
|
Mongo struct {
|
|
Schema string
|
|
User string
|
|
Password string
|
|
Host string
|
|
Port string
|
|
Database string
|
|
Collection string
|
|
}
|
|
|
|
// 快取
|
|
Cache cache.CacheConf
|
|
}
|