35 lines
695 B
JavaScript
35 lines
695 B
JavaScript
const http = require('../utils/request')
|
|
|
|
/** 获取当前会员信息 */
|
|
function getMemberInfo() {
|
|
return http.get('/member/info')
|
|
}
|
|
|
|
/** 更新会员信息 */
|
|
function updateMemberInfo(data) {
|
|
return http.put('/member/info', data)
|
|
}
|
|
|
|
/** 获取活跃会员卡 */
|
|
function getActiveCards() {
|
|
return http.get('/member-cards/active')
|
|
}
|
|
|
|
/** 获取会员签到统计 */
|
|
function getCheckInStatistics() {
|
|
return http.get('/checkIn/statistics')
|
|
}
|
|
|
|
/** 获取会员签到记录 */
|
|
function getCheckInRecords(params) {
|
|
return http.get('/checkIn/records', { params })
|
|
}
|
|
|
|
module.exports = {
|
|
getMemberInfo,
|
|
updateMemberInfo,
|
|
getActiveCards,
|
|
getCheckInStatistics,
|
|
getCheckInRecords
|
|
}
|