http request대신 직접 호출
This commit is contained in:
@ -78,7 +78,7 @@ type eosRoomParticipants struct {
|
||||
Participants []eosRoomParticipantRequests `json:"participants"`
|
||||
}
|
||||
|
||||
func (gv *eosauth) joinVoiceChat(data joinVoiceChatRequst) map[string]any {
|
||||
func (gv *eosauth) joinVoiceChat(data JoinVoiceChatRequst) map[string]any {
|
||||
// https://dev.epicgames.com/docs/web-api-ref/voice-web-api
|
||||
accessToken := gv.AccessToken
|
||||
if len(accessToken) == 0 {
|
||||
@ -125,7 +125,7 @@ func (gv *eosauth) joinVoiceChat(data joinVoiceChatRequst) map[string]any {
|
||||
return result
|
||||
}
|
||||
|
||||
func (gv *eosauth) leaveVoiceChat(data leaveVoiceChatRequst) {
|
||||
func (gv *eosauth) leaveVoiceChat(data LeaveVoiceChatRequst) {
|
||||
voiceendpoint := fmt.Sprintf("https://api.epicgames.dev/rtc/v1/%s/room/%s/participants/%s", config.EosDeploymentId, data.Gid, data.Mid)
|
||||
accessToken := gv.AccessToken
|
||||
|
||||
|
||||
Reference in New Issue
Block a user