Add Notification Filters and AllMarkSeen Endpoint to API Documentation

- Introduced new query parameters for filtering notifications by 'seen' status and 'priority' in the API documentation, enhancing the flexibility of notification retrieval.
- Added a new endpoint to mark all notifications as seen for a user, including detailed Swagger documentation for the new functionality.
- Updated existing API documentation to reflect the changes, ensuring clarity for API consumers and improving overall documentation quality.
This commit is contained in:
n.nakhostin
2025-09-22 13:05:10 +03:30
parent ef9ad22841
commit fe70c7170b
4 changed files with 230 additions and 0 deletions
+5
View File
@@ -2,6 +2,11 @@ package customer
import "tm/pkg/response"
// DeviceTokenForm represents the form for adding a device token to a customer
type DeviceTokenForm struct {
DeviceToken string `json:"device_token" valid:"required" example:"device_token"`
}
// CreateCustomerForm represents the form for creating a new customer
type CreateCustomerForm struct {
FullName *string `json:"full_name,omitempty" valid:"optional,length(2|100)" example:"User"`