| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980 |
- import { request } from "@/utils/request";
- /**
- * 门禁接口集合
- * @method Select 列表查询
- * @method Update 列表修改
- * @method Insert 列表新增
- * @method Delete 列表删除
- * @method RecordInsert 记录列表新增
- * @method RecordSelect 记录列表查询
- * @method control 开门
- */
- export function doorApi() {
- return {
- Select: (data) => {
- return request({
- url: `/service-eg/egDevice/page`,
- method: 'POST',
- data,
- });
- },
- Update: (data) => {
- return request({
- url: `/service-eg/egDevice`,
- method: 'PUT',
- data,
- });
- },
- Insert: (data) => {
- return request({
- url: `/service-eg/egDevice`,
- method: 'POST',
- data,
- });
- },
- Delete: (data) => {
- return request({
- url: `/service-eg/egDevice/` + data,
- method: 'DELETE',
- });
- },
- RecordInsert: (data) => {
- return request({
- url: `/service-eg/egRecord`,
- method: 'POST',
- data,
- });
- },
- MyPage: (data) => {
- return request({
- url: `/service-eg/egDevice/wePage`,
- method: 'POST',
- data,
- });
- },
- RecordSelect: (data) => {
- return request({
- url: `/service-eg/egRecord/page`,
- method: 'POST',
- data,
- });
- },
- control: (data) => {
- return request({
- url: `/service-eg/egDevice/control`,
- method: 'GET',
- data,
- });
- },
- };
- }
- //门禁设备心跳接口
- export function egDeviceHeartbeat(data) {
- return request({
- url: '/service-eg/egDeviceHeartbeat/escalation',
- method: 'POST',
- data
- })
- }
|