Merge pull request '模拟注释' (#3) from xbx into master

Reviewed-on: http://git.luyuan.tk/luyuan/beelink/pulls/3
This commit was merged in pull request #3.
This commit is contained in:
2020-09-24 15:46:34 +08:00

View File

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