huangye-parking/miniapp/api/points.js
2026-02-28 17:35:49 +08:00

22 lines
428 B
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/**
* 积分相关 API
*/
import { get } from '@/utils/request'
/**
* 获取积分余额
*/
export function getBalance() {
return get('/api/points/balance')
}
/**
* 获取积分明细
* @param {Object} [params]
* @param {string} [params.type] - 类型筛选all/income/expense
* @param {number} [params.storeId] - 门店筛选
*/
export function getRecords(params) {
return get('/api/points/records', params)
}