From 23a2fff92f73b9759849a8016601a6817d7470b1 Mon Sep 17 00:00:00 2001
From: zhangwei <1504152376@qq.com>
Date: 星期一, 25 八月 2025 17:30:30 +0800
Subject: [PATCH] -

---
 src/api/register/index.ts |   21 +++++++++++++++++++--
 1 files changed, 19 insertions(+), 2 deletions(-)

diff --git a/src/api/register/index.ts b/src/api/register/index.ts
index 8e407e1..6a12e54 100644
--- a/src/api/register/index.ts
+++ b/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"));
 };
 
 // 鑾峰彇鎵嬫満楠岃瘉鐮�
@@ -46,6 +46,15 @@
   );
 };
 
+// 淇敼瑙掕壊鐢ㄦ埛璧勬枡
+export const createrExRolsInformation1 = (data?: object) => {
+  return http.request<Result>(
+    "post",
+    baseUrlApi("/api/customer/createrExRolsInformation"),
+    { data }
+  );
+};
+
 // 鑾峰彇浼佷笟绫诲瀷
 export const enterpriseTypes = (data?: object) => {
   return http.request<Result>(
@@ -56,3 +65,11 @@
     }
   );
 };
+
+// 鐢宠瑙掕壊
+export const applyRole = params => {
+  return http.request<Result>(
+    "get",
+    baseUrlApi(`/api/customer/createrExRolsInformation/${params.ruleCode}`)
+  );
+};

--
Gitblit v1.9.1