2024-06-07 11:11:04 +08:00
|
|
|
package config
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/zeromicro/go-zero/core/stores/cache"
|
|
|
|
"github.com/zeromicro/go-zero/zrpc"
|
|
|
|
"trasfer_middleware/cmd/rpc/etc"
|
2024-07-09 17:07:22 +08:00
|
|
|
marketTypes "trasfer_middleware/cmd/rpc/internal/logic/po/market/types"
|
2024-10-15 18:35:45 +08:00
|
|
|
newMarketTypes "trasfer_middleware/cmd/rpc/internal/logic/po/new_market/types"
|
2024-11-06 17:35:59 +08:00
|
|
|
physical "trasfer_middleware/cmd/rpc/internal/logic/po/physical/types"
|
2024-07-09 17:07:22 +08:00
|
|
|
rsTypes "trasfer_middleware/cmd/rpc/internal/logic/po/rs/types"
|
|
|
|
zltxTypes "trasfer_middleware/cmd/rpc/internal/logic/po/zltx/types"
|
2024-06-07 11:11:04 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
type Config struct {
|
|
|
|
zrpc.RpcServerConf
|
|
|
|
etc.ExtraConfig
|
2024-10-15 18:35:45 +08:00
|
|
|
Cache cache.CacheConf
|
|
|
|
ZLTX zltxTypes.ZLTXConf
|
|
|
|
Market marketTypes.MarketConf
|
|
|
|
RS rsTypes.RSConf
|
|
|
|
NewMarket newMarketTypes.NewMarketConf
|
2024-11-06 17:35:59 +08:00
|
|
|
Physical physical.PhysicalConf
|
2024-10-15 18:35:45 +08:00
|
|
|
DB struct {
|
2024-06-12 13:46:14 +08:00
|
|
|
Master struct {
|
|
|
|
DataSource string
|
|
|
|
}
|
|
|
|
Slave struct {
|
|
|
|
DataSource string
|
|
|
|
}
|
|
|
|
}
|
2024-06-07 11:11:04 +08:00
|
|
|
}
|