Files
FiDA_Front/src/api/depth-canvas.ts

55 lines
974 B
TypeScript
Raw Normal View History

2026-03-20 09:46:15 +08:00
import request from '@/utils/request'
/**
*
* @param id depth id
* @returns
*/
export const getDepthCanvas = (id: string) => {
return request({
url: `/api/deep-canvas/${id}`,
method: 'get',
loading: true,
})
}
/**
*
* @param data depth的画布数据
* @returns
*/
export const saveDepthCanvas = (data: object) => {
return request({
url: `/api/deep-canvas/update`,
method: 'put',
data,
loading: true,
})
}
/**
*
* @param id depth id
* @returns
*/
export const deleteDepthCanvas = (id: string) => {
return request({
url: `/api/deep-canvas/${id}`,
method: 'delete',
loading: true,
})
}
2026-03-27 16:07:13 +08:00
/**
*
* @param data
* @returns
*/
export const getSegAnythingImage = (data: object) => {
return request({
url: `/api/python/segAnything`,
method: 'post',
data,
})
}