mirror of
				https://gitee.com/dromara/mayfly-go
				synced 2025-11-04 08:20:25 +08:00 
			
		
		
		
	feat: 数据库、redis、mongo支持ssh隧道等
This commit is contained in:
		@@ -7,15 +7,17 @@ import (
 | 
			
		||||
type Redis struct {
 | 
			
		||||
	model.Model
 | 
			
		||||
 | 
			
		||||
	Host      string `orm:"column(host)" json:"host"`
 | 
			
		||||
	Mode      string `json:"mode"`
 | 
			
		||||
	Password  string `orm:"column(password)" json:"-"`
 | 
			
		||||
	Db        int    `orm:"column(database)" json:"db"`
 | 
			
		||||
	Remark    string
 | 
			
		||||
	ProjectId uint64
 | 
			
		||||
	Project   string
 | 
			
		||||
	EnvId     uint64
 | 
			
		||||
	Env       string
 | 
			
		||||
	Host               string `orm:"column(host)" json:"host"`
 | 
			
		||||
	Mode               string `json:"mode"`
 | 
			
		||||
	Password           string `orm:"column(password)" json:"-"`
 | 
			
		||||
	Db                 int    `orm:"column(database)" json:"db"`
 | 
			
		||||
	EnableSshTunnel    int8   `orm:"column(enable_ssh_tunnel)" json:"enableSshTunnel"`        // 是否启用ssh隧道
 | 
			
		||||
	SshTunnelMachineId uint64 `orm:"column(ssh_tunnel_machine_id)" json:"sshTunnelMachineId"` // ssh隧道机器id
 | 
			
		||||
	Remark             string
 | 
			
		||||
	ProjectId          uint64
 | 
			
		||||
	Project            string
 | 
			
		||||
	EnvId              uint64
 | 
			
		||||
	Env                string
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
const (
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user