zhengyiming
6 天以前 9d8ef3a592b3102c8d4133e601b31aacb91866f6
src/services/api/dictionary.ts
@@ -2,17 +2,20 @@
// @ts-ignore
import { request } from '@/utils/request';
/** 获取字典数据分页列表 GET /api/main/dictionary/getDictionaryDatas */
export async function dictionaryGetDictionaryDatas(
/** 此处后端没有提供注释 POST /api/main/dictionary/getDictionaryDatas */
export async function getDictionaryDatas(
  body: API.GetDictionaryDatasQuery,
  options?: API.RequestConfig
) {
  return request<API.GetDictionaryDatasQueryResult>('/api/main/dictionary/getDictionaryDatas', {
    method: 'GET',
    headers: {
      'Content-Type': 'application/json-patch+json',
    },
    data: body,
    ...(options || {}),
  });
  return request<API.PagedListQueryResultGetDictionaryDatasQueryResultItem>(
    '/api/main/dictionary/getDictionaryDatas',
    {
      method: 'POST',
      headers: {
        'Content-Type': 'application/json-patch+json',
      },
      data: body,
      ...(options || {}),
    }
  );
}