commentserviceiface

package
v0.1.11 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2024 License: GPL-3.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 CommentService

type CommentService interface {
	CreateComment(ctx context.Context, c *comment.Comment) (*comment.Comment, error)
	RemoveComment(ctx context.Context, userId, commentId int64) error
	ListComment4Video(ctx context.Context, videoId int64, limit, offset int) (*ListCommentsResult, error)
	ListChildComment(ctx context.Context, commentId int64, limit, offset int) (*ListCommentsResult, error)
	GetCommentById(ctx context.Context, commentId int64) (*comment.Comment, error)
	CountComment4Video(ctx context.Context, videoId []int64) ([]*CountResult, error)
	CountComment4User(ctx context.Context, userId []int64) ([]*CountResult, error)
}

type CountResult added in v0.1.9

type CountResult struct {
	Id    int64
	Count int64
}

type ListCommentsResult added in v0.1.9

type ListCommentsResult struct {
	Data  []*comment.Comment
	Total int64
}

Jump to

Keyboard shortcuts

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