mirror of
https://github.com/crawlab-team/crawlab.git
synced 2026-01-21 17:21:09 +01:00
refactor: standardize sorting direction constants and JSON annotations
- Updated DESCENDING constant from "dsc" to "desc" for clarity and consistency. - Changed JSON annotation for Direction field in Sort struct from "d" to "direction" to improve readability and maintainability. - Ensured alignment with existing coding standards and practices across the codebase.
This commit is contained in:
@@ -2,5 +2,5 @@ package constants
|
||||
|
||||
const (
|
||||
ASCENDING = "asc"
|
||||
DESCENDING = "dsc"
|
||||
DESCENDING = "desc"
|
||||
)
|
||||
|
||||
@@ -2,5 +2,5 @@ package entity
|
||||
|
||||
type Sort struct {
|
||||
Key string `json:"key"`
|
||||
Direction string `json:"d"`
|
||||
Direction string `json:"direction"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user