123456789101112131415161718192021222324252627282930313233 |
- package entity
- type RedisStuct struct {
- Addr []string `json:"addr"`
- }
- type Mysql struct {
- Main *MysqlStruct `json:"main,omitempty"`
- BaseService *MysqlStruct `json:"baseService,omitempty"`
- }
- type Mongo struct {
- Main *MongoStruct `json:"main,optional"`
- }
- type MongoStruct struct {
- Address string `json:"address"`
- Size int `json:"size"`
- DbName string `json:"dbName"`
- UserName string `json:"userName,optional"`
- Password string `json:"password,optional"`
- Collection string `json:"collection,optional"`
- CollectionBack string `json:"collectionBack,optional"`
- MaxOpenConns int `json:"maxOpenConns,optional"`
- MaxIdleConns int `json:"maxIdleConns,optional"`
- }
- //mysql
- type MysqlStruct struct {
- DbName string `json:"dbName"`
- Address string `json:"address"`
- UserName string `json:"userName"`
- Password string `json:"passWord"`
- MaxOpenConns int `json:"maxOpenConns"`
- MaxIdleConns int `json:"maxIdleConns"`
- }
|