import request from "@/utils/request";

export interface DevicePageParam {
    pageNo?: number;
    pageSize?: number;
    memberId?: number | string;
    deviceFingerprint?: string;
    deviceModel?: string;
}

export function deviceMonitorPage(data: DevicePageParam) {
    return request({
        url: "admin/device-monitor/page",
        method: "post",
        params: data,
    });
}

export function deviceBan(data: { deviceFingerprint: string; reason?: string }) {
    return request({
        url: "admin/device-monitor/ban",
        method: "post",
        params: data,
    });
}

export function deviceUnban(data: { deviceFingerprint: string }) {
    return request({
        url: "admin/device-monitor/unban",
        method: "post",
        params: data,
    });
}
