2024-08-28 09:09:01 +00:00
|
|
|
package config
|
|
|
|
|
2024-08-29 01:08:15 +00:00
|
|
|
import (
|
|
|
|
"github.com/zeromicro/go-zero/core/stores/cache"
|
|
|
|
"github.com/zeromicro/go-zero/zrpc"
|
|
|
|
)
|
2024-08-28 09:09:01 +00:00
|
|
|
|
|
|
|
type Config struct {
|
|
|
|
zrpc.RpcServerConf
|
2024-08-29 01:08:15 +00:00
|
|
|
Mongo struct {
|
2024-08-29 02:41:34 +00:00
|
|
|
Schema string
|
|
|
|
User string
|
|
|
|
Password string
|
|
|
|
Host string
|
|
|
|
Port string
|
|
|
|
Database string
|
2024-08-29 01:08:15 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// 快取
|
|
|
|
Cache cache.CacheConf
|
2024-08-28 09:09:01 +00:00
|
|
|
}
|