Documentation
¶
Index ¶
- type ChatService
- func (cs *ChatService) AddParticipant(channelID string, userID, memberID *string) error
- func (cs *ChatService) CreateChannel(channelModel *models.ChatChannelModel, userID, memberID *string) error
- func (cs *ChatService) CreateMessage(messageModel *models.ChatMessageModel) error
- func (cs *ChatService) DeleteChannel(channelID string, userID *string, memberID *string) error
- func (cs *ChatService) DeleteMessage(messageID string, userID, memberID *string) error
- func (cs *ChatService) DeleteParticipant(channelID string, userID, memberID *string) error
- func (cs *ChatService) GetChannelByParticipantMemberID(memberID string, request *http.Request, search string) (paginate.Page, error)
- func (cs *ChatService) GetChannelByParticipantUserID(userID string, request *http.Request, search string) (paginate.Page, error)
- func (cs *ChatService) GetChannelDetail(channelID string) (*models.ChatChannelModel, error)
- func (cs *ChatService) GetChatMessageByChannelID(channelID string, request *http.Request, search string) (paginate.Page, error)
- func (cs *ChatService) GetDetailMessage(messageID string) (*models.ChatMessageModel, error)
- func (cs *ChatService) ReadedByMember(channelID string, memberID string) error
- func (cs *ChatService) ReadedByUser(channelID string, userID string) error
- func (cs *ChatService) UpdateMessage(messageID string, messageModel *models.ChatMessageModel, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChatService ¶
type ChatService struct {
// contains filtered or unexported fields
}
func NewChatService ¶
func NewChatService(db *gorm.DB, ctx *context.ERPContext) *ChatService
func (*ChatService) AddParticipant ¶
func (cs *ChatService) AddParticipant(channelID string, userID, memberID *string) error
func (*ChatService) CreateChannel ¶
func (cs *ChatService) CreateChannel(channelModel *models.ChatChannelModel, userID, memberID *string) error
func (*ChatService) CreateMessage ¶
func (cs *ChatService) CreateMessage(messageModel *models.ChatMessageModel) error
func (*ChatService) DeleteChannel ¶
func (cs *ChatService) DeleteChannel(channelID string, userID *string, memberID *string) error
func (*ChatService) DeleteMessage ¶
func (cs *ChatService) DeleteMessage(messageID string, userID, memberID *string) error
func (*ChatService) DeleteParticipant ¶
func (cs *ChatService) DeleteParticipant(channelID string, userID, memberID *string) error
func (*ChatService) GetChannelByParticipantMemberID ¶
func (*ChatService) GetChannelByParticipantUserID ¶
func (*ChatService) GetChannelDetail ¶
func (cs *ChatService) GetChannelDetail(channelID string) (*models.ChatChannelModel, error)
func (*ChatService) GetChatMessageByChannelID ¶
func (*ChatService) GetDetailMessage ¶
func (cs *ChatService) GetDetailMessage(messageID string) (*models.ChatMessageModel, error)
func (*ChatService) ReadedByMember ¶
func (cs *ChatService) ReadedByMember(channelID string, memberID string) error
func (*ChatService) ReadedByUser ¶
func (cs *ChatService) ReadedByUser(channelID string, userID string) error
func (*ChatService) UpdateMessage ¶
func (cs *ChatService) UpdateMessage(messageID string, messageModel *models.ChatMessageModel, userID, memberID *string) error
Click to show internal directories.
Click to hide internal directories.