Merge pull request '模拟注释' (#3) from xbx into master
Reviewed-on: http://git.luyuan.tk/luyuan/beelink/pulls/3
This commit is contained in:
commit
82b42da569
@ -1,10 +1,20 @@
|
||||
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>{
|
||||
/**
|
||||
* 提交修改之后的用户信息
|
||||
* @param data
|
||||
*
|
||||
*/
|
||||
|
||||
export function seninfo(data: object): Promise<AxiosPromise>{
|
||||
return post("b",data)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user