service

package
v0.0.0-...-7de97a6 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2023 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MGetUserRelationFollowService

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

func NewMGetUserRelationFollowService

func NewMGetUserRelationFollowService(ctx context.Context) *MGetUserRelationFollowService

func (*MGetUserRelationFollowService) MGetUserRelationFollow

func (s *MGetUserRelationFollowService) MGetUserRelationFollow(userID int64) ([]*RelationServer.User, error)

获得关注列表

type MGetUserRelationFollowerService

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

func NewMGetUserRelationFollowerService

func NewMGetUserRelationFollowerService(ctx context.Context) *MGetUserRelationFollowerService

func (*MGetUserRelationFollowerService) MGetUserRelationFollower

func (s *MGetUserRelationFollowerService) MGetUserRelationFollower(userID int64) ([]*RelationServer.User, error)

获得粉丝列表---协程池来补充完整用户信息

type QueryRelationService

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

func NewQueryRelationService

func NewQueryRelationService(ctx context.Context) *QueryRelationService

GetUserService new MGetUserService

func (*QueryRelationService) QueryRelation

func (s *QueryRelationService) QueryRelation(relation db.Follow) (bool, error)

type RelationActionService

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

func NewRelationActionService

func NewRelationActionService(ctx context.Context) *RelationActionService

func (*RelationActionService) FollowAction

func (s *RelationActionService) FollowAction(isFollow bool, relation db.Follow) error

关注/取关操作---先保证user服务器是正常的,才能实行关注与否操作

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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