More channel call operations available

 Prevent two user create call in a channel at the same time
This commit is contained in:
2024-07-17 11:03:35 +08:00
parent 7e03eeee38
commit 2486b317e3
5 changed files with 88 additions and 5 deletions

View File

@ -1,6 +1,9 @@
package models
import "time"
import (
"github.com/livekit/protocol/livekit"
"time"
)
type Call struct {
BaseModel
@ -12,4 +15,6 @@ type Call struct {
ChannelID uint `json:"channel_id"`
Founder ChannelMember `json:"founder"`
Channel Channel `json:"channel"`
Participants []*livekit.ParticipantInfo `json:"participants" gorm:"-"`
}