12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182 |
- // 组件
- import request from '@/utils/request'
- //获取组件列表
- export const getComponentList = (data) => {
- return request({
- url: '/public/getComponentList',
- method: 'post',
- data
- })
- }
- //新增组件
- export const addComponent = (data) => {
- return request({
- url: '/public/addComponent',
- method: 'post',
- data
- })
- }
- //删除组件
- export const delComponent = (data) => {
- return request({
- url: '/public/delComponent',
- method: 'post',
- data
- })
- }
- //编辑组件
- export const updateComponent = (data) => {
- return request({
- url: '/public/updateComponent',
- method: 'post',
- data
- })
- }
- //获取组件详情
- export const getComponentInfo = (data) => {
- return request({
- url: '/public/getComponentInfo',
- method: 'post',
- data
- })
- }
- // -------------自助建站-*-静态资源管理-----fr------start
- //获取静态资源列表
- export const getStaticResourceList = (params) => {
- return request({
- url: '/website/getStaticResourceList',
- method: 'get',
- params
- })
- }
- //添加静态资源
- export const addStaticResource = (data) => {
- return request({
- url: '/website/addStaticResource',
- method: 'post',
- data
- })
- }
- //删除静态资源
- export const delStaticResource = (data) => {
- return request({
- url: '/website/delStaticResource',
- method: 'post',
- data
- })
- }
- //修改静态资源
- export const upStaticResource = (data) => {
- return request({
- url: '/website/upStaticResource',
- method: 'post',
- data
- })
- }
- // -------------自助建站-*-静态资源管理-----fr------end
|