import request from '@/utils/request'

export interface DeviceRegisterPayload {
    device_id: string
    platform?: string
    system?: string
    model?: string
    brand?: string
    app_version?: string
    app_version_code?: number
    screen_width?: number
    screen_height?: number
    network_type?: string
    language?: string
    timezone?: string
    push_cid?: string
    extra?: string
}

export function registerDevice(data: DeviceRegisterPayload) {
    return request.post({ url: '/device/register', data }, { withToken: false })
}
