import { get } from '@/utils/request.js'

/**
 * 查询当前用户登记状态与详情
 * @returns {Promise<{
 *   userType: 'enterprise' | 'worker',
 *   registered: boolean,
 *   mobileMask?: string,
 *   enterprise?: object,
 *   worker?: object
 * }>}
 */
export function getUserInfo(options = {}) {
	return get('/getInfo', null, options)
}
