-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[messages] add messages export request
- Loading branch information
Showing
3 changed files
with
15 additions
and
1 deletion.
There are no files selected for viewing
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,16 @@ | ||
package smsgateway | ||
|
||
import "time" | ||
|
||
// Push request | ||
type UpstreamPushRequest = []PushNotification | ||
|
||
// Messages export request | ||
type MessagesExportRequest struct { | ||
// DeviceID is the ID of the device to export messages for. | ||
DeviceID string `json:"deviceId" example:"PyDmBQZZXYmyxMwED8Fzy" validate:"required,max=21"` | ||
// Since is the start of the time range to export. | ||
Since time.Time `json:"since" example:"2024-01-01T00:00:00Z" validate:"required,ltefield=Until"` | ||
// Until is the end of the time range to export. | ||
Until time.Time `json:"until" example:"2024-01-01T23:59:59Z" validate:"required,gtefield=Since"` | ||
} |