Documentation
¶
Index ¶
- type ListFollowedUsersByUserIdLogic
- type ListFollowersByUserIdLogic
- type ListFriendsByUserIdLogic
- type RelationActionLogic
- type RelationCommonLogic
- func (l *RelationCommonLogic) ListFollowedUsersOrFans(userId, isFollow int64, key string) []*model.UserInfo
- func (l *RelationCommonLogic) LoadIdsAndStore(userId, isFollow int64, key string) []redis.Z
- func (l *RelationCommonLogic) LoadIdsFromMongo(id, isFollow int64) (*model.UserRelation, error)
- func (l *RelationCommonLogic) StoreRelatedUsers2Redis(relatedUsers model.RelatedUsers, key string) ([]redis.Z, error)
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 ¶
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 ¶
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 ¶
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 ¶
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)
Click to show internal directories.
Click to hide internal directories.