You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
shop-app/common/api/account.js

25 lines
494 B

/*
* @Author: ch
* @Date: 2022-03-17 16:38:39
* @LastEditors: ch
* @LastEditTime: 2022-03-30 17:58:33
* @Description: file content
*/
import {ToAsyncAwait, Request} from '@/common/utils';
import orderList from '@/mock/orderList'
const ApiGetCurrentUser = () =>
ToAsyncAwait(Request.get('/user/current'));
const ApiPutUser = (data) =>
ToAsyncAwait(Request.put('/user/', data))
export {
// 获取当前登录用户信息
ApiGetCurrentUser,
// 修改用户信息
ApiPutUser
}