import { WX_LOGIN } from '../utils/apiList' import { request, Response } from '../utils/http' interface LoginResType { token: string } type RoomDetailRes = Response & { data: LoginResType } export const Login = async (code: string): Promise => { const res = await request.get(WX_LOGIN, { code }) return res.data }