Documentation
¶
Index ¶
- type InboxService
- func (s *InboxService) CountUnread(userID *string, memberID *string) (int64, error)
- func (s *InboxService) CountUnreadSendMessage(userID *string, memberID *string) (int64, error)
- func (s *InboxService) DeleteMessage(inboxMessageID string, userID *string, memberID *string) error
- func (s *InboxService) GetDefaultInbox(userID *string, memberID *string) (*models.InboxModel, error)
- func (s *InboxService) GetInboxMessageDetail(inboxMessageID string) (*models.InboxMessageModel, error)
- func (s *InboxService) GetInboxes(userID *string, memberID *string) ([]models.InboxModel, error)
- func (s *InboxService) GetMessageByInboxID(request http.Request, search string, inboxID *string) (paginate.Page, error)
- func (s *InboxService) GetSentMessages(request http.Request, search string, userID *string, memberID *string) (paginate.Page, error)
- func (s *InboxService) SendMessage(data *models.InboxMessageModel) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type InboxService ¶
type InboxService struct {
// contains filtered or unexported fields
}
func NewInboxService ¶
func NewInboxService(db *gorm.DB, ctx *context.ERPContext) *InboxService
func (*InboxService) CountUnread ¶
func (s *InboxService) CountUnread(userID *string, memberID *string) (int64, error)
func (*InboxService) CountUnreadSendMessage ¶
func (s *InboxService) CountUnreadSendMessage(userID *string, memberID *string) (int64, error)
func (*InboxService) DeleteMessage ¶
func (s *InboxService) DeleteMessage(inboxMessageID string, userID *string, memberID *string) error
func (*InboxService) GetDefaultInbox ¶
func (s *InboxService) GetDefaultInbox(userID *string, memberID *string) (*models.InboxModel, error)
func (*InboxService) GetInboxMessageDetail ¶
func (s *InboxService) GetInboxMessageDetail(inboxMessageID string) (*models.InboxMessageModel, error)
func (*InboxService) GetInboxes ¶
func (s *InboxService) GetInboxes(userID *string, memberID *string) ([]models.InboxModel, error)
func (*InboxService) GetMessageByInboxID ¶
func (*InboxService) GetSentMessages ¶
func (*InboxService) SendMessage ¶
func (s *InboxService) SendMessage(data *models.InboxMessageModel) error
Click to show internal directories.
Click to hide internal directories.