You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gcgj-dify-1.7.0/web/models/history.ts

12 lines
228 B
TypeScript

export type History = {
id: string
source: string
target: string
}
export type HistoryResponse = {
histories: History[]
}
export const fetchHistories = (url: string) =>
fetch(url).then<HistoryResponse>(r => r.json())