dto

package
v0.0.0-...-a36e7e9 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GetNotifications

type GetNotifications struct {
	UserId uint
	Seen   *bool
	Limit  int
	Offset int
	Sort   *Sort
}

type GetNotificationsRequest

type GetNotificationsRequest struct {
	Page int  `query:"page"`
	Seen bool `query:"seen"`
}

type NotificationResponse

type NotificationResponse struct {
	ID        uint      `json:"id"`
	Message   string    `json:"message"`
	Seen      bool      `json:"seen"`
	CreatedAt time.Time `json:"created_at"`
	UpdatedAt time.Time `json:"updated_at"`
}

type Sort

type Sort struct {
	Type  SortType
	Field string
}

type SortType

type SortType string
const AscSort SortType = "asc"
const DescSort SortType = "desc"

Jump to

Keyboard shortcuts

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