43 lines
620 B
Go
43 lines
620 B
Go
package config
|
|
|
|
import (
|
|
"github.com/zeromicro/go-zero/core/stores/cache"
|
|
"github.com/zeromicro/go-zero/rest"
|
|
)
|
|
|
|
type Config struct {
|
|
rest.RestConf
|
|
Rpc
|
|
Cache cache.CacheConf
|
|
Sys struct {
|
|
PrimaryKey string
|
|
Url string
|
|
Key string
|
|
}
|
|
YouleHost string
|
|
MarketConfig MarketConfig
|
|
DB struct {
|
|
Master struct {
|
|
DataSource string
|
|
}
|
|
Slave struct {
|
|
DataSource string
|
|
}
|
|
}
|
|
}
|
|
|
|
type Rpc struct {
|
|
Nacos Nacos
|
|
}
|
|
|
|
type Nacos struct {
|
|
Timeout int64
|
|
Endpoints []string
|
|
}
|
|
|
|
type MarketConfig struct {
|
|
AppId string
|
|
PosId string
|
|
SupplierSkuId map[string]string
|
|
}
|