follow

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FollowRepo

type FollowRepo interface {
	Follow(ctx context.Context, objectId, userId string) error
	FollowCancel(ctx context.Context, objectId, userId string) error
}

type FollowService

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

func NewFollowService

func NewFollowService(
	followRepo FollowRepo,
	followCommonRepo activity_common.FollowRepo,
	tagRepo tagcommon.TagCommonRepo,
) *FollowService

func (*FollowService) Follow

func (fs *FollowService) Follow(ctx context.Context, dto *schema.FollowDTO) (resp schema.FollowResp, err error)

Follow or cancel follow object

func (*FollowService) UpdateFollowTags

func (fs *FollowService) UpdateFollowTags(ctx context.Context, req *schema.UpdateFollowTagsReq) (err error)

UpdateFollowTags update user follow tags

Jump to

Keyboard shortcuts

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