zhengyiming
6 天以前 c5025e19c37bcb0ec0d07e979ebe9c1ca7840753
src/services/api/resource.ts
@@ -3,31 +3,31 @@
import { request } from '@/utils/request';
/** 获取资源字段 GET /api/user/resource/getResourceFields */
export async function resourceGetResourceFields(
  body: API.GetResourceFieldsQuery,
export async function getResourceFields(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.APIgetResourceFieldsParams,
  options?: API.RequestConfig
) {
  return request<API.GetResourceFieldsQueryResultItem[]>('/api/user/resource/getResourceFields', {
    method: 'GET',
    headers: {
      'Content-Type': 'application/json-patch+json',
    params: {
      ...params,
    },
    data: body,
    ...(options || {}),
  });
}
/** 获取资源列表 GET /api/user/resource/getResources */
export async function resourceGetResources(
  body: API.GetResourcesQuery,
export async function getResources(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.APIgetResourcesParams,
  options?: API.RequestConfig
) {
  return request<API.GetResourcesQueryResultItem[]>('/api/user/resource/getResources', {
    method: 'GET',
    headers: {
      'Content-Type': 'application/json-patch+json',
    params: {
      ...params,
    },
    data: body,
    ...(options || {}),
  });
}