diff --git a/core/constants/common.go b/core/constants/common.go index 5c482275..442d4ecf 100644 --- a/core/constants/common.go +++ b/core/constants/common.go @@ -2,5 +2,5 @@ package constants const ( ASCENDING = "asc" - DESCENDING = "dsc" + DESCENDING = "desc" ) diff --git a/core/entity/sort.go b/core/entity/sort.go index 482dc6c8..bb9dcbd9 100644 --- a/core/entity/sort.go +++ b/core/entity/sort.go @@ -2,5 +2,5 @@ package entity type Sort struct { Key string `json:"key"` - Direction string `json:"d"` + Direction string `json:"direction"` }