Documentation
¶
Index ¶
- type MessageService
- type Method
- type RelationService
- func (s *RelationService) GetRelationInfo(req *social.RelationInfoRequest) (followCount int64, followerCount int64, isFollow bool, err error)
- func (s *RelationService) RelationAction(req *social.RelationActionRequest, myID int64) error
- func (s *RelationService) RelationList(req *social.RelationListRequest, myID int64, method Method) ([]*user.User, error)
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 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 获取不同关系的用户列表
Click to show internal directories.
Click to hide internal directories.