From dbebb8c83128e379bb24d8d7c1bf0838d7c5ebdc Mon Sep 17 00:00:00 2001
From: zhengyiming <540361168@qq.com>
Date: 星期四, 20 十一月 2025 15:03:42 +0800
Subject: [PATCH] fix: s
---
src/services/api/UserRole.ts | 45 +++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 45 insertions(+), 0 deletions(-)
diff --git a/src/services/api/UserRole.ts b/src/services/api/UserRole.ts
index 9d36735..e4e4376 100644
--- a/src/services/api/UserRole.ts
+++ b/src/services/api/UserRole.ts
@@ -32,6 +32,21 @@
});
}
+/** 鍒涘缓鏀垮姟绔鐞嗗瓙璐︽埛 POST /api/UserRole/CreateGovermentSubAccounts */
+export async function createGovermentSubAccounts(
+ body: API.CreateGovermentSubAccounts,
+ options?: API.RequestConfig
+) {
+ return request<string>('/api/UserRole/CreateGovermentSubAccounts', {
+ 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', {
@@ -104,6 +119,21 @@
});
}
+/** 鏀垮姟绔鐞嗗瓙璐︽埛鍒楄〃 POST /api/UserRole/GetGovermentSubAccounts */
+export async function getGovermentSubAccounts(
+ body: API.GetBackClientUsersInput,
+ options?: API.RequestConfig
+) {
+ return request<API.UserDtoPageOutput>('/api/UserRole/GetGovermentSubAccounts', {
+ method: 'POST',
+ headers: {
+ 'Content-Type': 'application/json',
+ },
+ data: body,
+ ...(options || {}),
+ });
+}
+
/** 瑙掕壊鍒楄〃 POST /api/UserRole/GetRoles */
export async function getRoles(body: API.GetRolesInput, options?: API.RequestConfig) {
return request<API.RoleInfoPageOutput>('/api/UserRole/GetRoles', {
@@ -161,6 +191,21 @@
});
}
+/** 缂栬緫鏀垮姟绔鐞嗗瓙璐︽埛 POST /api/UserRole/UpdateGovermentSubAccounts */
+export async function updateGovermentSubAccounts(
+ body: API.UpdateGovermentClientUserInput,
+ options?: API.RequestConfig
+) {
+ return request<number>('/api/UserRole/UpdateGovermentSubAccounts', {
+ 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