first commit
This commit is contained in:
24
src/api/example/index.ts
Normal file
24
src/api/example/index.ts
Normal file
@ -0,0 +1,24 @@
|
||||
/*
|
||||
* @Author: 田鑫
|
||||
* @Date: 2023-03-05 18:42:52
|
||||
* @LastEditors: 田鑫
|
||||
* @LastEditTime: 2023-03-05 19:06:13
|
||||
* @Description: 示例api
|
||||
*/
|
||||
|
||||
import Http from '@/api';
|
||||
|
||||
export declare namespace IExample {
|
||||
interface ITableResponse {
|
||||
id: string;
|
||||
column1: string;
|
||||
column2: string;
|
||||
column3: string;
|
||||
column4: string;
|
||||
column5: string;
|
||||
}
|
||||
}
|
||||
|
||||
export const fetchTableData = (params = {}) => {
|
||||
return Http.get<IExample.ITableResponse[]>('/api/example-table', params);
|
||||
};
|
||||
Reference in New Issue
Block a user