45 lines
783 B
JavaScript
45 lines
783 B
JavaScript
|
import request from '@/utils/request'
|
||
|
|
||
|
// 查询植物识别日志列表
|
||
|
export function listLog(query) {
|
||
|
return request({
|
||
|
url: '/plant/identify/list',
|
||
|
method: 'get',
|
||
|
params: query
|
||
|
})
|
||
|
}
|
||
|
|
||
|
// 查询植物识别日志详细
|
||
|
export function getLog(id) {
|
||
|
return request({
|
||
|
url: '/plant/identify/' + id,
|
||
|
method: 'get'
|
||
|
})
|
||
|
}
|
||
|
|
||
|
// 新增植物识别日志
|
||
|
export function addLog(data) {
|
||
|
return request({
|
||
|
url: '/plant/identify',
|
||
|
method: 'post',
|
||
|
data: data
|
||
|
})
|
||
|
}
|
||
|
|
||
|
// 修改植物识别日志
|
||
|
export function updateLog(data) {
|
||
|
return request({
|
||
|
url: '/plant/identify',
|
||
|
method: 'put',
|
||
|
data: data
|
||
|
})
|
||
|
}
|
||
|
|
||
|
// 删除植物识别日志
|
||
|
export function delLog(id) {
|
||
|
return request({
|
||
|
url: '/plant/identify/' + id,
|
||
|
method: 'delete'
|
||
|
})
|
||
|
}
|