From 78921416615f450f4cc29ec4f740fbf1b47d8b00 Mon Sep 17 00:00:00 2001 From: zhangwei <1504152376@qq.com> Date: 星期二, 19 八月 2025 17:18:28 +0800 Subject: [PATCH] 注册登录更改 --- src/api/register/index.ts | 11 +++++++++-- 1 files changed, 9 insertions(+), 2 deletions(-) diff --git a/src/api/register/index.ts b/src/api/register/index.ts index 2611df4..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")); }; // 鑾峰彇鎵嬫満楠岃瘉鐮� @@ -66,3 +66,10 @@ ); }; +// 鐢宠瑙掕壊 +export const applyRole = params => { + return http.request<Result>( + "get", + baseUrlApi(`/api/customer/createrExRolsInformation/${params.ruleCode}`) + ); +}; -- Gitblit v1.9.1