mirror of
https://github.com/jiangrui1994/CloudSaver.git
synced 2026-01-10 07:08:46 +08:00
11 lines
309 B
TypeScript
11 lines
309 B
TypeScript
import request from "@/utils/request";
|
|
import type { Resource } from "@/types/index";
|
|
|
|
export const resourceApi = {
|
|
search(keyword: string, channelId?: string, lastMessageId?: string) {
|
|
return request.get<Resource[]>(`/api/search`, {
|
|
params: { keyword, channelId, lastMessageId },
|
|
});
|
|
},
|
|
};
|