Files
web/src/actions/batch.ts

9 lines
264 B
TypeScript
Raw Normal View History

'use server'
import {PageRecord} from '@/lib/api'
import {Batch} from '@/lib/models/batch'
import {callByUser} from './base'
export async function pageBatch(props: {page: number, size: number}) {
return callByUser<PageRecord<Batch>>('/api/batch/page', props)
}