relation

package
v0.0.0-...-bdd2a71 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ListFollowedUsersByUserIdLogic

type ListFollowedUsersByUserIdLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewListFollowedUserByUserIdLogic

func NewListFollowedUserByUserIdLogic(ctx context.Context, svcCtx *svc.ServiceContext) *ListFollowedUsersByUserIdLogic

func (*ListFollowedUsersByUserIdLogic) ListFollowedUsersByUserId

func (l *ListFollowedUsersByUserIdLogic) ListFollowedUsersByUserId(req *types.UserIdReq) (map[string]interface{}, error)

type ListFollowersByUserIdLogic

type ListFollowersByUserIdLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewListFollowerByUserIdLogic

func NewListFollowerByUserIdLogic(ctx context.Context, svcCtx *svc.ServiceContext) *ListFollowersByUserIdLogic

func (*ListFollowersByUserIdLogic) ListFollowersByUserId

func (l *ListFollowersByUserIdLogic) ListFollowersByUserId(req *types.UserIdReq) (map[string]interface{}, error)

type ListFriendsByUserIdLogic

type ListFriendsByUserIdLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewListFriendsByUserIdLogic

func NewListFriendsByUserIdLogic(ctx context.Context, svcCtx *svc.ServiceContext) *ListFriendsByUserIdLogic

func (*ListFriendsByUserIdLogic) ListFriendsByUserId

func (l *ListFriendsByUserIdLogic) ListFriendsByUserId(req *types.UserIdReq) (map[string]interface{}, error)

type RelationActionLogic

type RelationActionLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewRelationActionLogic

func NewRelationActionLogic(ctx context.Context, svcCtx *svc.ServiceContext) *RelationActionLogic

func (*RelationActionLogic) RelationAction

func (l *RelationActionLogic) RelationAction(req *types.RelationActionReq, loggedUser *utils.JwtUser) error

type RelationCommonLogic

type RelationCommonLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewRelationCommonLogic

func NewRelationCommonLogic(ctx context.Context, svcCtx *svc.ServiceContext) *RelationCommonLogic

func (*RelationCommonLogic) ListFollowedUsersOrFans

func (l *RelationCommonLogic) ListFollowedUsersOrFans(userId, isFollow int64, key string) []*model.UserInfo

func (*RelationCommonLogic) LoadIdsAndStore

func (l *RelationCommonLogic) LoadIdsAndStore(userId, isFollow int64, key string) []redis.Z

func (*RelationCommonLogic) LoadIdsFromMongo

func (l *RelationCommonLogic) LoadIdsFromMongo(id, isFollow int64) (*model.UserRelation, error)

LoadIdsFromMongo 从 mongo 中取 follows 或 fans 字段

func (*RelationCommonLogic) StoreRelatedUsers2Redis

func (l *RelationCommonLogic) StoreRelatedUsers2Redis(relatedUsers model.RelatedUsers, key string) ([]redis.Z, error)

Jump to

Keyboard shortcuts

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