parent
3e549a6862
commit
1dca8476b3
@ -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 })
|
||||||
|
}
|
||||||
@ -0,0 +1,47 @@
|
|||||||
|
import request from '@/config/axios'
|
||||||
|
|
||||||
|
export interface RecordVO {
|
||||||
|
id: number
|
||||||
|
bizId: string
|
||||||
|
bizType: string
|
||||||
|
type: string
|
||||||
|
title: string
|
||||||
|
description: string
|
||||||
|
point: number
|
||||||
|
totalPoint: number
|
||||||
|
status: number
|
||||||
|
userId: number
|
||||||
|
freezingTime: Date
|
||||||
|
thawingTime: Date
|
||||||
|
createDate: Date
|
||||||
|
}
|
||||||
|
|
||||||
|
// 查询用户积分记录列表
|
||||||
|
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 })
|
||||||
|
}
|
||||||
@ -0,0 +1,37 @@
|
|||||||
|
import request from '@/config/axios'
|
||||||
|
|
||||||
|
export interface SignInConfigVO {
|
||||||
|
id: number
|
||||||
|
day: number
|
||||||
|
point: number
|
||||||
|
}
|
||||||
|
|
||||||
|
// 查询积分签到规则列表
|
||||||
|
export const getSignInConfigPage = async (params) => {
|
||||||
|
return await request.get({ url: `/point/sign-in-config/page`, params })
|
||||||
|
}
|
||||||
|
|
||||||
|
// 查询积分签到规则详情
|
||||||
|
export const getSignInConfig = async (id: number) => {
|
||||||
|
return await request.get({ url: `/point/sign-in-config/get?id=` + id })
|
||||||
|
}
|
||||||
|
|
||||||
|
// 新增积分签到规则
|
||||||
|
export const createSignInConfig = async (data: SignInConfigVO) => {
|
||||||
|
return await request.post({ url: `/point/sign-in-config/create`, data })
|
||||||
|
}
|
||||||
|
|
||||||
|
// 修改积分签到规则
|
||||||
|
export const updateSignInConfig = async (data: SignInConfigVO) => {
|
||||||
|
return await request.put({ url: `/point/sign-in-config/update`, data })
|
||||||
|
}
|
||||||
|
|
||||||
|
// 删除积分签到规则
|
||||||
|
export const deleteSignInConfig = async (id: number) => {
|
||||||
|
return await request.delete({ url: `/point/sign-in-config/delete?id=` + id })
|
||||||
|
}
|
||||||
|
|
||||||
|
// 导出积分签到规则 Excel
|
||||||
|
export const exportSignInConfig = async (params) => {
|
||||||
|
return await request.download({ url: `/point/sign-in-config/export-excel`, params })
|
||||||
|
}
|
||||||
@ -0,0 +1,38 @@
|
|||||||
|
import request from '@/config/axios'
|
||||||
|
|
||||||
|
export interface SignInRecordVO {
|
||||||
|
id: number
|
||||||
|
userId: number
|
||||||
|
day: number
|
||||||
|
point: number
|
||||||
|
}
|
||||||
|
|
||||||
|
// 查询用户签到积分列表
|
||||||
|
export const getSignInRecordPage = async (params) => {
|
||||||
|
return await request.get({ url: `/point/sign-in-record/page`, params })
|
||||||
|
}
|
||||||
|
|
||||||
|
// 查询用户签到积分详情
|
||||||
|
export const getSignInRecord = async (id: number) => {
|
||||||
|
return await request.get({ url: `/point/sign-in-record/get?id=` + id })
|
||||||
|
}
|
||||||
|
|
||||||
|
// 新增用户签到积分
|
||||||
|
export const createSignInRecord = async (data: SignInRecordVO) => {
|
||||||
|
return await request.post({ url: `/point/sign-in-record/create`, data })
|
||||||
|
}
|
||||||
|
|
||||||
|
// 修改用户签到积分
|
||||||
|
export const updateSignInRecord = async (data: SignInRecordVO) => {
|
||||||
|
return await request.put({ url: `/point/sign-in-record/update`, data })
|
||||||
|
}
|
||||||
|
|
||||||
|
// 删除用户签到积分
|
||||||
|
export const deleteSignInRecord = async (id: number) => {
|
||||||
|
return await request.delete({ url: `/point/sign-in-record/delete?id=` + id })
|
||||||
|
}
|
||||||
|
|
||||||
|
// 导出用户签到积分 Excel
|
||||||
|
export const exportSignInRecord = async (params) => {
|
||||||
|
return await request.download({ url: `/point/sign-in-record/export-excel`, params })
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue