wangfukang 19 hours ago
parent
commit
5ae90dcbce
  1. 8
      common/ieApi.js

8
common/ieApi.js

@ -54,6 +54,14 @@ export function startIeMatch(data) {
return tui.request('/app/ie/match/start', 'POST', data, false, false, false).then(unwrap) return tui.request('/app/ie/match/start', 'POST', data, false, false, false).then(unwrap)
} }
export function matchIeProfile(targetUserId) {
return tui.request(`/app/ie/profiles/${targetUserId}/match`, 'POST', {}, false, false, false).then(unwrap)
}
export function getIeCompanionIntents(limit = 50) {
return tui.request('/app/ie/companion-intents', 'GET', { limit }, false, true, true).then(unwrap)
}
export function sendIePresence(roomId, data) { export function sendIePresence(roomId, data) {
return tui.request(`/app/ie/rooms/${roomId}/presence`, 'POST', data, false, false, true).then(unwrap) return tui.request(`/app/ie/rooms/${roomId}/presence`, 'POST', data, false, false, true).then(unwrap)
} }

Loading…
Cancel
Save