2023-03-31 17:29:04 +13:00
|
|
|
package apiv1
|
|
|
|
|
|
|
|
// These structs are for the purpose of defining swagger HTTP responses
|
|
|
|
|
|
|
|
// Application information
|
|
|
|
// swagger:response InfoResponse
|
|
|
|
type infoResponse struct {
|
|
|
|
// Application information
|
|
|
|
Body appInformation
|
|
|
|
}
|
|
|
|
|
2023-04-21 12:17:14 +12:00
|
|
|
// Web UI configuration
|
|
|
|
// swagger:response WebUIConfigurationResponse
|
|
|
|
type webUIConfigurationResponse struct {
|
|
|
|
// Web UI configuration settings
|
|
|
|
Body webUIConfiguration
|
|
|
|
}
|
|
|
|
|
2023-03-31 17:29:04 +13:00
|
|
|
// Message summary
|
|
|
|
// swagger:response MessagesSummaryResponse
|
|
|
|
type messagesSummaryResponse struct {
|
|
|
|
// The message summary
|
|
|
|
// in: body
|
|
|
|
Body MessagesSummary
|
|
|
|
}
|
|
|
|
|
|
|
|
// Message headers
|
|
|
|
// swagger:model MessageHeaders
|
|
|
|
type messageHeaders map[string][]string
|
|
|
|
|
|
|
|
// Delete request
|
|
|
|
// swagger:model DeleteRequest
|
|
|
|
type deleteRequest struct {
|
|
|
|
// ids
|
|
|
|
// in:body
|
|
|
|
IDs []string `json:"ids"`
|
|
|
|
}
|
|
|
|
|
|
|
|
// Set read status request
|
|
|
|
// swagger:model SetReadStatusRequest
|
|
|
|
type setReadStatusRequest struct {
|
|
|
|
// Read status
|
|
|
|
Read bool `json:"read"`
|
|
|
|
|
|
|
|
// ids
|
|
|
|
// in:body
|
|
|
|
IDs []string `json:"ids"`
|
|
|
|
}
|
|
|
|
|
|
|
|
// Set tags request
|
|
|
|
// swagger:model SetTagsRequest
|
|
|
|
type setTagsRequest struct {
|
|
|
|
// Tags
|
|
|
|
// in:body
|
|
|
|
Tags []string `json:"tags"`
|
|
|
|
|
2023-04-21 12:10:13 +12:00
|
|
|
// IDs
|
2023-03-31 17:29:04 +13:00
|
|
|
// in:body
|
|
|
|
IDs []string `json:"ids"`
|
|
|
|
}
|
|
|
|
|
2023-04-21 12:10:13 +12:00
|
|
|
// Release request
|
|
|
|
// swagger:model ReleaseMessageRequest
|
|
|
|
type releaseMessageRequest struct {
|
|
|
|
// To
|
|
|
|
// in:body
|
|
|
|
To []string `json:"to"`
|
|
|
|
}
|
|
|
|
|
2023-07-09 22:33:47 +12:00
|
|
|
// Binary data response inherits the attachment's content type
|
2023-03-31 17:29:04 +13:00
|
|
|
// swagger:response BinaryResponse
|
|
|
|
type binaryResponse struct {
|
|
|
|
// in: body
|
|
|
|
Body string
|
|
|
|
}
|
|
|
|
|
|
|
|
// Plain text response
|
|
|
|
// swagger:response TextResponse
|
|
|
|
type textResponse struct {
|
|
|
|
// in: body
|
|
|
|
Body string
|
|
|
|
}
|
|
|
|
|
2023-07-09 22:33:47 +12:00
|
|
|
// Error response
|
2023-03-31 17:29:04 +13:00
|
|
|
// swagger:response ErrorResponse
|
|
|
|
type errorResponse struct {
|
|
|
|
// The error message
|
|
|
|
// in: body
|
|
|
|
Body string
|
|
|
|
}
|
|
|
|
|
2023-07-09 22:33:47 +12:00
|
|
|
// Plain text "ok" response
|
2023-03-31 17:29:04 +13:00
|
|
|
// swagger:response OKResponse
|
|
|
|
type okResponse struct {
|
2023-07-09 22:33:47 +12:00
|
|
|
// Default response
|
2023-03-31 17:29:04 +13:00
|
|
|
// in: body
|
|
|
|
Body string
|
|
|
|
}
|