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