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

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