11 lines
248 B
TypeScript
11 lines
248 B
TypeScript
|
import { get, post } from './base'
|
||
|
import { AxiosPromise } from 'axios'
|
||
|
|
||
|
export function getinfo(): Promise<AxiosPromise>{
|
||
|
return get("a")
|
||
|
}
|
||
|
|
||
|
export function seninfo(data: object | undefined): Promise<AxiosPromise>{
|
||
|
return post("b",data)
|
||
|
}
|