chore: establish V1.1 recovery baseline
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
/**
|
||||
* 用户状态服务(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,
|
||||
};
|
||||
Reference in New Issue
Block a user