修改故事列表

This commit is contained in:
jiangh277
2025-08-07 19:48:36 +08:00
parent 182a58d0db
commit efd3f4a82c
8 changed files with 202 additions and 85 deletions

View File

@@ -1,12 +1,14 @@
import { request } from '@umijs/max';
import { StoryItem, StoryType } from './data.d';
import {CommonResponse} from "@/types/common";
import {CommonListResponse, CommonResponse} from "@/types/common";
type ParamsType = {
count?: number;
instanceId?: string;
storyName?: string;
} & Partial<StoryType>;
pageSize?: number;
current?: number;
} & Partial<StoryType> & Partial<StoryItem>;
export async function queryTimelineList(
params: ParamsType,
@@ -55,12 +57,10 @@ export async function addStoryItem(params: FormData): Promise<any> {
});
}
export async function queryStoryItem(storyInstanceId: string): Promise<{ data: StoryItem[] }> {
export async function queryStoryItem(params: ParamsType): Promise<{ data: CommonListResponse<StoryItem> }> {
return request(`/story/item/list`, {
method: 'GET',
params: {
storyInstanceId,
},
params: params,
});
}