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.

26 lines
526 B

import { fetch } from '../../../utils/util';
export type ResponseType = Promise<defs.ResultVO<defs.UserInfoVO>>;
export const URL = '/api/user/current';
/**
* @desc 获取当前用户信息
*/
export function request(
options?: WechatMiniprogram.RequestOption,
): ResponseType {
let url = '/api/user/current';
const fetchOption = Object.assign(
{
url: url,
method: 'GET',
headers: {
'Content-Type': 'application/json',
},
},
options,
);
return fetch(fetchOption);
}