map.js 657 Bytes
/*
 * @Date: 2025-09-04 17:23:17
 * @LastEditors: hookehuyr hookehuyr@gmail.com
 * @LastEditTime: 2025-09-04 17:23:43
 * @FilePath: /lls_program/src/api/map.js
 * @Description: 文件描述
 */
import { fn, fetch } from './fn';

const Api = {
    GET_MAP_URL: '/srv/?a=map&t=get_map_url',
}

/**
 * @description: 获取地图URL
 * @param {Object} params - 请求参数
 * @returns {number} response.code - 响应状态码
 * @returns {string} response.msg - 响应消息
 * @returns {Object} response.data - 响应数据
 * @returns {string} response.data.url - 地图URL
 */
export const getMapUrlAPI = (params) => fn(fetch.get(Api.GET_MAP_URL, params));