bugfix: 一些bug修复
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
import type {
|
||||
IClearCacheResponse,
|
||||
IHealthResponse,
|
||||
IRecordsRequest,
|
||||
IRecordsResponse,
|
||||
ISearchRequest,
|
||||
ISearchResponse,
|
||||
@@ -39,9 +40,13 @@ export class AnswerService {
|
||||
}
|
||||
|
||||
/** 读取最近问答记录,供 Dashboard 表格展示 */
|
||||
public static getRecords() {
|
||||
public static getRecords(request: IRecordsRequest) {
|
||||
return BaseClientService.get<IRecordsResponse>(
|
||||
`${AnswerService.basePath}/records`
|
||||
`${AnswerService.basePath}/records`,
|
||||
{
|
||||
page: request.page,
|
||||
size: request.size
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user