fix: resolve frontend build error and order refund bug, add member price filter

This commit is contained in:
2026-01-07 21:49:04 +08:00
parent 5b45f7d5c4
commit a1de16bc01
18 changed files with 772 additions and 282 deletions

View File

@@ -16,6 +16,8 @@ export const userApi = {
addLike: (contentId) => request(`/me/likes?content_id=${contentId}`, { method: 'POST' }),
removeLike: (contentId) => request(`/me/likes/${contentId}`, { method: 'DELETE' }),
getNotifications: (type, page) => request(`/me/notifications?type=${type || 'all'}&page=${page || 1}`),
markNotificationRead: (id) => request(`/me/notifications/${id}/read`, { method: 'POST' }),
markAllNotificationsRead: () => request('/me/notifications/read-all', { method: 'POST' }),
getFollowing: () => request('/me/following'),
getCoupons: (status) => request(`/me/coupons?status=${status || 'unused'}`),
};