use contract for api request

This commit is contained in:
hjlarry
2026-01-21 18:20:38 +08:00
parent eaf888b02a
commit 1b70a7e4c7
9 changed files with 478 additions and 144 deletions

View File

@ -0,0 +1,15 @@
import type { WorkflowOnlineUsersResponse } from '@/models/app'
import { type } from '@orpc/contract'
import { base } from '../base'
export const workflowOnlineUsersContract = base
.route({
path: '/apps/workflows/online-users',
method: 'GET',
})
.input(type<{
query: {
workflow_ids: string
}
}>())
.output(type<WorkflowOnlineUsersResponse>())