comment

package
v0.0.0-...-1ad4281 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2022 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

func Create(c *fiber.Ctx) error

func Delete

func Delete(c *fiber.Ctx) error

func Get

func Get(c *fiber.Ctx) error

func GetPostList

func GetPostList(c *fiber.Ctx) error

func GetReplies

func GetReplies(c *fiber.Ctx) error

func GetTotalForPost

func GetTotalForPost(c *fiber.Ctx) error

func Update

func Update(c *fiber.Ctx) error

Types

type CreateRequest

type CreateRequest struct {
	ReplyTo int64  `json:"replyTo" form:"replyTo"`
	Content string `json:"content" form:"content"`
}

type GetListResponse

type GetListResponse struct {
	comment.ListComments
	Users user.ListUsers  `json:"users"`
	Order map[int64]int64 `json:"order"`
}

GetListResponse posts comments

type GetResponse

type GetResponse struct {
	Comment *comment.Comment `json:"comment"`
	User    *user.User       `json:"user"`
}

type GetTotal

type GetTotal struct {
	Total int64 `json:"total"`
}

type UpdateRequest

type UpdateRequest struct {
	Content string `json:"content" form:"content"`
}

Jump to

Keyboard shortcuts

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