mirror of
https://gitee.com/dromara/mayfly-go
synced 2025-12-25 17:16:33 +08:00
feat: 完善数据库信息保存以及项目、redis相关操作
This commit is contained in:
18
server/devops/apis/form/redis.go
Normal file
18
server/devops/apis/form/redis.go
Normal file
@@ -0,0 +1,18 @@
|
||||
package form
|
||||
|
||||
type Redis struct {
|
||||
Id uint64
|
||||
Host string `binding:"required" json:"host"`
|
||||
Password string `json:"password"`
|
||||
Db int `json:"db"`
|
||||
ProjectId uint64 `binding:"required" json:"projectId"`
|
||||
Project string `json:"project"`
|
||||
Env string `json:"env"`
|
||||
EnvId uint64 `binding:"required" json:"envId"`
|
||||
}
|
||||
|
||||
type KeyValue struct {
|
||||
Key string `binding:"required" json:"key"`
|
||||
Value interface{} `binding:"required" json:"value"`
|
||||
Timed uint64
|
||||
}
|
||||
Reference in New Issue
Block a user