wupengfei
2025-04-23 b7426e2384b85e92ec1b59061bdada9b4f5c69ec
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', {
@@ -74,6 +89,21 @@
  });
}
/** 政务端账号列表 POST /api/UserRole/GetGovermentClientUsers */
export async function getGovermentClientUsers(
  body: API.GetBackClientUsersInput,
  options?: API.RequestConfig
) {
  return request<API.UserDtoPageOutput>('/api/UserRole/GetGovermentClientUsers', {
    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', {
@@ -116,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', {