mirror of
https://gitee.com/hhyykk/ipms-sjy-ui.git
synced 2025-07-13 18:35:07 +08:00
初始化积分模块
1.积分设置管理 2.积分签到规则管理 3.用户积分记录管理 4.用户签到积分管理
This commit is contained in:
39
src/api/point/config/index.ts
Normal file
39
src/api/point/config/index.ts
Normal file
@ -0,0 +1,39 @@
|
||||
import request from '@/config/axios'
|
||||
|
||||
export interface ConfigVO {
|
||||
id: number
|
||||
tradeDeductEnable: number
|
||||
tradeDeductUnitPrice: number
|
||||
tradeDeductMaxPrice: number
|
||||
tradeGivePoint: number
|
||||
}
|
||||
|
||||
// 查询积分设置列表
|
||||
export const getConfigPage = async (params) => {
|
||||
return await request.get({ url: `/point/config/page`, params })
|
||||
}
|
||||
|
||||
// 查询积分设置详情
|
||||
export const getConfig = async (id: number) => {
|
||||
return await request.get({ url: `/point/config/get?id=` + id })
|
||||
}
|
||||
|
||||
// 新增积分设置
|
||||
export const createConfig = async (data: ConfigVO) => {
|
||||
return await request.post({ url: `/point/config/create`, data })
|
||||
}
|
||||
|
||||
// 修改积分设置
|
||||
export const updateConfig = async (data: ConfigVO) => {
|
||||
return await request.put({ url: `/point/config/update`, data })
|
||||
}
|
||||
|
||||
// 删除积分设置
|
||||
export const deleteConfig = async (id: number) => {
|
||||
return await request.delete({ url: `/point/config/delete?id=` + id })
|
||||
}
|
||||
|
||||
// 导出积分设置 Excel
|
||||
export const exportConfig = async (params) => {
|
||||
return await request.download({ url: `/point/config/export-excel`, params })
|
||||
}
|
Reference in New Issue
Block a user