Files
wms-ui/src/apis/weightManage/ys.ts

24 lines
560 B
TypeScript
Raw Normal View History

2026-03-23 18:02:11 +08:00
import http from '@/utils/http'
const BASE_URL = '/api/ys'
2026-04-27 16:14:26 +08:00
/** @desc 启动宇视SDK */
2026-03-23 18:02:11 +08:00
export function getEnterWeighPage() {
return http.get<any>(`${BASE_URL}/enter-weigh-page`)
}
2026-04-27 16:14:26 +08:00
/** @desc 退出宇视SDK */
2026-03-23 18:02:11 +08:00
export function getLeaveWeighPage() {
return http.get<any>(`${BASE_URL}/leave-weigh-page`)
}
/** @desc 抓拍图片 */
2026-04-12 19:57:14 +08:00
export function getCaptureImage(data: any) {
return http.get<any>(`${BASE_URL}/capture-image`, data)
2026-03-23 18:02:11 +08:00
}
2026-04-27 16:14:26 +08:00
/** @desc 检查宇视SDK状态 */
2026-03-23 18:02:11 +08:00
export function getCheckStatus() {
return http.get<any>(`${BASE_URL}/status`)
}