favoriteserviceiface

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2024 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AggOpDTO

type AggOpDTO struct {
	BizId        int64
	BizIdList    []int64
	AggType      v1.FavoriteAggregateType
	FavoriteType v1.FavoriteType
}

func (*AggOpDTO) Check

func (dto *AggOpDTO) Check() error

type FavoriteService

type FavoriteService interface {
	AddFavorite(ctx context.Context, dto *WriteOpDTO) error
	RemoveFavorite(ctx context.Context, dto *WriteOpDTO) error
	ListFavorite(ctx context.Context, dto *AggOpDTO, limit, offset int) ([]int64, error)
	CountFavorite(ctx context.Context, dto *AggOpDTO) ([]*v1.CountFavoriteResponseItem, error)
	IsFavorite(ctx context.Context, dto []*v1.IsFavoriteRequestItem) ([]*v1.IsFavoriteResponseItem, error)
}

type WriteOpDTO

type WriteOpDTO struct {
	UserId       int64
	TargetId     int64
	TargetType   v1.FavoriteTarget
	FavoriteType v1.FavoriteType
}

func (*WriteOpDTO) Check

func (dto *WriteOpDTO) Check() error

Jump to

Keyboard shortcuts

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