2025-07-15 07:04:51 -04:00
|
|
|
import {httpReq} from "@/utils/axiosReq";
|
2025-08-12 06:24:55 -04:00
|
|
|
import {AskLoginResult} from "@/lib/login/definitions";
|
|
|
|
import {Axios, AxiosResponse} from "axios";
|
|
|
|
import {ResponseVO} from "@/lib/definitions";
|
2025-07-15 07:04:51 -04:00
|
|
|
|
|
|
|
export const generateQrcodeAPI = (data:{}) => {
|
|
|
|
return httpReq.post(process.env.NEXT_PUBLIC_SECURITY_REQUEST_URL + "/V2/wx/login/generate/qrcode",
|
|
|
|
data)
|
2025-07-18 07:02:14 -04:00
|
|
|
}
|
2025-08-12 06:24:55 -04:00
|
|
|
export const askLoginAPI = (data:{}):Promise<AxiosResponse<ResponseVO<AskLoginResult[]>>> =>{
|
2025-07-18 07:02:14 -04:00
|
|
|
return httpReq.post(process.env.NEXT_PUBLIC_SECURITY_REQUEST_URL + "/V2/wx/login/pc/ask/login",
|
|
|
|
data)
|
2025-07-15 07:04:51 -04:00
|
|
|
}
|