user.ts 346 B

1234567891011121314151617
  1. import { http } from "../utils/http";
  2. interface userType extends Promise<any> {
  3. svg?: string;
  4. code?: number;
  5. info?: object;
  6. }
  7. // 获取验证码
  8. export const getVerify = (): userType => {
  9. return http.request("get", "/captcha");
  10. };
  11. // 登录
  12. export const getLogin = (data: object) => {
  13. return http.request("post", "/login", data);
  14. };