ng / frontend /src /api /resource.ts
epii-1
222222
f0953a4
raw
history blame contribute delete
309 Bytes
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 },
});
},
};