会员积分针对代码格式、功能优化

1.优化todo建议
2.删除无用代码
This commit is contained in:
xiaqing
2023-08-09 20:59:54 +08:00
parent f310f65842
commit de941ec6ba
5 changed files with 51 additions and 243 deletions

View File

@ -4,7 +4,6 @@ export interface RecordVO {
id: number
bizId: string
bizType: string
type: string
title: string
description: string
point: number
@ -20,28 +19,3 @@ export interface RecordVO {
export const getRecordPage = async (params) => {
return await request.get({ url: `/point/record/page`, params })
}
// 查询用户积分记录详情
export const getRecord = async (id: number) => {
return await request.get({ url: `/point/record/get?id=` + id })
}
// 新增用户积分记录
export const createRecord = async (data: RecordVO) => {
return await request.post({ url: `/point/record/create`, data })
}
// 修改用户积分记录
export const updateRecord = async (data: RecordVO) => {
return await request.put({ url: `/point/record/update`, data })
}
// 删除用户积分记录
export const deleteRecord = async (id: number) => {
return await request.delete({ url: `/point/record/delete?id=` + id })
}
// 导出用户积分记录 Excel
export const exportRecord = async (params) => {
return await request.download({ url: `/point/record/export-excel`, params })
}