|  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | // 查询 | 
|---|
|  |  |  | export function fetchList (data) { | 
|---|
|  |  |  | return request.post('/business/device/page', data, { | 
|---|
|  |  |  | return request.post('/visitsAdmin/cloudService/business/device/page', data, { | 
|---|
|  |  |  | trim: true | 
|---|
|  |  |  | }) | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | // 同步 | 
|---|
|  |  |  | export function syncDevices (data) { | 
|---|
|  |  |  | return request.post('/business/hksync/syncDevices', data) | 
|---|
|  |  |  | return request.post('/visitsAdmin/cloudService/business/hksync/syncDevices', data) | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | // 获取门禁集合-提供给门禁组 | 
|---|
|  |  |  | export function getList (data) { | 
|---|
|  |  |  | return request.post('/business/device/getList', data) | 
|---|
|  |  |  | return request.post('/visitsAdmin/cloudService/business/device/getList', data) | 
|---|
|  |  |  | } | 
|---|
|  |  |  | export function getDeviceRoleList (data) { | 
|---|
|  |  |  | return request.post('/visitsAdmin/cloudService/business/deviceRole/list', data) | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | // 修改 | 
|---|
|  |  |  | export function updateById (data) { | 
|---|
|  |  |  | return request.post('/business/device/updateById', data) | 
|---|
|  |  |  | return request.post('/visitsAdmin/cloudService/business/device/updateById', data) | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | // 修改是否门禁入口 | 
|---|
|  |  |  | export function updateEntranceById (data) { | 
|---|
|  |  |  | return request.post('/business/device/updateEntranceById', data) | 
|---|
|  |  |  | return request.post('/visitsAdmin/cloudService/business/device/updateEntranceById', data) | 
|---|
|  |  |  | } | 
|---|
|  |  |  | // 发生led屏内容 | 
|---|
|  |  |  | export function setLedContent (data) { | 
|---|
|  |  |  | return request.post('/visitsAdmin/cloudService/business/hksync/setLedContent', data) | 
|---|
|  |  |  | } | 
|---|