// Author: fruit.com.cn import { http } from './index'; import { toQuery } from './query'; export const watchApi = { report: (body, options) => http.post('/app/watch/progress', body, options), recent: (pageIndex = 1, pageSize = 20, options) => http.get(`/app/watch/recent${toQuery({ pageIndex, pageSize })}`, options), clear: (options) => http.delete('/app/watch/progress', options), };