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:
@@ -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": {
|
||||
|
||||
@@ -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": {
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user