mirror of
https://github.com/langgenius/dify.git
synced 2026-05-06 02:18:08 +08:00
chore: struct to wrap with content
This commit is contained in:
@ -1,6 +1,5 @@
|
||||
import type {
|
||||
AppAssetDeleteResponse,
|
||||
AppAssetFileContentResponse,
|
||||
AppAssetFileDownloadUrlResponse,
|
||||
AppAssetNode,
|
||||
AppAssetPublishResponse,
|
||||
@ -9,7 +8,6 @@ import type {
|
||||
MoveNodePayload,
|
||||
RenameNodePayload,
|
||||
ReorderNodePayload,
|
||||
UpdateFileContentPayload,
|
||||
} from '@/types/app-asset'
|
||||
import { type } from '@orpc/contract'
|
||||
import { base } from '../base'
|
||||
@ -53,7 +51,7 @@ export const getFileContentContract = base
|
||||
.input(type<{
|
||||
params: { appId: string, nodeId: string }
|
||||
}>())
|
||||
.output(type<AppAssetFileContentResponse>())
|
||||
.output(type<{ content: string }>())
|
||||
|
||||
export const getFileDownloadUrlContract = base
|
||||
.route({
|
||||
@ -72,7 +70,7 @@ export const updateFileContentContract = base
|
||||
})
|
||||
.input(type<{
|
||||
params: { appId: string, nodeId: string }
|
||||
body: UpdateFileContentPayload
|
||||
body: { content: string }
|
||||
}>())
|
||||
.output(type<AppAssetNode>())
|
||||
|
||||
|
||||
Reference in New Issue
Block a user