cma_search/client/src/api/qa.js

68 lines
1.0 KiB
JavaScript

import request from '@/utils/request'
export function getgetMyRcs(query) {
return request({
url: '/info/qa/',
method: 'get',
params: query
})
}
export function getRc(id) {
return request({
url: `/info/qa/${id}/`,
method: 'get'
})
}
export function updateRc(id, data) {
return request({
url: `/info/qa/${id}/`,
method: 'put',
data
})
}
export function createRc(data) {
return request({
url: `/info/qa/`,
method: 'post',
data
})
}
export function getRc_activate() {
return request({
url: `/info/qa/activate_info/`,
method: 'get'
})
}
export function del_activate(id) {
return request({
url: `/info/qa/${id}/`,
method: 'delete'
})
}
export function exportData(data) {
return request({
url: `/info/qa/filter_by_date/`,
method: 'post',
data
})
}
export function impData(data) {
return request({
url: `/info/qa/imp/`,
method: 'post',
data
})
}