comment

package
v0.0.0-...-6db71ed Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CREATE = 1
	DELETE = 2
)

Variables

This section is empty.

Functions

This section is empty.

Types

type List

type List struct {
	Comments []*models.Comment `json:"comment_list"`
}

func QueryCommentList

func QueryCommentList(userId, videoId int64) (*List, error)

type PostCommentFlow

type PostCommentFlow struct {
	*Response
	// contains filtered or unexported fields
}

func NewPostCommentFlow

func NewPostCommentFlow(userId int64, videoId int64, commentId int64, actionType int64, commentText string) *PostCommentFlow

func (*PostCommentFlow) CreateComment

func (p *PostCommentFlow) CreateComment() (*models.Comment, error)

CreateComment 增加评论

func (*PostCommentFlow) DeleteComment

func (p *PostCommentFlow) DeleteComment() (*models.Comment, error)

DeleteComment 删除评论

func (*PostCommentFlow) Do

func (p *PostCommentFlow) Do() (*Response, error)

type QueryCommentListFlow

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

func NewQueryCommentListFlow

func NewQueryCommentListFlow(userId, videoId int64) *QueryCommentListFlow

func (*QueryCommentListFlow) Do

func (q *QueryCommentListFlow) Do() (*List, error)

type Response

type Response struct {
	MyComment *models.Comment `json:"comment"`
}

func PostComment

func PostComment(userId int64, videoId int64, commentId int64, actionType int64, commentText string) (*Response, error)

Jump to

Keyboard shortcuts

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