mirror of
				https://gitee.com/dromara/mayfly-go
				synced 2025-11-04 08:20:25 +08:00 
			
		
		
		
	feature: 实现数据库实例管理
This commit is contained in:
		@@ -2,6 +2,21 @@ package entity
 | 
			
		||||
 | 
			
		||||
import "mayfly-go/pkg/model"
 | 
			
		||||
 | 
			
		||||
// 数据库实例查询
 | 
			
		||||
type InstanceQuery struct {
 | 
			
		||||
	model.Model
 | 
			
		||||
 | 
			
		||||
	Name     string `orm:"column(name)" json:"name" form:"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"`
 | 
			
		||||
	Password string `orm:"column(password)" json:"-"`
 | 
			
		||||
	Params   string `orm:"column(params)" json:"params"`
 | 
			
		||||
	Remark   string `orm:"column(remark)" json:"remark"`
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// 数据库查询实体,不与数据库表字段一一对应
 | 
			
		||||
type DbQuery struct {
 | 
			
		||||
	model.Model
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user