init
This commit is contained in:
44
ruoyi-ui/src/api/app/exchange.js
Normal file
44
ruoyi-ui/src/api/app/exchange.js
Normal file
@@ -0,0 +1,44 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查询兑换记录列表
|
||||
export function listExchange(query) {
|
||||
return request({
|
||||
url: '/app/exchange/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询兑换记录详细
|
||||
export function getExchange(id) {
|
||||
return request({
|
||||
url: '/app/exchange/' + id,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增兑换记录
|
||||
export function addExchange(data) {
|
||||
return request({
|
||||
url: '/app/exchange',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改兑换记录
|
||||
export function updateExchange(data) {
|
||||
return request({
|
||||
url: '/app/exchange',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除兑换记录
|
||||
export function delExchange(id) {
|
||||
return request({
|
||||
url: '/app/exchange/' + id,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user