| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566 |
- /*
- * @Author: liuzhenlin 461480418@qq.ocm
- * @Date: 2023-01-19 14:06:58
- * @LastEditors: liuzhenlin
- * @LastEditTime: 2023-02-15 18:45:00
- * @Description: file content
- * @FilePath: \oms\api\system\user.js
- */
- import request from '/@/utils/micro_request.js'
- const instrPath = import.meta.env.VITE_INSTR_ADMIN
- export function useInstrApi() {
- return {
- // 获取使用人仪器列表
- getList: (query?: object) => {
- return request.postRequest(instrPath, 'ZunyiCustom', 'GetList', query)
- },
- // 获取仪器详情
- getDetail: (query?: object) => {
- return request.postRequest(instrPath, 'TusInstrument', 'GetEntityById', query)
- },
- // 获取设置详情
- getSettingDetail: (query?: object) => {
- return request.postRequest(instrPath, 'TusInstrument', 'GetConfig', query)
- },
- // 获取全部预约情况
- getAppointInfo: (query?: object) => {
- return request.postRequest(instrPath, 'TusInstrumentAppointment', 'AppointInfo', query)
- },
- // 关注
- follow: (query?: object) => {
- return request.postRequest(instrPath, 'TusInstrument', 'Follow', query)
- },
- // 取关
- unfollow: (query?: object) => {
- return request.postRequest(instrPath, 'TusInstrument', 'Unfollow', query)
- },
- // 二维码解码
- decode: (query?: object) => {
- return request.postRequest(instrPath, 'TusInstrument', 'QrcodeDecrypto', query)
- },
- // 扫码开关
- switch: (query?: object) => {
- return request.postRequest(instrPath, 'TusInstrument', 'Switch', query)
- },
- // 蓝牙获取连接码
- getBlueToothCode: (query?: object) => {
- return request.postRequest(instrPath, 'TusInstrument', 'BluetoothCode', query)
- },
- // 根据编码获取仪器详情
- getIdByTerminal: (query?: object) => {
- return request.postRequest(instrPath, 'TusInstrument', 'GetEntityByTerminal', query)
- },
- // 获取我的信用分
- getMyScore: (query?: object) => {
- return request.postRequest(instrPath, 'TusBlacklist', 'MyScore', query)
- },
- // 下一个预约是否可以直接上机
- nextCanGeton: (query?: object) => {
- return request.postRequest(instrPath, 'TusInstrumentAppointment', 'NextCanGeton', query)
- },
- openBlueLock: (query?: object) => {
- return request.postRequest(instrPath, 'TusInstrument', 'OpenLock', query)
- }
- }
- }
|