videoservice

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: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type VideoInfo

type VideoInfo struct {
	ID        string `json:"id"`
	UserID    int64  `json:"user_id"`
	UserName  string `json:"user_name"`
	VideoName string `json:"video_name"`
	CreateOn  int64  `json:"created_on"`

	PageNum  int
	PageSize int
}

VideoInfo 视频信息表结构

func (*VideoInfo) AddVideo

func (v *VideoInfo) AddVideo() (*defs.Videoinfo, error)

AddVideo 添加视频

func (*VideoInfo) Count

func (v *VideoInfo) Count() (int, error)

Count 获取视频的总评论数

func (*VideoInfo) DeleteVideo

func (v *VideoInfo) DeleteVideo() (int, error)

DeleteVideo 删除视频

func (*VideoInfo) GetUserVideos

func (v *VideoInfo) GetUserVideos() ([]defs.Videoinfo, error)

GetUserVideos 获取给定用户的视频信息

Jump to

Keyboard shortcuts

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