zhangwei
2025-08-28 06e4c8c1bad514992186d94a65c0dc6250e34716
src/api/register/index.ts
@@ -8,7 +8,7 @@
import { http } from "@/utils/http";
import { baseUrlApi } from "../util";
import type { Result, CaptchaResult } from "../types";
import type { Result, CaptchaResult, RoleData } from "../types";
export const register = (data?: object) => {
  return http.request<Result>(
@@ -24,7 +24,7 @@
//获取角色
export const exRole = () => {
  return http.request<Result>("get", baseUrlApi("/api/customer/exRole"));
  return http.request<RoleData>("get", baseUrlApi("/api/customer/exRole"));
};
// 获取手机验证码
@@ -66,3 +66,10 @@
  );
};
// 申请角色
export const applyRole = params => {
  return http.request<Result>(
    "get",
    baseUrlApi(`/api/customer/createrExRolsInformation/${params.ruleCode}`)
  );
};