mirror of
				https://gitee.com/dromara/mayfly-go
				synced 2025-11-04 08:20:25 +08:00 
			
		
		
		
	feat: 新增pgsql数据操作&redis集群操作
This commit is contained in:
		@@ -15,6 +15,7 @@ type Db struct {
 | 
			
		||||
	Username  string `orm:"column(username)" json:"username"`
 | 
			
		||||
	Password  string `orm:"column(password)" json:"-"`
 | 
			
		||||
	Database  string `orm:"column(database)" json:"database"`
 | 
			
		||||
	Params    string `json:"params"`
 | 
			
		||||
	ProjectId uint64
 | 
			
		||||
	Project   string
 | 
			
		||||
	EnvId     uint64
 | 
			
		||||
 
 | 
			
		||||
@@ -8,10 +8,17 @@ 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
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
const (
 | 
			
		||||
	RedisModeStandalone = "standalone"
 | 
			
		||||
	RedisModeCluster    = "cluster"
 | 
			
		||||
)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user