Browse Source

坐标list获取

master
王梦远 1 week ago
parent
commit
56c5d73c59
  1. 2
      src/apis/point.ts
  2. 4
      src/apis/system.ts

2
src/apis/point.ts

@ -1,4 +1,4 @@
import http from 'libs/http'
export const getPointList = (): Promise<Point.Point[]> => http.post('/position/list')
export const getPointList = (): Promise<Point.Point[]> => http.get('/position/list')
export const updatePoint = (params: Point.UpdateParams): Promise<null> => http.put('/device-point', params)

4
src/apis/system.ts

@ -8,5 +8,5 @@ export const requireOutTray = (): Promise<{ moduleCode: string }[]> => http.get(
export const setIgnoreItem = (params: { ignoreSelfTestType: string, ignore: boolean }): Promise<null> => http.post('/self-test/set-ignore-item', params)
export const getTime = (): Promise<{ epochMilli: number }> => http.get('/sys/get-datetime')
export const setTime = (params: { epochMilli?: number }): Promise<null> => http.post('/sys/set-datetime', params)
export const configList = (): Promise<any[]> => http.get('/sys/config-list')
export const updateConfig = (params: System.SystemConfig): Promise<number> => http.post('/sys/update-config', params)
export const configList = (params: System.Page = { pageNum: 1, pageSize: 999 }): Promise<System.PageResponse<System.SystemConfig>> => http.post('/system-config/list', params)
export const updateConfig = (params: System.SystemConfig): Promise<number> => http.put('/system-config', params)
Loading…
Cancel
Save