diff --git a/src/api/index.ts b/src/api/index.ts index f578d7e..cd8b1f2 100644 --- a/src/api/index.ts +++ b/src/api/index.ts @@ -1,10 +1,20 @@ import { get, post } from './base' import { AxiosPromise } from 'axios' +/** + * 请求用户信息 + */ + export function getinfo(): Promise{ return get("a") } -export function seninfo(data: object | undefined): Promise{ +/** + * 提交修改之后的用户信息 + * @param data + * + */ + +export function seninfo(data: object): Promise{ return post("b",data) }