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.
52 lines
1.9 KiB
52 lines
1.9 KiB
package table
|
|
|
|
import (
|
|
"context"
|
|
"github.com/OpenIMSDK/tools/pagination"
|
|
"time"
|
|
)
|
|
|
|
type MeetingInfo struct {
|
|
RoomID string `bson:"room_id"`
|
|
MeetingName string `bson:"meeting_name"`
|
|
HostUserID string `bson:"host_user_id"`
|
|
Status int64 `bson:"status"`
|
|
StartTime time.Time `bson:"start_time"`
|
|
EndTime time.Time `bson:"end_time"`
|
|
CreateTime time.Time `bson:"create_time"`
|
|
Ex string `bson:"ex"`
|
|
}
|
|
|
|
type MeetingInterface interface {
|
|
Find(ctx context.Context, roomIDs []string) ([]*MeetingInfo, error)
|
|
CreateMeetingInfo(ctx context.Context, meetingInfo *MeetingInfo) error
|
|
UpdateMeetingInfo(ctx context.Context, roomID string, update map[string]any) error
|
|
GetUnCompleteMeetingIDList(ctx context.Context, roomIDs []string) ([]string, error)
|
|
Delete(ctx context.Context, roomIDs []string) error
|
|
GetMeetingRecords(ctx context.Context, hostUserID string, startTime, endTime time.Time, pagination pagination.Pagination) (int64, []*MeetingInfo, error)
|
|
}
|
|
|
|
type MeetingInvitationInfo struct {
|
|
RoomID string `bson:"room_id"`
|
|
UserID string `bson:"user_id"`
|
|
CreateTime time.Time `bson:"create_time"`
|
|
}
|
|
|
|
type MeetingInvitationInterface interface {
|
|
FindUserIDs(ctx context.Context, roomID string) ([]string, error)
|
|
CreateMeetingInvitationInfo(ctx context.Context, roomID string, inviteeUserIDs []string) error
|
|
GetUserInvitedMeetingIDs(ctx context.Context, userID string) (meetingIDs []string, err error)
|
|
Delete(ctx context.Context, roomIDs []string) error
|
|
GetMeetingRecords(ctx context.Context, joinedUserID string, startTime, endTime time.Time, pagination pagination.Pagination) (int64, []string, error)
|
|
}
|
|
|
|
type MeetingVideoRecord struct {
|
|
RoomID string `bson:"room_id"`
|
|
FileURL string `bson:"file_url"`
|
|
CreateTime time.Time `bson:"create_time"`
|
|
}
|
|
|
|
type MeetingRecordInterface interface {
|
|
CreateMeetingVideoRecord(ctx context.Context, meetingVideoRecord *MeetingVideoRecord) error
|
|
}
|