2025-12-30 18:35:37 +08:00
|
|
|
import type { PageRecord } from "@/lib/api"
|
2026-01-05 09:14:41 +08:00
|
|
|
import type { Channel } from "@/models/channel"
|
2025-12-30 18:35:37 +08:00
|
|
|
import { callByUser } from "./base"
|
|
|
|
|
|
2026-03-26 15:27:52 +08:00
|
|
|
export async function getPageChannel(params: {
|
|
|
|
|
page: number
|
|
|
|
|
size: number
|
|
|
|
|
batch_no?: string
|
|
|
|
|
user_phone?: string
|
|
|
|
|
resource_no?: string
|
|
|
|
|
proxy_port?: number
|
|
|
|
|
proxy_host?: string
|
|
|
|
|
node_ip?: string
|
|
|
|
|
expired_at_start?: Date
|
|
|
|
|
expired_at_end?: Date
|
|
|
|
|
}) {
|
2026-01-05 09:14:41 +08:00
|
|
|
return callByUser<PageRecord<Channel>>("/api/admin/channel/page", params)
|
2025-12-30 18:35:37 +08:00
|
|
|
}
|
2026-04-09 17:08:59 +08:00
|
|
|
export async function getChannel(params: {
|
|
|
|
|
page: number
|
|
|
|
|
size: number
|
|
|
|
|
user_id: number
|
|
|
|
|
batch_no?: string
|
|
|
|
|
user_phone?: string
|
|
|
|
|
resource_no?: string
|
|
|
|
|
proxy_port?: number
|
|
|
|
|
proxy_host?: string
|
|
|
|
|
node_ip?: string
|
|
|
|
|
expired_at_start?: Date
|
|
|
|
|
expired_at_end?: Date
|
|
|
|
|
}) {
|
|
|
|
|
return callByUser<PageRecord<Channel>>(
|
|
|
|
|
"/api/admin/channel/page/of-user",
|
|
|
|
|
params,
|
|
|
|
|
)
|
|
|
|
|
}
|