会员签到针对代码格式、功能优化

1.优化todo建议
 2.删除无用代码
This commit is contained in:
xiaqing
2023-08-09 16:14:00 +08:00
parent ac0f387322
commit f310f65842
6 changed files with 54 additions and 251 deletions

View File

@ -2,13 +2,14 @@ import request from '@/config/axios'
export interface SignInConfigVO {
id: number
day: number
point: number
day: number | null
point: number | null
isEnable: boolean | null
}
// 查询积分签到规则列表
export const getSignInConfigPage = async (params) => {
return await request.get({ url: `/point/sign-in-config/page`, params })
export const getSignInConfigPage = async () => {
return await request.get({ url: `/point/sign-in-config/list` })
}
// 查询积分签到规则详情
@ -30,8 +31,3 @@ export const updateSignInConfig = async (data: SignInConfigVO) => {
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 })
}

View File

@ -12,26 +12,6 @@ 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 })