2081595154 | 58d9570 | 2025-06-09 14:46:58 +0800 | [diff] [blame] | 1 | import request from './request' |
2 | |||||
3 | export function getUserHistory(userId) { | ||||
4 | return request({ | ||||
5 | url: `/api/history/${userId}`, | ||||
6 | method: 'get' | ||||
7 | }) | ||||
8 | } | ||||
9 | |||||
10 | export function getUserHistoryByType(userId, type) { | ||||
11 | return request({ | ||||
12 | url: `/api/history/${userId}/${type}`, | ||||
13 | method: 'get' | ||||
14 | }) | ||||
15 | } |