query

package
v0.0.0-...-d868565 Latest Latest
Warning

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

Go to latest
Published: May 25, 2024 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CheckEmailHandler

type CheckEmailHandler cqrs.HandlerFunc[CheckEmailQuery, *CheckEmailRes]

func NewCheckEmailHandler

func NewCheckEmailHandler(repo user.Repo) CheckEmailHandler

type CheckEmailQuery

type CheckEmailQuery struct {
	Email string `json:"email" validate:"required,email"`
}

type CheckEmailRes

type CheckEmailRes struct {
	Exists bool `json:"exists"`
}

type SessionListHandler

type SessionListHandler cqrs.HandlerFunc[SessionListQuery, *SessionListRes]

func NewSessionListHandler

func NewSessionListHandler(sessionSrv session.Service) SessionListHandler

type SessionListItem

type SessionListItem struct {
	session.Entity
	IsCurrent bool `json:"is_current"`
}

type SessionListQuery

type SessionListQuery struct {
	UserUUID   string `json:"-"`
	DeviceUUID string `json:"-"`
}

type SessionListRes

type SessionListRes struct {
	Sessions []SessionListItem
}

type UserListHandler

type UserListHandler cqrs.HandlerFunc[UserListQuery, *UserListRes]

func NewUserListHandler

func NewUserListHandler(repo user.Repo) UserListHandler

type UserListQuery

type UserListQuery struct {
	*utils.Pagination
	*user.FilterEntity
}

type UserListRes

type UserListRes struct {
	List *list.Result[user.ListDto]
}

Jump to

Keyboard shortcuts

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