From 6bac509f8e6efc205d9f37a84c9b019ec828467a Mon Sep 17 00:00:00 2001 From: wupengfei <834520024@qq.com> Date: 星期三, 07 五月 2025 14:22:26 +0800 Subject: [PATCH] feat: 接口 --- src/services/api/UserRole.ts | 30 ++++++++++++++++++++++++++++++ 1 files changed, 30 insertions(+), 0 deletions(-) diff --git a/src/services/api/UserRole.ts b/src/services/api/UserRole.ts index 309f2fa..9d36735 100644 --- a/src/services/api/UserRole.ts +++ b/src/services/api/UserRole.ts @@ -17,6 +17,21 @@ }); } +/** 鏀垮姟绔竴绯荤粺閰嶇疆涓�鍒涘缓鏀垮姟绔敤鎴� POST /api/UserRole/CreateGovermentClientUser */ +export async function createGovermentClientUser( + body: API.CreateGoverUserInput, + options?: API.RequestConfig +) { + return request<string>('/api/UserRole/CreateGovermentClientUser', { + method: 'POST', + headers: { + 'Content-Type': 'application/json', + }, + data: body, + ...(options || {}), + }); +} + /** 鏂板瑙掕壊 POST /api/UserRole/CreateRole */ export async function createRole(body: API.CreateBaseRoleInput, options?: API.RequestConfig) { return request<string>('/api/UserRole/CreateRole', { @@ -131,6 +146,21 @@ }); } +/** 鏀垮姟绔竴绯荤粺閰嶇疆涓�缂栬緫鏀垮姟绔处鎴� POST /api/UserRole/UpdateGovermentClientUser */ +export async function updateGovermentClientUser( + body: API.UpdateGovermentClientUserInput, + options?: API.RequestConfig +) { + return request<number>('/api/UserRole/UpdateGovermentClientUser', { + method: 'POST', + headers: { + 'Content-Type': 'application/json', + }, + data: body, + ...(options || {}), + }); +} + /** 瑙掕壊缂栬緫 POST /api/UserRole/UpdateRole */ export async function updateRole(body: API.CreateOrUpdateRoleInput, options?: API.RequestConfig) { return request<number>('/api/UserRole/UpdateRole', { -- Gitblit v1.9.1