实现部分页面前后端相通
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
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
|
||||
}
|
||||
Reference in New Issue
Block a user