feat: implement coupon management and receive flow
This commit is contained in:
@@ -20,4 +20,6 @@ export const userApi = {
|
||||
markAllNotificationsRead: () => request('/me/notifications/read-all', { method: 'POST' }),
|
||||
getFollowing: () => request('/me/following'),
|
||||
getCoupons: (status) => request(`/me/coupons?status=${status || 'unused'}`),
|
||||
getAvailableCoupons: (amount) => request(`/me/coupons/available?amount=${amount}`),
|
||||
receiveCoupon: (couponId) => request('/me/coupons/receive', { method: 'POST', body: { coupon_id: couponId } }),
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user