service

package
v0.0.0-...-9bdafd8 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MessageService

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

func NewMessageService

func NewMessageService(ctx context.Context) *MessageService

NewMessageService new MessageService

func (*MessageService) GetMessageChat

func (s *MessageService) GetMessageChat(req *social.MessageChatRequest, myID int64) ([]*social.Message, error)

GetMessageChat 获取聊天记录

func (*MessageService) MessageAction

func (s *MessageService) MessageAction(req *social.MessageActionRequest, myID int64) error

MessageAction 发送消息

type Method

type Method int
const (
	Friend Method = iota
	Follow
	Follower
)

type RelationService

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

func NewRelationService

func NewRelationService(ctx context.Context) *RelationService

NewRelationService new RelationService

func (*RelationService) GetRelationInfo

func (s *RelationService) GetRelationInfo(req *social.RelationInfoRequest) (followCount int64, followerCount int64, isFollow bool, err error)

GetRelationInfo 获取用户的关系信息

func (*RelationService) RelationAction

func (s *RelationService) RelationAction(req *social.RelationActionRequest, myID int64) error

RelationAction 关注或取关

func (*RelationService) RelationList

func (s *RelationService) RelationList(req *social.RelationListRequest, myID int64, method Method) ([]*user.User, error)

RelationList 获取不同关系的用户列表

Jump to

Keyboard shortcuts

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