gaoluyang
2026-06-24 712aa51536236d43e87273e4ce45ac5691dffad8
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import type { PageParam, PageResult } from '..\..\..\..\packages\effects\request\src';
 
import { requestClient } from '#/api/request';
 
export namespace MallHistoryApi {
  /** 商品浏览记录 */
  export interface BrowseHistory {
    id?: number; // 记录编号
    userId?: number; // 用户编号
    spuId?: number; // 商品 SPU 编号
    createTime?: Date; // 浏览时间
  }
}
 
/** 获得商品浏览记录分页 */
export function getBrowseHistoryPage(params: PageParam) {
  return requestClient.get<PageResult<MallHistoryApi.BrowseHistory>>(
    '/product/browse-history/page',
    { params },
  );
}