/** * @description 获取用户最近访问列表(数据地图-我的浏览) */ import { getUrl } from 'src/utils/getUrl'; import Request from 'src/utils/requests'; import * as defs from '../../baseClass'; export class Params { /** page */ page?: number; /** offset */ offset?: number; /** pageSize */ pageSize?: number; /** doNotCount */ doNotCount?: boolean; /** env */ env: 'DEV' | 'PROD'; } export const init = new defs.PagedData(); export async function request(params = {}) { return Request({ url: '/api/dip/visit/history/list', params, method: 'get', }); } export function createFetchAction(types, stateKey) { return (params = {}, meta?: any) => { return { types, meta, stateKey, method: 'GET', url: getUrl('/api/dip/visit/history/list', params, 'GET'), params, init, }; }; }