From e372854c71bc97d162452cc4b3f5cfa586da50a8 Mon Sep 17 00:00:00 2001 From: wupengfei <834520024@qq.com> Date: 星期四, 22 五月 2025 17:06:31 +0800 Subject: [PATCH] feat: UI --- packages/services/api/UserRole.ts | 152 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 152 insertions(+), 0 deletions(-) diff --git a/packages/services/api/UserRole.ts b/packages/services/api/UserRole.ts new file mode 100644 index 0000000..f23690d --- /dev/null +++ b/packages/services/api/UserRole.ts @@ -0,0 +1,152 @@ +/* eslint-disable */ +// @ts-ignore +import { request } from '@/utils/request'; + +/** 鏂板鍚庡彴绠$悊璐︽埛 POST /api/UserRole/CreateBackClientUser */ +export async function createBackClientUser( + body: API.CreateBackClientUserInput, + options?: API.RequestConfig +) { + return request<string>('/api/UserRole/CreateBackClientUser', { + 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', { + method: 'POST', + headers: { + 'Content-Type': 'application/json', + }, + data: body, + ...(options || {}), + }); +} + +/** 鍒犻櫎鍚庡彴绠$悊璐︽埛 GET /api/UserRole/DeleteBackClientUser */ +export async function deleteBackClientUser( + // 鍙犲姞鐢熸垚鐨凱aram绫诲瀷 (闈瀊ody鍙傛暟swagger榛樿娌℃湁鐢熸垚瀵硅薄) + params: API.APIdeleteBackClientUserParams, + options?: API.RequestConfig +) { + return request<number>('/api/UserRole/DeleteBackClientUser', { + method: 'GET', + params: { + ...params, + }, + ...(options || {}), + }); +} + +/** 鍒犻櫎瑙掕壊 GET /api/UserRole/DeleteRole */ +export async function deleteRole( + // 鍙犲姞鐢熸垚鐨凱aram绫诲瀷 (闈瀊ody鍙傛暟swagger榛樿娌℃湁鐢熸垚瀵硅薄) + params: API.APIdeleteRoleParams, + options?: API.RequestConfig +) { + return request<number>('/api/UserRole/DeleteRole', { + method: 'GET', + params: { + ...params, + }, + ...(options || {}), + }); +} + +/** 鑾峰彇鐢ㄦ埛璐﹀彿璇︽儏 GET /api/UserRole/GetBackClientUserInfo */ +export async function getBackClientUserInfo(options?: API.RequestConfig) { + return request<API.BackClientUserInfoOutput>('/api/UserRole/GetBackClientUserInfo', { + method: 'GET', + ...(options || {}), + }); +} + +/** 鍚庡彴绠$悊璐︽埛鍒楄〃 POST /api/UserRole/GetBackClientUsers */ +export async function getBackClientUsers( + body: API.GetBackClientUsersInput, + options?: API.RequestConfig +) { + return request<API.UserDtoPageOutput>('/api/UserRole/GetBackClientUsers', { + 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', { + method: 'POST', + headers: { + 'Content-Type': 'application/json', + }, + data: body, + ...(options || {}), + }); +} + +/** 閲嶇疆瀵嗙爜 POST /api/UserRole/ResetUserPassword */ +export async function resetUserPassword( + body: API.ResetPasswordBaseInput, + options?: API.RequestConfig +) { + return request<number>('/api/UserRole/ResetUserPassword', { + method: 'POST', + headers: { + 'Content-Type': 'application/json', + }, + data: body, + ...(options || {}), + }); +} + +/** 瑙掕壊鍚敤/绂佺敤 POST /api/UserRole/RoleEnableOrForbid */ +export async function roleEnableOrForbid( + body: API.RoleEnableOrForbidInput, + options?: API.RequestConfig +) { + return request<number>('/api/UserRole/RoleEnableOrForbid', { + method: 'POST', + headers: { + 'Content-Type': 'application/json', + }, + data: body, + ...(options || {}), + }); +} + +/** 鍚庡彴绠$悊璐︽埛缂栬緫 POST /api/UserRole/UpdateBackClientUser */ +export async function updateBackClientUser( + body: API.UpdateBackClientUserInput, + options?: API.RequestConfig +) { + return request<number>('/api/UserRole/UpdateBackClientUser', { + 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', { + method: 'POST', + headers: { + 'Content-Type': 'application/json', + }, + data: body, + ...(options || {}), + }); +} -- Gitblit v1.9.1