Documentation
¶
Index ¶
- type MessageContent
- func CreateGroupFaceMessage(db *gorm.DB, senderId uint64, toGroupId uint64, atUserId []uint64, ...) (*MessageContent, error)
- func CreateGroupFileMessage(db *gorm.DB, senderId uint64, toGroupId uint64, atUserId []uint64, ...) (*MessageContent, error)
- func CreateGroupImageMessage(db *gorm.DB, senderId uint64, toGroupId uint64, atUserId []uint64, ...) (*MessageContent, error)
- func CreateGroupLocationMessage(db *gorm.DB, senderId uint64, toGroupId uint64, atUserId []uint64, ...) (*MessageContent, error)
- func CreateGroupSoundMessage(db *gorm.DB, senderId uint64, toGroupId uint64, atUserId []uint64, ...) (*MessageContent, error)
- func CreateGroupTextMessage(db *gorm.DB, senderId uint64, toGroupId uint64, atUserId []uint64, ...) (*MessageContent, error)
- func CreateGroupVideoMessage(db *gorm.DB, senderId uint64, toGroupId uint64, atUserId []uint64, ...) (*MessageContent, error)
- func CreateUserFaceMessage(db *gorm.DB, senderId uint64, toUserId uint64, face *proto_build.FaceMessage) (*MessageContent, error)
- func CreateUserFileMessage(db *gorm.DB, senderId uint64, toUserId uint64, file *proto_build.FileMessage) (*MessageContent, error)
- func CreateUserImageMessage(db *gorm.DB, senderId uint64, toUserId uint64, ...) (*MessageContent, error)
- func CreateUserLocationMessage(db *gorm.DB, senderId uint64, toUserId uint64, ...) (*MessageContent, error)
- func CreateUserSoundMessage(db *gorm.DB, senderId uint64, toUserId uint64, sound *proto_build.SoundMessage) (*MessageContent, error)
- func CreateUserTextMessage(db *gorm.DB, senderId uint64, toUserId uint64, text *proto_build.TextMessage) (*MessageContent, error)
- func CreateUserVideoMessage(db *gorm.DB, senderId uint64, toUserId uint64, video *proto_build.VideoMessage) (*MessageContent, error)
- type MessageIndex
- type Service
- func (s *Service) Ping(c context.Context, req *proto_build.PingRequest) (*proto_build.PingResponse, error)
- func (s *Service) SendGroupFceMessage(c context.Context, req *proto_build.SendGroupFaceMessageRequest) (*proto_build.SendGroupFaceMessageResponse, error)
- func (s *Service) SendGroupFileMessage(c context.Context, req *proto_build.SendGroupFileMessageRequest) (*proto_build.SendGroupFileMessageResponse, error)
- func (s *Service) SendGroupImageMessage(c context.Context, req *proto_build.SendGroupImageMessageRequest) (*proto_build.SendGroupImageMessageResponse, error)
- func (s *Service) SendGroupLocationMessage(c context.Context, req *proto_build.SendGroupLocationMessageRequest) (*proto_build.SendGroupLocationMessageResponse, error)
- func (s *Service) SendGroupSoundMessage(c context.Context, req *proto_build.SendGroupSoundMessageRequest) (*proto_build.SendGroupSoundMessageResponse, error)
- func (s *Service) SendGroupTextMessage(c context.Context, req *proto_build.SendGroupTextMessageRequest) (*proto_build.SendGroupTextMessageResponse, error)
- func (s *Service) SendGroupVideoMessage(c context.Context, req *proto_build.SendGroupVideoMessageRequest) (*proto_build.SendGroupVideoMessageResponse, error)
- func (s *Service) SendUserFaceMessage(c context.Context, req *proto_build.SendUserFaceMessageRequest) (*proto_build.SendUserFaceMessageResponse, error)
- func (s *Service) SendUserFileMessage(c context.Context, req *proto_build.SendUserFileMessageRequest) (*proto_build.SendUserFileMessageResponse, error)
- func (s *Service) SendUserImageMessage(c context.Context, req *proto_build.SendUserImageMessageRequest) (*proto_build.SendUserImageMessageResponse, error)
- func (s *Service) SendUserLocationMessage(c context.Context, req *proto_build.SendUserLocationMessageRequest) (*proto_build.SendUserLocationMessageResponse, error)
- func (s *Service) SendUserSoundMessage(c context.Context, req *proto_build.SendUserSoundMessageRequest) (*proto_build.SendUserSoundMessageResponse, error)
- func (s *Service) SendUserTextMessage(c context.Context, req *proto_build.SendUserTextMessageRequest) (*proto_build.SendUserTextMessageResponse, error)
- func (s *Service) SendUserVideoMessage(c context.Context, req *proto_build.SendUserVideoMessageRequest) (*proto_build.SendUserVideoMessageResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MessageContent ¶
type MessageContent model.MessageContent
func CreateGroupFaceMessage ¶
func CreateGroupFaceMessage(db *gorm.DB, senderId uint64, toGroupId uint64, atUserId []uint64, face *proto_build.FaceMessage) (*MessageContent, error)
func CreateGroupFileMessage ¶
func CreateGroupFileMessage(db *gorm.DB, senderId uint64, toGroupId uint64, atUserId []uint64, file *proto_build.FileMessage) (*MessageContent, error)
func CreateGroupImageMessage ¶
func CreateGroupImageMessage(db *gorm.DB, senderId uint64, toGroupId uint64, atUserId []uint64, image *proto_build.ImageMessageItem) (*MessageContent, error)
func CreateGroupLocationMessage ¶
func CreateGroupLocationMessage(db *gorm.DB, senderId uint64, toGroupId uint64, atUserId []uint64, location *proto_build.LocationMessage) (*MessageContent, error)
func CreateGroupSoundMessage ¶
func CreateGroupSoundMessage(db *gorm.DB, senderId uint64, toGroupId uint64, atUserId []uint64, sound *proto_build.SoundMessage) (*MessageContent, error)
func CreateGroupTextMessage ¶
func CreateGroupTextMessage(db *gorm.DB, senderId uint64, toGroupId uint64, atUserId []uint64, text *proto_build.TextMessage) (*MessageContent, error)
func CreateGroupVideoMessage ¶
func CreateGroupVideoMessage(db *gorm.DB, senderId uint64, toGroupId uint64, atUserId []uint64, video *proto_build.VideoMessage) (*MessageContent, error)
func CreateUserFaceMessage ¶
func CreateUserFaceMessage(db *gorm.DB, senderId uint64, toUserId uint64, face *proto_build.FaceMessage) (*MessageContent, error)
func CreateUserFileMessage ¶
func CreateUserFileMessage(db *gorm.DB, senderId uint64, toUserId uint64, file *proto_build.FileMessage) (*MessageContent, error)
func CreateUserImageMessage ¶
func CreateUserImageMessage(db *gorm.DB, senderId uint64, toUserId uint64, image *proto_build.ImageMessageItem) (*MessageContent, error)
func CreateUserLocationMessage ¶
func CreateUserLocationMessage(db *gorm.DB, senderId uint64, toUserId uint64, location *proto_build.LocationMessage) (*MessageContent, error)
func CreateUserSoundMessage ¶
func CreateUserSoundMessage(db *gorm.DB, senderId uint64, toUserId uint64, sound *proto_build.SoundMessage) (*MessageContent, error)
func CreateUserTextMessage ¶
func CreateUserTextMessage(db *gorm.DB, senderId uint64, toUserId uint64, text *proto_build.TextMessage) (*MessageContent, error)
func CreateUserVideoMessage ¶
func CreateUserVideoMessage(db *gorm.DB, senderId uint64, toUserId uint64, video *proto_build.VideoMessage) (*MessageContent, error)
type MessageIndex ¶
type MessageIndex model.MessageIndex
type Service ¶
type Service struct { service.BasicService proto_build.UnimplementedMessageServiceServer }
func NewService ¶
func (*Service) Ping ¶
func (s *Service) Ping(c context.Context, req *proto_build.PingRequest) (*proto_build.PingResponse, error)
func (*Service) SendGroupFceMessage ¶
func (s *Service) SendGroupFceMessage(c context.Context, req *proto_build.SendGroupFaceMessageRequest) (*proto_build.SendGroupFaceMessageResponse, error)
func (*Service) SendGroupFileMessage ¶
func (s *Service) SendGroupFileMessage(c context.Context, req *proto_build.SendGroupFileMessageRequest) (*proto_build.SendGroupFileMessageResponse, error)
func (*Service) SendGroupImageMessage ¶
func (s *Service) SendGroupImageMessage(c context.Context, req *proto_build.SendGroupImageMessageRequest) (*proto_build.SendGroupImageMessageResponse, error)
func (*Service) SendGroupLocationMessage ¶
func (s *Service) SendGroupLocationMessage(c context.Context, req *proto_build.SendGroupLocationMessageRequest) (*proto_build.SendGroupLocationMessageResponse, error)
func (*Service) SendGroupSoundMessage ¶
func (s *Service) SendGroupSoundMessage(c context.Context, req *proto_build.SendGroupSoundMessageRequest) (*proto_build.SendGroupSoundMessageResponse, error)
func (*Service) SendGroupTextMessage ¶
func (s *Service) SendGroupTextMessage(c context.Context, req *proto_build.SendGroupTextMessageRequest) (*proto_build.SendGroupTextMessageResponse, error)
func (*Service) SendGroupVideoMessage ¶
func (s *Service) SendGroupVideoMessage(c context.Context, req *proto_build.SendGroupVideoMessageRequest) (*proto_build.SendGroupVideoMessageResponse, error)
func (*Service) SendUserFaceMessage ¶
func (s *Service) SendUserFaceMessage(c context.Context, req *proto_build.SendUserFaceMessageRequest) (*proto_build.SendUserFaceMessageResponse, error)
func (*Service) SendUserFileMessage ¶
func (s *Service) SendUserFileMessage(c context.Context, req *proto_build.SendUserFileMessageRequest) (*proto_build.SendUserFileMessageResponse, error)
func (*Service) SendUserImageMessage ¶
func (s *Service) SendUserImageMessage(c context.Context, req *proto_build.SendUserImageMessageRequest) (*proto_build.SendUserImageMessageResponse, error)
func (*Service) SendUserLocationMessage ¶
func (s *Service) SendUserLocationMessage(c context.Context, req *proto_build.SendUserLocationMessageRequest) (*proto_build.SendUserLocationMessageResponse, error)
func (*Service) SendUserSoundMessage ¶
func (s *Service) SendUserSoundMessage(c context.Context, req *proto_build.SendUserSoundMessageRequest) (*proto_build.SendUserSoundMessageResponse, error)
func (*Service) SendUserTextMessage ¶
func (s *Service) SendUserTextMessage(c context.Context, req *proto_build.SendUserTextMessageRequest) (*proto_build.SendUserTextMessageResponse, error)
func (*Service) SendUserVideoMessage ¶
func (s *Service) SendUserVideoMessage(c context.Context, req *proto_build.SendUserVideoMessageRequest) (*proto_build.SendUserVideoMessageResponse, error)
Click to show internal directories.
Click to hide internal directories.