feat(api-server): cache puzzle gallery card view
This commit is contained in:
@@ -2,6 +2,7 @@ import type {
|
||||
PuzzleAgentSessionSnapshot,
|
||||
} from '../../../packages/shared/src/contracts/puzzleAgentSession';
|
||||
import type {
|
||||
PuzzleGalleryResponse,
|
||||
PuzzleWorksResponse,
|
||||
PuzzleWorkSummary,
|
||||
} from '../../../packages/shared/src/contracts/puzzleWorkSummary';
|
||||
@@ -18,7 +19,7 @@ const PUZZLE_GALLERY_READ_RETRY: ApiRetryOptions = {
|
||||
* 读取拼图广场列表。
|
||||
*/
|
||||
export async function listPuzzleGallery() {
|
||||
return requestJson<PuzzleWorksResponse>(
|
||||
return requestJson<PuzzleGalleryResponse>(
|
||||
PUZZLE_GALLERY_API_BASE,
|
||||
{
|
||||
method: 'GET',
|
||||
|
||||
Reference in New Issue
Block a user