22 lines
428 B
JavaScript
22 lines
428 B
JavaScript
/**
|
||
* 积分相关 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)
|
||
}
|