32 lines
866 B
Go
32 lines
866 B
Go
package config
|
|
|
|
import (
|
|
"github.com/zeromicro/go-zero/core/stores/cache"
|
|
"github.com/zeromicro/go-zero/zrpc"
|
|
"trasfer_middleware/cmd/rpc/etc"
|
|
marketTypes "trasfer_middleware/cmd/rpc/internal/logic/po/market/types"
|
|
newMarketTypes "trasfer_middleware/cmd/rpc/internal/logic/po/new_market/types"
|
|
physical "trasfer_middleware/cmd/rpc/internal/logic/po/physical/types"
|
|
rsTypes "trasfer_middleware/cmd/rpc/internal/logic/po/rs/types"
|
|
zltxTypes "trasfer_middleware/cmd/rpc/internal/logic/po/zltx/types"
|
|
)
|
|
|
|
type Config struct {
|
|
zrpc.RpcServerConf
|
|
etc.ExtraConfig
|
|
Cache cache.CacheConf
|
|
ZLTX zltxTypes.ZLTXConf
|
|
Market marketTypes.MarketConf
|
|
RS rsTypes.RSConf
|
|
NewMarket newMarketTypes.NewMarketConf
|
|
Physical physical.PhysicalConf
|
|
DB struct {
|
|
Master struct {
|
|
DataSource string
|
|
}
|
|
Slave struct {
|
|
DataSource string
|
|
}
|
|
}
|
|
}
|