Enhance Notification and User Models with New Fields and Update Swagger Documentation
- Added 'image' and 'link' fields to the NotificationRequest and NotificationResponse structures, improving the flexibility of notification content. - Updated the 'created_at', 'updated_at', and 'schedule_at' fields to use integer types for Unix timestamps, ensuring consistency in time handling. - Expanded the tender status enumeration to include 'closed', 'modified', 'suspended', and 'published', enhancing the representation of tender states. - Reflected these changes in the Swagger documentation, ensuring accurate API specifications for clients.
This commit is contained in:
+16
-4
@@ -7987,6 +7987,9 @@ const docTemplate = `{
|
||||
"description": {
|
||||
"type": "string"
|
||||
},
|
||||
"image": {
|
||||
"type": "string"
|
||||
},
|
||||
"link": {
|
||||
"type": "string"
|
||||
},
|
||||
@@ -8020,7 +8023,7 @@ const docTemplate = `{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"created_at": {
|
||||
"type": "string"
|
||||
"type": "integer"
|
||||
},
|
||||
"event_type": {
|
||||
"type": "string"
|
||||
@@ -8053,6 +8056,7 @@ const docTemplate = `{
|
||||
"priority": {
|
||||
"type": "string"
|
||||
},
|
||||
"recipient": {},
|
||||
"schedule_at": {
|
||||
"type": "integer"
|
||||
},
|
||||
@@ -8075,7 +8079,7 @@ const docTemplate = `{
|
||||
"type": "string"
|
||||
},
|
||||
"updated_at": {
|
||||
"type": "string"
|
||||
"type": "integer"
|
||||
},
|
||||
"user_id": {
|
||||
"type": "string"
|
||||
@@ -8355,14 +8359,22 @@ const docTemplate = `{
|
||||
"expired",
|
||||
"cancelled",
|
||||
"awarded",
|
||||
"draft"
|
||||
"draft",
|
||||
"closed",
|
||||
"modified",
|
||||
"suspended",
|
||||
"published"
|
||||
],
|
||||
"x-enum-varnames": [
|
||||
"TenderStatusActive",
|
||||
"TenderStatusExpired",
|
||||
"TenderStatusCancelled",
|
||||
"TenderStatusAwarded",
|
||||
"TenderStatusDraft"
|
||||
"TenderStatusDraft",
|
||||
"TenderStatusClosed",
|
||||
"TenderStatusModified",
|
||||
"TenderStatusSuspended",
|
||||
"TenderStatusPublished"
|
||||
]
|
||||
},
|
||||
"tender.UpdateTenderRequest": {
|
||||
|
||||
@@ -7979,6 +7979,9 @@
|
||||
"description": {
|
||||
"type": "string"
|
||||
},
|
||||
"image": {
|
||||
"type": "string"
|
||||
},
|
||||
"link": {
|
||||
"type": "string"
|
||||
},
|
||||
@@ -8012,7 +8015,7 @@
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"created_at": {
|
||||
"type": "string"
|
||||
"type": "integer"
|
||||
},
|
||||
"event_type": {
|
||||
"type": "string"
|
||||
@@ -8045,6 +8048,7 @@
|
||||
"priority": {
|
||||
"type": "string"
|
||||
},
|
||||
"recipient": {},
|
||||
"schedule_at": {
|
||||
"type": "integer"
|
||||
},
|
||||
@@ -8067,7 +8071,7 @@
|
||||
"type": "string"
|
||||
},
|
||||
"updated_at": {
|
||||
"type": "string"
|
||||
"type": "integer"
|
||||
},
|
||||
"user_id": {
|
||||
"type": "string"
|
||||
@@ -8347,14 +8351,22 @@
|
||||
"expired",
|
||||
"cancelled",
|
||||
"awarded",
|
||||
"draft"
|
||||
"draft",
|
||||
"closed",
|
||||
"modified",
|
||||
"suspended",
|
||||
"published"
|
||||
],
|
||||
"x-enum-varnames": [
|
||||
"TenderStatusActive",
|
||||
"TenderStatusExpired",
|
||||
"TenderStatusCancelled",
|
||||
"TenderStatusAwarded",
|
||||
"TenderStatusDraft"
|
||||
"TenderStatusDraft",
|
||||
"TenderStatusClosed",
|
||||
"TenderStatusModified",
|
||||
"TenderStatusSuspended",
|
||||
"TenderStatusPublished"
|
||||
]
|
||||
},
|
||||
"tender.UpdateTenderRequest": {
|
||||
|
||||
@@ -719,6 +719,8 @@ definitions:
|
||||
type: array
|
||||
description:
|
||||
type: string
|
||||
image:
|
||||
type: string
|
||||
link:
|
||||
type: string
|
||||
priority:
|
||||
@@ -741,7 +743,7 @@ definitions:
|
||||
internal_notification.NotificationResponse:
|
||||
properties:
|
||||
created_at:
|
||||
type: string
|
||||
type: integer
|
||||
event_type:
|
||||
type: string
|
||||
id:
|
||||
@@ -763,6 +765,7 @@ definitions:
|
||||
type: object
|
||||
priority:
|
||||
type: string
|
||||
recipient: {}
|
||||
schedule_at:
|
||||
type: integer
|
||||
scheduled_at:
|
||||
@@ -778,7 +781,7 @@ definitions:
|
||||
type:
|
||||
type: string
|
||||
updated_at:
|
||||
type: string
|
||||
type: integer
|
||||
user_id:
|
||||
type: string
|
||||
type: object
|
||||
@@ -974,6 +977,10 @@ definitions:
|
||||
- cancelled
|
||||
- awarded
|
||||
- draft
|
||||
- closed
|
||||
- modified
|
||||
- suspended
|
||||
- published
|
||||
type: string
|
||||
x-enum-varnames:
|
||||
- TenderStatusActive
|
||||
@@ -981,6 +988,10 @@ definitions:
|
||||
- TenderStatusCancelled
|
||||
- TenderStatusAwarded
|
||||
- TenderStatusDraft
|
||||
- TenderStatusClosed
|
||||
- TenderStatusModified
|
||||
- TenderStatusSuspended
|
||||
- TenderStatusPublished
|
||||
tender.UpdateTenderRequest:
|
||||
properties:
|
||||
currency:
|
||||
|
||||
Reference in New Issue
Block a user