|
|
@ -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) |