初始版本

This commit is contained in:
2026-04-23 16:30:57 +08:00
commit 0d0683a6e6
538 changed files with 113042 additions and 0 deletions

View File

@@ -0,0 +1,32 @@
import request from '@/utils/request'
import type { ApiResult, PageResult } from '@/api'
import type { UserPointLog, UserPointLogParam } from './model'
import { SERVER_API_URL } from '@/config/setting'
/**
* 分页查询积分明细
*/
export async function pageUserPointLog(params: UserPointLogParam) {
const res = await request.get<ApiResult<PageResult<UserPointLog>>>(
SERVER_API_URL + '/sys/user-point-log/page',
{ params }
)
if (res.data.code === 0) {
return res.data.data
}
return Promise.reject(new Error(res.data.message))
}
/**
* 查询积分明细列表
*/
export async function listUserPointLog(params?: UserPointLogParam) {
const res = await request.get<ApiResult<UserPointLog[]>>(
SERVER_API_URL + '/sys/user-point-log',
{ params }
)
if (res.data.code === 0 && res.data.data) {
return res.data.data
}
return Promise.reject(new Error(res.data.message))
}