Files
uni-fans-score/config/api/system.js
T
2025-11-08 16:00:44 +08:00

39 lines
884 B
JavaScript

import request from '../http'
// 获取系统配置(预留接口)
// 期望后端返回形如:{ code: 200, data: { expressReturnCountdownSeconds: number } }
export const getSystemConfig = () => {
return request({
url: '/app/system/config',
method: 'get',
hideLoading: true
})
}
// 获取通知接口
export const getNoticeTextData = (data) => {
return request({
url: `/system/notice/title/${data.title}`,
method: 'get'
})
}
// 根据品牌名称获取客服信息
export const getCommonByBrand = (brandName) => {
return request({
url: `/device/common/by/${brandName}`,
method: 'get',
hideLoading: true
})
}
// 查询激活的且临近关闭时间最近的活动
export const getActiveActivity = () => {
return request({
url: '/app/activity/nearest-active',
method: 'get',
hideLoading: true
})
}