mirror of
https://github.com/jiangrui1994/CloudSaver.git
synced 2026-01-12 08:08:46 +08:00
feat:版本迭代
This commit is contained in:
11
frontend/src/api/douban.ts
Normal file
11
frontend/src/api/douban.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
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;
|
||||
},
|
||||
};
|
||||
Reference in New Issue
Block a user