Files
danyang-match/miniapp/services/userService.js
T

20 lines
464 B
JavaScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/**
* 用户状态服务(API_INVENTORY 行 12)
*
* 仅封装 /me/status:返回全局 UserState 聚合,决定路由、权限与首页 Tab。
* /me/profile、/me/preferences 等单独走 profileService。
*/
const api = require('../utils/api');
/**
* 获取当前用户状态(API_INVENTORY 行 12)
* @returns {Promise<import('../types').UserState>}
*/
function getStatus() {
return api.get('/me/status');
}
module.exports = {
getStatus,
};