马宇豪
2025-03-04 1b9fea7d4af68d8f933b2dc42bf6084b9646f64c
src/api/intellectInspectSystem/RFID/index.ts
@@ -34,6 +34,15 @@
                data: data
            });
        },
        // v1
        getRFIDById: (data: object) => {
            return request({
                url: import.meta.env.VITE_API_URL + `/SafeCheckRfid/select/getRfidById`,
                method: 'post',
                data: data
            });
        },
        // v1
        getAllRFIDList: () => {
            return request({
@@ -43,10 +52,21 @@
        },
        // 获取图片上传地址
        getUploadUrl: () =>{
        getUploadUrl: (name: string) => {
            return request({
                url: import.meta.env.VITE_API_URL + `/SafeCheck/minio/file/presign`,
                method: 'get'
                method: 'post',
                data: { prefixName: name.split('.')[0], suffixName: name.split('.')[1] }
            });
        },
        uploadFile: (path: string, file: any) => {
            return request({
                headers: {
                    contentType: 'application/json;charset=UTF-8'
                },
                url: path,
                method: 'put',
                data: file
            });
        }
    };