mirror of https://github.com/rocboss/paopao-ce
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
495 B
16 lines
495 B
package core
|
|
|
|
import (
|
|
"github.com/rocboss/paopao-ce/internal/model"
|
|
)
|
|
|
|
// MessageService 消息服务
|
|
type MessageService interface {
|
|
CreateMessage(msg *model.Message) (*model.Message, error)
|
|
GetUnreadCount(userID int64) (int64, error)
|
|
GetMessageByID(id int64) (*model.Message, error)
|
|
ReadMessage(message *model.Message) error
|
|
GetMessages(conditions *model.ConditionsT, offset, limit int) ([]*model.MessageFormated, error)
|
|
GetMessageCount(conditions *model.ConditionsT) (int64, error)
|
|
}
|