feat: 添加仅已购用户筛选功能

This commit is contained in:
2025-12-20 23:30:51 +08:00
parent 257c9a286a
commit 661a595fa7
4 changed files with 67 additions and 8 deletions

View File

@@ -1,12 +1,13 @@
import httpClient from './httpClient';
export const userService = {
getUsers({ page = 1, limit = 10, keyword = '' } = {}) {
getUsers({ page = 1, limit = 10, keyword = '', onlyBought = false } = {}) {
return httpClient.get('/users', {
params: {
page,
limit,
keyword: keyword.trim()
keyword: keyword.trim(),
onlyBought
}
});
},