9 lines
364 B
TypeScript
9 lines
364 B
TypeScript
import { request } from './http'
|
|
|
|
// 业务接口定义,新增接口在此处添加一行即可
|
|
export const api = {
|
|
getUser: () => request('getUser'),
|
|
processData: (input: string) => request('processData', { method: 'POST', body: { input } }),
|
|
wData: (input: string) => request('wData', { method: 'POST', body: { input } }),
|
|
}
|