Enhance Tender Approval Filtering with Created Date Parameters

- Added new query parameters `created_from` and `created_to` to the tender approval endpoints for filtering by creation date using Unix timestamps.
- Updated the `GetByCompanyID` method in the repository and service layers to support the new filtering options.
- Modified the handler methods to parse and pass the new parameters, improving the flexibility of tender approval retrieval.
- Updated API documentation to reflect the new query parameters, ensuring clarity for API consumers.
This commit is contained in:
n.nakhostin
2025-09-03 10:23:47 +03:30
parent 8d3a021fbf
commit 61a217cf09
6 changed files with 64 additions and 9 deletions
+12
View File
@@ -6025,6 +6025,18 @@ const docTemplate = `{
"description": "Filter by status Enums(submitted, rejected)",
"name": "status",
"in": "query"
},
{
"type": "integer",
"description": "Filter by created date from (Unix timestamp)",
"name": "created_from",
"in": "query"
},
{
"type": "integer",
"description": "Filter by created date to (Unix timestamp)",
"name": "created_to",
"in": "query"
}
],
"responses": {
+12
View File
@@ -6019,6 +6019,18 @@
"description": "Filter by status Enums(submitted, rejected)",
"name": "status",
"in": "query"
},
{
"type": "integer",
"description": "Filter by created date from (Unix timestamp)",
"name": "created_from",
"in": "query"
},
{
"type": "integer",
"description": "Filter by created date to (Unix timestamp)",
"name": "created_to",
"in": "query"
}
],
"responses": {
+8
View File
@@ -5075,6 +5075,14 @@ paths:
in: query
name: status
type: string
- description: Filter by created date from (Unix timestamp)
in: query
name: created_from
type: integer
- description: Filter by created date to (Unix timestamp)
in: query
name: created_to
type: integer
produces:
- application/json
responses: