Commit 59636015 authored by 张伯涛's avatar 张伯涛

添加ossInfo模块

parent 1676b4c4
import request from '@/utils/request'
import Qs from 'qs'
/**
* 1. 列表查询
* 2. 查询详细信息
* 3. 新增
* 4. 修改
* 5. 逻辑删除
* 6. 导出
*
*/
// 1. 查询列表
export function listOssInfo(query) {
return request({
url: '/ossinfo/list',
method: 'get',
params: query
})
}
// 2. 查询详细信息
export function getOssInfo(businessId) {
return request({
url: '/ossinfo/detail/' + businessId,
method: 'get'
})
}
// 3. 新增
export function addOssInfo(data) {
data = Qs.stringify(data)
return request({
url: '/ossinfo/add',
method: 'post',
data: data
})
}
// 4. 修改
export function updateOssInfo(data) {
const businessId = data.businessId
data = Qs.stringify(data)
return request({
url: '/ossinfo/update/' + businessId,
method: 'put',
data
})
}
// 5. 逻辑删除
export function delOssInfo(businessId) {
return request({
url: '/ossinfo/deleteLogical/' + businessId,
method: 'delete'
})
}
// 6. 导出
export function exportOssInfo(query) {
return request({
url: '/ossinfo/export',
method: 'get',
params: query,
responseType: 'blob'
})
}
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment