2025-12-30 18:35:37 +08:00
|
|
|
import type { PageRecord } from "@/lib/api"
|
2026-01-05 09:14:41 +08:00
|
|
|
import type { Batch } from "@/models/batch"
|
2025-12-30 18:35:37 +08:00
|
|
|
import { callByUser } from "./base"
|
|
|
|
|
|
2026-03-26 15:27:52 +08:00
|
|
|
export async function getPageBatch(params: {
|
|
|
|
|
page: number
|
|
|
|
|
size: number
|
|
|
|
|
user_phone?: string
|
|
|
|
|
resource_no?: string
|
|
|
|
|
batch_no?: string
|
|
|
|
|
prov?: string
|
|
|
|
|
city?: string
|
|
|
|
|
isp?: string
|
|
|
|
|
created_at_start?: Date
|
|
|
|
|
created_at_end?: Date
|
|
|
|
|
}) {
|
2026-01-05 09:14:41 +08:00
|
|
|
return callByUser<PageRecord<Batch>>("/api/admin/batch/page", params)
|
2025-12-30 18:35:37 +08:00
|
|
|
}
|