import request from '@/config/axios'
|
|
export interface DemoVO {
|
id: number
|
code: string
|
name: string
|
icon: string
|
orderNum: number
|
status: number
|
remark: string
|
createTime: Date
|
}
|
|
// 查询列表
|
export const getDemoPage = (params: PageParam) => {
|
return request.get({ url: 'http://localhost:8088/admin-api/shasteel/demo/page', params })
|
}
|
|
// 获得
|
export const getDemo = (id: number) => {
|
return request.get({ url: 'http://localhost:8088/admin-api/shasteel/demo/get?id=' + id })
|
}
|
|
// 查询应用列表
|
export const getDemoList = () => {
|
return request.get({ url: 'http://localhost:8088/admin-api/shasteel/demo/list' })
|
}
|
|
// 新增
|
export const createDemo = (data: DemoVO) => {
|
return request.post({ url: 'http://localhost:8088/admin-api/shasteel/demo/create', data })
|
}
|
|
// 修改
|
export const updateDemo = (data: DemoVO) => {
|
return request.put({ url: 'http://localhost:8088/admin-api/shasteel/demo/update', data })
|
}
|
|
// 删除
|
export const deleteDemo = (id: number) => {
|
return request.delete({ url: 'http://localhost:8088/admin-api/shasteel/demo/delete?id=' + id })
|
}
|
|
// 导出
|
export const exportDemo = (params: DemoVO) => {
|
return request.download({ url: 'http://localhost:8088/admin-api/shasteel/demo/export-excel', params })
|
}
|