project init

This commit is contained in:
limqhz
2020-01-29 21:50:10 +08:00
parent 3d215fe181
commit d4c677d2b5
821 changed files with 111343 additions and 73 deletions

View File

@@ -0,0 +1,37 @@
import http from '@/utils/http'
/**
* 查询用户
*/
export function find(id) {
return http.get('/member/' + id)
}
/**
* 更新状态
*/
export function updateStatus(ids, status) {
return http.post('/member/status', { 'id[]': ids, 'status': status })
}
/**
* 删除用户
*/
export function remove(ids) {
return http.post('/member/delete', { 'id[]': ids })
}
/**
* 送卡
*/
export function createCard(memberId, cardType, venueType, platformId, venueId, star, end) {
return http.post('/member/giveCard', { 'memberId': memberId, 'cardType': cardType, 'venueType': venueType, 'platformId': platformId,
'venueId': venueId, 'star': star, 'end': end })
}
/**
* 保存用户
*/
export function save(params) {
return http.post('/member', params)
}