commentModel

package
v0.0.0-...-352c0ba Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Comment

type Comment struct {
	ID        int32  `db:"id"`
	PostId    int32  `db:"post_id"`
	AuthorId  int32  `db:"author_id"`
	Content   string `db:"content"`
	UpVote    int32  `db:"up_vote"`
	CreatedAt int32  `db:"created_at"`
	UpdatedAt int32  `db:"updated_at"`
}

func GetPostComments

func GetPostComments(postId int32, offset int32, limit int32) (success bool, foundComments []*Comment)

GetPostComments func

func GetUserComments

func GetUserComments(authorId int32, offset int32, limit int32) (success bool, foundComments []*Comment)

GetUserComments func

Jump to

Keyboard shortcuts

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