chat

package
v1.0.44 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 15, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

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 (cs *ChatService) GetChannelByParticipantMemberID(memberID string, request *http.Request, search string) (paginate.Page, error)

func (*ChatService) GetChannelByParticipantUserID

func (cs *ChatService) GetChannelByParticipantUserID(userID string, request *http.Request, search string) (paginate.Page, error)

func (*ChatService) GetChannelDetail

func (cs *ChatService) GetChannelDetail(channelID string) (*models.ChatChannelModel, error)

func (*ChatService) GetChatMessageByChannelID

func (cs *ChatService) GetChatMessageByChannelID(channelID string, request *http.Request, search string) (paginate.Page, error)

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL