Skip to content

Commit

Permalink
[nosql] fix query params
Browse files Browse the repository at this point in the history
  • Loading branch information
Depreys Alexander committed Nov 12, 2024
1 parent 00f24f5 commit d6ef3eb
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions backend/internal/pkg/domain/warning/dto.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@ package warning
import "time"

type GetWarningsRequest struct {
PageNum int `json:"page"`
PageLen int `json:"per_page"`
ExcessPercent float64 `json:"excess_percent"`
Equipment string `json:"equipment_key"`
StartDate time.Time `json:"start_date"`
EndDate time.Time `json:"end_date"`
IsOrderASC bool `json:"order_ascending"`
IsWithDescription bool `json:"with_description"`
Viewed bool `json:"viewed"`
PageNum int `json:"page" query:"page"`
PageLen int `json:"per_page" query:"per_page"`
ExcessPercent float64 `json:"excess_percent" query:"excess_percent"`
Equipment string `json:"equipment_key" query:"equipment_key"`
StartDate time.Time `json:"start_date" query:"start_date"`
EndDate time.Time `json:"end_date" query:"end_date"`
IsOrderASC bool `json:"order_ascending" query:"order_ascending"`
IsWithDescription bool `json:"with_description" query:"with_description"`
Viewed bool `json:"viewed" query:"viewed"`
}

type GetWarningsResponse struct {
Expand Down

0 comments on commit d6ef3eb

Please sign in to comment.