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