service

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2023 License: MIT Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InteractionService

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

func NewInteractionService

func NewInteractionService(ctx context.Context) *InteractionService

NewInteractionService new interactionService

func (*InteractionService) CountComments

func (s *InteractionService) CountComments(req *interaction.CommentCountRequest, times int) (count int64, err error)

func (*InteractionService) CreateComment

CreateComment create comment

func (*InteractionService) DeleteComment

DeleteComment delete comment

func (*InteractionService) Dislike

func (*InteractionService) FavoriteList

func (s *InteractionService) FavoriteList(req *interaction.FavoriteListRequest) ([]*video.Video, error)

func (*InteractionService) GetComments

func (s *InteractionService) GetComments(req *interaction.CommentListRequest, times int) ([]*interaction.Comment, error)

func (*InteractionService) GetUserFavoriteCount

func (s *InteractionService) GetUserFavoriteCount(req *interaction.UserFavoriteCountRequest) (int64, error)

func (*InteractionService) GetUserTotalFavorited

func (s *InteractionService) GetUserTotalFavorited(req *interaction.UserTotalFavoritedRequest) (int64, error)

func (*InteractionService) GetVideoFavoritedCount

func (s *InteractionService) GetVideoFavoritedCount(req *interaction.VideoFavoritedCountRequest) (int64, error)

func (*InteractionService) IsFavorite

func (*InteractionService) Like

func (*InteractionService) MatchSensitiveWords

func (s *InteractionService) MatchSensitiveWords(text string) (bool, error)

type ResponseBody

type ResponseBody struct {
	Code   int    `json:"code"`
	Msg    string `json:"msg"`
	IsPass bool   `json:"isPass"`
}

Jump to

Keyboard shortcuts

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