notification_request

package
v0.9.13 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 19, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GetNotificationHistoryRequest

type GetNotificationHistoryRequest struct {
	Page         *uint32                   `json:"page" query:"page"`
	PageSize     *uint32                   `json:"page_size" query:"page_size"`
	IDs          []uuid.UUID               `json:"ids" query:"ids" validate:"omitempty,uuid"` //nolint:tagliatelle
	Destinations []string                  `json:"destinations" query:"destinations" validate:"omitempty,unique"`
	Types        []models.NotificationType `json:"types" query:"types" validate:"omitempty,unique"`
	Channels     []models.DeliveryChannel  `json:"channels" query:"channels" validate:"omitempty,unique"`
	CreatedFrom  *time.Time                `json:"created_from" query:"created_from" validate:"omitempty"`
	CreatedTo    *time.Time                `json:"created_to" query:"created_to" validate:"omitempty"`
	SentFrom     *time.Time                `json:"sent_from" query:"sent_from" validate:"omitempty"`
	SentTo       *time.Time                `json:"sent_to" query:"sent_to" validate:"omitempty"`

} // @name GetNotificationHistoryRequest

type TestNotificationRequest

type TestNotificationRequest struct {
	Recipient string `json:"recipient" validate:"required"`

} // @name TestNotificationRequest

type Update

type Update struct {
	TgEnabled    bool `json:"tg_enabled"`
	EmailEnabled bool `json:"email_enabled"`

} // @name Update

type UpdateList

type UpdateList struct {
	List []struct {
		ID           uuid.UUID `json:"id" validate:"required"`
		TgEnabled    bool      `json:"tg_enabled"`
		EmailEnabled bool      `json:"email_enabled"`
	} `json:"list" validate:"dive,required"`

} // @name UpdateList

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL