猜你像搜索
This commit is contained in:
44
ruoyi-ui/src/api/search/content.js
Normal file
44
ruoyi-ui/src/api/search/content.js
Normal file
@@ -0,0 +1,44 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查询【请填写功能名称】列表
|
||||
export function listContent(query) {
|
||||
return request({
|
||||
url: '/back/content/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询【请填写功能名称】详细
|
||||
export function getContent(id) {
|
||||
return request({
|
||||
url: '/back/content/' + id,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增【请填写功能名称】
|
||||
export function addContent(data) {
|
||||
return request({
|
||||
url: '/back/content',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改【请填写功能名称】
|
||||
export function updateContent(data) {
|
||||
return request({
|
||||
url: '/back/content',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除【请填写功能名称】
|
||||
export function delContent(id) {
|
||||
return request({
|
||||
url: '/back/content/' + id,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user