| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465 |
- import request from '@/utils/request';
- import { AxiosPromise } from 'axios';
- export const getpassenger = () => {
- return request({
- url: '/statistic/passenger/flow',
- method: 'get'
- });
- };
- export const getInfo = (code) => {
- return request({
- url: '/system/common/cabinet/' + code + '/info',
- method: 'post'
- });
- }
- export const getInfoWait = async (code) => {
- const res = await request({
- url: '/system/common/cabinet/' + code + '/info',
- method: 'post'
- });
- if (res.code === 200) {
- return res.data;
- }
- return Promise.reject(new Error(res.message));
- }
- export const getBoxInfo = (code) => {
- return request({
- url: '/system/common/cabinet/' + code + '/allbox/info',
- method: 'post'
- });
- }
- export const getLock = (code, lockAddress) => {
- return request({
- url: '/system/common/cabinet/' + code + '/openlock/' + lockAddress,
- method: 'post'
- });
- }
- export const openall = (code) => {
- return request({
- url: '/system/common/cabinet/' + code + '/lock/openall',
- method: 'post'
- });
- }
- // export const openall = (code) =>{
- // return request({
- // url: '/system/common/cabinet/{code}/box/{boxuuid}/clear',
- // method: 'post'
- // });
- // }
- // export const openall = (code) =>{
- // return request({
- // url: '/system/common/cabinet/{code}/box/{boxuuid}/openclear',
- // method: 'post'
- // });
- // }
|