123456789101112131415161718192021 |
- import { GET_SIG } from '../utils/apiList'
- import { request, Response } from '../utils/http'
- interface SingResType {
- expire: number,
- sdkAppId: number,
- sign: string,
- }
- type RoomDetailRes = Response & {
- data: SingResType
- }
- export const getRTCSig = async (userId: string): Promise<SingResType> => {
- const res = await request.get<RoomDetailRes>(GET_SIG, {
- userId
- })
- return res.data
- }
|