1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import { $fytz } from '../index';
 
/**
 * 动态配置相关API接口
 */
export default {
  /**
   * 获取用户类型可用的场景范围
   */
  // Fixme 2025.4.2: 暂时默认使用管理员用户id,后续加入权限管理后,根据登录用户动态获取
  fetchSceneTypeRange(userId = 'pGrkC8e8eu8jGPgf') {
    return $fytz
      .get(`config/scene/range`, { params: { userId } })
      .then((res) => res.data);
  },
};