index.js 804 Bytes
/*
 * @Date: 2023-12-22 10:29:37
 * @LastEditors: hookehuyr hookehuyr@gmail.com
 * @LastEditTime: 2025-09-16 11:37:51
 * @FilePath: /lls_program/src/api/index.js
 * @Description: 文件描述
 */
import { fn, fetch } from './fn';

const Api = {
  BOOT_PAGE: '/srv/?a=common&t=boot_page',
}

/**
 * @description: 获取引导页数据
 * @returns {number} response.code - 响应状态码
 * @returns {string} response.msg - 响应消息
 * @returns {Object} response.data - 响应数据
 * @returns {string} response.data.adImageUrl - 广告图片URL
 * @returns {string} response.data.targetPage - 点击跳转的页面路径
 * @returns {string} response.data.storageKey - 存储键名(用于区分不同的广告)
 */
export const getBootPageAPI = (params) => fn(fetch.get(Api.BOOT_PAGE, params));