Documentation ¶
Index ¶
- func NewMeetingMongo(db *mongo.Database) (database.Meeting, error)
- func NewUserMongo(db *mongo.Database) (database.User, error)
- type MeetingMgo
- func (u *MeetingMgo) Create(ctx context.Context, meetings []*model.MeetingInfo) error
- func (u *MeetingMgo) Delete(ctx context.Context, meetingID string) error
- func (u *MeetingMgo) FindByStatus(ctx context.Context, status []string, userID string) ([]*model.MeetingInfo, error)
- func (u *MeetingMgo) Take(ctx context.Context, meetingID string) (user *model.MeetingInfo, err error)
- func (u *MeetingMgo) Update(ctx context.Context, meetingID string, updateData map[string]any) error
- type UserMgo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type MeetingMgo ¶
type MeetingMgo struct {
// contains filtered or unexported fields
}
func (*MeetingMgo) Create ¶
func (u *MeetingMgo) Create(ctx context.Context, meetings []*model.MeetingInfo) error
func (*MeetingMgo) Delete ¶
func (u *MeetingMgo) Delete(ctx context.Context, meetingID string) error
func (*MeetingMgo) FindByStatus ¶
func (u *MeetingMgo) FindByStatus(ctx context.Context, status []string, userID string) ([]*model.MeetingInfo, error)
func (*MeetingMgo) Take ¶
func (u *MeetingMgo) Take(ctx context.Context, meetingID string) (user *model.MeetingInfo, err error)
Click to show internal directories.
Click to hide internal directories.