2021-01-08 15:37:32 +08:00
|
|
|
|
package models
|
|
|
|
|
|
|
|
|
|
|
|
import (
|
|
|
|
|
|
"mayfly-go/base/model"
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
type Db struct {
|
|
|
|
|
|
model.Model
|
|
|
|
|
|
|
|
|
|
|
|
Name string `orm:"column(name)" json:"name"`
|
|
|
|
|
|
Type string `orm:"column(type)" json:"type"` // 类型,mysql oracle等
|
|
|
|
|
|
Host string `orm:"column(host)" json:"host"`
|
|
|
|
|
|
Port int `orm:"column(port)" json:"port"`
|
|
|
|
|
|
Network string `orm:"column(network)" json:"network"`
|
|
|
|
|
|
Username string `orm:"column(username)" json:"username"`
|
2021-04-16 15:10:07 +08:00
|
|
|
|
Password string `orm:"column(password)" json:"-"`
|
2021-01-08 15:37:32 +08:00
|
|
|
|
Database string `orm:"column(database)" json:"database"`
|
|
|
|
|
|
}
|