From dade6a8b4772abc113383246d05ab59162630e7c Mon Sep 17 00:00:00 2001 From: zhangwei <1504152376@qq.com> Date: 星期三, 27 八月 2025 17:21:21 +0800 Subject: [PATCH] '上传变更公告获取详情与删除' --- src/api/register/index.ts | 12 ++++++++++-- 1 files changed, 10 insertions(+), 2 deletions(-) diff --git a/src/api/register/index.ts b/src/api/register/index.ts index 76589ef..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")); }; // 鑾峰彇鎵嬫満楠岃瘉鐮� @@ -65,3 +65,11 @@ } ); }; + +// 鐢宠瑙掕壊 +export const applyRole = params => { + return http.request<Result>( + "get", + baseUrlApi(`/api/customer/createrExRolsInformation/${params.ruleCode}`) + ); +}; -- Gitblit v1.9.1