mirror of
https://github.com/tiny-craft/tiny-rdm.git
synced 2025-10-28 09:31:36 +08:00
perf: sorted set value support format viewing #65
This commit is contained in:
@@ -79,3 +79,14 @@ type SetSetParam struct {
|
||||
Format string `json:"format,omitempty"`
|
||||
Decode string `json:"decode,omitempty"`
|
||||
}
|
||||
|
||||
type SetZSetParam struct {
|
||||
Server string `json:"server"`
|
||||
DB int `json:"db"`
|
||||
Key any `json:"key"`
|
||||
Value any `json:"value"`
|
||||
NewValue any `json:"newValue"`
|
||||
Score float64 `json:"score"`
|
||||
Format string `json:"format,omitempty"`
|
||||
Decode string `json:"decode,omitempty"`
|
||||
}
|
||||
|
||||
@@ -16,12 +16,13 @@ type SetEntryItem struct {
|
||||
DisplayValue string `json:"dv,omitempty"`
|
||||
}
|
||||
|
||||
type ZSetItem struct {
|
||||
Value string `json:"value"`
|
||||
Score float64 `json:"score"`
|
||||
type ZSetEntryItem struct {
|
||||
Score float64 `json:"s"`
|
||||
Value string `json:"v"`
|
||||
DisplayValue string `json:"dv,omitempty"`
|
||||
}
|
||||
|
||||
type StreamItem struct {
|
||||
type StreamEntryItem struct {
|
||||
ID string `json:"id"`
|
||||
Value map[string]any `json:"value"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user