likes

package
v0.0.0-...-de8c022 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler struct {
	// contains filtered or unexported fields
}

func New

func New(db dbT.DB, v *validator.Validate, l *slog.Logger) *Handler

func (*Handler) AddOrEdit

func (h *Handler) AddOrEdit(c echo.Context) error

type PostRequestBody

type PostRequestBody struct {
	CommentID *int `xml:"commentId" json:"commentId,omitempty" form:"commentId" validate:"required"`
	Rate      *int `xml:"rate" json:"rate,omitempty" form:"rate" validate:"required,oneof=1 0 -1"`
}

type PostRequestQuery

type PostRequestQuery struct {
	User *string `query:"user" validate:"required"`
}

Jump to

Keyboard shortcuts

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