2021-07-28 18:03:19 +08:00
|
|
|
|
package form
|
|
|
|
|
|
|
|
|
|
|
|
type Redis struct {
|
2023-12-05 23:03:51 +08:00
|
|
|
|
Id uint64 `json:"id"`
|
|
|
|
|
|
Name string `json:"name"`
|
|
|
|
|
|
Host string `json:"host" binding:"required"`
|
|
|
|
|
|
Username string `json:"username"`
|
|
|
|
|
|
Password string `json:"password"`
|
|
|
|
|
|
Mode string `json:"mode"`
|
|
|
|
|
|
Db string `json:"db"`
|
|
|
|
|
|
SshTunnelMachineId int `json:"sshTunnelMachineId"` // ssh隧道机器id
|
|
|
|
|
|
TagId []uint64 `binding:"required" json:"tagId"`
|
|
|
|
|
|
Remark string `json:"remark"`
|
2024-03-02 19:08:19 +08:00
|
|
|
|
FlowProcdefKey string `json:"flowProcdefKey"` // 审批流-流程定义key(有值则说明关键操作需要进行审批执行),使用指针为了方便更新空字符串(取消流程审批)
|
2023-04-16 00:50:36 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2022-01-12 16:00:31 +08:00
|
|
|
|
type KeyInfo struct {
|
|
|
|
|
|
Key string `binding:"required" json:"key"`
|
2023-06-11 19:59:35 +08:00
|
|
|
|
Timed int64 `json:"timed"`
|
2022-01-12 16:00:31 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2022-07-10 12:14:06 +08:00
|
|
|
|
type RedisScanForm struct {
|
|
|
|
|
|
Cursor map[string]uint64 `json:"cursor"`
|
|
|
|
|
|
Match string `json:"match"`
|
|
|
|
|
|
Count int64 `json:"count"`
|
|
|
|
|
|
}
|
2023-04-16 00:50:36 +08:00
|
|
|
|
|
|
|
|
|
|
type ScanForm struct {
|
|
|
|
|
|
Key string `json:"key"`
|
|
|
|
|
|
Cursor uint64 `json:"cursor"`
|
|
|
|
|
|
Match string `json:"match"`
|
|
|
|
|
|
Count int64 `json:"count"`
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2024-03-02 19:08:19 +08:00
|
|
|
|
type RunCmdForm struct {
|
|
|
|
|
|
Id uint64 `json:"id"`
|
|
|
|
|
|
Db int `json:"db"`
|
|
|
|
|
|
Cmd []any `json:"cmd"`
|
|
|
|
|
|
Remark string `json:"remark"`
|
2023-04-16 00:50:36 +08:00
|
|
|
|
}
|