import request from '@/utils/axios.ts';

// ------ 运单管理 -------
// 运单管理 - 列表
// TODO: Backend endpoint /inspection/list does not exist
export function waybillList(data) {
    return Promise.resolve({
        code: 200,
        data: {
            list: [],
            total: 0
        }
    });
    // return request({
    //     url: '/inspection/list',
    //     method: 'POST',
    //     data,
    // });
}
// 运单管理 - 详情
// TODO: Backend endpoint /inspection/detail does not exist
export function waybillDetail(data) {
    return Promise.resolve({
        code: 200,
        data: {}
    });
    // return request({
    //     url: '/inspection/detail',
    //     method: 'POST',
    //     data,
    // });
}

// 智能耳标 - 列表
// TODO: Backend endpoint /device/listInfo does not exist
export function earList(data) {
    return Promise.resolve({
        code: 200,
        data: {
            list: [],
            total: 0
        }
    });
    // return request({
    //     url: '/device/listInfo',
    //     method: 'POST',
    //     data,
    // });
}

// 主机 - 定位
// TODO: Backend endpoint /device/serverLocation does not exist
export function hostLocation(data) {
    return Promise.resolve({
        code: 200,
        data: {}
    });
    // return request({
    //     url: '/device/serverLocation',
    //     method: 'POST',
    //     data,
    // });
}

// 主机 - 轨迹
// TODO: Backend endpoint /device/serverTrack does not exist
export function hostTrack(data) {
    return Promise.resolve({
        code: 200,
        data: []
    });
    // return request({
    //     url: '/device/serverTrack',
    //     method: 'POST',
    //     data,
    // });
}

// 运单管理 - 确定入场
// TODO: Backend endpoint /inspection/submit does not exist
export function waybillSubmit(data) {
    return Promise.resolve({
        code: 200,
        msg: '操作成功'
    });
    // return request({
    //     url: '/inspection/submit',
    //     method: 'POST',
    //     data,
    // });
}

// ----------- 入场/出场扫描记录 ----------
// 入场/出场扫描记录 - 列表
// TODO: Backend endpoint /inspection/logList does not exist
export function scanList(data) {
    return Promise.resolve({
        code: 200,
        data: {
            list: [],
            total: 0
        }
    });
    // return request({
    //     url: '/inspection/logList',
    //     method: 'POST',
    //     data,
    // });
}

// ----------- 隔离场羊只信息 ----------
// 隔离场羊只信息 - 列表
// TODO: Backend endpoint /inspection/sheepList does not exist
export function sheepList(data) {
    return Promise.resolve({
        code: 200,
        data: {
            list: [],
            total: 0
        }
    });
    // return request({
    //     url: '/inspection/sheepList',
    //     method: 'POST',
    //     data,
    // });
}

// 隔离场羊只信息 - 手动出场
// TODO: Backend endpoint /deliver/exitOccasion does not exist
export function sheepExit(data) {
    return Promise.resolve({
        code: 200,
        msg: '操作成功'
    });
    // return request({
    //     url: '/deliver/exitOccasion',
    //     method: 'POST',
    //     data,
    // });
}

// 隔离场羊只信息 - 导出
// TODO: Backend endpoint /inspection/sheepExport does not exist
export function sheepExport(data) {
    return Promise.resolve({
        code: 200,
        msg: '导出成功'
    });
    // return request({
    //     url: '/inspection/sheepExport',
    //     method: 'POST',
    //     responseType: 'blob',
    //     data,
    // });
}
