mirror of
https://gitee.com/dromara/mayfly-go
synced 2026-01-01 20:26:39 +08:00
feat: redis支持zset、redis数据操作界面优化
This commit is contained in:
@@ -13,6 +13,16 @@ type Redis struct {
|
||||
Remark string `json:"remark"`
|
||||
}
|
||||
|
||||
type Rename struct {
|
||||
Key string `binding:"required" json:"key"`
|
||||
NewKey string `binding:"required" json:"newKey"`
|
||||
}
|
||||
|
||||
type Expire struct {
|
||||
Key string `binding:"required" json:"key"`
|
||||
Seconds int64 `binding:"required" json:"seconds"`
|
||||
}
|
||||
|
||||
type KeyInfo struct {
|
||||
Key string `binding:"required" json:"key"`
|
||||
Timed int64
|
||||
@@ -50,3 +60,27 @@ type RedisScanForm struct {
|
||||
Match string `json:"match"`
|
||||
Count int64 `json:"count"`
|
||||
}
|
||||
|
||||
type ScanForm struct {
|
||||
Key string `json:"key"`
|
||||
Cursor uint64 `json:"cursor"`
|
||||
Match string `json:"match"`
|
||||
Count int64 `json:"count"`
|
||||
}
|
||||
|
||||
type SmemberOption struct {
|
||||
Key string `json:"key"`
|
||||
Member any `json:"member"`
|
||||
}
|
||||
|
||||
type LRemOption struct {
|
||||
Key string `json:"key"`
|
||||
Count int64 `json:"count"`
|
||||
Member any `json:"member"`
|
||||
}
|
||||
|
||||
type ZAddOption struct {
|
||||
Key string `json:"key"`
|
||||
Score float64 `json:"score"`
|
||||
Member any `json:"member"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user