File size: 294 Bytes
f0953a4
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
import request from "@/utils/request";
import { HotListItem, HotListParams } from "@/types/douban";

export const doubanApi = {
  async getHotList(params: HotListParams) {
    const { data } = await request.get<HotListItem[]>("/api/douban/hot", {
      params,
    });
    return data;
  },
};