9 lines
264 B
TypeScript
9 lines
264 B
TypeScript
'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)
|
|
}
|