15 lines
453 B
TypeScript
15 lines
453 B
TypeScript
|
|
import type { PageRecord } from "@/lib/api"
|
||
|
|
import type { User } from "@/models/user"
|
||
|
|
import { callByUser } from "./base"
|
||
|
|
|
||
|
|
export async function listResourceLong(params: { page: number; size: number }) {
|
||
|
|
return callByUser<PageRecord<User>>("/api/admin/resource/long/page", params)
|
||
|
|
}
|
||
|
|
|
||
|
|
export async function listResourceShort(params: {
|
||
|
|
page: number
|
||
|
|
size: number
|
||
|
|
}) {
|
||
|
|
return callByUser<PageRecord<User>>("/api/admin/resource/short/page", params)
|
||
|
|
}
|