调整列表字段和枚举值转换
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import type { PageRecord } from "@/lib/api"
|
||||
import type { User } from "@/models/user"
|
||||
import type { Batch } from "@/models/batch"
|
||||
import { callByUser } from "./base"
|
||||
|
||||
export async function getPageBatch(params: { page: number; size: number }) {
|
||||
return callByUser<PageRecord<User>>("/api/admin/batch/page", params)
|
||||
return callByUser<PageRecord<Batch>>("/api/admin/batch/page", params)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user