58 lines
1.2 KiB
JavaScript
58 lines
1.2 KiB
JavaScript
import { get } from './request.js'
|
|
|
|
/**
|
|
* 获取Banner列表
|
|
* @returns {Promise<{success: boolean, data: Array}>}
|
|
*/
|
|
export function getBanners() {
|
|
return get('/api/content/banners')
|
|
}
|
|
|
|
/**
|
|
* 获取功能入口图片列表
|
|
* @returns {Promise<{success: boolean, data: Array}>}
|
|
*/
|
|
export function getEntries() {
|
|
return get('/api/content/entries')
|
|
}
|
|
|
|
/**
|
|
* 获取优惠券使用说明
|
|
* @returns {Promise<{success: boolean, data: any}>}
|
|
*/
|
|
export function getCouponGuide() {
|
|
return get('/api/content/coupon-guide')
|
|
}
|
|
|
|
/**
|
|
* 获取会员宣传Banner图
|
|
* @returns {Promise<{success: boolean, data: any}>}
|
|
*/
|
|
export function getMembershipBanner() {
|
|
return get('/api/content/membership-banner')
|
|
}
|
|
|
|
/**
|
|
* 获取印花Banner图
|
|
* @returns {Promise<{success: boolean, data: any}>}
|
|
*/
|
|
export function getStampBanner() {
|
|
return get('/api/content/stamp-banner')
|
|
}
|
|
|
|
/**
|
|
* 获取用户协议内容
|
|
* @returns {Promise<{success: boolean, data: any}>}
|
|
*/
|
|
export function getAgreement() {
|
|
return get('/api/content/agreement')
|
|
}
|
|
|
|
/**
|
|
* 获取隐私政策内容
|
|
* @returns {Promise<{success: boolean, data: any}>}
|
|
*/
|
|
export function getPrivacyPolicy() {
|
|
return get('/api/content/privacy-policy')
|
|
}
|