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服务器是正常的,才能实行关注与否操作
Source Files ¶
Click to show internal directories.
Click to hide internal directories.