1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
| import { request } from '@/api/request';
| import type { XxxListParams, XxxListResult } from './types';
|
| // TODO: 替换为真实接口地址与字段。
|
| /** 查询列表。 */
| export const getXxxList = (params: XxxListParams) =>
| request<XxxListParams, XxxListResult>({
| url: '/api/xxx',
| method: 'GET',
| params,
| });
|
| /** 删除记录。 */
| export const deleteXxx = (key: string) =>
| request<void, void>({
| url: `/api/xxx/${key}`,
| method: 'DELETE',
| });
|
|