comments

package
v0.0.0-...-41d384d Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2024 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateComment

func CreateComment(c *fiber.Ctx) error

func DeleteComment

func DeleteComment(c *fiber.Ctx) error

func GetComment

func GetComment(c *fiber.Ctx) error

func UpdateComment

func UpdateComment(c *fiber.Ctx) error

Types

type NewCommentBody

type NewCommentBody struct {
	Content string `json:"content" validate:"required,min=1,max=500"`
}

type UpdateCommentBody

type UpdateCommentBody struct {
	Content string `json:"content" validate:"omitempty,max=1000"`
	Like    *bool  `json:"like" validate:"omitempty"`
}

Jump to

Keyboard shortcuts

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