mirror of
				https://gitee.com/dromara/mayfly-go
				synced 2025-11-04 00:10:25 +08:00 
			
		
		
		
	feat: 前端升级至vue3,后端代码结构重构,新增权限管理相关功能
This commit is contained in:
		
							
								
								
									
										18
									
								
								server/devops/domain/entity/db.go
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										18
									
								
								server/devops/domain/entity/db.go
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,18 @@
 | 
			
		||||
package entity
 | 
			
		||||
 | 
			
		||||
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"`
 | 
			
		||||
	Password string `orm:"column(password)" json:"-"`
 | 
			
		||||
	Database string `orm:"column(database)" json:"database"`
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user