http request대신 직접 호출

This commit is contained in:
2024-01-08 21:41:53 +09:00
parent e919473fa2
commit e03bf6e199
2 changed files with 14 additions and 35 deletions

View File

@ -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