修改故事列表
This commit is contained in:
@@ -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,
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user