问题工单后台管理
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

30 lines
592 B

import type { BaseResponse } from '@/utils/request';
import { request } from '@/utils/request';
/**
* @description 登录
* @param {LoginParams} data
* @returns
*/
export function login(data: API.LoginParams) {
return request<BaseResponse<API.LoginResult>>(
{
url: 'auth/login',
method: 'post',
data,
},
{
isGetDataDirectly: false,
},
);
}
/**
* @description 获取验证码
*/
export function getImageCaptcha(params?: API.CaptchaParams) {
return request<API.CaptchaResult>({
url: 'captcha/img',
method: 'get',
params,
});
}