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
507 B

3 years ago
/*
* @Author: ch
* @Date: 2022-03-17 16:38:39
* @LastEditors: ch
* @LastEditTime: 2022-04-06 09:59:52
3 years ago
* @Description: file content
*/
3 years ago
import {ToAsyncAwait, MsbRequest} from '@/common/utils';
const BASE_URL = '/uc'
const ApiGetCurrentUser = () =>
ToAsyncAwait(MsbRequest.get(`${BASE_URL}/user/current`));
const ApiPutUser = (data) =>
ToAsyncAwait(MsbRequest.put(`${BASE_URL}/user/`, data))
export {
// 获取当前登录用户信息
ApiGetCurrentUser,
// 修改用户信息
ApiPutUser
}