comment

package
v0.0.0-...-670d40f Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateComment

func CreateComment(conn *clover.DB, comment Comment) error

Types

type Comment

type Comment struct {
	Id          string `json:"_id" clover:"_id"`
	Comment     string `json:"comment" clover:"comment"`
	OwnerId     string `json:"owner_id" clover:"owner_id"`
	TargetId    string `json:"target_id" clover:"target_id"`
	CommentDate string `json:"comment_date" clover:"comment_date"`
}

func GetComments

func GetComments(conn *clover.DB, eventId string) ([]Comment, error)

func GetCommentsByTargetId

func GetCommentsByTargetId(conn *clover.DB, targetId string) ([]Comment, error)

type CommentFormData

type CommentFormData struct {
	Comment     string `json:"comment"`
	OwnerName   string `json:"owner_name"`
	TargetId    string `json:"target_id"`
	CommentDate string `json:"comment_date"`
}

func GetCommentsFormData

func GetCommentsFormData(db *clover.DB, targetId string) ([]CommentFormData, error)

Jump to

Keyboard shortcuts

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