会员支付管理后台-用于提供会员管理小程序支付的api接口,与后台数据管理展示
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

52 lines
1.3 KiB

import request from '@/utils/request'
// USER_CODE_BEGIN -- hygl_transaction_history
/**
* 获取会员交易记录列表
* @param params
* @returns
*/
export function getTransactionHistoryList(params: Record<string, any>) {
return request.get(`hygl/transaction_history`, {params})
}
/**
* 获取会员交易记录详情
* @param id 会员交易记录id
* @returns
*/
export function getTransactionHistoryInfo(id: number) {
return request.get(`hygl/transaction_history/${id}`);
}
/**
* 添加会员交易记录
* @param params
* @returns
*/
export function addTransactionHistory(params: Record<string, any>) {
return request.post('hygl/transaction_history', params, { showErrorMessage: true, showSuccessMessage: true })
}
/**
* 编辑会员交易记录
* @param id
* @param params
* @returns
*/
export function editTransactionHistory(params: Record<string, any>) {
return request.put(`hygl/transaction_history/${params.id}`, params, { showErrorMessage: true, showSuccessMessage: true })
}
/**
* 删除会员交易记录
* @param id
* @returns
*/
export function deleteTransactionHistory(id: number) {
return request.delete(`hygl/transaction_history/${id}`, { showErrorMessage: true, showSuccessMessage: true })
}
// USER_CODE_END -- hygl_transaction_history