commentservice

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

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

Go to latest
Published: Dec 29, 2018 License: Apache-2.0 Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Comment

type Comment struct {
	ID       string `json:"id"`
	UserID   int64  `json:"user_id"`
	UserName string `json:"user_name"`
	VideoID  string `json:"video_id"`
	Content  string `json:"content"`
	CreateOn int64  `json:"created_on"`

	PageNum  int
	PageSize int
}

Comment 评论类

func (*Comment) AddComment

func (c *Comment) AddComment() (*defs.Comment, error)

AddComment 对视频新增评论

func (*Comment) Count

func (c *Comment) Count() (int, error)

Count 获取视频的总评论数

func (*Comment) GetComments

func (c *Comment) GetComments() ([]defs.Comment, error)

GetComments 获取视频对应的所有评论

Jump to

Keyboard shortcuts

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