mirror of
https://github.com/jiangrui1994/CloudSaver.git
synced 2026-01-12 16:18:45 +08:00
12 lines
294 B
TypeScript
12 lines
294 B
TypeScript
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;
|
|
},
|
|
};
|