41 lines
1.1 KiB
TypeScript
41 lines
1.1 KiB
TypeScript
|
import request from '@/config/axios'
|
||
|
|
||
|
export interface ArticleVO {
|
||
|
id: number
|
||
|
title: string
|
||
|
collectionQuantity: string
|
||
|
pageView: string
|
||
|
introduction: string
|
||
|
inputarr: string[]
|
||
|
}
|
||
|
|
||
|
// 查询文章管理列表
|
||
|
export const selectDynamicData = async () => {
|
||
|
return await request.get({ url: `/intelligentForm/selectDynamicData` })
|
||
|
}
|
||
|
|
||
|
// // 查询文章管理详情
|
||
|
// export const saveDynamicData = async (id: number) => {
|
||
|
// return await request.get({ url: `/promotion/article/get?id=` + id })
|
||
|
// }
|
||
|
|
||
|
// 新增文章管理
|
||
|
export const saveDynamicData = async (data: ArticleVO) => {
|
||
|
return await request.post({ url: `/intelligentForm/saveDynamicData`, data })
|
||
|
}
|
||
|
|
||
|
// 查询文章管理列表
|
||
|
export const collectDataList = async (query: any) => {
|
||
|
return await request.get({ url: `/intelligentForm/collectDataList`, query })
|
||
|
}
|
||
|
|
||
|
// // 修改文章管理
|
||
|
// export const updateArticle = async (data: ArticleVO) => {
|
||
|
// return await request.put({ url: `/promotion/article/update`, data })
|
||
|
// }
|
||
|
|
||
|
// // 删除文章管理
|
||
|
// export const deleteArticle = async (id: number) => {
|
||
|
// return await request.delete({ url: `/promotion/article/delete?id=` + id })
|
||
|
// }
|