feat: add post buy count

This commit is contained in:
yanghao05
2025-04-18 22:10:28 +08:00
parent 2cb7960302
commit 192bd07b9e
13 changed files with 429 additions and 11 deletions

View File

@@ -23,4 +23,7 @@ export const postService = {
deletePost(id) {
return httpClient.delete(`/admin/posts/${id}`);
},
sendTo(id, userId) {
return httpClient.post(`/admin/posts/${id}/send-to/${userId}`);
},
}

View File

@@ -10,6 +10,9 @@ export const userService = {
}
});
},
searchUser(id) {
return httpClient.get(`/admin/users/${id}`);
},
getUser(id) {
return httpClient.get(`/admin/users/${id}`);
},